RE: Specifying SNMP Traps

From: Yasser Abdullah (yasser@alharbitelecom.com)
Date: Fri Apr 23 2004 - 10:01:25 GMT-3


Let us just ignore the tty for a second and consider the following:

Snmp-server host 10.10.10.10 public bgp config
Snmp-server enable traps bgp

Would the router send host 10.10.10.10 config traps?

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Jonathan Hays
Sent: Friday, April 23, 2004 3:40 PM
To: ccielab@groupstudy.com
Subject: RE: Specifying SNMP Traps

you wrote:
>-----Original Message-----
>From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
>Behalf Of Yasser Abdullah
>Sent: Friday, April 23, 2004 7:36 AM
>To: 'ccie2be'; 'Tim Last'; 'Group Study'
>Subject: RE: Specifying SNMP Traps
>
>
>Yes, it is actually a term used to describe traps or informs.
>
>No, the type of traps doesn't need to be specified twice, at least not
>all. In your example, bgp, config and tty were specified in the host
>command. However, this command alone doesn't automatically send traps.
>You need to activate the sending of traps by issuing the snmp-server
>enable traps at least for one of the traps types.
>
>In the example below, you could have done with only one snmp-server
>enable traps commands.
>
>snmp-server host 10.10.10.10 public config bgp tty
>snmp-server enable traps config
>
>In this case, all hosts will get the config traps, but only host
>10.10.10.10 will get the bgp and tty traps.
>
>Brgds,
>
>Yasser
>
= = =

Sorry, but I disagree. See my example below. It is important to actually
implement these examples in your lab, rather than must assuming how
things work from the documentation. The fact is that the IOS will
automatically create the 'snmp-server enable traps tty' command. The
documentation is a bit lax in this area.

R2#sh run | include snmp
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#snmp-server host 10.10.10.10 public config bgp tty
R2(config)#end
R2#
*May 9 15:59:27.173: %SYS-5-CONFIG_I: Configured from console by
console
R2#sh run | include snmp
snmp-server enable traps tty
snmp-server host 10.10.10.10 public tty config bgp
R2#

HTH,

Jonathan



This archive was generated by hypermail 2.1.4 : Mon May 03 2004 - 19:48:53 GMT-3