www.mamboteam.com
Debian Linux (on HP)  
Home arrow Forum
Friday, 30 July 2010
 
 
HP System Management Agents Howto 0.2

gfx* Home Help Search Calendar Login Registergfx
Debian on HP, Linux  |  Debian on HP (HP software: agents, drivers and such)  |  HP System Management  |  Archive  |  HP System Management Agents Howto 0.2 « previous next »
Pages: [1] 2 Print
Author Topic: HP System Management Agents Howto 0.2  (Read 15766 times)
mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
HP System Management Agents Howto 0.2
« on: April 01, 2005, 11:54:32 am »

1.) Requirements

we need alien for rpm conversion.
Code:
apt-get install alien

the net-snmpd daemon needs to be installed.
Code:
apt-get install snmpd

tcl is needed for the hpimlview
Code:
apt-get install tk8.3

then we download the hpasm package for united linux.
Code:
wget ftp://ftp.compaq.com/pub/products/servers/supportsoftware/linux/hpasm-7.2.0b-204.ul10.i386.rpm

2.) Installation

Convert the rpm via alien to a tar archive.
i created a directory /usr/src/hpagents and copied the rpm there.
Code:
dcfax02:/# cd /usr/src/hpagents/
dcfax02:/usr/src/hpagents# ls
hpasm-7.2.0b-204.ul10.i386.rpm
dcfax02:/usr/src/hpagents#alien -t -c hpasm-7.2.0b-204.ul10.i386.rpm
hpasm-7.2.0b.tgz generated
dcfax02:/usr/src/hpagents#tar -xzf hpasm-7.2.0b.tgz
dcfax02:/usr/src/hpagents#
now we have some directories here and we need to copy it to the right locations.
Code:
dcfax02:/usr/src/hpagents# cp etc/init.d/hpasm /etc/init.d/
dcfax02:/usr/src/hpagents# cp opt/* /opt/ -R
dcfax02:/usr/src/hpagents# cp sbin/* /sbin/
dcfax02:/usr/src/hpagents# cp usr/share/* /usr/share/ -R

now that everything is in place the installationscripts can do their work.
first open the predoinst.sh and go to line 48.
change
Code:
useradd -u 79 -g 79 -s /sbin/nologin -M -r -d /opt/hp/hpsmh hpsmh > /dev/null 2> /dev/null
to
Code:
useradd -u 79 -g 79 -s /sbin/nologin -M -d /opt/hp/hpsmh hpsmh > /dev/null 2> /dev/null
debians useradd dont know the -r here.

Lets cleanup the init.d script.
open /etc/init.d/hpasm
remove line: 19,28,47,48,52,53,57,58
then
Code:
ln -s /bin/pidof /sbin/pidof
hpasm looks for pidof in sbin, so this is a quick workaround.

now execute predoinst.sh
if everything is alright you wont get any output.
if you have older hptools installed it will tell you that it do an upgrade, or it will complain about missing stuff.
if something goes wrong dont worry, you can execute this script as much as you want, it wont screw anything.

time to finish the installation by executing doinst.sh
you should get a short licence text and the information to activate hpasm via:
Code:
hpasm activate
we'll do that in the next step.

3.) Configuration


now start the activation
Code:
hpasm activate
for me it looks like this:

Code:
dcfax02:/usr/src/hpagents/install# hpasm activate


==============================================================================
NOTE: New snmpd.conf entries were added to the top of /etc/snmp/snmpd.conf
==============================================================================

==============================================================================
NOTE: New cma.conf entries were added to the top of /opt/compaq/cma.conf
==============================================================================

Following environment variables were used to configure snmpd/agents:
    CMAAGENTEXCLUDESTR
    CMALOCALHOSTRWCOMMSTR
    CMALOCALHOSTROCOMMSTR
    CMAMGMTSTATIONIPORDNS
    CMAMGMTSTATIONRWCOMMSTR
    CMAMGMTSTATIONROIPORDNS
    CMAMGMTSTATIONROCOMMSTR
    CMADEFTRAPCOMMSTR
    CMASYSCONTACT
    CMASYSLOCATION

Starting HP Server Management Drivers and Agents, please wait ...

you have this too?
good.


time for the configuration:

Code:
/etc/init.d/hpasm configure]

it will ask you several questions now and it depends on your system what you choose here.

Code:
Welcome to the hp System Health Application and Insight Management Agent(hpasm)
package installation. This package contains the hp Advanced Server Management
Application(hpasmd) and hp's SNMP agents. This package is intended to only
function on hp servers with either the ProLiant ASM (0x0E11A0F2) ASIC or the
ProLiant iLO Advanced Server Management (0x0E11B203) ASIC.


Do you wish to continue? <y/n> (blank is y)
the basic infos, yeah sure we want.

Code:
The startup scripts in this package also control the loading of modules in
this and other hp management packages(i.e. hprsm). Some of those management
modules are distributed under a non-GPL license. When these non-GPLed modules
are loaded the kernel's tainted flag (see /proc/sys/kernel/tainted) may be
set. If you choose not to load them, some management functionality will be lost.


Do you want to load the hp modules even though they may "taint"
your kernel? <y/n> (Blank is y)

hpasm itself has no tainted modules, so its only important if you later install some management modules with non-GPL licence.
i keep the default here.

Code:
Some agents are configured not to start. The startup rules are set up in
cma.conf. The following agents are excluded from running:

 cpqasm cmhp cmhp cmhp

Do you wish to change this (y/n) (Blank is n):

as far as i know these modules are not needed on a standard proliant, but perhaps on a blade or something else.

Code:
You will now be asked a series of SNMP configuration questions. How you answer
these question will affect the way SNMP behaves. Configuring SNMP could have
security implications on your system. If you are not sure how to answer a
question, you can abort by pressing <Ctrl-c> and no changes will be made to
your SNMP configuration.

Enter the localhost SNMP Read/Write community string
(one word, required, no default):

Enter localhost SNMP Read Only community string
(one word, Blank to skip):

Enter Read/Write Authorized Management Station IP or DNS name
(Blank to skip):
Enter Read Only Authorized Management Station IP or DNS name
(Blank to skip):
Enter default SNMP trap community string
(One word; Blank to skip):
Enter SNMP trap destination IP or DNS name
(One word; Blank to skip):
The system contact is set to
syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
Do you wish to change it (y/n) (Blank is n):
The system location is set to
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
Do you wish to change it (y/n) (Blank is n):

==============================================================================
NOTE: New snmpd.conf entries were added to the top of /etc/snmp/snmpd.conf
==============================================================================

==============================================================================
NOTE: New cma.conf entries were added to the top of /opt/compaq/cma.conf
==============================================================================
Starting HP Server Management Drivers and Agents, please wait ...

now the snmp config, for testing i use:
private as read/write
public as read only

for now i skip everything else, these values are important for InsightManager later.

this should do it.

4.) Usage

There some interesting tools now you can use:
hpasmcli   hpimlview  hplog  hpuid

check them out, they are pretty self explaining.



5.) TODO

- cmanic, the nic modul
- hpsrm, for the iloboard
- making this avaliable as a simple installscript or patch.


have fun Smiley
« Last Edit: April 26, 2005, 06:21:21 pm by mutombo » Logged
tomw00
Newbie
*
Offline Offline

Posts: 2


View Profile
Re: HP System Management Agents Howto 0.1
« Reply #1 on: April 04, 2005, 12:58:19 pm »

I have just done this on an ML 530 - works like a dream - insight manager is showing glowing green !!! 

Now need to schedule in migrating our other 42 servers to debian
Logged
kyliaar
Newbie
*
Offline Offline

Posts: 3


View Profile
Re: HP System Management Agents Howto 0.1
« Reply #2 on: April 12, 2005, 01:32:48 am »

I missing something.  I've verified that internally things are working.  I can pull a drive out of the array.  That gets logged and I get an email sent to the root alias.  However, Insight Manager sees the box as unavailable.  I've isolated this down to what appears to be a lack of the mib data available through snmp.  I did the install utilizing a different method - the script linked below:

http://www.sk-tech.net/support/HPrpm2deb.sh.html

I feel like there is a step missing from this method that does not handle making the Insight Manager MIB available.  Does anyone know how to handle that one step specifically?
Logged
mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
Re: HP System Management Agents Howto 0.1
« Reply #3 on: April 12, 2005, 03:33:47 pm »

i think there some problems with the snmp module supplied with this packages.
it got it working by using the ucd-snmpd from the hppage.
but i remember someone mentioned that you can use my howto with backports.
the snmpd from backports.org should be compatible with the actual snmpmodule from hpasm.
Logged
kyliaar
Newbie
*
Offline Offline

Posts: 3


View Profile
Re: HP System Management Agents Howto 0.1
« Reply #4 on: April 12, 2005, 06:31:26 pm »

Can you give me the version number?  Output from the version switch would be best.

Thanks
Logged
mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
Re: HP System Management Agents Howto 0.1
« Reply #5 on: April 14, 2005, 01:04:15 am »

NET-SNMP version:  5.1.2

snmpd: Installiert:5.1.2-6.1
Logged
lunarg
Administrator
Sr. Member
*****
Offline Offline

Posts: 61


View Profile WWW
Re: HP System Management Agents Howto 0.2
« Reply #6 on: April 26, 2005, 02:13:50 pm »

What happened to the kernel modules cpqasm and cpqevt (used for fan control, and the /proc interface for reading out temperatures, ...)?
Logged

mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
Re: HP System Management Agents Howto 0.2
« Reply #7 on: April 26, 2005, 02:27:19 pm »

seems like HP found a way to do that without kernel modules, so the proc entries are gone too.
take a look with hplog, you can get all the infos there.
for now the ilo drivers are the only packages that uses kernel modules.
Logged
lunarg
Administrator
Sr. Member
*****
Offline Offline

Posts: 61


View Profile WWW
Re: HP System Management Agents Howto 0.2
« Reply #8 on: April 26, 2005, 02:37:43 pm »

We used the /proc interface for reporting to Nagios (managed to install hpasm 7.1.0 on a 2.4 kernel with Debian Sarge).

There is probably no other way of directly reading out fan and temperature statuses?

If not, well, then that's okay too, since we were monitoring hplog as well (and that still seems to work).

PS: your howto went a lot smoother than the methods we used  Wink
Logged

mutombo
Administrator
Sr. Member
*****
Offline Offline

Posts: 72


View Profile
Re: HP System Management Agents Howto 0.2
« Reply #9 on: April 26, 2005, 02:44:19 pm »

afaik theres no other way,
but if someone find out please let me know Smiley

@lunarg thx, ill try to make it even more easier.
Logged
lunarg
Administrator
Sr. Member
*****
Offline Offline

Posts: 61


View Profile WWW
Re: HP System Management Agents Howto 0.2
« Reply #10 on: May 11, 2005, 09:28:08 am »

A tiny detail in the howto:

If it's a fresh install, when the command hpasm activate is executed, it automatically starts configuration.
So typing in /etc/init.d/hpasm configure is only necessary when you're upgrading/reinstalling.

I've also found a way to read out sensors directly, through hpasmcli.
A bit of perl programming will do nicely to automate the process.
« Last Edit: May 11, 2005, 09:30:21 am by lunarg » Logged

ronnie
Newbie
*
Offline Offline

Posts: 2


View Profile
Re: HP System Management Agents Howto 0.2
« Reply #11 on: May 24, 2005, 09:16:05 pm »

Hello fellow Debian users!

Would you guys mind posting your snmpd.conf and cma.conf? Everything seems to work fine for me but I don't receive any emails, I only get messages in /var/log/messages - regardless of my "trapemail" command. I have no idea what's missing.

I'm using hpasm-7.3.0 with snmpd-5.2.1 on a HP 380 G3 running Gentoo 2.6.

Cheers,
Ronnie
Logged
ronnie
Newbie
*
Offline Offline

Posts: 2


View Profile
Re: HP System Management Agents Howto 0.2
« Reply #12 on: May 25, 2005, 09:36:04 am »

Never mind, got it working by editing/uncommenting the cmaXSocketBase line in cma.conf  Smiley

Another issue though, I have these lines in /var/spool/compaq/cma.log:
Code:
modinfo: could not find module bonding
neither SMART2 ARRAY nor CCISS drivers are loaded

Anyone else having cciss drivers compiled in kernel instead of a module? If so, how have you solved it?
Logged
sarge1
Newbie
*
Offline Offline

Posts: 4


View Profile
Re: HP System Management Agents Howto 0.2
« Reply #13 on: June 07, 2005, 10:25:22 pm »

I was able to install the agents and web interface.  However the Cmastor agents doesent seem to start in the web page i dont see my array controller.  I am currently using snmp hpasm 7.3.  Any ideas what i may be missing?
Logged
yuri
Newbie
*
Offline Offline

Posts: 6


View Profile
Re: HP System Management Agents Howto 0.2
« Reply #14 on: June 09, 2005, 11:42:22 pm »

hello!
Im sort of new to linux in general, but I had an opportunity to set up a Proliant ML350 G2 server, I chose debian as Im the most familiar with it from linux distributions, and I like it Wink
The intelligent fan control system-thing needs to be configured though as the noise is quite nasty, Im hoping this thread will provide me with an answer to that one Smiley
In case someone reads this and has experience on ML350 G2 servers in specific, any helpful hints and pointers are welcome!
TIA.
Logged
Debian on HP, Linux  |  Debian on HP (HP software: agents, drivers and such)  |  HP System Management  |  Archive  |  HP System Management Agents Howto 0.2 « previous next »
Pages: [1] 2 Print 
Jump to:  
Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media
Joomla Bridge by JoomlaHacks.com

Apollo design by Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.055 seconds with 21 queries.
 
Top! Top!