networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: SNMP Trap
PostPosted: Tue Jun 29, 2010 1:38 pm 
Offline
New Member
New Member

Joined: Thu Nov 26, 2009 7:49 am
Posts: 28
Certs: CCNA
Hello,

Can someone help me to understand the difference between SNMP and SNMP trap? Whether we need to configure any community string for enabling the SNMP TRAP?


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 1:46 pm 
Offline
Ultimate Member
Ultimate Member
User avatar

Joined: Thu Aug 20, 2009 11:06 am
Posts: 972
Certs: CCNP, LPIC-1, ITIL
SNMP is the protocol, and the community string is for enabling SNMP. An SNMP trap is a way for an SNMP agent to collect particular data and notify the management station.

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094aa5.shtml

_________________
http://projectportfolio.info/jhazen/


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 2:00 pm 
Offline
New Member
New Member

Joined: Thu Nov 26, 2009 7:49 am
Posts: 28
Certs: CCNA
Thanks for the reply.

I read that SNMP Management station and agent should use the same community string (Both RO and RW). what about the SNMP TRAP, how we need to configure the community string for SNMP trap?


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 2:03 pm 
Offline
Ultimate Member
Ultimate Member
User avatar

Joined: Thu Aug 20, 2009 11:06 am
Posts: 972
Certs: CCNP, LPIC-1, ITIL
You configure the trap on the agent. That way the agent can monitor the particular trap.

For example, on a cisco router, you can setup an SNMP trap for OSPF LSAs, by:

Code:
Router(config)#snmp-server enable traps ospf lsa


Now the agent can report information on OSPF LSAs.

_________________
http://projectportfolio.info/jhazen/


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 2:13 pm 
Offline
New Member
New Member

Joined: Thu Nov 26, 2009 7:49 am
Posts: 28
Certs: CCNA
oh.... thanks a lot hunter_thom

so...the community string comes into the picture only when we are configuring the SNMP alone. right? PLease corrct me if i'm wrong.


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 2:15 pm 
Offline
Ultimate Member
Ultimate Member
User avatar

Joined: Thu Aug 20, 2009 11:06 am
Posts: 972
Certs: CCNP, LPIC-1, ITIL
Right, the community string is for configuring SNMP, not when configuring the SNMP traps. Only when setting up an agent and a management station will the community string come into play.

_________________
http://projectportfolio.info/jhazen/


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 2:19 pm 
Offline
New Member
New Member

Joined: Thu Nov 26, 2009 7:49 am
Posts: 28
Certs: CCNA
okay.... I got it :)


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 2:23 pm 
Offline
Ultimate Member
Ultimate Member
User avatar

Joined: Thu Aug 20, 2009 11:06 am
Posts: 972
Certs: CCNP, LPIC-1, ITIL
Great. Hope it helped.

_________________
http://projectportfolio.info/jhazen/


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 2:44 pm 
Offline
New Member
New Member

Joined: Thu Nov 26, 2009 7:49 am
Posts: 28
Certs: CCNA
The below is one of eg: which i took it from Cisco site. Can u help me to understand what the keyword "PUBLIC" will do in this config.

This example enables the router to send all traps to the host myhost.cisco.com with the community string public:

snmp-server enable traps
snmp-server host myhost.cisco.com public


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 2:55 pm 
Offline
Ultimate Member
Ultimate Member
User avatar

Joined: Thu Aug 20, 2009 11:06 am
Posts: 972
Certs: CCNP, LPIC-1, ITIL
That is the community string. They must match on agent and manager for the SNMP reporting to be sent to the manager.

_________________
http://projectportfolio.info/jhazen/


Top
 Profile  
 
 Post subject: Re: SNMP Trap
PostPosted: Tue Jun 29, 2010 3:27 pm 
Offline
Post Whore
Post Whore
User avatar

Joined: Thu Apr 29, 2010 6:12 pm
Posts: 2075
Location: Texas
Certs: CCNP, CCDP, CCIP
SNMP is used to collect information from a device. Usually monitoring tools use snmp to check the status of an interface or the devices health. When the data is collected is completely dependent and controlled by the "poller" or server sending the snmp request.

SNMP TRAPs are alerts sent from a device to a monitoring server once an alarm is triggered. So if an interface goes down then a trap is sent to the monitoring server saying its down. With basic snmp setup the monitoring server would not know about the downed port until it polls the device for the port status.

Hope this helps clarify.

_________________
http://blog.movingonesandzeros.net/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group