11-11-2021 12:33 PM
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
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
Solved! Go to Solution.
11-14-2021 03:58 PM
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.
11-11-2021 02:29 PM
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
11-14-2021 02:43 AM
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
11-14-2021 03:58 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide