Cyclades AlterPath OnBoard Información técnica Pagina 349

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 502
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 348
1 2 ... 344 345 346 347 348 349 350 351 352 353 354 ... 501 502

Comentarios a estos manuales

Sin comentarios