Owner's Manual

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 will list all devices, connected or not, that are managed by OMPC. Properties include all properties of the
list_device_props command, except for protocol information (device name will be the first column).
If “/” is provided as GROUP_PATH, the CLI will list 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 will list all group paths.
Example output for list_groups:
group_name, group_type, member_count
myservers/mygroup, Room, 20
find_device
Usage:
ompc_cli find_device [-service_tag <stag>] <device_name>
The find_device command is used to list all of the fully-qualified group names of the groups to which the device that is
identified by servtag or device_name belongs.
You cannot use service_tag and device_name at the same time.
Command Line Interface Error Codes
An error code appears when one of the following two conditions occurs:
30