Sunday, 10 November 2013

Detecting Multiple Occurrences And Triggering Syslog Messages

Chose to enjoy together with EEM today a tad bit more, and also gave myself personally the necessity involving understanding how you can discover some sort of CLI event with the word “interface” (that implies ANY KIND OF event with the word.. for example: ‘show interface’ and also ‘interface f0/1′ will both equally count together event each)- if the phrase screen is detected 3 x within 40 a few moments, it’ll generate some sort of syslog concept. Here’s the rule:






affair administrator applet TESTER
affair cli routine "interface. *" connect without a doubt comes about 3 period of time 40
activity 1. 0 syslog msg "INTERFACE DIAGNOSED 3 x! inches

Let’s examination:

Rack1R6#show ip int br | my partner and i By
Rack1R6#show ip int br | my partner and i By
Rack1R6#show ip int br | my partner and i By
Rack1R6#
*May fourteen 05: 46: per day. 323: %HA_EM-6-LOG: TESTER: SOFTWARE DIAGNOSED 3 x!

TAKE NOTE: Notice the applet detects the very long version with the codes we all typed- not merely your words. This means in the event that we all explained to that to check “show” it could fit with “sh” likewise.

0 comments:

Post a Comment