
Miscellaneous Procedures 537
Using the CLI Utility
• Any type of shell can be used to run CLI commands along with other
commands.
For a very simple example, you could create a script that calls /bin/CLI to
run in batch mode to configure a hostname for the OnSite as shown in the
following screen example.
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:.
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:.
#!/bin/CLI
config network hostsettings hostname FremontCAOnSite
config savetoflash
:wq
#!/bin/bash
...
/bin/CLI -s config network hostsettings hostname
FremontCAOnSite
...
#!/bin/bash
...
/bin/CLI << EOF
config network hostsettings hostname FremontCAOnSite
config security adduser username testuser
config savetoflash
EOF
Komentáře k této Příručce