Administer > Configure Security > Set Up Command Line Access to NNMi

Set Up Command Line Access to NNMi

NNMi limits access to Command Line Interface (CLI) commands in one of two ways:

  • Method One: Requiring User Name and Password.
  • Method Two: Requiring permission to access NNMi as the system user.

See HelpDocumentation LibraryReference Pages for a list of command line commands. Check the appropriate Reference Page to determine which method applies.

Method One: Requiring User Name and Password.

There are two strategies for CLI user name and password:

  • Providing the appropriate NNMi User Name attribute value and NNMi Password attribute value within the CLI syntax (-u and -p).
  • Configuring a valid NNMi User Name attribute value and NNMi Password attribute value using the nnmsetcmduserpw.ovpl command. See HelpDocumentation LibraryReference Pages for details.

    Note With nnmsetcmduserpw.ovpl, the CLI command must then be run on the same machine where the nnmsetcmduserpw.ovpl command was executed.

Method Two: Requiring permission to access NNMi as the system user.

During NNMi installation, the first access to the NNMi console requires a special system User Name and Password. Thereafter, only the following situations are appropriate for the system user:

If method two is required, your CLI command must be issued from the NNMi management server and you must have read access to the following file on the NNMi management server: nms-users.properties

Caution Any user with read access to the nms-users.properties file can potentially sign into the NNMi console and perform Administrator operations.

Note the following for Public Key Infrastructure (PKI) user authentication to provide NNMi User Name and NNMi Password:

  • If you are logged into the operating system as root user, NNMi automatically accesses the system User Account and runs the command using the NNMi system user's credentials.
  • If you are logged into the operating system with a user name other than root and your user name is not configured for read access to the nms-users.properties file, NNMi cannot run the CLI command.