Configuring SNMP Parameters
You can configure SNMP parameters by
specifying the SNMP trap receiver and source.
- Enter global configuration mode.
- Add the SNMP trap receiver and
configure the software to encrypt display of the community string.In the example, trap receiver 10.2.2.2 is added and the configuration is saved.
- Specify an interface as the SNMP trap source.
device(config)# management source-interface ethernet 1/1/1 protocol snmp
device(config)# management source-interface loopback 10.0.1.1 protocol snmp
An Ethernet interface is configured as the SNMP trap source in the first example. A loopback interface is configured as the SNMP trap source in the second example. - Set the SNMP trap holddown time.
The following example shows how to configure SNMP parameters.
device# configure terminal device(config)# snmp-server host 10.2.2.2 0 mypublic port 200 device(config)# write memory device(config)# management source-interface ethernet 1/1/1 protocol snmp device(config)# snmp-server enable traps holddown-time 30