ProLiant Servers (ML,DL,SL)
1755747 Members
3993 Online
108837 Solutions
New Discussion юеВ

ipmi + DL385 G2 ?!?!?!

 
Richard Hilber
Occasional Advisor

ipmi + DL385 G2 ?!?!?!

want to force our HP DL385 G2 to boot from PXE over IPMItools on our installation server (SLES 10 SP1) i started the following command.

IPMItool Version: ipmitool-1.8.9-2.7

ipmitool -I lanplus -H 192.168.111.43 -U root -P hproothp chassis bootdev pxe

and get the following output

Error: Unable to establish IPMI v2 / RMCP+ session Error setting Chassis Boot Parameter 0
Error: Unable to establish IPMI v2 / RMCP+ session Error setting Chassis Boot Parameter 4 so i tryes to use the following command response of this command
Error: Unable to establish LAN session Error setting Chassis Boot Parameter 0 Error setting Chassis Boot Parameter 4

What is the right way to access the HP DL385 G2 ILO2 over IPMI, to set the bootoption to pxe???
2 REPLIES 2
Richard Hilber
Occasional Advisor

Re: ipmi + DL385 G2 ?!?!?!

i found an alternative solution (not IPMI) via ssh.

it ist possible to change the boot order via the set commnad in the ilo2 terminal ...

so i can connect via ssh an force the server to start from network.

an in the ipl menu (bios) i have to setup the right MAC (an the installation of the server).

i'm going to test this tomorrow ....

e.g.

hpiLO-> cd /system1/bootconfig1/bootsource3
status=0
status_tag=COMMAND COMPLETED


/system1/bootconfig1/bootsource3


hpiLO-> show
status=0
status_tag=COMMAND COMPLETED


/system1/bootconfig1/bootsource3
Targets
Properties
bootorder=4
Verbs
cd version exit show set


hpiLO-> set bootorder=1
status=0
status_tag=COMMAND COMPLETED

bootsource3=BootFmDisk bootorder=1
bootsource1=BootFmCd bootorder=2
bootsource2=BootFmFloppy bootorder=3
bootsource4=BootFmUSBKey bootorder=4
bootsource5=BootFmNetwork bootorder=5


Richard Hilber
Occasional Advisor

Re: ipmi + DL385 G2 ?!?!?!

the following script is my noIPMI solution:

#!/bin/sh
# change: 2008.01.08 HilRi - create
# . . -
# functions
_usage()
{
echo
echo "script to change the bootorder with ssh and ilo2 commands "
echo
echo "Usage:"
echo " pxe.sh hostname bootsource# bootorder# "
echo " e.g. pxe.sh linux01 5 1 = bootsource 5 (network) is going to be the 1st boordevice"
echo
echo " show option: shows the bootorder of the selected bootsource"
echo " pxe.sh show hostname bootsource# "
exit 127
}
_notok()
{
echo "${1}"
exit ${2}
}
_setbootorder() # ilo2 set command
{
ssh ${ILO2HOSTNAME} set /system1/bootconfig1/bootsource${BOOTSOURCE} bootorder=${BOOTORDER} 2>&1 || _notok "Remote Command failed" 1
}
_showbootorder() # ilo2 show command
{
ssh ${ILO2HOSTNAME} show /system1/bootconfig1/bootsource${BOOTSOURCE} 2>&1 || _notok "Remote Command failed" 1
}
# main
export ILO2HOSTNAME=${1}
export ILO2CMD=${2}
export BOOTSOURCE=${3}
export BOOTORDER=${4}
case ${ILO2CMD} in
(show)
[ "${BOOTSOURCE}" = "" ] && _usage
_showbootorder ${BOOTSOURCE};;
(set)
[ "${BOOTSOURCE}" = "" ] && _usage
[ "${BOOTORDER}" = "" ] && _usage
_setbootorder ;;
(*)
_usage
esac