Autocompletion - Avocent MERGEPOINT SP MANAGER Installer/User Manual

Sp manager
Table of Contents

Advertisement

/usr/bin/cli -C set network interface mode failover
...
If you want to run multiple CLI commands from a script that is also running other Linux
commands, you could add the multiple CLI commands as shown in the following example:
#!/bin/bash
...
/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
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
level parameters, as shown in the following screen example.
cli> set<Tab><Tab>
adsap2 cards network snmpd syslog
auth dhcpd ntp spmanager timezone
Chapter 7: Using the CLI Utility
option to execute the command(s)
-f <file>
or
then pressing
add
set
twice displays all the top
Tab
125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents