Entering A Command In Interactive Mode; Entering A Command In Command Code; Entering A Command In Batch Mode - Avocent MERGEPOINT SP MANAGER Installer/User Manual

Sp manager
Table of Contents

Advertisement

MergePoint® SP Manager Installer/User Guide
124
OK

Entering a command in interactive mode

Based on the branch mentioned at the beginning of this section, you could enter the
command with the following parameters in interactive mode to turn on Ethernet failover.
admin@MergePoint:~$ cli
cli> set network interface mode failover
ok
cli>

Entering a command in command code

Based on the branch mentioned at the beginning of this section, you could enter the
command to turn on Ethernet failover with the parameters shown in the following screen
example in command mode. When the command completes, the shell prompt returns. On the
command line, you could enter all the parameters together with the value on the same
command line.
admin@MergePoint:~$ cli -C1 set network interface mode failover
ok
admin@MergePoint:~$

Entering a command in batch mode

Based on the example in this section, you could use batch mode to turn on Ethernet failover as
shown in the following examples.
Example CLI shell script
Start the script by entering #!/usr/bin/cli with the -Cf options:
#!/usr/bin/cli -Cf
set network interface mode failover
You could then make the script executable and execute it on the command line, as shown in
the following example.
root@MergePoint:~$ chmod 777 scriptname1
root@MergePoint:~$ ./scriptname1
Example bash shell script
If you want to run a CLI command from the same script that is running other Linux commands,
you could put the command in another type of shell script. The bash shell is shown in the
following example:
#!/bin/bash
...
set
set

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents