Users Guide

If new_group_name is provided, the CLI updates the name of the group to the new name. The group can belong to another
group. If this is the case, the rename operation may fail because of the name confliction.
The chassis can be regarded as group, so the CLI allows updates to the properties of the chassis through the update_group
command. You can only update the chassis description and name through the update_group command. You cannot update
other types of groups to be a chassis.
The name must be unique across devices and groups under the same parent group.
You cannot use / as GROUP_PATH in the update_group command.
add_device_to_group
Usage:
ompc_cli add_device_to_group [-slot <slot_num>] [-service_tag <stag>] [<device_name >]
GROUP_PATH
The add_device_to_group command adds a device to a group. If a device is added to a rack, the slot_num option is used to
specify into which slot the device is added. If the value of the slot is -1, the system chooses a slot automatically. When adding
UPS/PDU, if you do not provide a slot option, the UPS/PDU is attached to the rack. For adding a server or chassis to rack, -
slot is allowed (when not provided, the system chooses a slot automatically). If adding a server or chassis to other groups, -
slot is not allowed (an error is displayed).
Slots start from 1 (0 is an invalid slot number).
PDU and UPS can only be added to a rack. For PDU and UPS in other types of groups in a previous OMPC release, if the you
upgrade the data, you must remove PDU and UPS from those groups after upgrading.
The add_device_to_group command does not move a device from one group to another group. This is done by move_device.
If a device already belongs to a group, you can use the add_device_to_group command to add the device to another group.
After successfully adding the device, this device belongs to both the old group and the new parent group. The exception is that
devices can only belong to one rack (not multiple racks), and blades can only belong to one chassis (not multiple chassis). You
cannot add blades to a chassis with the add_device_to_group command.
When a chassis is added to any group, the blades inside the chassis is enumerated and the chassis becomes a group that
contains all of the blades inside it.
remove_device_from_group
Usage:
ompc_cli remove_device_from_group [-service_tag <stag>] [<device_name >] GROUP_PATH
The remove_device_from_group command removes a device from a group identified by GROUP_PATH.
You can remove a chassis (as a device) from a group.
If a device belongs to multiple groups, after you remove it from one group, it still belongs to other groups.
A chassis can be removed through this command. In this case, the behavior is the same as removing a chassis by using the
delete_group command.
move_device
Usage:
ompc_cli move_device [-service_tag <stag>] [<device_name >] [-slot <slot_num>]
FROM_GROUP_PATH TO_GROUP_PATH
The move_device command moves a device from FROM_GROUP_PATH to TO_GROUP_PATH. After successfully moving the
device, the device no longer belongs to FROM_GROUP_PATH; it belongs to TO_GROUP_PATH.
The slot option is applicable only when moving a device (including a chassis) to a rack. It specifies which slot the device should
be moved into. If it is not provided when moving a device to a rack, the CLI identifies a slot.
32
Using OpenManage Power Center through Command Line Interface