Asus ASMB4-SOL PLUS User Manual Page 5

  • Download
  • Add to my manuals
  • Print
  • Page
    / 7
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 4
systems management
DELL POWER SOLUTIONS | November 2007
5
Reprinted from
Dell Power Solutions,
November 2007. Copyright © 2007 Dell Inc. All rights reserved.
must be reset, administrators can also terminate the current session from
another console using the following command:
ipmitool –I lanplus –H ipaddress -U username -P
password sol deactivate
Using IPMItool raw commands
The IPMI specification defines many more management capabilities than
the IPMItool command-line options can provide. Administrators can take
advantage of these capabilities by framing raw command requests and
sending them to BMCs.
IPMItool raw commands have the following format:
ipmitool –I interface options raw netfn cmd data
In this format, interface can be open, lan, or lanplus. If open
is used, options is not included; otherwise, options is -H ipaddress
-U username -P password. The netfn element is the network function,
which identifies the functional message class and clusters IPMI com-
mands into different sets.
4
The cmd element represents a unique one-byte
command value within a given network function. Finally, the data element
provides additional parameters for a request or response, if any.
Three examples can help demonstrate using raw commands: changing
the power cycle interval, creating custom LCD messages, and generating
platform event messages.
Changing the power cycle interval
The power cycle interval is the time a system is powered down during a
power cycle operation initiated by either a chassis control command or a
watchdog timer. IPMItool does not include an option for setting this inter-
val, but administrators can do so using raw commands.
Appendix G of the IPMI 2.0 specification provides the command to
change the power cycle interval in the “Chassis Device Commands” section
as “Set Power Cycle Interval,” denoting the network function as “Chassis”
and the command value as 0Bh. Table 5-1 in the specification shows that
“Chassis” resolves to 00h (or 0x00). Appendix G also refers to section
28.9, where Table 28-10 provides the format for the request data—a one-
byte value representing the power cycle interval in seconds.
For example, administrators can set the power cycle interval to
15 seconds by constructing the following raw command:
ipmitool –v -I open raw 0x0 0x0B 0x0F
In this command, 0x0 is the network function, 0x0B is the command
value, and 0x0F is the power cycle interval (the one-byte value represent-
ing 15 seconds). Because the command included the -v option for verbose
output, the output would be as follows:
RAW REQ (channel=0x0 netfn=0x0 lun=0x0 cmd=0xb
data_len=1)
RAW REQUEST (1 bytes)
0f
RAW RSP (0 bytes)
As denoted in Table 28-10 of the IPMI 2.0 specification, the output
also includes one byte of response data—in this case, 0, indicating a
successful response. If the command had been framed incorrectly, then
the response data might be 0xc7 and return the following output:
Unable to send RAW command (channel=0x0
netfn=0x0 lun=0x0 cmd=0xb rsp=0xc7): Request
data length invalid
To verify that the settings have been successfully applied, administrators
could run the command ipmitool chassis power cycle and check that
the server takes 15 seconds to power on again following the reboot.
Creating custom LCD messages
Server LCDs display details such as server type and platform events.
Administrators can use them, for example, to help identify a particular
server by using the ipmitool-identify command, which blinks the
LCD. In addition, LCDs can display custom messages, which is typically
done through Dell OpenManage
Server Administrator commands.
However, administrators can also use raw commands to display these
messages.
The Python script shown in Figure 6 displays the server load average
on the LCD. Administrators could run this script from the command line
4
For more information, see section 5.1 of the IPMI 2.0 specification.
Figure 6. Python script to display average server load on an LCD
import os
load = open('/proc/loadavg').readline().
split()[2]
loadAvg = [hex(ord(i)) for i in 'LoadAvg
'+str(load)]
cmd = 'ipmitool raw 0x6 0x58 193 0 0 %d
%s'%(len(loadAvg), ''.join(loadAvg))
os.system(cmd)
os.system('ipmitool raw 0x6 0x58 194 0')
Page view 4
1 2 3 4 5 6 7

Comments to this Manuals

No comments