User Guide
10
1.4.3 XML scripting mode
XML scripting mode enables you to write esmcli commands and some arguments in an XML file and execute
it. To obtain the information of XML format, refer to "9.1.1XML Schema for request file".
esmcli –f <XML file name> [Option]
esmcli Indicates the NEC ESMPRO Manager command line interface command
<XML file name> Specifies XML file in which esmcli commands are written.
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.
-x | examine
Validate contents of XML file but not to execute it.
-override <Name>=<Value>
Replaces the value of XML element whose name equals <Name> with
<Value>. To obtain more information, refer to "2.1.4Override process".
TIP:
The password at the time of the login can input the password that encrypted in
"1.4.4Encrypting of the password".
Examples
Following command enables you to execute sample.xml.
esmcli -f sample.xml -u Administrator -p password
Examples
Using an encrypted password, please input it as follows.
esmcli -f sample.xml -u Administrator -p {ENC}c10f239c9f7d203fa4424bffb06b6713