Using the cycli Utility > cycli Parameters and Arguments > Entering a Command in Batch Mode

Entering a Command in Batch Mode
Based on the example in Figure 11-1, you could use batch mode to turn on Ethernet failover as shown in the following examples
You could put the command in a script that calls /usr/bin/cycli with the -CF options, as shown in the following screen example.
You could then make the script executable and execute it on the command line, as shown in the following screen example.
[root@onboard root]# chmod 777 scriptname
[root@onboard root]# ./ scriptname1
If you want to run a cycli 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:.
/usr/bin/cycli -CF -- set network interface failover yes
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.
[root@onboard root]# chmod 777 scriptname2
[root@onboard root]# ./ scriptname2
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.
[root@onboard root]# cycli -f filename

Using the cycli Utility > cycli Parameters and Arguments > Entering a Command in Batch Mode