how to generate logs for packet loss using ip sla or track command
You could use the reaction configuration feature to generate the syslogs whenever there is a packet loss.
Following is a sample config
ip sla reaction-configuration 1 react packetLossDS action-type trapOnly threshold-type immediate threshold-value 30
ip sla reaction-configuration 1 react packetLossSD action-type trapOnly threshold-type immediate threshold-value 30
make sure you have the rtr traps enabled on the device. Whenever the device is violating the threshold of 30 packetlosses between the SD and DS there would be a trap generated for the same to your NMS.
thanks syed. it worked
Good to know. Please rate the post since it has been helpful to resolve your concern.
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: