06-10-2019 04:31 AM
Hello Experts.
Could you help me on the following? I have to find flapping interfaces in the fabric.
Theoritically I can do it in ugly way which is run a script which will execure show interface on each node of the fabric and then run a condition if last link flap <= 5 mins then it's problematic interface.
However, I believe there is much more elegant way to find such interfaces using moquery.
Could anybody tell me if he/she had to use it before?
Any suggestion will be highly appriciated.
Solved! Go to Solution.
06-10-2019 11:45 PM
Hello,
You can use the following moquery by adapting the timestamp field:
moquery -c eventRecord -f 'event.Record.cause=="port-down" and event.Record.created>"2019-06-11T08:40:00"' | grep affected | sort
The "<=5min" might be difficult to implement in a single moquery but instead should be integrated in a script to automatically generate the timestamp "current time minus 5 minutes" and fill the moquery field.
Remi Astruc
06-11-2019 02:01 AM
Hello,
Yes, it will cover even sub-second cuts.
An event is similar to a log entry. It can notify about issues but also informational things.
A Fault represents a faulty status of an object at a given time, and can influence Health Scores. A Fault has a notion of lifecycle and its status evolves in time.
Remi Astruc
06-10-2019 11:45 PM
Hello,
You can use the following moquery by adapting the timestamp field:
moquery -c eventRecord -f 'event.Record.cause=="port-down" and event.Record.created>"2019-06-11T08:40:00"' | grep affected | sort
The "<=5min" might be difficult to implement in a single moquery but instead should be integrated in a script to automatically generate the timestamp "current time minus 5 minutes" and fill the moquery field.
Remi Astruc
06-11-2019 01:44 AM
06-11-2019 02:01 AM
Hello,
Yes, it will cover even sub-second cuts.
An event is similar to a log entry. It can notify about issues but also informational things.
A Fault represents a faulty status of an object at a given time, and can influence Health Scores. A Fault has a notion of lifecycle and its status evolves in time.
Remi Astruc
06-11-2019 03:43 AM
Thank you very muxh Remi!
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