Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22015 - Ebuild for HP Server Management Drivers and Agents.
Summary: Ebuild for HP Server Management Drivers and Agents.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://h18000.www1.hp.com/products/se...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-05-31 15:00 UTC by Brett Simpson
Modified: 2007-09-14 14:08 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
hpasm-6.30.0.12.ebuild (hpasm-6.30.0.12.ebuild,2.43 KB, text/plain)
2003-05-31 15:09 UTC, Brett Simpson
Details
hpasm-6.30.0.12-r1.ebuild (hpasm-6.30.0.12-r1.ebuild,2.63 KB, text/plain)
2003-06-02 08:23 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,3.55 KB, text/plain)
2003-08-05 13:06 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,3.56 KB, text/plain)
2003-08-05 13:09 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,3.56 KB, text/plain)
2003-08-05 13:10 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,5.32 KB, text/plain)
2003-08-07 11:01 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,5.37 KB, text/plain)
2003-08-08 05:21 UTC, Brett Simpson
Details
hpasm startup script (hpasm,815 bytes, text/plain)
2003-08-08 05:22 UTC, Brett Simpson
Details
A generic snmpd.conf file generated by a Rh8.0 hpasm. (snmpd.conf,14.99 KB, text/plain)
2003-08-08 05:24 UTC, Brett Simpson
Details
hppasswd - Set the Web administrator passwords (hppasswd,829 bytes, text/plain)
2003-08-08 06:27 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,5.53 KB, text/plain)
2003-08-08 07:07 UTC, Brett Simpson
Details
hpasm - startup scipt (hpasm,379 bytes, text/plain)
2003-08-08 12:10 UTC, Brett Simpson
Details
functions - A Redhat 8.0 functions script (functions,9.83 KB, text/plain)
2003-08-08 12:12 UTC, Brett Simpson
Details
initlog - Redhat script that handles logging functions (initlog,38.06 KB, text/plain)
2003-08-08 12:13 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,5.62 KB, text/plain)
2003-08-08 12:20 UTC, Brett Simpson
Details
initlog.conf - controls initlog (initlog.conf,658 bytes, text/plain)
2003-08-08 12:40 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,5.65 KB, text/plain)
2003-08-08 12:41 UTC, Brett Simpson
Details
hpasm-6.40.0.16.ebuild (hpasm-6.40.0.16.ebuild,5.70 KB, text/plain)
2003-08-11 10:57 UTC, Brett Simpson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brett Simpson 2003-05-31 15:00:45 UTC
This ebuild can be used on recent Compaq proliant servers (i.e. DL360 G1-3, DL380 
G1-G3, ML370, ML570, DL580, etc..) and functions to quiet the fans down, show 
current system temperatures, and control other aspects of the server hardware (nic, 
storage, cpq array util, diag).
Comment 1 Brett Simpson 2003-05-31 15:09:26 UTC
Created attachment 12617 [details]
hpasm-6.30.0.12.ebuild

Initial ebuild for the hpasm software. So far it only shows the temp, fan
speed, and installs the iml viewer software.

Current todo list:
1: Should separate ebuilds be produced for each agent? (i.e. nic, storage, cpq
array, diag, etc..)
2: Resolve a memory error with hpimlview. Seems to work ok with a full gui on a
DL360G1 but doing an ssh session produces the errors.
3: Clean up startup scripts. For now I modified the startup scripts to be
Gentoo friendly. 
4: Get the Web accessable portion working.
5: Work on snmp config since the rpm does it?

Brett
Comment 2 steveb 2003-05-31 16:33:34 UTC
Hi Brett, me again :)

would it not be better to download the rpm directly from the compaq ftp server (ftp://ftp.compaq.com/pub/products/servers/supportsoftware/linux/) and then use rpm2targz from the package app-arch/rpm2targz and then install that way?

i personaly would not install that kind of software on one of my productive cpq servers from an untrusted source.

let me know, if you need help with the rpm way. i have my servers runing with red hat, but wanted them to be gentoo for long time now. maybe your ebuild and testing/helping you to develop the ebuild could be a good reason to switch them to gentoo?

cheers

SteveB
Comment 3 Brett Simpson 2003-05-31 16:41:51 UTC
I did try the rpm with rpm2targz but I ran into a bunch of errors when extracting the targz.  
Despite that the extraction did work but I would also have to use sed to modify the a number of  
the config files.  
I thought it would be cleaner to build a completely new package but I'm flexible. Do you know of  
any ebuilds that use rpm2targz? If so I'll use that as a starting point.  
  
Brett  
Comment 4 Brett Simpson 2003-05-31 17:03:51 UTC
Reading the license I saw this... 
 
9. LIMITATION ON REVERSE ENGINEERING.  Licensee may not reverse engineer, decompile, 
or disassemble the Product, except and only to the extent that it is permitted by applicable law 
notwithstanding this limitation. 
 
Does this impact us on downloading and modifying? 
Comment 5 steveb 2003-05-31 17:29:38 UTC
hi brett

answer 1: for i in $(find /usr/portage -iname *.ebuild -type f);do if(grep -iq "rpm2targz" ${i});then echo "${i} uses rpm2targz";fi;done

/usr/portage/app-admin/tmpwatch/tmpwatch-2.8.4.ebuild uses rpm2targz
/usr/portage/app-arch/rpm2targz/rpm2targz-8.0.ebuild uses rpm2targz
/usr/portage/app-emulation/win4lin/win4lin-4.0.12.ebuild uses rpm2targz
/usr/portage/app-emulation/win4lin/win4lin-4.0.16.ebuild uses rpm2targz
/usr/portage/app-emulation/win4lin/win4lin-4.0.20.ebuild uses rpm2targz
/usr/portage/app-misc/jot/jot-9.0.ebuild uses rpm2targz
/usr/portage/dev-java/compaq-jdk/compaq-jdk-1.3.1.ebuild uses rpm2targz
/usr/portage/dev-java/compaq-jre/compaq-jre-1.3.1.ebuild uses rpm2targz
/usr/portage/dev-lang/ccc/ccc-6.5.6.002.ebuild uses rpm2targz
/usr/portage/dev-lang/ccc/ccc-6.5.9.001.ebuild uses rpm2targz
/usr/portage/dev-lang/cxx/cxx-6.5.9.31.ebuild uses rpm2targz
/usr/portage/dev-lang/cxx/cxx-6.5.9.31-r1.ebuild uses rpm2targz
/usr/portage/dev-libs/libcpml/libcpml-5.2.01-r1.ebuild uses rpm2targz
/usr/portage/dev-libs/libcpml/libcpml-5.2.01.ebuild uses rpm2targz
/usr/portage/dev-libs/libcpml/libcpml-5.2.01-r2.ebuild uses rpm2targz
/usr/portage/dev-libs/libots/libots-2.2.7.ebuild uses rpm2targz
/usr/portage/dev-libs/libcxml/libcxml-5.2.0.ebuild uses rpm2targz
/usr/portage/dev-util/ladebug/ladebug-4.0.67.ebuild uses rpm2targz
/usr/portage/media-video/ati-drivers/ati-drivers-2.5.1-r1.ebuild uses rpm2targz
/usr/portage/media-video/ati-drivers/ati-drivers-2.5.1.ebuild uses rpm2targz
/usr/portage/media-video/ati-drivers/ati-drivers-2.9.6.ebuild uses rpm2targz
/usr/portage/media-video/ati-drivers/ati-drivers-2.9.8.ebuild uses rpm2targz
/usr/portage/media-video/realplayer/realplayer-8-r2.ebuild uses rpm2targz
/usr/portage/media-video/realplayer/realplayer-8-r3.ebuild uses rpm2targz
/usr/portage/net-dialup/mingetty/mingetty-1.00.3.ebuild uses rpm2targz
/usr/portage/net-mail/ximian-connector/ximian-connector-1.2.0.ebuild uses rpm2targz
/usr/portage/net-mail/ximian-connector/ximian-connector-1.2.1_p2-r1.ebuild uses rpm2targz
/usr/portage/net-mail/ximian-connector/ximian-connector-1.2.1_p2.ebuild uses rpm2targz
/usr/portage/net-mail/ximian-connector/ximian-connector-1.2.2_p1.ebuild uses rpm2targz
/usr/portage/sys-kernel/redhat-sources/redhat-sources-2.4.18.24.8.0.ebuild uses rpm2targz
/usr/portage/sys-kernel/redhat-sources/redhat-sources-2.4.20.2.48.ebuild uses rpm2targz
/usr/portage/sys-kernel/redhat-sources/redhat-sources-2.4.20.2.48-r1.ebuild uses rpm2targz
/usr/portage/sys-kernel/compaq-sources/compaq-sources-2.4.9.32.7.ebuild uses rpm2targz
/usr/portage/x11-misc/xnview/xnview-1.50.ebuild uses rpm2targz
/usr/portage/x11-misc/urw-fonts/urw-fonts-2.0.ebuild uses rpm2targz
/usr/portage/x11-misc/urw-fonts/urw-fonts-2.0-r1.ebuild uses rpm2targz
/usr/portage/x11-themes/redhat-artwork/redhat-artwork-0.39.ebuild uses rpm2targz
/usr/portage/x11-themes/redhat-artwork/redhat-artwork-0.47.ebuild uses rpm2targz
/usr/portage/x11-themes/redhat-artwork/redhat-artwork-0.63-r1.ebuild uses rpm2targz
/usr/portage/x11-themes/redhat-artwork/redhat-artwork-0.65.ebuild uses rpm2targz
/usr/portage/x11-themes/redhat-artwork/redhat-artwork-0.73.ebuild uses rpm2targz


answer 2: the limitation is only for the product it self, but not for the installer or the way it is packed. you can do whatever you need to do with the rpm package, but you are not allowed to try to disassemble or reverse engineer the binary.


cheers

SteveB
Comment 6 steveb 2003-05-31 17:58:33 UTC
hi brett

you can use rpm2targz, but you will get errors when you try to extract the tar.gz image, because of the symlinks:
./opt/compaq/hpasm/addon/libcpqci.so -> ./libcpqci.so.1
./opt/compaq/hpasm/addon/libcpqci.so.1 -> libcpqci.so.1.0
./sbin/cpqimlview -> /opt/compaq/cpqhealth/cpqasm/cpqimlview
./sbin/cpqimlview.tcl -> /opt/compaq/cpqhealth/cpqasm/cpqimlview.tcl
./sbin/hpimlview -> /opt/compaq/cpqhealth/cpqasm/hpimlview
./sbin/hplog -> /opt/compaq/cpqhealth/hplog
./sbin/hpuid -> /opt/compaq/cpqhealth/hpuid
./sbin/imlbe -> /opt/compaq/cpqhealth/cpqasm/imlbe
./usr/share/pixmaps/hplogo.xbm -> /opt/compaq/cpqhealth/cpqasm/hplogo.xbm
./usr/share/pixmaps/m_blue.gif -> /opt/compaq/cpqhealth/cpqasm/m_blue.gif
./usr/share/pixmaps/m_fail.gif -> /opt/compaq/cpqhealth/cpqasm/m_fail.gif
./usr/share/pixmaps/m_green.gif -> /opt/compaq/cpqhealth/cpqasm/m_green.gif
./usr/share/pixmaps/m_red.gif -> /opt/compaq/cpqhealth/cpqasm/m_red.gif
./usr/share/pixmaps/m_yellow.gif -> /opt/compaq/cpqhealth/cpqasm/m_yellow.gif

but this is no big deal. you can set those symlinks in the ebuild.

cheers

SteveB
Comment 7 Brett Simpson 2003-05-31 23:01:25 UTC
Sounds easy enough for me to get something started on Monday. 
 
Brett 
Comment 8 Brett Simpson 2003-06-02 08:23:30 UTC
Created attachment 12680 [details]
hpasm-6.30.0.12-r1.ebuild

This ebuild uses rpm2targz instead of the custom hpasm package I put togethor.
Comment 9 Joshua Brindle (RETIRED) gentoo-dev 2003-06-24 18:38:21 UTC
app-admin/hpasm
enjoy
Comment 10 Joshua Brindle (RETIRED) gentoo-dev 2003-06-25 13:12:47 UTC
wow, after testing on my dl380 this ebuild needs more deps, namely pciutils and lib-compat

also, it's noisy about wanting /etc/rc.d/init.d/functions

is this a redhat thing? do we have something similar?

i'll update this today
Comment 11 Brett Simpson 2003-06-25 13:32:57 UTC
Most of the config files are Redhat specific and would need to be changed via sed or something similar during the install. I had to manually change them to use the Gentoo way of doing Linux. Still though I'm not comfortable with the HP startup script because there are a lot of things in them I don't fully understand. I think a completely new startup script is needed or at least a review of the existing scripts.
Comment 12 Joshua Brindle (RETIRED) gentoo-dev 2003-06-25 13:42:15 UTC
ack! 
and it's storing files in /
thermal
asr
corr_log_status
crit_log_status
ftps
mgmt_info

etc

these should go to /var/lib/hpasm is there a way to fix this?

also, how do i make the fan speed go down? i tried all the binaries it installed and nothing made is quieter :P
Comment 13 Brett Simpson 2003-06-25 13:51:00 UTC
I just noticed the files myself and I thing the /etc/init.d/hpasm must throw them their when it doesn't find the Redhat specific stuff. All relivent data should be pulled from /proc.
Comment 14 Brett Simpson 2003-06-25 13:53:15 UTC
Could someone please change this ebuild to unstable or remove it?
Comment 15 Brett Simpson 2003-08-05 13:06:33 UTC
Created attachment 15560 [details]
hpasm-6.40.0.16.ebuild

Sorry for the long delay in fixing this ebuild.

This ebuild is a version bump to the next version and...

1: Cleaned up some errors during the install process.
2: Changed several files that used /etc/init.d/functions instead of
/etc/init.d/functions.sh
3: Created a generic /opt/compaq/cma.conf and /opt/compaq/cmaobjects.conf.

I have tested this on a DL360 and a DL360G2 and it seems to be ok. It didn't
create any weird files on the / filesystem. :-) Also the web, storage, nic, and
other agents have been disabled in /opt/compaq/cma.conf. In a later version
I'll enable them once I sort out what's needed with snmp.

Brett
Comment 16 Brett Simpson 2003-08-05 13:09:06 UTC
Created attachment 15561 [details]
hpasm-6.40.0.16.ebuild

Forgot the pci-utils dependancy.
Comment 17 Brett Simpson 2003-08-05 13:10:21 UTC
Created attachment 15562 [details]
hpasm-6.40.0.16.ebuild

Typo: pci-utils should have been pciutils.
Comment 18 Brett Simpson 2003-08-06 07:37:07 UTC
Tested on a DL380G2 and it quieted the fans down.
Comment 19 Brett Simpson 2003-08-07 11:01:49 UTC
Created attachment 15693 [details]
hpasm-6.40.0.16.ebuild

This one corrects the hpimlview so it actually runs when you install xfree,
tclx, and tix.
Also added snmp and X use variables to allow for net-snmp, xfree, tclx, and tix
to be built automatically when their set. Any idea on when tix will get
unmasked? 

Still working on getting the web portion working.
Comment 20 Brett Simpson 2003-08-08 05:21:21 UTC
Created attachment 15742 [details]
hpasm-6.40.0.16.ebuild

1: Removed the symlink for hpasm_rebuild.
2: Added am snmpd.conf file that will work (Read only) with Compaq Insight
Manager.
3: Added a new hpasm startup file that will startup all of the other agents.
Later I will work on an /etc/conf.d/hpasm that will allow selectively enabling
each agent.
4: Tested with Compaq Insight Manager (CIM) 5.30.
5: bootcfg, hpuid, and hplog seem to work ok.

Things still left to be done:
1: Setup some generic passwords for the agents or make a way to easily set
them.
2: Test Write access through CIM 5.30.
3: Test the Web agents.
4: Cleanup startup errors.
5: Figure out what /sbin/imlbe is used for?
6: Change the reported OS line to Gentoo in CIM 5.30.
7: Clean up any unneeded files.
Comment 21 Brett Simpson 2003-08-08 05:22:48 UTC
Created attachment 15743 [details]
hpasm startup script

This is needed to properly startup the agents.
Comment 22 Brett Simpson 2003-08-08 05:24:30 UTC
Created attachment 15744 [details]
A generic snmpd.conf file generated by a Rh8.0 hpasm.
Comment 23 Brett Simpson 2003-08-08 05:27:37 UTC
       /sbin/imlbe
              This is the "backend" application  for  the  Tcl/Tk
              IML viewer.  This should never be executed directly
              from the command line.
Comment 24 Brett Simpson 2003-08-08 06:27:06 UTC
Created attachment 15749 [details]
hppasswd - Set the Web administrator passwords
Comment 25 Brett Simpson 2003-08-08 07:07:53 UTC
Created attachment 15750 [details]
hpasm-6.40.0.16.ebuild

1: Added casmd.conf cevtdl.conf cevtdm.conf into /etc
2: Added section to install hppasswd.
Comment 26 Brett Simpson 2003-08-08 12:10:58 UTC
Created attachment 15767 [details]
hpasm - startup scipt

Removed the lines that called each daemon separately.
Comment 27 Brett Simpson 2003-08-08 12:12:51 UTC
Created attachment 15768 [details]
functions - A Redhat 8.0 functions script

This script is need in order for some of the Redhat scripting in hpasm to
function properly.
Comment 28 Brett Simpson 2003-08-08 12:13:45 UTC
Created attachment 15769 [details]
initlog - Redhat script that handles logging functions

This is needed or else you'll get a ton of initlog errors on staring hpasm.
Comment 29 Brett Simpson 2003-08-08 12:20:56 UTC
Created attachment 15770 [details]
hpasm-6.40.0.16.ebuild

Things corrected:
1: hpimlview now symlinks to the correct file. This is the command line version
of cpqimlview.
2: Copied functions to /opt/compaq/hpasm/etc
3: Copied initlog to /sbin
4: hpasm script completely starts everything without errors.
5: Use /opt/compaq/cma.conf to control what agents need to load.

Future:
1: For now I will not split up the config options into /etc/conf.d/hpasm.
Instead I will add a config file protect for those files that have settings.
2: The RedHat 8.0 label in CIM is hardcoded into the binaries. I will not be
able to change this without the source code.
3: Get "hpasm activate" working.
Comment 30 Brett Simpson 2003-08-08 12:23:52 UTC
The files crit_log_status thermal asr corr_log_status ftps mgmt_info and service are being written to /.
Comment 31 Brett Simpson 2003-08-08 12:28:04 UTC
The files crit_log_status thermal asr corr_log_status ftps and mgmt_info were written when I was testing without the /sbin/initlog file. Once it was in place it wrote the logs files in the correct place.
Comment 32 Brett Simpson 2003-08-08 12:40:30 UTC
Created attachment 15773 [details]
initlog.conf - controls initlog
Comment 33 Brett Simpson 2003-08-08 12:41:05 UTC
Created attachment 15774 [details]
hpasm-6.40.0.16.ebuild

Updated to include initlog.conf.
Comment 34 Brett Simpson 2003-08-11 10:57:15 UTC
Created attachment 15914 [details]
hpasm-6.40.0.16.ebuild

Cleaned up some unneeded lines.
Comment 35 John Herdy 2003-12-12 09:05:56 UTC
Wow, I really like to use the HP-agents. Is it possible to create an ebuild with the latest version? Impolite question; when do you think it will be added to the tree? I need to deploy a few HP ProLiant DL360G3 servers and I would love to use Gentoo instead of SUSE/Red Hat. The reason I ask is that I have to start the deployment within three weeks and I need to order SUSE/Red Hat if I can't use the agents with Gentoo. Unfortunatly I'm not skilled enough to create an ebuild for these agents myself. Thanks a lot for your support.
Comment 36 Brett Simpson 2003-12-12 09:44:59 UTC
From what I can tell HP's web site 6.40.0-16 is the latest (of course I could be wrong). This ebuild doesn't cover the storage, network, and other agents. It's still a work in progress due to a bunch of hacks in the config files to work around the Redhat type of support. Lately I haven't had time to work on it due to other issues going on here at work. 
As is it should quiet the fans down, show the temp, allow basic web access, and allow Compaq Insight Manager to see the status of your server.
Comment 37 Joshua Brindle (RETIRED) gentoo-dev 2004-03-16 04:03:59 UTC
i no longer have access to hp servers to test this stuff, bouncing back to bug-wranglers to find someone who does..
Comment 38 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-16 11:24:44 UTC
Brett, I also don't know diddly about HP Proliant servers, however, I've just made a change to the ebuild that's in portage, and I'd like you to look at it (cleaner unpacking, version naming, and installation).  Can you fix up whatever version bumped ebuilds you want to add into portage (along with supplementary files) and I'll check those in for you with the understanding that any bug that comes in about this stuff will have you on CC. -- ie, you'll be the indirect maintainer for this package.
Comment 39 Brett Simpson 2004-04-30 05:01:59 UTC
I would like to continue working on the ebuild but at work we moved all of our Proliant servers from Gentoo to Redhat Enterprise so I am unable to continue testing the ebuild.
Comment 40 Martin Holzer (RETIRED) gentoo-dev 2004-05-05 13:07:16 UTC
closing
Comment 41 Jan Seidel (RETIRED) gentoo-dev 2004-11-12 12:51:26 UTC
please test new hp tools

http://dev.gentoo.org/~tuxus/insight-tools/
Comment 42 Jan Seidel 2005-12-13 06:10:24 UTC
new hpasm home and new ebuilds

http://www.tuxus.com/app-admin/hpasm/
Comment 43 Jakub Moc (RETIRED) gentoo-dev 2007-09-14 14:08:33 UTC
No idea why is this open, closing.

app-admin/hpasm
      Latest version available: 6.30.0.12-r1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: [no/bad digest]
      Homepage:   http://h18000.www1.hp.com/products/servers/linux/documentation.html
      Description: hp Server Management Drivers and Agents
      License:     hp-value