Users Guide
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 specified (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 specified 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 specified
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_profile
Usage:
ompc_cli add_profile -protocol <protocol_name> [-description <description>] [<pair of
protocol property and value options>] <profile_name>
The add_profile command adds a new discovery profile to OMPC. The profile_name argument is used to identify the profile, 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
● ipmi_password
● ipmi_key
For Redfish, the properties are:
● redfish_user
● redfish_password
● redfish_port
● redfish_validate_cert
For WS-Man, the properties are:
● wsman_port
● wsman_user
● wsman_password
● wsman_validate_cert (its value must be true or false)
For HTTPS, the properties are:
28
Using OpenManage Power Center through Command Line Interface