Users Guide

Table Of Contents
The REPORT_NAME is mandatory and species which saved report are run.
The options -start_date and -end_date are optional: When supplied, they are used to run the report in precedence to the time range
saved with the original report setting. If only
-start_date is supplied, the current time is used as the end of the time range. If only -
end_date is supplied, the earliest time of monitoring data is used as the beginning of the time range.
If -file_name is not supplied, the result is displayed in the console in CSV format, ignoring whatever format setting saved with the
report or specied by the -format option.
If –file_name is supplied, the result is saved to the le in the format specied by the option –format. If -format is not supplied, the
format saved with the report is used.
The –detail option is only applied to a “Power HeadRoom” report for exporting the calculation details of the stranded power.
After a report is run successfully, the report result is displayed in the console or saved to a le specied by <le_name>. Else, an error
message is displayed.
discover_device
Usage:
ompc_cli discover_device -profile <profile-name> [-ip <ip>] [-host_name <host_name>] [-
network_mask <network_mask>] [-end_ip <end_ip>]
The discover_device command is used to discover devices and automatically add the discovered devices to OMPC. This command
supports only HTTPS prole.
The -ip and -host_name options must be supplied.
When -ip is supplied, the -network_mask must be supplied. The -end_ip is only acceptable when -ip is supplied.
If -end_ip is supplied, the discovery is performed for the IP range of <ip>-<end_ip>. Else, the discovery is performed for the single
address
<ip>.
After a discovery is complete, the discovered devices are added to OpenManage Power Center automatically and the count is displayed in
the console. If the device discovery fails, an error message is displayed.
backup_database
Usage:
ompc_cli backup_database -path <path> -encrypt_password <encrypt_password> [-quiet]
The backup_database command is used to initiate the OMPC database backup.
The -path and -encrypt_password options must be supplied.
The database backup is complete and is saved in the common network share location.
restore_database
Usage:
ompc_cli backup_database -path <path> -encrypt_password <encrypt_password> [-quiet]
Using OpenManage Power Center through Command Line Interface
41