System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

force ilo2/DL385 with ipmitools to boot via pxe

 
Richard Hilber
Occasional Advisor

force ilo2/DL385 with ipmitools to boot via pxe

want to force our HP DL385 G2 to boot from PXE ofer 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???
4 REPLIES
Steven E. Protter
Exalted Contributor

Re: force ilo2/DL385 with ipmitools to boot via pxe

Shalom,

You don't boot a machine through or with its ilo card.

You boot the system through one of its normal NIC cards via PXE, if the bios supports it.

ilo2 is a systems management card meant to gain control of the system remotely. True you can boot the machine from there and even do an OS install via ilo, but you need another connected network interface to do the PXE install.

If PXE won't work, check the following:
1) Network switch, PXE can be blocked.
2) Network, won't live on the same network as an Ignite boot helper or Ignite server.
3) Configuration of the PXE server.
4) BIOS and firmware on the system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Richard Hilber
Occasional Advisor

Re: force ilo2/DL385 with ipmitools to boot via pxe

hi Steven,

â You don't boot a machine through or with its ilo card.â

in the DL385 bios I can Select the boot devices â ¦ also network â ¦ so there must be a way to set this option via the ssh/service processor(ilo2) like on a SUN V20z.

To explain what I want to do:

Iâ m using an script to start an automatic (autoyast) installation, resore, backup,... of any Server for any SLES Version (8 - 10) â ¦ so our AIX gurus are able to install an Linux server .. an need no special skills â the script an the pxe-server works fine with our SUN V20z, V40z abs IBM Power5 Server... and when I hit F12 on the boot of an DL385 the also PXE starts.

But the pxe should start automatic... after I triggered an installation with my installation script.

I called the hp support an they gave me the hint to use IPMI and

in http://h20000.www2.hp.com/bc/docs/support/SupportManual/c00294268/c00294268.pdf

i found the following lines ...

"Server management through the IPMI is a standardized method for controlling and monitoring the server.
iLO 2 provides server management based on the IPMI version 2.0 specification."


So I thought that the DL385 is able so speak IMPI.

All I need is to force the server over ssh to boot from pxe. (like on SUN or Power5)




Richard Hilber
Occasional Advisor

Re: force ilo2/DL385 with ipmitools to boot via pxe

i found an alternative solution 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: force ilo2/DL385 with ipmitools to boot via pxe

i think ipmi, dl385 and pxe are not compatible.

the following script is my noIPMI solution to trigger a boot from pxe on a dl385 over ilo2 interface.

#!/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