System information

cycli Parameters and Arguments
308 AlterPath OnBoard Administrator’s Guide
Entering a Command in Batch Mode
Based on the example in Figure 10-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.
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
[root@onboard root]# chmod 777 scriptname
[root@onboard root]# ./scriptname1
#!/bin/bash
...
/usr/bin/cycli -CF -- set network interface failover yes
...