Users Guide

Table Of Contents
The update_prole command updates an existing discovery prole identied by profile_name in OMPC. The semantics of the
command options are the same as those in add_prole. The protocol property set that can be updated depends on the protocol supported
by this prole. If new_profile_name is provided, the prole_name is updated to the new_prole_name.
add_device
Usage:
ompc_cli add_device [-device_name <device_name>] [-description <description>] [-size <size>] [-
estimated_max_power <estimated_max_power>] –device_type <SERVER | PDU | UPS | UNSUPPORTED |
CHASSIS | HYPERVISOR> [-model <model>] [–profile <profile-name>] [-protocol <protocol_name>]
[<pair of protocol property and value options>] [host_name or ip]
The add_device command adds a device to OMPC by using the prole name-identied prole or by using related protocol information
directly supplied through the command option. You cannot enter –profile and –protocol at the same time.
The device_name is optional, and if not provided, OMPC generates a device_name (following the same rule as in network discovery).
For unsupported devices, the default auto-generated device_name is Unsupported. To ensure unique identiers, OMPC appends numbers
to the device name.
The [host_name or ip] option is required, except when the device_type is Unsupported.
The -model option is valid only when the type is Unsupported.
update_device
Usage:
ompc_cli update_device [-description <description>] [-size <size>] [-estimated_max_power
<estimated_max_power>] [-host_name <host_name>] [-ip <ip>] [<pair of protocol property and
value options>] <device_name > [<new_device_name>]
The update_device command updates device information identied by its device_name. If new_device_name is provided, the
device_name is also updated to the new_device_name. [<pair of protocol property and value options>] depends
on the protocol supported by this device.
rediscover_device
Usage:
ompc_cli rediscover_device [-service_tag <stag>] [<device_name>]
The rediscover_device command lets OMPC connect with the device and refresh properties that might be changed on the device side (for
example, power capability and device model).
After rediscovery, the Time of Discovery is updated to the time of rediscovery.
For the Chassis Management Controller (CMC), if you try to rediscover the CMC before adding it to the rack, the blades inside it are not
enumerated. If you are rediscovering a CMC after it is added to rack, the blades are enumerated.
You cannot use -service_tag and device_name at the same time.
If the device is an unsupported device (device_type is Unsupported), the CLI displays the error, “CLI does not allow rediscover for
unsupported devices.
34
Using OpenManage Power Center through Command Line Interface