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.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#
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
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
toCode:
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 ...
==============================================================================
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.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)
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)
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):
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 ...
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

Forum 













Author



Logged








