Owner's Manual
move_group
Usage:
ompc_cli move_group FROM_GROUP_PATH TO_GROUP_PATH
The move_group command moves a group from FROM_GROUP_PATH to TO_GROUP_PATH.
You cannot use the same group path as FROM_GROUP_PATH to TO_GROUP_PATH. Also, you cannot use “/” as
FROM_GROUP_PATH.
After successfully moving a group, the group identified by FROM_GROUP_PATH will no longer belong to its original
parent in
FROM_GROUP_PATH. It will belong to TO_GROUP_PATH.
When moving a chassis to a rack, the CLI chooses one available slot (if a slot is available). If you want to specify a slot
for the chassis in the new rack, you must use the move_device command.
If the move operation fails, the device stays in the original group. There are exceptions for critical situations such as
power failures, crashes, network failures for the remote database, and local network failures.
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 will choose one 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.
29