Joe Clarke

Member Since: Feb 20, 2002

English
Joe Clarke commented on Validating multi-event nested applet in EEM Scripting 3 days ago

If you really want this last policy to "or" the track events together, then any one of them will...

Joe Clarke commented on Stop running event (manager) in EEM Scripting 3 days ago

The maxrun parameter is an argument to the event detector line.

Joe Clarke commented on Stop running event (manager) in EEM Scripting 4 days ago

First, this applet will not work as written since it will timeout after 20 seconds of waiting.  You...

Joe Clarke commented on Portchannel mode "ON" EEM MAC detection in EEM Scripting 1 week ago

Not sure why you want two applets.  You don't need them, and what you're doing here won't work...

Joe Clarke commented on Setting the source-interface in a tcl script for email. in EEM Scripting 1 week ago

I just checked the code, and Sourceintf is correct.  Unless you have some other code that...

Joe Clarke commented on turning on/off DHCP in Cisco IE 2000 in EEM Scripting 1 week ago

For the I/O alarm provided it generates a syslog or SNMP trap, then yes.  EEM can react to it. For...

Joe Clarke commented on Extending MAXRUN Time in EEM Scripting 1 week ago

event manager applet foo  event bar ... maxrun X

Joe Clarke commented on Running Python Script with EEM on Nexus 9K in EEM Scripting 1 week ago

Yeah, it appears to be all asynchronous on the Nexus.

Joe Clarke commented on Running Python Script with EEM on Nexus 9K in EEM Scripting 1 week ago

What does your applet look like?  This worked for me on 7.3: event manager applet test  event none...

Joe Clarke commented on Monitoring SIP-UA and do actions "reload" or "re-register SIP-UA" in EEM Scripting 1 week ago

I thought I replied to this already, but I guess CSC didn't take it.  You don't need a lot of the...

Joe Clarke commented on Portchannel mode "ON" EEM MAC detection in EEM Scripting 1 week ago

EEM isn't magic in that it doesn't have deeper API access to the device.  In other words, if you...

Joe Clarke commented on Running Python Script with EEM on Nexus 9K in EEM Scripting 1 week ago

I haven't tried this on 7.3 to see if 7.x changed the behavior, but this would not work previously...

Joe Clarke commented on Stop cron schedule after triggered in EEM Scripting 2 weeks ago

You should start a new thread for your issue.

Joe Clarke commented on EEM script on ASA 9.5 in EEM Scripting 2 weeks ago

This just needs to be configured in global mode.

Joe Clarke commented on EEM script on ASA 9.5 in EEM Scripting 3 weeks ago

This should work for you: event manager applet period-event event timer watchdog time 1800 action 1...

Joe Clarke commented on EEM to test 3 independent events with 8 possible outcomes in EEM Scripting 4 weeks ago

Not exactly nested.  I was thinking of one "if" since you only have two tracked objects per router...

Joe Clarke commented on EEM doesn't work properly while reporting< FAILURE> on accounting log. in EEM Scripting 1 month ago

In IOS, there is a 64 message count limit as I recall.  I'm not sure if NX-OS has the same...

Joe Clarke commented on EEM Support on 2811 in EEM Scripting 1 month ago

Yes.  Provided this command works manually on this router, it will work through EEM.

Joe Clarke commented on EEM doesn't work properly while reporting< FAILURE> on accounting log. in EEM Scripting 1 month ago

NX-OS doesn't have the auth bypass.  It could be that the chaining together of commands is making...

Joe Clarke commented on EEM to test 3 independent events with 8 possible outcomes in EEM Scripting 1 month ago

Okay, I think I understand.  You could have a policy that reacts to a change in either of the two...

Joe Clarke commented on EEM to test 3 independent events with 8 possible outcomes in EEM Scripting 1 month ago

I'm not clear on this.  It sounds like each router will operate independently, so I'm not sure why...

Joe Clarke commented on EEM doesn't work properly while reporting< FAILURE> on accounting log. in EEM Scripting 1 month ago

Seems like the user "svc-isan", which I assume is your EEM session CLI user, is not authorized to...

Joe Clarke commented on TcL Script to shut down port on a time schedule in EEM Scripting 1 month ago

The 'w' means open the file for writing and create a new file if it doesn't exist. The lindex...

Joe Clarke commented on TcL Script to shut down port on a time schedule in EEM Scripting 1 month ago

You'll need this: puts [open "flash:shut_ports.tcl" w] {set ports [lindex $argv 0] ios_config "int...

Joe Clarke commented on TcL Script to shut down port on a time schedule in EEM Scripting 1 month ago

I haven't used kron in a while, and I got used to the NX-OS scheduler.  Kron doesn't work with...

Joe Clarke commented on TCL script to check the number of file in directory before write the output for ASR9K in EEM Scripting 1 month ago

The algorithm is incomplete.  The code still just finds the oldest.  Might be better to use the...

Joe Clarke commented on TcL Script to shut down port on a time schedule in EEM Scripting 1 month ago

The 2960-X does not support full EEM.  Have a look at the "kron" commands.  This will allow you to...

Joe Clarke commented on TcL Script to shut down port on a time schedule in EEM Scripting 1 month ago

You asked for Tcl, but these are applet policies.  Your second applet will not work, either.  The...

Joe Clarke commented on Snmp-notification varbinds access in EEM Scripting 1 month ago

Yes, they are dynamically created based on the varbinds, but they are almost impossible to access...

Joe Clarke commented on Automatically Set Port Descriptions in EEM Scripting 1 month ago

You seem to be using Colin's policy as an example.  If you look at the big one I posted above, I...

Joe Clarke commented on TCL script to check the number of file in directory before write the output for ASR9K in EEM Scripting 1 month ago

No.  You'll need to maintain a list of the files in order of oldest to newest. set files [glob -...

Joe Clarke commented on Automatically Set Port Descriptions in EEM Scripting 1 month ago

Use the regexp: "^([^\.]+)"

Joe Clarke commented on TCL script to check the number of file in directory before write the output for ASR9K in EEM Scripting 1 month ago

Here is the specific Tcl code that will work. set files [glob -directory "harddisk:/BGP-script...

Joe Clarke commented on TCL script to check the number of file in directory before write the output for ASR9K in EEM Scripting 1 month ago

Post the output of the dir command from the ASR9K.  Are you looking for a specific filename pattern...

Joe Clarke commented on Auto Smartports or Cisco EASy using EEM and IOS Shell for group of MACs? in EEM Scripting 1 month ago

Have a look at https://supportforums.cisco.com/document/100791/automatically-set-port-d... ,...

Joe Clarke commented on EEM CLI Commands not executing in EEM Scripting 1 month ago

if $_ipsla_condition eq "Occurred" ... end

Joe Clarke commented on EEM CLI Commands not executing in EEM Scripting 1 month ago

Add the following to your config: ip sla logging ip sla enable reaction-alerts

Joe Clarke commented on EEM CLI Commands not executing in EEM Scripting 1 month ago

Please enable "debug event manager action cli" and then post the log output after reproducing the...

Joe Clarke commented on EEM is interrupted due to the vty session limit when many events trigger actions simultaneously. in EEM Scripting 1 month ago

EEM uses VTYs just like interactive (e.g., SSH) sessions.  You can increase the number of VTYs to...

Joe Clarke commented on EEM using IPSLA HTTP not getting the results I expect. in EEM Scripting 1 month ago

Is the tracked object transitioning state?  Enable "debug event manager action cli", reproduce the...

Joe Clarke commented on Making existing EEM applets simple by Tcl or python scripts. in EEM Scripting 1 month ago

Using track, it's not possible as you can't match on a track pattern.  But, using track syslogs, it...

Joe Clarke commented on EEM - monitor interface traffic in/out ? in Network Management 1 month ago

This won't do what you want.  What this definition will do is poll receive_rate_bps every 180...

Joe Clarke commented on ASR 9k 5.2.2 Event manager repeatedly unregister user script in EEM Scripting 1 month ago

Open a TAC case and reference bug CSCul33740.  It's closed, but since it sounds like you can...

Joe Clarke commented on ASR 9k 5.2.2 Event manager repeatedly unregister user script in EEM Scripting 1 month ago

This has been reported a couple of times before, but it was never reliably reproducible.  What has...

Joe Clarke commented on Is "entry-type increment" available in NXoS? in EEM Scripting 1 month ago

First, SNMP counters cannot be cleared unless the SNMP agent is restarted (usually this means a...

Joe Clarke commented on How To Send MIME Attachments Using EEM in EEM Scripting 1 month ago

Odd.  Okay, next steps would be to enable "debug event manager tcl mail" as well as get a sniffer...

Joe Clarke commented on generate custom snmp trap and match it in EEM Scripting 2 months ago

Yes, this same technique works with all kinds of traps including those from third-party devices.

Joe Clarke commented on generate custom snmp trap and match it in EEM Scripting 2 months ago

There's no advantage gained from that approach.  Just choose numbers to stand for those events. ...

Joe Clarke commented on generate custom snmp trap and match it in EEM Scripting 2 months ago

It's much easier and more reliable to match on numbers.  Why do you want to match on text?

Bio

As a Global TAC engineer, he has contributed to network management products and technologies by finding and fixing bugs, as well as implementing maintenance and troubleshooting components in Cisco Prime, Cisco’s flagship network management suite. Joe helps to support and enhance the embedded automation and programmability technologies, such as the Embedded Event Manager, Tcl, NETCONF/RESTCONF, and ONE Platform Kit (onePK). Joe is a top-rated speaker at Cisco’s annual user conference, CiscoLive!, as well as a certified as a Cisco Certified Internetworking Expert, Certified Java Programmer, and VMware Certified Professional. He has authored numerous technical documents on Cisco network management products and technologies as well as a chapter co-author in the Springer publication, “Network-Embedded Management and Applications: Understanding Programmable Networking Infrastructure”; and he served as one of the technical editors for the Cisco Press book, “Tcl Scripting for Cisco IOS.” Joe is co-author of 14 Cisco patents. He is an alumnus of the University of Miami and holds a Bachelor of Science degree in computer science.

Outside of Cisco, Joe is a member of the FreeBSD project. He is a committer in the project focusing mainly on the GNOME Desktop. He also maintains the FreeBSD ports Tinderbox application, which facilitates the automated packaging a testing of FreeBSD third-party ports. Joe is a certified private pilot for single-engine airplanes with an instrument rating.








  • Hall of Fame

    Founding Member









Joe Clarke's Stats

Points29548
Discussion started 11
Answers marked as Correct 3120
Endorsed 8
Content Rated 265
Website: