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).
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
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
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
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?
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
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
Sounds easy enough for me to get something started on Monday. Brett
Created attachment 12680 [details] hpasm-6.30.0.12-r1.ebuild This ebuild uses rpm2targz instead of the custom hpasm package I put togethor.
app-admin/hpasm enjoy
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
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.
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
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.
Could someone please change this ebuild to unstable or remove it?
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
Created attachment 15561 [details] hpasm-6.40.0.16.ebuild Forgot the pci-utils dependancy.
Created attachment 15562 [details] hpasm-6.40.0.16.ebuild Typo: pci-utils should have been pciutils.
Tested on a DL380G2 and it quieted the fans down.
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.
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.
Created attachment 15743 [details] hpasm startup script This is needed to properly startup the agents.
Created attachment 15744 [details] A generic snmpd.conf file generated by a Rh8.0 hpasm.
/sbin/imlbe This is the "backend" application for the Tcl/Tk IML viewer. This should never be executed directly from the command line.
Created attachment 15749 [details] hppasswd - Set the Web administrator passwords
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.
Created attachment 15767 [details] hpasm - startup scipt Removed the lines that called each daemon separately.
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.
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.
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.
The files crit_log_status thermal asr corr_log_status ftps mgmt_info and service are being written to /.
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.
Created attachment 15773 [details] initlog.conf - controls initlog
Created attachment 15774 [details] hpasm-6.40.0.16.ebuild Updated to include initlog.conf.
Created attachment 15914 [details] hpasm-6.40.0.16.ebuild Cleaned up some unneeded lines.
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.
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.
i no longer have access to hp servers to test this stuff, bouncing back to bug-wranglers to find someone who does..
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.
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.
closing
please test new hp tools http://dev.gentoo.org/~tuxus/insight-tools/
new hpasm home and new ebuilds http://www.tuxus.com/app-admin/hpasm/
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