Archive for the ‘ HP ’ Category

HP Proliant DL360 Red Screen

Tips taken from here http://www.vmwareinfo.com/2009/09/red-screen-of-death-hp-dl360-g6s.html and here http://bizsupport1.austin.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c02695572&lang=en&cc=us&taskId=101&prodSeriesId=4091408&prodTypeId=15351&printver=true

I recently installed RHEL 5 on a HP DL306 server from a bootable USB drive since there was no CD/DVD on the server.

After a complete installation of the OS and a reboot I kept getting a Red Screen of death with an “Illegal OpCode” error.

From the above HP link, looks like grub.conf kept looking at hd1,0 as the boot device so as long as the USB drive was plugged in all went fine but when I took it out -> Red Screen!

So I edited /boot/grub/grub.conf and changed the hd1,0 to hd0,0 save the file, reboot and viola!

#1. Boot from bootable USB

#2. Install RHEL5 Advanced boot options and select /dev/cciss/cp1 (boot partition)

#2a. If on reboot the system comes up, then as root run the grub commands below.

#3.  Boot to bootable USB, linux rescue and boot the drive to /mnt/sysimage

#4. Chroot /mnt/sysimage

#5. # grub
grub> find /boot/grub/stage1
grub> root (hd0,0) (If this command says FAT filesystem run it on hd1,0 and make sure you run setup on an ext2/3 filesystem.)
grub> setup (hd0)

OR

grub-install /dev/cciss/c0d0

If you are going to remove the USB drive you need to edit the bootable

hpacucli command

Here is a good reference: http://people.freebsd.org/~jcagle/hpacucli-readme

I recently had to use the hpacucli command to increase the size of a mirrored RAID array.

To find the status of all the controllers use the following options:

hpacucli ctrl all show

To find information about a specific controller:

hpacucli ctrl slot=0 show

To find the status of a specific controller:

hpacucli ctrl slot=0 show status

Show the details of a controller:

hpacucli ctrl slot=0 show config detail

Now to expand the RAID disk size from 150GB to 300GB.

To expand a LOGICAL DRIVE:

ctrl slot=3 ld 1 modify size=max

Getting help on the extend command: hpacucli extend help

Getting help on the controller command: hpacucli ctrl help

Monitor HP Proliant DL360 on Nagios and SNMP v3

RHEL5

Download hp-health.XXX.rpm from here

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&swItem=MTX-83c9772afe784cb4b0bad42f57&refresh=true

Download hp-snmp-agents from here:

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=15351&prodSeriesId=452749&prodNameId=3288142&swEnvOID=4006&swLang=8&mode=2&taskId=135&swItem=MTX-f0a7ddbd9a1b4be4acc735a541

RHEL4

These instructions assume you already have SNMP configured for version 3 on RHEL4 HP Proliant DL 360 server and another server with Nagios installed and working.

Download and Install HP RPMs

Necessary RPMs are hp-health and hp-snmp-agents.

You can go to the below link to download hp-health for RHEL4 x86 directly: http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=15351&prodSeriesId=452749&prodNameId=3288142&swEnvOID=2025&swLang=8&mode=2&taskId=135&swItem=MTX-11651fcb8d1b4b3fb224959c4e

You can go to the below link to download hp-snmp-agents for RHEL4 x86 directly:

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=15351&prodSeriesId=452749&prodNameId=3288142&swEnvOID=2025&swLang=8&mode=2&taskId=135&swItem=MTX-15f072a096134b8397225e4612

First install the hp-health RPM: rpm -ivh hp-health-XXX.rpm

Start the service: service hp-health start

Install the hp-snmp-agents RPM: rpm -ivh hp-snmp-agents.XXX.rpm

Start the service: service hp-snmp-agents start

Edit SNMP file to add the HP MIB’s to net-snmp: dlmod cmaX /usr/lib/libcmaX.so (for 64-bit) dlmod cmaX /usr/lib64/libcmaX64.so

Configure snmp v3 user: net-snmp-config –create-snmpv3-user -ro -a AuthPasswd -x PrivPasswd -X AES -A SHA snmpuser

Restart SNMP service: service net-snmp restart

Verify you get a response from snmpwalk from your Nagios monitoring server:

snmpwalk -l authPriv -u “snmpuser” -X “PrivPassword” -A “AuthPassword” -a SHA -x AES -v 3 “HOST IP” 1.3.6.1.4.1.232.6.2.6.8.1.3 (HP specific OID)

Add Nagios Service Check

Now the issue is to edit a Nagios check to receive SNMP version 3 parameters … I downloaded the check_hpasm from Nagios exchange.  Installed it on my Nagios server.  From the command line made sure it worked by calling check_hpasm with the following options: ./check_hpasm -H HOSTNAME/IP -P 3 –username snmpuser –authpassword snmppassword

This should work with the correct username and password.

Add this to your commands.cfg file

# ‘check_hpasm_v3′ command definition
define command {
command_name    check_hpasm_v3
command_line    $USER1$/check_hpasm -H $HOSTADDRESS$ -P 3 –username $ARG1$ –authpassword $ARG2$
}

# ‘check_hpasm_v3′ command definitiondefine command {        command_name    check_hpasm_v3        command_line    $USER1$/check_hpasm -H $HOSTADDRESS$ -P 3 –username $ARG1$ –authpassword $ARG2$        }

Add this to a service check .cfg file:

define service{

use                      linux-service

host_name                g05

service_description      HPASM SNMP v3 Check

check_command            check_hpasm_v3!snmpuser!AuthPasswd

normal_check_interval    5

retry_check_interval     1

}

Make sure to run a Nagios configuration check before restarting.


Follow

Get every new post delivered to your Inbox.