|
•
|
CLI commands can be saved in a plain text file and executed in batch mode by invoking the CLI utility with the -f file option.
|
|
•
|
CLI commands can be used in any kind of shell script:
|
|
•
|
#!/bin/CLI can be invoked at the top of a shell script if the script contains only CLI commands.
|
To run a CLI 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:.
/bin/CLI
-s config network hostsettings hostname
FremontCAOnSite
|
To run multiple CLI commands from a script that is also running other Linux commands, you could add the multiple
CLI commands as shown in the following example:.