Cyclades AlterPath OnBoard Informations techniques Page 349

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 502
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 348
Using the cycli Utility 309
cycli Parameters and Arguments
If you want to run multiple cycli commands from a script that is also
running other Linux commands, you could add the multiple cycli
commands as shown in the following example:.
You could then make the script executable and execute it on the command
line, as shown in the following screen example.
You can put one or more commands in a plain text file without invoking any
shell as shown in the following screen example.
And then you can invoke the cycli command with the -f file option to
execute the command(s) from the file, as shown in the following example.
#!/bin/bash
...
/usr/bin/cycli << EOF
set network interface failover yes
set network hostname frutabaga
commit
EOF
[root@onboard root]# chmod 777 scriptname2
[root@onboard root]# ./scriptname2
set network interface failover yes
[root@onboard root]# cycli -f filename
Vue de la page 348
1 2 ... 344 345 346 347 348 349 350 351 352 353 354 ... 501 502

Commentaires sur ces manuels

Pas de commentaire