Cisco Cisco Email Security Appliance C170 Referências técnicas

Página de 316
16
C I S C O   I R O N P O R T   A S Y N C O S   7 . 3   C L I   R E F E R E N C E   G U I D E
B A T C H   C O M M A N D S
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 user inputs 
required to complete tasks and provides a mechanism allowing users to easily automate 
common configuration tasks. Batch commands also allow users to issue commands remotely 
using an SSH client. This enables users to easily script CLI commands and execute them on 
multiple appliances at one time.
Please note that these commands do not provide new functionality to your IronPort 
appliance; rather, they provide you with an additional method of execution for your 
appliance.
For the current release of AsyncOS these CLI commands have associated batch commands:
adminaccessconfig
aliasconfig 
destconfig
interfaceconfig
listenerconfig -> hostacess (HAT) 
listenerconfig -> rcptacess (RAT)
scanconfig
smtproutes
 
tlsverify
Batch command syntax is dependent on the specific command being used. Please see the 
appropriate CLI example contained 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:
Table 2-1 Example 
listenerconfig
 command Using the CLI 
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
Choose the operation you want to perform: