Users Guide

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 specific 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 specific error code, and to
find 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 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.
33