![]() |
Based on the example in Figure 7.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 example.
[root@onboard /]# chmod 777 scriptname1[root@onboard /]# ./scriptname1If 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.
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 /]# chmod 777 scriptname2[root@onboard /]# ./scriptname2You 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 /]# cycli -f filename