11-20-2018 11:58 PM - edited 11-20-2018 11:59 PM
Hi Folks,
In the configuration, i see both these commands would be configured-
ip sla reaction-configuration 1 react timeout threshold-type immediate action-type trapOnly and snmp-server enable traps ipsla
I see the when the first command is used, it means to monitor for the timeout threshold and when it happens it sends an SNMP logging trap when the specified violation type occurs for the monitored element.
But what is the actual purpose of the command snmp-server enable traps ipsla?
Does they looks to do the same job and repetitive, i am wondering. Can you someone please clairfy?
Solved! Go to Solution.
11-22-2018 06:32 AM
It is not necessarily true that both commands are required. There is an option to globally enable all SNMP traps. If you have enabled all traps then you do not need the command to enable that particular trap. You would need the command for that particular trap if you do not enable all traps and want to selectively enable some traps. Or you might need that command if you have enabled all traps but want to disable this particular trap. You can find details in this link which I hope will be helpful.
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/snmp/command/nm-snmp-cr-book/nm-snmp-cr-s4.html
HTH
Rick
11-21-2018 11:22 AM
The second command is used in the context of specifying behavior of snmp. You can enable (or disable) certain types of traps, including ipsla. The first command is used in the context of configuring a particular sla monitor.
HTH
Rick
11-21-2018 09:22 PM
What i understand is -
ip sla reaction-configuration 1 react timeout threshold-type immediate action-type trapOnly
this cmd will generate the SNMP traps in the context of IP SLA when a particular condition is met (when timeout occurs).
And this cmd- snmp-server enable traps ipsla
will enable the traps to be sent to the SNMP server
Correct me if I am wrong.
So that means both are commands indeed necessary, right?
11-21-2018 09:24 PM
What i understand is -
ip sla reaction-configuration 1 react timeout threshold-type immediate action-type trapOnly
this cmd will generate the SNMP traps in the context of IP SLA when a particular condition is met (when timeout occurs).
And this cmd- snmp-server enable traps ipsla
will enable the traps to be sent to the SNMP server
Correct me if I am wrong.
So that means both are commands indeed necessary, right?
11-22-2018 06:32 AM
It is not necessarily true that both commands are required. There is an option to globally enable all SNMP traps. If you have enabled all traps then you do not need the command to enable that particular trap. You would need the command for that particular trap if you do not enable all traps and want to selectively enable some traps. Or you might need that command if you have enabled all traps but want to disable this particular trap. You can find details in this link which I hope will be helpful.
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/snmp/command/nm-snmp-cr-book/nm-snmp-cr-s4.html
HTH
Rick
02-06-2019 05:39 AM
I am glad that my explanation was helpful. Thank you for marking this question as solved. This will help other participants in the community to identify discussions which have helpful information. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.
HTH
Rick
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: