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

Página de 312
S N M P C O N F I G
C H A P T E R   3 :   T H E   C O M M A N D S :   R E F E R E N C E   E X A M P L E S
 239
Cluster Management: This command can be used in all three machine modes (cluster, group, 
machine).
Batch Command: This command does not support a batch format.
Example
In the following example, the 
snmpconfig
 command is used to enable SNMP on the 
“PublicNet” interface on port 161. A passphrase for version 3 is entered and then re-entered 
for confirmation. The system is configured to service version 1 and 2 requests, and the 
community string 
public
 is entered for GET requests from those versions 1 and 2. The trap 
target of 
snmp-monitor.example.com
 is entered.  Finally, system location and contact 
information is entered.
Code Example 3-140 
snmpconfig
 
mail3.example.com> snmpconfig
Current SNMP settings:
SNMP Disabled.
Choose the operation you want to perform:
- SETUP - Configure SNMP.
[]> setup
Do you want to enable SNMP? [N]> y
Please choose an IP interface for SNMP requests.
1. Data 1 (192.168.1.1/24: buttercup.run)
2. Data 2 (192.168.2.1/24: buttercup.run)
3. Management (192.168.44.44/24: buttercup.run)
[1]>
Enter the SNMPv3 passphrase.
>
Please enter the SNMPv3 passphrase again to confirm.
>
Which port shall the SNMP daemon listen on?
[161]>
Service SNMP V1/V2c requests? [N]> y
Enter the SNMP V1/V2c community string.
[]> public
From which network shall SNMP V1/V2c requests be allowed?
[192.168.2.0/24]>
Enter the Trap target (IP address). Enter "None" to disable traps.