Users Guide
● Fields containing double quotes and commas must be enclosed in double quotes.
● If a double quote appears inside a field, 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 identified 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
first 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 first 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 identified 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 “/”.
list_groups
Usage:
ompc_cli list_groups [-unique] [GROUP_PATH]
The list_groups command lists all child groups for the GROUP_PATH (immediate only). If no GROUP_PATH is supplied, the CLI
lists all group paths or all unique groups in OMPC. Properties include the fully-qualified group name, group type, and
member_count. The member_count property is the number of devices and groups immediately under the child group.
[-unique] has no impact if GROUP_PATH is provided.
If “/” is provided as GROUP_PATH, then the CLI lists the groups at root level.
A group might have multiple fully-qualified group names. When [-unique] is provided, the CLI lists all unique groups;
otherwise, the CLI lists all group paths.
Example output for list_groups:
group_name, group_type, member_count
myservers/mygroup, Room, 20
34
Using OpenManage Power Center through Command Line Interface