Go to main content

Oracle® ILOM Protocol Management Reference for SNMP and IPMI Firmware Release 3.2.x

Exit Print View

Updated: January 2017
 
 

Scripting Oracle ILOM CLI Commands With IPMItool

A key benefit of using Oracle ILOM CLI from IPMItool is that the CLI commands can be scripted and then the script can be run on multiple SP instances. Scripting is possible because the CLI commands can be included on the IPMItool command line where each argument on the command line is treated as a separate Oracle ILOM CLI command. Command separation is archived by including quotation marks at the beginning and end of each Oracle ILOM CLI command.

The following example shows how to include two CLI commands on the IPMItool command line. In the example, notice that each command begins and ends with quotation marks.

# ipmitool -H SP_hostname_or_IPaddress -U username -P password sunoem cli 
“show /SP/services” “show /SP/logs”
Connected. Use ^D to exit.
-> show /SP/services
 /SP/services
   Targets:
      http
      https
      ipmi
      kvms
      servicetag
      snmp
      ssh
      sso
 
    Properties:
 
    Commands:
      cd
      show
 
-> show /SP/logs
 /SP/logs
   Targets:
      audit
      event
 
   Properties:
 
   Commands:
      cd
      show
-> Session closed
 Disconnected