User's Guide
1.4.2 One liner mode
The one liner mode executes only specified CLI command without starting the shell function of esmcli.
To execute the one liner mode, enter a CLI command following to a username and password from a
command line as shown below. And please input user name and password of NEC ESMPRO Manager.
Please refer to "1.5Basic commands" for the CLI command to execute.
esmcli [Option] '{CLI Command}'
esmcli Indicates the NEC ESMPRO Manager command line interface command
Option Input an option. There are following types of option.
-h | -help
Display the command syntax of the esmcli command.
When this option is appointed, the shell mode does not start.
-u | -user <user name>
Input user name of NEC ESMPRO Manager.
At the time of login, the input of the user name is omitted.
-p | -pswd <password>
Input user password of NEC ESMPRO Manager.
At the time of login, the input of the user password is omitted.
'{CLI Command}' Surround the CLI command to execute with '.
TIP:
• The password at the time of the login can input the password that encrypted in
"1.4.3Encrypting of the password".
Examples
Following command enables you to execute 'show /' command.
esmcli -u Administrator -p password 'show /'
Examples
Using an encrypted password, please input it as follows.
esmcli -u Administrator -p {ENC}c10f239c9f7d203fa4424bffb06b6713 'show /'
1.4.2.1 Notes on executing one liner mode
(1) When entering special characters
When input double quotation (") in CLI command, please set \ before double quotation.
The following shows examples.
esmcli -u Administrator -p password 'show /cmps/\"server 01\"/map/expup'
1.4.3 Encrypting of the password
The esmclipasswd command is used for encrypting of the password.
To encrypt the password, enter the command following the command prompt as shown below.
esmclipasswd [Option] <Password>
esmclipasswd Indicates the NEC ESMPRO Manager command line interface command
Option Input an option. There are following types of option.
-h | -help
Display the command syntax of the esmclipasswd command.
When this option is appointed, the password doesn't encrypt.
<Password> Input a password to encrypt.
9