Users Guide

add_group_to_group
Usage:
ompc_cli add_group_to_group GROUP_PATH TO_ _GROUP_PATH
The add_group_to_group command adds a group identified by GROUP_PATH to TO_GROUP_PATH. If the
source group path also belongs to another parent group, after successfully adding the group, the source
group belongs to both the old group and the new parent group. The exception is that a chassis can only
belong to one rack (not multiple racks).
You cannot add groups to a rack (except for the chassis, which is a device before it is added to a rack,
then a group after it is added to a rack).
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 first, 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 field).
Line breaks (CRLF) in the output fields must be replaced with spaces.
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).
39