Users Guide

Table Of Contents
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 identied 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.
Using OpenManage Power Center through Command Line Interface
37