cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5452
Views
1
Helpful
3
Replies

Enable snmp traps

romanroma
Level 1
Level 1

I am a little confused and need to make sure I have my switches configured correctly before I speak with the folks who manage the SNMP server resources. I am following documentation

 

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960x/software/15-0_2_EX/network_management/configuration_guide/b_nm_15ex_2960-x_cg/b_nm_15ex_2960-x_cg_chapter_0100.html#task_7B4609ACB50F4DCA877A911711E3E395

 

To enable traps on a 2960x the following is all that is required (what I currently have)?

snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps errdisable
snmp-server host 192.168.20.5 version 3 auth ciscotraps

or do I need

snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps errdisable
snmp-server host 192.168.20.5 version 3 auth ciscotraps snmp
snmp-server host 192.168.20.5 version 3 auth ciscotraps  errdisable

 

Just not sure if the switch is not configured fully yet or if something is wrong with the server that will send out an email once the traps are received.

 

 

Also,

I read about the difference between "Informs" vs "trap' and how Informs respond with an ACK. Other then the response, is there any benefit in using 'informs' over 'traps'?

 

Thank you

 

 

1 Accepted Solution

Accepted Solutions

snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart

snmp [authentication ]--Sends RFC 1157 SNMP notifications. Using the authentication keyword produces the same effect as not using it. Both the snmp-server enable traps snmp and the snmp-server enable traps snmp authentication forms of this command globally enable the following SNMP notifications (or, if you are using the no form of the command, disables such notifications): authenticationFailure , linkUp , linkDown , and warmstart .

 

snmp-server host 192.168.20.5 version 3 auth ciscotraps snmp

 

The snmp-server enable traps command is used in conjunction with the snmp-server host command. Use the snmp-server host command to specify which host or hosts receive SNMP notifications. To send notifications, you must configure at least one snmp-server host command.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

If you like to send only those traps then that is the correct one.

 

snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps errdisable
snmp-server host 192.168.20.5 version 3 auth ciscotraps

 

you can find information Trap vs Informs (based on the requirement)

 

http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap-v3.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

@balaji.bandi 

This worked great thank you. However, looks like messages are not sent encrypted, even though I have 'group' and authentication set, so I might have to look at other issues there.

 

Why the two different methods on configuration?

snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
(vs)
snmp-server host 192.168.20.5 version 3 auth ciscotraps snmp

 

snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart

snmp [authentication ]--Sends RFC 1157 SNMP notifications. Using the authentication keyword produces the same effect as not using it. Both the snmp-server enable traps snmp and the snmp-server enable traps snmp authentication forms of this command globally enable the following SNMP notifications (or, if you are using the no form of the command, disables such notifications): authenticationFailure , linkUp , linkDown , and warmstart .

 

snmp-server host 192.168.20.5 version 3 auth ciscotraps snmp

 

The snmp-server enable traps command is used in conjunction with the snmp-server host command. Use the snmp-server host command to specify which host or hosts receive SNMP notifications. To send notifications, you must configure at least one snmp-server host command.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card