Owner's Manual

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 will be 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 will still belong 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.
When moving a PDU/UPS from one rack to another rack and the slot is not provided:
If the PDU/UPS is in a slot of a previous rack, the CLI selects one slot in the new rack.
If the PDU/UPS is attached in a previous rack, the CLI attaches it in the new rack.
When moving a PDU/UPS from one rack to another rack and you have specified the slot:
If the PDU/UPS is in a slot of a previous rack, the CLI uses the specified slot in the new rack.
If the PDU/UPS is attached in a previous rack, the CLI reports an error.
You cannot change the PDU/UPS properties between “slotted” and “attached” in Power Center. You can change
between “slotted” and “attached” by removing the PDU/UPS from the rack, and re-adding it to the rack.
If the device to be moved is a chassis, the behavior will be the same as moving it through the move_group command.
You cannot use the attributes -service_tag and device_name at the same time.
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.
28