Chapter 7: Using the CLI Utility
105
...
/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
-f <file>
option to execute the command(s) from
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
Tab
key twice displays all the commands at the top level, as shown in the following screen
example.
cli> <
Tab
><
Tab
>
add commit exit list rename set show
cd delete get quit revert shell version
Typing any of the commands such as
add
or
set
then pressing
Tab
twice displays all the top level
parameters, as shown in the following screen example.
cli>
set
<
Tab
><
Tab
>
adsap2
cards
network
snmpd
syslog
auth
dhcpd
ntp
spmanager
timezone
bootconf
iptables
pxe
sshd
tcpdump
Содержание MERGEPOINT 53XX SP MANAGER
Страница 1: ...MERGEPOINT 53XX SP MANAGER Installer User Guide...
Страница 12: ...x MergePoint Service Processor Manager SP53XX Installer User Guide...
Страница 14: ...xii MergePoint Service Processor Manager SP53XX Installer User Guide...
Страница 22: ...8 MergePoint Service Processor Manager SP53XX Installer User Guide...
Страница 80: ...66 MergePoint Service Processor Manager SP53XX Installer User Guide...
Страница 96: ...82 MergePoint Service Processor Manager SP53XX Installer User Guide...
Страница 138: ...124 MergePoint Service Processor Manager SP53XX Installer User Guide...
Страница 160: ...146 MergePoint Service Processor Manager SP53XX Installer User Guide...
Страница 202: ...188 MergePoint Service Processor Manager SP53XX Installer User Guide...
Страница 203: ......
Страница 204: ...For Technical Support www avocent com support 590 839 501D...