...
/usr/bin/cli <<EOF
set network interface mode failover
set network hostname frutabaga
commit
EOF
You could then make the script executable and execute it on the command line, as shown in the
following example:
root@MergePoint:~$ chmod 777 scriptname2
root@MergePoint:~$ ./scriptname2
Example plain text file
You can put one or more commands in a plain text file without invoking any shell as shown in the
following example.
set network interface mode failover
Then you can invoke the CLI command with the
the file, as shown in the following example.
root@MergePoint:~$ cli -f filename
Autocompletion
Autocompletion can be used to find out what commands and parameters are available. Pressing the
key twice displays all the commands at the top level, as shown in the following screen
Tab
example.
cli> <Tab><Tab>
add
commit
cd
delete
Typing any of the commands such as
parameters, as shown in the following screen example.
cli> set<Tab><Tab>
adsap2
auth
bootconf
exit
list
rename
get
quit
revert
add
cards
network
dhcpd
ntp
iptables
pxe
Chapter 7: Using the CLI Utility
option to execute the command(s) from
-f <file>
set
show
shell version
or
set
then pressing
Tab
snmpd
spmanager
sshd
twice displays all the top level
syslog
timezone
tcpdump
105
Need help?
Do you have a question about the MERGEPOINT 53XX SP MANAGER and is the answer not in the manual?
Questions and answers