cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1865
Views
0
Helpful
5
Replies

Difference between the commands- ip sla reaction-configuration 1 react timeout threshold-type immediate action-type trapOnly and snmp-server enable traps ipsla?

dalakshm
Cisco Employee
Cisco Employee

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?

 

 

1 Accepted Solution

Accepted Solutions

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

HTH

Rick

View solution in original post

5 Replies 5

Richard Burts
Hall of Fame
Hall of Fame

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

HTH

Rick

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?

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?

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

HTH

Rick

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

HTH

Rick