Users Guide

Table Of Contents
When adding a chassis to a rack, the CLI chooses an available slot (if there is one available). If you want to specify a slot for the chassis in
the rack, you must use the add_device_to_group command.
List commands
The following are generic rules for list commands:
The output of list commands is a simple table-like structure, where a comma-delimited list of column names will be output rst,
followed by the data, in comma-delimited format. There is one line per record. If a piece of data is not applicable or available, that data is
represented by two commas next to each other (NULL eld).
Line breaks (CRLF) in the output elds must be replaced with spaces.
Fields containing double quotes and commas must be enclosed in double quotes.
If a double quote appears inside a eld, it must be escaped by preceding it with another double quote. For example: “aaa”, “b””bb”,
ccc”.
list_device_props
Usage:
ompc_cli list_device_props [-service_tag <servtag>] [<device_name>]
The list_device_props command lists all properties for the device identied by servtag or device_name. Properties include
service_tag, protocol, protocol properties, device name, address (IP or host name), model, and device type (device name is the rst
column).
Secret data (password/key) is not listed as a protocol property.
list_devices
Usage:
ompc_cli list_devices [GROUP_PATH]
The list_devices command lists all devices immediately under the GROUP_PATH. If no GROUP_PATH is supplied, then the CLI lists all
devices, connected or not, that are managed by OMPC. Properties include all properties of the list_device_props command, except for
protocol information (the rst column has the device name).
If “/” is provided as GROUP_PATH, the CLI lists the devices at the root level.
list_group_props
Usage:
ompc_cli list_group_props GROUP_PATH
The list_group_props command lists all properties for a group identied by GROUP_PATH. Properties include group_type (DC, room, rack,
aisle, etc.), description, and additional properties unique to that group type. For example, for rack, the additional properties include capacity
and total power capacity.
This command does not apply to “/”.
Using OpenManage Power Center through Command Line Interface
39