> ipmitool ekanalyzer print carrier oc=fru oc=carrierfru
From Carrier file: fru
Number of AMC bays supported by Carrier: 2
AMC slot B1 topology:
Port 0 > On Carrier Device ID 0, Port 16
Port 1 > On Carrier Device ID 0, Port 12
Port 2 > AMC slot B2, Port 2
AMC slot B2 topology:
Port 0 > On Carrier Device ID 0, Port 3
Port 2 > AMC slot B1, Port 2
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
From Carrier file: carrierfru
On Carrier Device ID 0 topology:
Port 0 > AMC slot B1, Port 4
Port 1 > AMC slot B1, Port 5
Port 2 > AMC slot B2, Port 6
Port 3 > AMC slot B2, Port 7
AMC slot B1 topology:
Port 0 > AMC slot B2, Port 0
AMC slot B1 topology:
Port 1 > AMC slot B2, Port 1
Number of AMC bays supported by Carrier: 2
Display power supply informations between carrier and AMC modules.
Display both physical connectivity and power supply of each carrier and AMC modules.
windbg start
Starts the windbg session (Cold Reset & SOL Activation)
Ends the windbg session (SOL Deactivation)
sdr list # get a list of sdr records
sel list #
Read all Field Replaceable Unit (FRU) inventory data and extract such information as serial number, part number, asset tags, and short strings describingthe chassis, board, or product.
fru id is the digit ID of the FRU (see output of 'fru print'). fru file is the absolute pathname of a file in which to dump the binary FRUdata pertaining to the specified FRU entity.
fru id is the digit ID of the FRU (see output of 'fru print'). fru file is the absolute pathname of a file from which to pull the binary FRUdata before uploading it to the specified FRU.
Update a multirecord FRU location. fru id is the digit ID of the FRU (see output of 'fru print'). fru file is the absolute pathname of a filefrom which to pull the binary FRU data to upload into the specified multirecord FRU entity.
This command provides interactive editing of some supported records, namely PICMG Carrier Activation Record. fru id is the digit ID of the FRU (seeoutput of 'fru print'); default is 0.
This command may be used to set a field string to a new value. It replaces the FRU data found at index in the specified section with thesupplied string.
This command edits the data found in the multirecord area. Support for OEM specific records is limited.
This command supports the Firmware Firewall capability. It may be used to add or remove security-based restrictions on certain commands/commandsub-functions or to list the current firmware firewall restrictions set on any commands. For each firmware firewall command listed below, parameters may beincluded to cause the command to be executed with increasing granularity on a specific LUN, for a specific NetFn, for a specific IPMI Command, and finally fora specific command's sub-function (see Appendix H in the IPMI 2.0 Specification for a listing of any sub-function numbers that may be associated with aparticular command).
Parameter syntax and dependencies are as follows:
[<channelH>] [<lunL> [ <netfnN> [<commandC [<subfnS>]]]]
Note that if 'netfn <N>' is specified, then 'lun <L>' must also be specified; if 'command <C>' is specified, then'netfn <N>' (and therefore 'lun <L>') must also be specified, and so forth.
'channel <H>' is an optional and standalone parameter. If not specified, the requested operation will be performed on the current channel. Notethat command support may vary from channel to channel.
Firmware firewall commands:
List firmware firewall information for the specified LUN, NetFn, and Command (if supplied) on the current or specified channel. Listed information includesthe support, configurable, and enabled bits for the specified command or commands.
Some usage examples:
This command will list firmware firewall information for all NetFns for the specified LUN on either the current or the specified channel.
This command will print out all command information for a single LUN/NetFn pair.
This prints out detailed, human-readable information showing the support, configurable, and enabled bits for the specified command on the specifiedLUN/NetFn pair. Information will be printed about each of the command subfunctions.
Print out information for a specific sub-function.
This command is used to enable commands for a given NetFn/LUN combination on the specified channel.
This command is used to disable commands for a given NetFn/LUN combination on the specified channel. Great care should be taken if using the 'force' optionso as not to disable the 'Set Command Enables' command.
This command may be used to reset the firmware firewall back to a state where all commands and command sub-functions are enabled.
This command may be used to execute raw I2C commands with the Master Write-Read IPMI command.
Retrieve information about the Intel IPMI v1.5 Serial-Over-LAN configuration.
Configure parameters for Intel IPMI v1.5 Serial-over-LAN.
Causes ipmitool to enter Intel IPMI v1.5 Serial Over LAN mode. An RMCP+ connection is made to the BMC, the terminal is set to raw mode, and user input issent to the serial console on the remote server. On exit, the the SOL payload mode is deactivated and the terminal is reset to its original settings.
Special escape sequences are provided to control the SOL session:
Note that escapes are only recognized immediately after newline.
OEM commands specific to Kontron devices.
Set FRU serial number.
Set FRU manufacturing date.
Select the next boot order on the Kontron CP6012.
These commands will allow you to configure IPMI LAN channels with network information so they can be used with the ipmitool lan and lanplusinterfaces. NOTE: To determine on which channel the LAN interface is located, issue the 'channel info number' command until you come across avalid 802.3 LAN channel. For example:
> ipmitool -I open channel info 1
Channel 0x1 info:
Channel Medium Type : 802.3 LAN
Channel Protocol Type : IPMB-1.0
Session Support : session-based
Active Session Count : 8
Protocol Vendor ID : 7154
Print the current configuration for the given channel. The default will print information on the first found LAN channel.
Set the given command and parameter on the specified channel. Valid command/parameter options are:
Set the IP address for this channel.
Set the netmask for this channel.
Set the MAC address for this channel.
Set the default gateway IP address.
Set the default gateway MAC address.
Set the backup gateway IP address.
Set the backup gateway MAC address.
Set the null user password.
Set the SNMP community string.
Enable user access mode for userid 1 (issue the 'user' command to display information about userids for a given channel).
Set LAN channel access mode.
Enable or disable PEF alerting for this channel.
Set the IP address source:
none unspecified
static manually configured static IP address
dhcp address obtained by BMC running DHCP
bios address loaded by BIOS or system software
Set BMC generated ARP responses.
Set BMC generated gratuitous ARPs.
Set BMC generated gratuitous ARP interval.
Disable VLAN operation or enable VLAN and set the ID.
ID: value of the virtual lan identifier between 1 and 4094 inclusive.
Set the priority associated with VLAN frames.
ID: priority of the virtual lan frames between 0 and 7 inclusive.
Set the valid authtypes for a given auth level.
Levels: callback, user, operator, admin
Types: none, md2, md5, password, oem
Correlates cipher suite numbers with the maximum privilege level that is allowed to use it. In this way, cipher suites can restricted to users with a givenprivilege level, so that, for example, administrators are required to use a stronger cipher suite than normal users.
The format of privlist is as follows. Each character represents a privilege level and the character position identifies the cipher suite number. Forexample, the first character represents cipher suite 1 (cipher suite 0 is reserved), the second represents cipher suite 2, and so on. privlist must be15 characters in length.
Characters used in privlist and their associated privilege levels are:
X Cipher Suite Unused
c CALLBACK
u USER
o OPERATOR
a ADMIN
O OEM
So, to set the maximum privilege for cipher suite 1 to USER and suite 2 to ADMIN, issue the following command:
> ipmitool -I interface lan set
channel cipher_privs uaXXXXXXXXXXXXX
Print alert information for the specified channel and destination. The default will print all alerts for all alert destinations on the first found LANchannel.
Set an alert on the given LAN channel and destination. Alert Destinations are listed via the 'lan alert print' command. Valid command/parameteroptions are:
Set alert IP address.
Set alert MAC address.
Set the channel gateway to use for alerts.
Set Alert Acknowledge on or off.
Set the destination type as PET or OEM.
Set ack timeout or unack retry interval.
Set the number of alert retries.
Retrieve information about the IP connections on the specified channel. The default will retrieve statistics on the first found LAN channel.
Clear all IP/UDP/RMCP Statistics to 0 on the specified channel. The default will clear statistics on the first found LAN channel.
This command will query the BMC and print information about the PEF supported features.
This command prints the current PEF status (the last SEL entry processed by the BMC, etc).
This command lists the PEF policy table entries. Each policy entry describes an alert destination. A policy set is a collection of table entries. PEF alertactions reference policy sets.
This command lists the PEF table entries. Each PEF entry relates a sensor event to an action. When PEF is active, each platform event causes the BMC to scanthis table for entries matching the event, and possible actions to be taken. Actions are performed in priority order (higher criticality first).
Run a PICMG/ATA extended command. Get PICMG properties may be used to obtain and print Extension major version information, PICMG identifier, FRU Device IDand Max FRU Device ID.
Get address information. This command may return information on the Hardware address, IPMB-0 Address, FRU ID, Site/Entity ID, and Site/Entity Type.
Set various control options:
Activate the specified FRU.
Deactivate the specified FRU.
Get FRU activation policy.
Set FRU activation policy. lockmask is 1 or 0 to indicate action on the deactivation or activation locked bit respectively. lock is 1 or 0 toset/clear locked bit.
Get or set various port states. See usage for parameter details.
Shortcut to the chassis power commands. See the chassis power commands for usage information.
This will allow you to execute raw IPMI commands. For example to query the POH counter with a raw command:
> ipmitool -v raw 0x0 0xf
RAW REQ (netfn=0x0 cmd=0xf data_len=0)
RAW RSP (5 bytes)
3c 72 0c 00 00
Prints information for sensor data records specified by sensor id.
This command will query the BMC for Sensor Data Record (SDR) Repository information.
This command will display all records from the SDR Repository of a specific type. Run with type list (or simply with no type) to see the list ofavailable types. For example to query for all Temperature sensors:
> ipmitool sdr type Temperature
Baseboard Temp 30h ok 7.1 28 degrees C
FntPnl Amb Temp 32h ok 12.1 24 degrees C
Processor1 Temp 98h ok 3.1 57 degrees C
Processor2 Temp 99h ok 3.2 53 degrees C
This command will read the Sensor Data Records (SDR) and extract sensor information of a given type, then query each sensor and print its name, reading, andstatus. If invoked as elist then it will also print sensor number, entity id and instance, and asserted discrete states.
The default output will only display full and compact sensor types, to see all sensors use the all type with this command.
All SDR records (Sensor and Locator)
Full Sensor Record
Compact Sensor Record
Event-Only Sensor Record
Management Controller Locator Record
FRU Locator Record
Displays all sensors associated with an entity. Get a list of valid entity ids on the target system by issuing the sdr elist command. A list of allentity ids can be found in the IPMI specifications.
Dumps raw SDR data to a file. This data file can then be used as a local SDR cache of the remote managed system with the -S <file> option onthe ipmitool command line. This can greatly improve performance over system interface or remote LAN.
Create the SDR Repository for the current configuration. Will perform a 'Clear SDR Repository' command so be careful.
Fill the SDR Repository using records stored in a binary data file. Will perform a 'Clear SDR Repository' command so be careful.
NOTE: System Event Log (SEL) entry-times are displayed as 'Pre-Init Time-stamp' if the SEL clock needs to be set. Ensure that the SEL clock is accurate byinvoking the sel time get and sel time set <time string> commands.
This command will query the BMC for information about the System Event Log (SEL) and its contents.
This command will clear the contents of the SEL. It cannot be undone so be careful.
When this command is invoked without arguments, the entire contents of the System Event Log are displayed. If invoked as elist (extended list) itwill also use the Sensor Data Record entries to display the sensor ID for the sensor that caused each event. Note this can take a long time over thesystem interface.
Displays the first count (least-recent) entries in the SEL. If count is zero, all entries are displayed.
Displays the last count (most-recent) entries in the SEL. If count is zero, all entries are displayed.
Delete one or more SEL event records.
Read event entries from a file and add them to the SEL. New SEL entries area added onto the SEL after the last record in the SEL. Record added is of type 2and is automatically timestamped.
Print information on the specified SEL Record entry.
Save SEL records to a text file that can be fed back into the event file ipmitool command. This can be useful for testing Event generation bybuilding an appropriate Platform Event Message file based on existing events. Please see the available help for the 'event file ..' command for a descriptionof the format of this file.
Save SEL records to a file in raw, binary format. This file can be fed back to the sel readraw ipmitool command for viewing.
Read and display SEL records from a binary file. Such a file can be created using the sel writeraw ipmitool command.
Sets the SEL clock. Future SEL entries will use the time set by this command. <time string> is of the form 'MM/DD/YYYY HH:MM:SS'. Note thathours are in 24-hour form. It is recommended that the SEL be cleared before setting the time.
Lists sensors and thresholds in a wide table format.
Prints information for sensors specified by name.
This allows you to set a particular sensor threshold value. The sensor is specified by name.
This allows you to set all lower thresholds for a sensor at the same time. The sensor is specified by name and the thresholds are listed in order of LowerNon-Recoverable, Lower Critical, and Lower Non-Critical.
This allows you to set all upper thresholds for a sensor at the same time. The sensor is specified by name and the thresholds are listed in order of UpperNon-Critical, Upper Critical, and Upper Non-Recoverable.
Get information about the specified session(s). You may identify sessions by their id, by their handle number, by their active status, or by using thekeyword 'all' to specify all sessions.
This command will launch an interactive shell which you can use to send multiple ipmitool commands to a BMC and see the responses. This can beuseful instead of running the full ipmitool command each time. Some commands will make use of a Sensor Data Record cache and you will see marked improvement inspeed if these commands are able to reuse the same cache in a shell session. LAN sessions will send a periodic keepalive command to keep the IPMI session fromtiming out.
Retrieve information about the Serial-Over-LAN configuration on the specified channel. If no channel is given, it will display SOL configuration data forthe currently used channel.
Enable, disable or show status of SOL payload for the user on the specified channel.
Configure parameters for Serial Over Lan. If no channel is given, it will display SOL configuration data for the currently used channel. Configurationparameter updates are automatically guarded with the updates to the set-in-progress parameter.
Causes ipmitool to enter Serial Over LAN mode, and is only available when using the lanplus interface. An RMCP+ connection is made to the BMC, the terminalis set to raw mode, and user input is sent to the serial console on the remote server. On exit,the the SOL payload mode is deactivated and the terminal isreset to its original settings.
Special escape sequences are provided to control the SOL session:
Note that escapes are only recognized immediately after newline.
Deactivates Serial Over LAN mode on the BMC. Exiting Serial Over LAN mode should automatically cause this command to be sent to the BMC, but in the case ofan unintentional exit from SOL mode, this command may be necessary to reset the state of the BMC.
This command may be used to read SPD (Serial Presence Detect) data using the I2C Master Write-Read IPMI command.
These commands provide a way to get and set the status of LEDs on a Sun Microsystems server. Use 'sdr list generic' to get a list of devices that arecontrollable LEDs. The ledtype parameter is optional and not necessary to provide on the command line unless it is required by hardware.
Get status of a particular LED described by a Generic Device Locator record in the SDR. A sensorid of all will get the status of all available LEDS.
Set status of a particular LED described by a Generic Device Locator record in the SDR. A sensorid of all will set the status of all available LEDSto the specified ledmode and ledtype.
Set system fan speed (PWM duty cycle).
This command will allow you to specify an SSH key to use for a particular user on the Service Processor. This key will be used for CLI logins to the SP andnot for IPMI sessions. View available users and their userids with the 'user list' command.
This command will delete the SSH key for a specified userid.
This command allows Serial-over-LAN sessions to be established with Tyan IPMIv1.5 SMDC such as the M3289 or M3290. The default command run with no argumentswill establish default SOL session back to local IP address. Optional arguments may be supplied in any order.
Send receiver IP address to SMDC which it will use to send serial traffic to. By default this detects the local IP address and establishes two-way session.Format of ipaddr is XX.XX.XX.XX
Configure UDP port to receive serial traffic on. By default this is 6230.
Confiure SOL session as read-only or read-write. Sessions are read-write by default.
Displays a summary of userid information, including maximum number of userids, the number of enabled users, and the number of fixed names defined.
Displays a list of user information for all defined userids.
Sets the username associated with the given userid.
Sets the password for the given userid. If no password is given, the password is cleared (set to the NULL password). Be careful when removing passwords fromadministrator-level accounts.
Disables access to the BMC by the given userid.
Enables access to the BMC by the given userid.
Set user privilege level on the specified channel. If the channel is not specified, the current channel will be used.
Determine whether a password has been stored as 16 or 20 bytes.
The required kernel modules is different for 2.4 and 2.6 kernels. The following kernel modules must be loaded on a 2.4-based kernel in order for ipmitool towork:
Once the required modules are loaded there will be a dynamic character device entry that must exist at /dev/ipmi0. For systems that use devfs or udevthis will appear at /dev/ipmi/0.
To create the device node first determine what dynamic major number it was assigned by the kernel by looking in /proc/devices and checking for theipmidev entry. Usually if this is the first dynamic device it will be major number 254 and the minor number for the first system interface is0 so you would create the device entry with:
mknod /dev/ipmi0
c 254 0
ipmitool includes some sample initialization scripts that can perform this task automatically at start-up.
In order to have ipmitool use the OpenIPMI device interface you can specifiy it on the command line:
ipmitool -Iopen <command>
ipmitool -Ibmc <command>
The following files are associated with the bmc driver:
> ipmitool -I lan -H 1.2.3.4 -f passfile chassis power status
Chassis Power is on
> ipmitool -I lan -H 1.2.3.4 -f passfile chassis power on
Chassis Power Control: Up/On
But it doesn't end there.. Order now and you'll also get the bootstrappingfunctionality! That's right, the Pi Finder will ssh into the fresh new Pi,update it, set up the wifi SSID and password, set a custom hostname of yourchoice, and install Occidentalis, a collection of really handysoftware for you:
And, as a bonus, a handy tool we wrote called occi - which will let youchange the hostname and wifi details by plugging the SD card into any computerand editing the /boot/occidentalis.txt
file (see below).
Looking for code? Occidentalis is maintained as its own GitHubrepository.
Note: This project shares a coincidental name with the Pi Finder by Ivan X, a lovely Mac OS X utility that also helps locate a headless Raspberry Pi on your local network. Please visit http://ivanx.com/raspberrypi/ for the other Pi Finder and other fine Raspberry Pi tutorials and projects!
Please remember that this is beta software, and may be glitchy. We'dlove your feedback, but use at your own risk!
We have created a utility that will find a Raspberry Pi connected to yourlocal network and start the bootstrap process. The utility requires you toconnect your Pi to your local network via an ethernet cable to start.Once the Pi is bootstrapped, it will be able to use ethernet or WiFi but weneed to be able to connect to the Pi the first time around.
Note for Mac users:If you are prevented from launching the app because ofyour security settings, you can right click on the app and click Open to bypassthe warnings
Download the latest release of the Pi Finder utility.
Occidentalis comes with a configuration helper script called occi
, which maybe used to set various system options from a text file on your SD card.
The bootstrapping process will help you create the file by prompting for yourdesired hostname and wifi credentials, but it can also be created asoccidentalis.txt
on the card at any time. When the Pi is running, edit/boot/occidentalis.txt
.
Here's an example file:
Right now, these are the only configuration values supported. Others willbe added in time.
By default, occi
will run whenever the Pi boots, but can also be run manuallywith:
Looking for code? occi is maintained in its own GitHub repository.