4
Remote Management
50
Accessing the R220 using the ipmitool utility
As an alternative to using the MegaRAC GUI, you can send commands to the R220 using the
ipmitool
utility.
Ipmitool
connects to IPMI-enabled devices through an IPMI v1.5 or IPMI v2.0
LAN interface. This utility is included in most Linux distributions, or you can download the
source from
and compile it for Linux or Windows operating systems.
Important:
Be sure to load the Keyboard Controller Style (KCS) drivers before starting the
ipmitool
utility. For Windows users, refer to the
IPMI Provider
topics at
for more information on installing KCS drivers. For Linux users,
enter the following commands in a Linux terminal:
insmod /lib/modules/`uname -r`/kernel/drivers/char/ipmi/ipmi_msghandler.ko
insmod /lib/modules/`uname -r`/kernel/drivers/char/ipmi/ipmi_devintf.ko
insmod /lib/modules/`uname -r`/kernel/drivers/char/ipmi/ipmi_si.ko
Next enter this command to verify that the KCS drivers loaded successfully:
lsmod | grep *.ko
If you are using a Linux version of
ipmitool,
start the utility from a Linux terminal. If you have a
Windows version of
ipmitool,
start the utility from a Windows Command Prompt.
After starting the
ipmitool
utility, enter the following command:
ipmitool -I lanplus -H <hostname> -U <username> -P <password> -a lan activate
In this command,
•
-I lanplus
sends the commands over the LAN interface with encryption for IPMI v2.0
hosts. To send commands over the LAN for IPMI v1.5 hosts, use
-I lan
instead.
•
-H <hostname>
is the IP address of the BMC on the R220. The default address is
Changing the BMC address in the R220 BIOS on page 48
to view or
change this address in the R220 BIOS.
•
-U <username>
and
-P <password>
are the username and password required for login. The
default for both is
admin.
•
-a lan activate
enables the remote management console via the LAN. If you are
connecting to the R220 via SOL, replace
lan
with
sol.
For a listing of commands available in the
ipmitool
utility
,
enter
ipmitool -I open.
For further
information regarding command usage in
ipmitool
, refer to the documentation provided with
the utility.