.TH ipmi_cmdlang 7 05/13/03 OpenIPMI "Shell interface to an IPMI system" .SH NAME ipmi_cmdlang \- A command language interface to the IPMI library .SH DESCRIPTION .B ipmi_cmdlang is a command language designed to supply the full power of OpenIPMI on a command line. It has a large number of commands and well-formed responses to each command. Note that this assumes some knowledge of OpenIPMI and how it works; you can get that from the IPMI document that comes with OpenIPMI. .B ipmish starts up with no connections or anything of that nature. You must enter commands to make connections to domains. Then you can enter commands to manipulate those domains or objects inside those domains. Note that you may use quotes, either .B '' or .B "" to contain parameters with spaces. .SH COMMENTS Lines with a .B # character in the first column are ignored. .SH OBJECTS In the command language, you will deal with various objects like sensors, controls, domains, and entities. Each of these has a name. The name of the domain is assigned by the user in the .B domain new command, all the other names are based on the domain name of the domain they belong to and various attributes about the object. These names are all well-formed. They are \fI\fP - A name of a domain. Each registered domain in a system has a name assigned by the user. \fI\fP - Entity names are in the form: .RS [\fI\fP[(\fI\fP)]] .RE Notice that the \fI\fP is optional. If it is not listed, then the operation is done on all entities in the domain. The whole thing is optional, too, if nothing is given then the operation is done on every entity in every domain. The \fI\fP is either .RS \fI\fP.\fI\fP .RE for system-relative entities, or: .RS r\fI\fP.\fI\fP.\fI\fP.\fI\fP .RE for device-relative entities. In IPMI, device-relative entity instances always start at 0x60; the specification suggests that you subtract off the 0x60 from the entity instance when displaying these; the command language follows this suggestion. \fI\fP - These come in the form .RS [\fI\fP[.\fIname\fP]] .RE As with entities, only listing a domain will cause the operation to be done on every sensor in the domain, just listing an entity will cause it to be done to every sensor in that entity. An empty sensor entry will cause an operation to be done on every sensor in every domain. \fI\fP - These come in the form .RS [[.name]] .RE These work exactly like sensors. \fI\fP - A management controller. These come in the form .RS [[(.)]] .RE As usual, the parts left empty will cause defaulting to all things in the previously specified parts. \fI\fP - A connection number, in the form .RS [[.]] .RE The number is the connection number of the domain. \fI\fP - A platform event trap id, in the form .RS [[.]] .RE The number is arbitrarily assigned by the system. \fI\fP - A LAN parameter id, in the form .RS [[.]] .RE The number is arbitrarily assigned by the system. \fI\fP - A PEF id, in the form .RS [[.]] .RE The number is arbitrarily assigned by the system. \fI\fP - A FRU id, in the form .RS [[.]] .RE The number is arbitrarily assigned by the system. In all cases, the object names have parts that are optional, and the entire object name is optional. If a part is left empty, then all objects that are part of the specified parts are operated on. For instance, if the system has a sensor named .B d1(7.1).temp then specifying .B d1 would operation on all sensors in the domain named .B d1. Specifying .B d1(7.1) Would operation on all sensors in that entity. Specifying an empty name, either with .B "" or by just entering nothing if the object is the last thing in the command's parameters. Note this optionality gives a lot of power, but can be very dangerous. Entering .B domain close will close every domain, for instance. In commands, every object operated on will generate a response for that object. If no object is operated on, the command will produce an error. .SH OTHER PARAMETERS The commands and displays use a variety of other parameters for specifying various IPMI things. \fI\fP - a 16-byte globally unique ID, all globbed together in one big hexadecimal thing. \fI\fP is a threshold for a sensor; the value it must go over/under to generate an event. It is always displayed as one of .B lower non-critical .B lower critical .B lower non-recoverable .B upper non-critical .B upper critical .B upper non-recoverable. It may be entered as one of the above, or as .B ln, .B lc, .B lr, .B un, .B uc, .B ur as a short form. \fI\fP is the enable for a threshold. It is like \fI\fP above, but also has a .B going-high or .B going-low and an .B assertion or .B deassertion appended to the end of the name. The short form will have a .B l or .B h for going-low and going high and then a .B a or .B d appended for assertion and deassertion So for instance, .B urld is upper non-recoverable going-low deassertion. \fI\fP is the enable or disable for a discrete sensor and is specified with the sensor offset. The long form is .B assertion or .B deassertion and the short form is .B [ad] where the number is the offset and .B [ad] means assertion or deassertion. \fI\fP is one of .B not_present, .B inactive .B activation_requested .B activation_in_progress .B active .B deactivation_requested .B deactivation_in_progress or .B out_of_con. \fI\fP is one of .B black, .B white, .B red, .B green .B blue .B yellow or .B orange. \fI\fP is one of .B true, .B on, .B t, or .B 1 for true and one of .B false, .B off, .B f, or .B 0 for false. Output is always .B true or .B false. .SH COMMANDS The command language is hierarchical, meaning that commands may have subcommands, and subcommands may have subsubcommands, etc. So, for instance, the command to create a domain is .B domain new. The command to list all sensors in a domain named domain1 is .B sensor list domain1. Each command has a reponse for each object operated on, which is listed after the command description. In those responses, anything that begins with a .B % is optional. Entries of the form .B **name** refer to object info descriptions that are listed in the object info section. If an entry has two '.' indented one space below it, then that entry may occur zero or more times. Each section below defines the unique subcommands of a main command. Help for any command is available with: .B help command [subcommand [...]] - Help for any command. Some commands are common to almost all subcommands. These are: .B list - List all objects of the specified type that are contained in the specified object. For instance, .B control list \fI\fP will list all controls in the given entity. .TP Response: .RS .nf Name: . . .fi .RE .B info - List static information about the given object. .TP Response: .RS .nf Name: **object info** .fi .RE .SS domain These commands deal with domain objects. .B new \fI\fP \fI\fP \fI\fP [\fI\fP] - Open a connection to a new domain. \fI\fP are either: .RS lan \fI\fP \fI\fP [\fI\fP \fI\fP] \fI\fP \fI\fP \fI\fP \fI\fP .RE for a RMCP LAN connection or .RS smi \fI\fP .RE for a system interface connection. Note that \fI\fP is listed twice (second one is optional); if the system support it you can make two connections to two independent management controllers in the system. Note that this is not for multiple IP addresses to the same BMC. For that, notice that the LAN connection has an options extra IP and port for the second IP address. OpenIPMI supports these IP addresses and connection, detecting failures, switching between addresses, and other fault-tolerant things. It does this transparently to the user. Mutiple connections may require special OEM support, read the documentation about your specific system if you need this. The \fI\fP is the IP address or host name of the LAN-capable BMC to connect with. The \fI\fP is generally 623. \fI\fP is the authentication type, either .B md5, .B md2, .B straight, or .B none. \fI\fP is the authentication level, either .B admin, .B operator or .B user. \fI\fP and \fI\fP are the user name and password of the IPMI user to use for the connection. The is the driver number, generally 0. Options enable and disable various automitic processing and are: .PD 0 .HP .B -[no]all - all automatic handling. This will override the other processing options and turn them all on. This is true by default. .HP .B -[no]sdrs - sdr fetching. This turns on fetching SDRs when they are found. This is false by default. .HP .B -[no]frus - FRU fetching This turns on fetching FRU information when it is found. This is false by default. .HP .B -[no]sel - SEL fetching. This turns on fetching SELs when they are found. This is false by default. .HP .B -[no]ipmbscan - IPMB bus scanning. This turns on scanning IPMB busses when they are found. This is false by default. .HP .B -[no]oeminit - enable or disable special OEM processing (like ATCA). .HP .B -[no]seteventrcvr - setting event receivers. Note that setting event receivers and waiting til up is not affected by the .B -all option. If this is true (the default) then OpenIPMI will attempt to set the event receiver for an MC it finds that does not have it set to a valid destination. .HP .B -wait_til_up - wait until the domain is up before returning Note that if you specify this and the domain never comes up, you will never get a prompt. This is not affected by the .B -all option. .PD By default -all and -seteventrcvr are true, which turns everything on. .TP Response: .RS .nf Domain Created: .fi .RE .B open \fI\fP \fI\fP \fI\fP [\fI\fP] - Open a connection to a new domain. \fI\fP are either: .RS lan [-U \fI\fP] [-P \fI\fP] [-A \fI\fP] [-L \fI\fP] [-s] [-p[2] \fI\fP] [-Ra \fI\fP] [-Ri \fI\fP] [-Rc \fI\fP] [-Rl] [-Rk \fI\fP] [-H \fI\fP] [-M \fI] \fI\fP [\fI\fP] .RE for a RMCP/RMCP+ LAN connection or .RS smi \fI\fP .RE for a system interface connection. Note that \fI\fP is listed twice (second one is optional); if the system support it you can make two connections to two independent management controllers in the system. Note that this is not for multiple IP addresses to the same BMC. For that, use the -s option and the second IP (and -p2) for the second IP address. OpenIPMI supports these IP addresses and connections, detecting failures, switching between addresses, and other fault-tolerant things. It does this transparently to the user. Multiple connections may require special OEM support, read the documentation about your specific system if you need this. The \fI\fP is the IP address or host name of the LAN-capable BMC to connect with. The \fI\fP defaults 623. \fI\fP is the authentication type, either .B rmcp+, .B md5, .B md2, .B straight, or .B none. It defaults to the best authentication supported by the server. \fI\fP is the authentication level, either .B admin, .B operator or .B user. It defaults to admin. \fI\fP and \fI\fP are the user name and password of the IPMI user to use for the connection. For RMCP+ connections, the authentication algorithms supported (-Ra) are: bmcpick, rakp_none, rakp_hmac_sha1, and rakp_hmac_md5. The integrity algorithms (-Ri) supported are: bmcpick, none, hmac_sha1, hmac_md5, and md5. The confidentiality algorithms (-Rc) are: bmcpick, aes_cbc_128, xrc4_128, and xrc_40. The defaults are rackp_hmac_sha1, hmac_sha1, and aes_cb_128. -Rl turns on lookup up names by the name and the privilege level (allowing the same name with different privileges and different passwords), the default is straight name lookup. -Rk sets the BMC key, needed if the system does two-key lookups. For SMI types, the is the driver number, generally 0. The \fI\fP enables certain hacks for broken platforms. This may be listed multiple times to enable multiple hacks. The currently available hacks are: .PD 0 .HP .B intelplus - For Intel platforms that have broken RMCP+. .HP .B rakp3_wrong_rolem - For systems that truncate role(m) in the RAKP3 msg. .HP .B rmcpp_integ_sik - For systems that use SIK instead of K(1) for integrity. .PD The -M option sets the maximum outstanding messages. The default is 2, ranges 1-63. Options enable and disable various automitic processing and are: .PD 0 .HP .B -[no]all - all automatic handling. This will override the other processing options and turn them all on. This is true by default. .HP .B -[no]sdrs - sdr fetching. This turns on fetching SDRs when they are found. This is false by default. .HP .B -[no]frus - FRU fetching This turns on fetching FRU information when it is found. This is false by default. .HP .B -[no]sel - SEL fetching. This turns on fetching SELs when they are found. This is false by default. .HP .B -[no]ipmbscan - IPMB bus scanning. This turns on scanning IPMB busses when they are found. This is false by default. .HP .B -[no]oeminit - enable or disable special OEM processing (like ATCA). .HP .B -[no]seteventrcvr - setting event receivers. Note that setting event receivers is not affected by the .B -all option. If this is true (the default) then OpenIPMI will attempt to set the event receiver for an MC it finds that does not have it set to a valid destination. .B -[no]setseltime - set SEL time. Note that setting the SEL time is not affected by the .B -all option. If this is true (the default) then OpenIPMI will attempt to set the time in the SELs it finds. It will set it to the current system time. .HP .B -wait_til_up - wait until the domain is up before returning Note that if you specify this and the domain never comes up, you will never get a prompt. This is not affected by the .B -all option. .PD By default -all and -seteventrcvr are true, which turns everything on. .TP Response: .RS .nf Domain Created: .fi .RE .B fru - dump a fru given all it's insundry information. .TP Response: .RS .nf Domain Name: FRU **FRU INFO** .fi .RE .B msg [data...] - Send a command to the given IPMB address on the given channel and display the response. Note that this does not require the existance of an MC in OpenIPMI. .TP Response: .RS .nf Domain: channel: ipmb: LUN: NetFN: command: Data: .fi .RE .B scan [ipmb addr] - scan an IPMB to add or remove it. If a range is given, then scan all IPMBs in the range. .TP Response: .RS .nf Scan done: .fi .RE .B rescan_sels - Rescan all the SELs in the domain. .TP Response: .RS .nf SEL Rescan done: .fi .RE .B presence - Audit the presence of all enities in the domain. Note that this just starts the process; it will run in the background. .TP Response is: .RS .nf Presence check started: .fi .RE .B close - close the given domain. .TP Response: .RS .nf Domain closed: .fi .RE .B sel_rescan_time