Technical References

6
Cisco AsyncOS 9.1 for Email CLI Reference Guide
Chapter 2 Command Line Interface: The Basics
Batch Commands
Quitting the Command Line Interface Session
The quit command logs you out of the CLI application. Configuration changes that have not been
committed are cleared. The
quit command has no effect on email operations. Logout is logged into the
log files. (Typing
exit is the same as typing quit.)
Seeking Help on the Command Line Interface
The help command lists all available CLI commands and gives a brief description of each command.
The
help command can be invoked by typing either help or a single question mark (?) at the command
prompt.
Batch Commands
AsyncOS includes support for batch command formats that allow you to execute certain CLI commands
using a new, single-line CLI format. This format reduces the number of inputs required to complete tasks
and provides a mechanism allowing you to easily automate common configuration tasks. Batch
commands also allow you to issue commands remotely using an SSH client. This enables you to easily
script CLI commands and execute them on multiple appliances at one time.
Not all commands have a batch equivalent, but all batch commands can be executed as non-batch
commands.
Batch command syntax is dependent on the specific command being used. Please see the appropriate CLI
example in Chapter 3, “The Commands: Reference Examples” for more information about syntax
specific to that command.
Batch Command Example
In the following example, the sendergroup REDLIST is created. It is then associated with the policy
THROTTLED, and then the sender ‘possible_spammer.com’ is added to the sender group.
To execute this action using the CLI:
mail3.example.com> quit
Configuration changes entered but not committed. Exiting will lose
changes.
Type 'commit' at the command prompt to commit changes.
Are you sure you wish to exit? [N]> Y
mail3.example.com> help
example.com> listenerconfig
Currently configured listeners:
1. IncomingMail (on Management, 192.168.42.42/24) SMTP TCP Port 25 Public
2. OutgoingMail (on Data 2, 192.168.40.42/24) SMTP TCP Port 25 Private