104
MergePoint Service Processor Manager SP53XX Installer/User Guide
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
set
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
...
/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
Содержание 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...