Users Guide

Table Of Contents
Command Line Interface error handling
On Microsoft Windows and Linux operating systems, an exit code is displayed indicating the successful execution of a command. An error
code is displayed, if a command is not executed successfully.
On Microsoft Windows operating system, when the command is successful, the CLI exit code is 0. Refer Command Line Interface Error
Codes to know about specic error codes.
On Linux operating system, when a command is successful, the CLI exit code is 0. If a command is not successful, a generic error code, 1,
is displayed. Use stderr to get a more specic error code, and to nd more information on that code, see Command Line Interface Error
Codes
.
Command Line Interface commands
This section lists the commands used to work with OMPC. In the following commands, [ ] represents optional attributes and < > represents
variables. All command line text is case insensitive.
help
Usage:
ompc_cli help [<COMMAND>] [<COMMAND_OPTION >]
The help command prints the help content for a command or a command option (including the generic option). Authentication is not
required for the help command.
If no help command is specied (the ompc_cli command was issued with no parameters), generic help information about the ompc_cli tool
displays. ompc_cli help also displays the generic help.
ompc_cli help help displays the help for the help command.
When only <COMMAND> is provided, the CLI prints the help for the specied command, including the command options that are available
for the command. If you enter an invalid command, the CLI displays an error message.
When both <COMMAND> and <COMMAND_OPTION> are provided, the CLI prints the help for the command option specied for the
given command. If the command option is not a valid option for given command, the CLI displays an error message.
If more than one command or command option is provided, the CLI displays an error message.
add_prole
Usage:
ompc_cli add_profile -protocol <protocol_name> [-description <description>] [<pair of protocol
property and value options>] <profile_name>
The add_prole command adds a new discovery prole to OMPC. The prole_name argument is used to identify the prole, and must be a
unique name. The protocol property and value depend on the protocol used to perform discovery.
The protocol_name should be <IPMI | SNMPv1v2c | SNMPv3 | WS-Man | SSH | HTTPS>
For IPMI, the properties are:
ipmi_user
32
Using OpenManage Power Center through Command Line Interface