Search This Blog

Monday, December 21, 2009

Installing HP sim agents on ESX 3.5

(Thanks to ViVl)
Installing the HP sim management agents on VMware ESX 3.5.
We need two tools to get started, one is WINSCP and the other is Putty.

First you need to download the sources from HP.
HPsim 8.30 for ESX3.5

Than use WinSCP to connect to you ESX host. Once connected browse to the ./tmp folder in the root. Copy the .TGZ file from your computer to the ./tmp file on the esc host.

Connect to the console with Putty.
Probably the Root is prohibited to logon ussing ssh. So login as sshuser. Once you are logged in, you an change to Root credentials by entering "SU".

Now you in the directory "SSHUSER", now you have to browse back to the ./TMP folder. If you are not sure which commands to use, you can use "cd .." or "cd /tmp" to browse to the tmp folder.

Once you are at the ./tmp, you unzipp the TGZ file.
tar -zxvf hpmgmt-8.1.1-vmware3x.tar file. Once these files have been uncompressed you will see that the folder HPmgmt is created in the TMP folder. In this HPmgmt folder you will find another folder which carries the names of the version of the agents you are about to install. Which is in my case 830.

In the next step you bowse to the version folder (830). To view the content of that folder, type ls. Another important note to make here is that capitals do count when addressing files in Linux.

You will find following files in the version folder:
> ..
200.621 hp-OpenIPMI-8.3.0-69.vmware30.i386.rpm
5.575.138 hpasm-8.3.0-149.vmware30.i386.rpm
3.614 hpmgmt.conf.example
298.491 hprsm-8.3.0-146.vmware30.i386.rpm
14.498.438 hpsmh-3.0.2-77.i386.rpm
37.470 installvm830.sh
1.140 LICENSE.txt
4.279 PreInstall_Setup.sh
13.149 README.txt
77 restore_file_info.sh
20.632.417 bytes
now we need to run following command on the two installation files:
type "chmod 777 ./PreInstall_Setup.sh" and press enter.
type "chmod 777 ./installvm830.sh" and press enter.

now it is time to start the preinstall script:
type "./PreInstall_Setup.sh" and press enter.
the console prompts you, that if you continue the server will reboot in 10 seconds. press y to confirm.

Install the agents:
type "./installvm830.sh --install" and press enter.
The agent installation wizard kick off and will prompt you for the necsesarry info along the way. After the installation is finnished you still need to configure the snmpd.conf file. This can be done through the HPSIM homepage of the system (https://ipofesxnode:2381).
If you do not have a HPSim server and only use the local managemnt homepage following config will do:

# Following entries were added by HP Insight Management Agents at
# Tue Aug 19 09:54:35 CEST 2008
dlmod cmaX /usr/lib/libcmaX.so
rwcommunity private 127.0.0.1
rocommunity public 127.0.0.1
rocommunity public
trapcommunity public
trapsink localhost
syscontact root@localhost (edit snmpd.conf)
syslocation room1 (edit snmpd.conf)

# ---------------------- END --------------------
# Sample snmpd.conf containing VMware MIB module entries.

# This is a simple snmpd.conf that may help you test SNMP.
# It is not recommended for production use. Consult the
# snmpd.conf(5) man pages to set up a secure installation.


# VMware MIB modules. To enable/disable VMware MIB items
# add/remove the following entries.
dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so

Example:
Stopping Pegasus CIMOM (cimserver)... [ OK ]
Service pegasus is stopped.

Checking for installed agents
Stopping HP Insight Manager agents:
Stopping hprsm: [ OK ]
Stopping hpasm: [ OK ]

Stopping System Management Homepage:Stopping hpsmhd:

Stopping SNMP stack:
Stopping snmpd:Stopping snmpd: [ OK ]

Removing HP Insight Manager agents:
Removing hprsm-8.1.0-118.vmware30: [ OK ]
Removing hpasm-8.1.0-121.vmware30: [ OK ]
Removing hp-OpenIPMI-8.1.0-118.vmware30: [ OK ]

Removing HP System Management Homepage:
Removing hpsmh-2.1.12-200: [ OK ]

Stopped IPMI service [ OK ]
Disabling port for hpim service (2381) in the firewall [ OK ]
Disabling port for HP System Insight Manager (2301) in the firewall [ OK ]
Disabling port for the SIM Certificate in SMH [280] in the firewall [ OK ]


WARNING: snmpd service has been enabled in the firewall.
Disable this service using the command
"esxcfg-firewall --disableservice snmpd"
if no other program is using it

Starting ipmi drivers: [ OK ]
Service ipmi is started.
Starting Pegasus CIMOM (cimserver)... [ OK ]

Service Pegasus is started.

HP Insight Manager agents have been uninstalled successfully!

[root@esx03 830]# ./installvm830.sh --install
./installvm830.sh: line 1: dmidecode: command not found

HP Insight Manager Agent 8.3.0-17 Installer for VMware ESX Server
Target System is VMware ESX Server 3.5.0 build-110268
Server:


This script will now attempt to install the HP Insight Manager Agents.
Do you wish to continue (y/n) y

Verifying VMware ESX Server version [ OK ]

Verifying RPM packages:
Verifying hp-OpenIPMI-8.3.0-69.vmware30.i386.rpm [ OK ]
Verifying hpasm-8.3.0-149.vmware30.i386.rpm [ OK ]
Verifying hprsm-8.3.0-146.vmware30.i386.rpm [ OK ]
Verifying hpsmh-3.0.2-77.i386.rpm [ OK ]

Checking for previously installed agents [ OK ]

Pegasus service is ON.

The installer must now shut down the Pegasus CIM server in
order to manipulate the IPMI driver. Pegasus CIM will be started
again once install is complete. Remote management services
which depend on CIM will be unavailable during the shutdown
period.

This script will now attempt to shut down Pegasus CIM in order to manipulate the HP Insight Manager Agents.
Do you wish to continue (y/n) y
Stopping Pegasus CIMOM (cimserver)... [ OK ]
Service pegasus is stopped.
Stopped IPMI service [ OK ]
Installing HP System Management Homepage:
Checking dependencies of hpsmh-3.0.2-77.i386.rpm [ OK ]
Installing hpsmh-3.0.2-77.i386.rpm [ OK ]
Installing HP Management Agents:
Checking dependencies of hp-OpenIPMI-8.3.0-69.vmware30.i386.rpm [ OK ]
Installing hp-OpenIPMI-8.3.0-69.vmware30.i386.rpm [ OK ]
Checking dependencies of hpasm-8.3.0-149.vmware30.i386.rpm [ OK ]
Installing hpasm-8.3.0-149.vmware30.i386.rpm [ OK ]
Checking dependencies of hprsm-8.3.0-146.vmware30.i386.rpm [ OK ]
Installing hprsm-8.3.0-146.vmware30.i386.rpm [ OK ]


For accessing the System Management Homepage, the port for hpim service (2381)
should be enabled in the firewall.
Do you want to enable this port? (default is y) y
Enabling port for hpim service (2381) in the firewall [ OK ]

For allowing discovery by HP System Insight Manager, the port (2301)
should be enabled in the firewall.
Do you want to enable this port? (default is y) y
Enabling port for HP System Insight Manager (2301) in the firewall [ OK ]

For adding the HP Systems Insight Manager Certificate in SMH, the port [280]
should be enabled in the firewall.
Do you want to enable this port? (default is y) y
Enabling port for SIM Certificate in SMH [280] in the firewall [ OK ]

HP Advanced Server Management configuration:

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? (blank is y) y
==============================================================================
NOTE: Your SNMP stack can load the 32-bit hp ProLiant Management Extension.
Problems may result from using your distribution's SNMP stack.
See hp Documentation (HOWTO, agent manual) for more details.
==============================================================================
Press the Enter key to continue...

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? (Blank is y) y

This package contains data gathering agents that provide data to clients via
SNMP. This SNMP data may be used by other hp management software. If you
choose not to start these agents that data may not be provided. Answer 'y'
to this question to start the base set of agents. You will be prompted for
the more specialized Storage and Performance agents.

Agent Startup Policy
Do you require SNMP agents (y/n) ? (Blank is y): y

Storage Agent Startup Policy
Do you require Storage Agent support (y/n) ? (Blank is y): y
NIC Agent Startup Policy
Do you require NIC Agent support (y/n) ? (Blank is y): y

This configuration script will configure SNMP to integrate with the HP SIM and
the HP System Management Homepage. The HPASM can also exist in a more secure
SNMP environment (e.g. VACM) that you have previously configured. See the
hpasm(4) man page for specific details on how to configure the VACM entries
in the 'snmpd.conf' file. You may press now to exit now if needed.

Do you wish to use an existing snmpd.conf (y/n) (Blank is n): y

This configuration script will add user 'hpsmh' and group 'hpsmh' to integrate with the HP SIM and the
HP System Management Homepage (hpsmh). The default selection is to enable hpsmh support.

Do you wish to disable hpsmh support (y/n) (Blank is n): n

==============================================================================
NOTE: New cma.conf entries were added to the top of /opt/compaq/cma.conf
==============================================================================
The hpsmh group already exists...doing nothing
The hpsmh user already exists...doing nothing
Changing Owner and Group of '/opt/hp/hpsmh/data' to 'hpsmh:hpsmh' ...
Going to apply the permissions...
Delaying startup of the following agent/driver group(s): hpasmd
Starting HP Server Management Drivers and Agents, please wait ...
Skipping startup of hpasmd. This is normal during the initial install.
Otherwise, remove /var/spool/compaq/cma.install

Starting Foundation Agents (cmafdtn):

[ OK ]

Stopping HP Insight Manager agents:
Stopping hprsm: [ OK ]
Stopping hpasm: [ OK ]

Stopping System Management Homepage: [ OK ]


... Wait 30 seconds for server to settle down ...
Mon Dec 21 16:48:30 CET 2009
Mon Dec 21 16:49:00 CET 2009
... Completed waiting 30 seconds ...
Starting System Management Homepage: [ OK ]

Starting HP Insight Manager agents: [ OK ]

Starting Pegasus CIMOM (cimserver)... [ OK ]

Service Pegasus is started.

System=
... Wait 60 seconds for server to complete sensor initiailization ...
Mon Dec 21 16:49:00 CET 2009
Mon Dec 21 16:50:00 CET 2009
... Completed waiting 60 seconds for sensor initialization ...
Stopping SNMP stack:
Stopping snmpd: [ OK ]

Starting SNMP stack:
Starting snmpd: [ OK ]

**********************************************************
* System Management Homepage installed successfully with *
* default configuration values. To change the default *
* configuration values, type the following command at *
* the root prompt: *
* *
* perl /usr/local/hp/hpSMHSetup.pl *
* *
**********************************************************
Please read the License Agreement for this software at

/opt/compaq/hpasm/hpasm.license

By not removing this package, you are accepting the terms
of the "License for HP Value Added Software".


HP Insight Manager agents have been installed successfully!

No comments:

Post a Comment