
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
Comentarios a estos manuales