Joe Clarke

Member Since: Feb 20, 2002

User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

English
Joe Clarke commented on EEM to apply Smart Port Macro in EEM Scripting 1 week ago

I don't mix EEM and macros.  They both use '$' to denote variables, and in this case EEM is winning...

Joe Clarke commented on Shutdown Port Based on IP SLA in EEM Scripting 1 week ago

You could only do this if there is a syslog message generated when the IP SLA collector fails.  See...

Joe Clarke commented on EEM Scripting with Multiple conditions in EEM Scripting 1 week ago

Here is a sample config.  Let's assume that 10.1.1.1 is the server to test for latency and 20.1.1.1...

Joe Clarke commented on Absolute Novice; Want to learn TCL for IOS in EEM Scripting 1 week ago

I started in college.  Learned C++ and Java, taught myself Perl.  I taught myself Tcl when Cisco...

Joe Clarke commented on Access Port Only MAT Events in EEM Scripting 2 weeks ago

No, the event detector does not support this.  While you could react to an interface coming up and...

Joe Clarke commented on Access Port Only MAT Events in EEM Scripting 2 weeks ago

It could, yes.  But there's no other way to reliably filter trunk ports.  You could design an...

Joe Clarke commented on How to dump flows to a fixed size file? in EEM Scripting 2 weeks ago

Look at the solution to https://supportforums.cisco.com/discussion/13310896/eem-search-index-fil...

Joe Clarke commented on Access Port Only MAT Events in EEM Scripting 2 weeks ago

1. You'll need to add code to parse the output of "show int switchport" to see if the port is a...

Joe Clarke commented on EEM TCL Script for multiple Interfaces in EEM Scripting 2 weeks ago

The trigger block needs to come right after the event spec lines.  You also have a typo in your...

Joe Clarke commented on Absolute Novice; Want to learn TCL for IOS in EEM Scripting 2 weeks ago

Have a look at https://supportforums.cisco.com/blog/12218591/automating-cisco-live-2014... .  This...

Joe Clarke commented on EEM Script working on 881 but not on 2951 in EEM Scripting 2 weeks ago

See this thread : https://supportforums.cisco.com/community/5941/eem-scripting .  My guess is you'...

Joe Clarke commented on EEM Script not executing against IPSLA Tracking in EEM Scripting 3 weeks ago

My guess is EEM is working, but perhaps this switch has a AAA policy that is not allowing the CLI...

Joe Clarke commented on EEM script to clear dialer interface till it starts passing traffic again in EEM Scripting 3 weeks ago

I think you should read How To Introduce Large Delays In EEM Policies  .  This uses multiple...

Joe Clarke commented on Detect an out of standard IOS level on device with EEM in order to keep devices on standard IOS? in EEM Scripting 3 weeks ago

As Philip said, yes, EEM can do it.  The applet policy wouldn't be that complicated, either.  The...

Joe Clarke commented on Script to change Vlans from XX to YY in EEM Scripting 3 weeks ago

Do you have any config management applications in place now?  It might be easier to use them to get...

Joe Clarke commented on EEM: Search Index from file flash in EEM Scripting 4 weeks ago

Given this output: Directory of flash0:/c1900-universalk9-mz.SPA.156-2.T.bin  250  -rw-    81042792...

Joe Clarke commented on EEM: Search Index from file flash in EEM Scripting 4 weeks ago

CLI would work better for this since you can parse the output of "dir" and simply delete the file...

Joe Clarke commented on IOS-XR Get Interface rxLoad TCL in EEM Scripting 1 month ago

You might try without the pipe to see if it makes a difference.  The other thing that seems really...

Joe Clarke commented on IOS-XR Get Interface rxLoad TCL in EEM Scripting 1 month ago

This is IOS-XR, right?  I typically haven't seen interfaces named so simply on XR boxes.  If the...

Joe Clarke commented on Best way to execute TCL script on Router startup/reload in EEM Scripting 1 month ago

From an EEM standpoint, yes.  The default maxrun is 20 seconds, and if the policy runs longer than...

Joe Clarke commented on Best way to execute TCL script on Router startup/reload in EEM Scripting 1 month ago

countdown is better.  The "after" call means that you are occupying device resources longer than...

Joe Clarke commented on Best way to execute TCL script on Router startup/reload in EEM Scripting 1 month ago

Cron is more reliable when it comes to running EEM policies at reload.  No, maxrun is not a built-...

Joe Clarke commented on Unable to get EEM scripting to detect MAC in EEM Scripting 1 month ago

This might be a regression of the bug then.  I suggest you open a TAC service request so that this...

Joe Clarke commented on Best way to execute TCL script on Router startup/reload in EEM Scripting 1 month ago

Well, I'm not sure how your script is written, but this is likely wrong.  The tclsh script isn't an...

Joe Clarke commented on Unable to get EEM scripting to detect MAC in EEM Scripting 1 month ago

There was a bug, but it is fixed in your version of code, at least in 15.2(2)E6.  Can you try this...

Joe Clarke commented on Best way to execute TCL script on Router startup/reload in EEM Scripting 1 month ago

Yes.  From the examples you see in my doc, you first configure the applet: event manager applet foo...

Joe Clarke commented on Ping after router reloads. in EEM Scripting 1 month ago

If you have the code to ping already, see How To Run an EEM Policy Every Time a Device Boots | EEM...

Joe Clarke commented on Unable to get EEM scripting to detect MAC in EEM Scripting 1 month ago

First, Cisco uses MACs in the xxxx.xxxx.xxxx format.  The second policy looks like it should work...

Joe Clarke commented on Best way to execute TCL script on Router startup/reload in EEM Scripting 1 month ago

Have a look at How To Run an EEM Policy Every Time a Device Boots | EEM Scripting | Cisco Support...

Joe Clarke commented on Auto Smartport IF/THEN statements in EEM Scripting 1 month ago

You don't need to move to Tcl, but you should consider moving to EEM proper.  Have a look at this...

Joe Clarke commented on EEM Script The Monitors CPU Levels Triggers Incorrectly in EEM Scripting 1 month ago

Just add the variable to the body: body "Value : '$_snmp_oid_val', output : '$_cli_result'" Are you...

Joe Clarke commented on EEM Script for license installation (multiple routers) in EEM Scripting 1 month ago

You'll have to provide more information and show how you would do each step manually on a couple of...

Joe Clarke commented on EEM Script The Monitors CPU Levels Triggers Incorrectly in EEM Scripting 1 month ago

A few concerns. 1. You are only looking at one CPU when the sup has four.  The switch will likely...

Joe Clarke commented on Check that EEM applet is able to send email otherwise retry sending the email. in EEM Scripting 1 month ago

You can use the error handler in EEM. action X handle-error type ignore Then you can test $_error...

Joe Clarke commented on EEM: Get Interface Mode? in EEM Scripting 1 month ago

Never use the config to get operational data.  It's a dangerous practice, and it is more expensive...

Joe Clarke commented on EEM: Get Interface Mode? in EEM Scripting 1 month ago

I'm not sure it would be that much faster since you'd have to do a few SNMP queries to find the...

Joe Clarke commented on EEM: Get Interface Mode? in EEM Scripting 1 month ago

The CLI is the easiest way to do this.  SNMP would work, but you'd need to know the index mapping...

Joe Clarke commented on eem action file -no write to file possible in EEM Scripting 1 month ago

This is working for me with bootflash:file on 7.3.  I get content within the file.  Not sure if you...

Joe Clarke commented on eem action file -no write to file possible in EEM Scripting 1 month ago

I believe on NX-OS, it would be be bootflash:file.  I don't think an NX-OS device has a flash: file...

Joe Clarke commented on EEM Script for license installation (multiple routers) in EEM Scripting 1 month ago

I don't know the exact commands you'd do, but this is a very simple workflow on the surface. ...

Joe Clarke commented on Send message to all VTY lines with Tcl in EEM Scripting 1 month ago

With EEM you could do this with an applet: event manager applet send-all  event none  action 1.0...

Joe Clarke commented on Send message to all VTY lines with Tcl in EEM Scripting 1 month ago

I doubt you'll make this work anymore on modern IOS.  Tclsh was never good at interactive commands...

Joe Clarke commented on EEM script for periodic clear NAT table in EEM Scripting 1 month ago

This is fairly generic.  Can you provide more specifics as to the exact output you would like to...

Joe Clarke commented on Improving Expect script in EEM Scripting 2 months ago

You can save the output of a command after an expect block.  For example: send "command\r" expect...

Joe Clarke commented on automated configure rate limit based on time by EEM in EEM Scripting 2 months ago

If this script is working, just create another one just like it using the values of $_cron_entry2...

Joe Clarke commented on Improving Expect script in EEM Scripting 2 months ago

Try this one. #!/usr/bin/expect -f        set timeout 20        set IPaddress [lindex $argv 0...

Joe Clarke commented on Improving Expect script in EEM Scripting 2 months ago

This should work for you.  The continue will just happen based on your wrapper script. #!/usr/bin/...

Joe Clarke commented on Condition check in applet is failing in EEM Scripting 2 months ago

You do not need the "cli command" for actions 001 and 006.  "If" is an action of its own.  And, in...

Joe Clarke commented on EEM & BGP Route Dampening in EEM Scripting 2 months ago

Again, the amount of wait matters.  If the applet runs for more than 20 seconds by default it will...

Joe Clarke commented on Automatically Set Port Descriptions in EEM Scripting 2 months ago

Your slashes are wrong.  The regex to match a digit is \d and \s to match a whitespace character. ...

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.

User Badges:
  • Badge.
    Cisco Employee
  • Badge.
    Hall of Fame

    Founding Member

Joe Clarke's Stats

Points29898
Discussion started 10
Answers marked as Correct 3159
Endorsed 10
Content Rated 265
Website: