User`s guide

Configmenu scripting
Chapter 16 Configuration Menu Interface 272
Configmenu scripting
There are scripting capabilities built into Configmenu as a convenience for
command-line users who need to configure multiple devices via scripts.
Note: Not all sections of Configmenu support the scripting feature
(Clustering and Power Controller do not support scripting).
Syntax and examples
The following command line options are supported for scripting to UI
(configmenu) in the CLI.
Rules for these options include:
“get” and “set” options can have multiple values.
“save” and “apply” commands should be appended to set values.
Add the remote port first using “add rport” before setting other
parameters.
Listening TCP port number should be provided if adding a new remote
port but remote port number is required if deleting a remote port.
All commands should be in one line.
The configmenu supports configuration setting/getting with parameter's
XML path & value as argument.
Each XML path is defined in each configuration file under the /tmp/cnf/
directory.
[root@Digi_Passport4 ~]# configmenu -help
Usage : configmenu [OPTION]
Option :
-help : display this help and exit
-f [Script file name] : read command from script file
get [XML_PATH1 XML_PATH2 ...] : get value of XML_PATH
set [XML_PATH1=VALUE1 XML_PATH2=VALUE2 ...] : set value to
XML_PATH
del rport [remote port number]
add rport [listening port number]
save : save change configuration
apply : apply change configuration