RE: Specifying SNMP Traps

From: Yasser Abdullah (yasser@alharbitelecom.com)
Date: Fri Apr 23 2004 - 09:39:05 GMT-3


Yes. There is only a an exception to point 1:

 The 'snmp-server enable traps' is not required for traps which are sent
using a different command. For example the 'SNMP trap link-status'
interface command would send traps to specified hosts even if the
'snmp-server enable traps' command is not configured.

Brgds,

Yasser

-----Original Message-----
From: ccie2be [mailto:ccie2be@nyc.rr.com]
Sent: Friday, April 23, 2004 3:26 PM
To: Yasser Abdullah; 'Tim Last'; 'Group Study'
Subject: Re: Specifying SNMP Traps

Ah, Yasser, that was the missing piece of info.

Thank you, man.

I bet you must work with snmp at your job, right?

Now, one last variation I'd like to ask you about. Suppose this were
the
config:

snmp-server host 10.10.10.10 public config bgp tty
snmp-server enable traps

According to the Doc's, if no type of trap is specified, then, by
default,
all traps can be sent, correct?
But, since the snmp-server host specified 3 particular traps, only those
traps are sent to only that host.

Then to summerize how these commands work:

1) To send traps both the snmp-server host command and the snmp-server
enable trap MUST BE SPECIFIED.

2) If specific traps are listed in the snmp-server host command, that
host
will get only the traps specified in that command

3) If specific traps are specified in the snmp-server enable trap
command,
those traps will be sent to all hosts specified in all snmp-server hosts
commands which DON'T have specific traps listed. For example,

snmp-server host 11.11.11.11 public
snmp-server host 10.10.10.10 public config bgp tty
snmp-server enable traps hsrp

Here, host 11.11.11.11 will get the hsrp trap because it didn't specify
any
traps and
host 10.10.10.10 wil get the config bgp and tty traps because those are
the
traps its specified.

Do you this right?

Thanks, Tim

----- Original Message -----
From: "Yasser Abdullah" <yasser@alharbitelecom.com>
To: "'ccie2be'" <ccie2be@nyc.rr.com>; "'Tim Last'" <packtmon@yahoo.com>;
"'Group Study'" <ccielab@groupstudy.com>
Sent: Friday, April 23, 2004 7:35 AM
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
>
>
> -----Original Message-----
> From: ccie2be [mailto:ccie2be@nyc.rr.com]
> Sent: Friday, April 23, 2004 2:12 PM
> To: Yasser Abdullah; 'Tim Last'; 'Group Study'
> Subject: Re: Specifying SNMP Traps
>
> Yasser,
>
> Thanks for getting back to me.
>
> I'm still a bit confused.
>
> What's the difference between a "Notification" and a "Trap"?
>
> Aren't they the different names for the same thing?
>
> Also, does the type of trap have to be specified twice,
>
> once in the snmp-server host command and
>
> again, in the snmp-server enable trap command?
>
> It's confusing because in the example below, both BGP and CONFIG were
> specified twice,
>
> but TTY was only specified once - in the snmp-server host command.
>
> Why is TTY only specified once but BGP and CONFIG is specified twice?
>
> It doesn't make sense to me.
>
> Thanks in advance, Tim
> ----- Original Message -----
> From: "Yasser Abdullah" <yasser@alharbitelecom.com>
> To: "'Tim Last'" <packtmon@yahoo.com>; "'Group Study'"
> <ccielab@groupstudy.com>
> Sent: Friday, April 23, 2004 4:51 AM
> Subject: RE: Specifying SNMP Traps
>
>
> > The first command would specify the recipient of the traps and the
> type
> > or traps to be sent. However, no traps will be sent for any of the
> > notifications above until you configure the' snmp-server enable
traps'
> > for at least one notification type.
> >
> >
>
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/
> > ffun_r/ffrprt3/frf014.htm#1113568
> >
> > HTH,
> >
> > Yasser
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of
> > Tim Last
> > Sent: Friday, April 23, 2004 12:26 AM
> > To: Group Study
> > Subject: Specifying SNMP Traps
> >
> > Hi guys,
> >
> > I found this example here:
> >
> >
>
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a
> > 0080094a05.shtml
> >
> > snmp-server host 10.10.10.10 public config bgp tty snmp-server
enable
> > traps config snmp-server enable traps bgp
> >
> > I understand why the 1st first command is there, but why are the
other
> 2
> >
> >
> > commands needed? Isn't it enough that that both "config" and "bgp"
in
> > the 1st command?
> >
> > Or, is it really necessary to specify "config" and "bgp" twice,
once
> >
> > in the 1st command and again in the enable traps command.
> >
> >
> >
> > Thanks in advance, Tim
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Photos: High-quality 4x6 digital prints for 25"
> >
> >
>



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