Avocent MERGEPOINT 53XX SP MANAGER Guide de l'utilisateur Page 136

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 236
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 135
OK
Entering a command in interactive mode
Based on the branch mentioned at the beginning of this section, you could enter the set
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 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
...
124 MergePoin SP Manager Installer/User Guide
Vue de la page 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 235 236

Commentaires sur ces manuels

Pas de commentaire