Configuring Traps cisco

Configuring Traps

In simple terms, SNMP accessories are letters that are triggered by an accident such as

an interface activity down.The SNMP accessories are beatific on UDP anchorage 162 and are not

encrypted.To configure and use SNMP traps, chase these steps:

1. Configure the SNMP community.

PIX1(config)# snmp-server association Il0v3CiSCo

2. Configure the SNMP host that will accept the traps.The syntax is

similar to configuring a host for polling, except the allurement keyword is used

instead of poll:

PIX1(config)# snmp-server host central 192.168.50.8 trap

NOTE

If you configure an SNMP host after application the poll or allurement keywords,

the SNMP host will be acclimated for both functions.

3. Accredit SNMP traps:

PIX1(config)# snmp-server accredit traps


Configuring System Administration • Chapter 6 321

4. Set the logging akin for SNMP accessories application the logging history command.

For example:

PIX1(config)# logging history errors

5. Start sending accessories to the SNMP administration base application the logging

on command:

PIX1(config)# logging on

To stop SNMP traps, use the no snmp-server accredit accessories command.