Joe Clarke

Member Since: Feb 20, 2002

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

    Founding Member

English
Joe Clarke commented on EEM Script The Monitors CPU Levels Triggers Incorrectly in EEM Scripting 7 hours 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 2 days 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 3 days 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 3 days 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 3 days 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 3 days 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 4 days 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 week 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 week 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 week 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 week 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 3 weeks ago

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

Joe Clarke commented on EEM Script to send SNMP Trap if Input errors in EEM Scripting 3 weeks ago

Not using this event detector.  You would need to create a timer policy that looks at the output of...

Joe Clarke commented on EEM Script to send SNMP Trap if Input errors in EEM Scripting 3 weeks ago

Correct, you'd need to duplicate the applet for the four interfaces.

Joe Clarke commented on EEM & BGP Route Dampening in EEM Scripting 3 weeks ago

How long of a wait did you specify.  If you use too large of a value, you will also need to...

Joe Clarke commented on EEM Script to send SNMP Trap if Input errors in EEM Scripting 3 weeks ago

Take a look at this thread: https://supportforums.cisco.com/discussion/13284001/shut-down-interface...

Joe Clarke commented on Shut down interface based on CRC errors in EEM Scripting 3 weeks ago

It will take two polling periods at least, but it should give you what you want.

Joe Clarke commented on Shut down interface based on CRC errors in EEM Scripting 3 weeks ago

You're missing entry-type rate.

Joe Clarke commented on Shut down interface based on CRC errors in EEM Scripting 3 weeks ago

This depends.  You could set the average-factor to 2, and this would collect two samples and diff...

Joe Clarke commented on Shut down interface based on CRC errors in EEM Scripting 3 weeks ago

1. Correct. 2. Just change "increment" to rate.  This would give you the actual rate of change of...

Joe Clarke commented on Increase in memory usage by EEM in EEM Scripting 4 weeks ago

This looks to be a bug, but I have not heard of anyone reporting these exact symptoms.  I have seen...

Joe Clarke commented on Shut down interface based on CRC errors in EEM Scripting 4 weeks ago

Your applet and understanding are correct.  The polling-interval specifies how often to look at the...

Joe Clarke commented on EEM stops at cli "telnet" in EEM Scripting 1 month ago

My guess is that you need to add: action 091 cli command "enable" And you may need to make sure you...

Joe Clarke commented on EEM Script to identify and email BGP Flap in EEM Scripting 1 month ago

To do what you want, you could write the flaps to a file on flash (you can do this with applets if...

Joe Clarke commented on SNMPv3 support in EEM Scripting 1 month ago

That depends more on the SNMP manager built in to IOS than EEM.  I haven't tested this in a while...

Joe Clarke commented on Example of EEM script to block certain SNMP traps and syslogs in EEM Scripting 1 month ago

EEM cannot block syslog messages.  That requires the Embedded Syslog Manager or log discriminators...

Joe Clarke commented on EEM Script not Executing Completely in EEM Scripting 1 month ago

You should enable "debug event manager action cli" and look at the logs after the one site has the...

Joe Clarke commented on SNMPv3 support in EEM Scripting 1 month ago

As I recall, this thread was about doing polling from within an EEM policy.  No, this has not...

Joe Clarke commented on Trigger an EEM script from a Remote Server and pass data into the script in EEM Scripting 1 month ago

First, read the README.txt in the API bundle as that will give you some clues as how to get started...

Joe Clarke commented on Trigger an EEM script from a Remote Server and pass data into the script in EEM Scripting 1 month ago

I know there used to be a bug with v2 notifications (the kind used by SNMPv3), but I believe it is...

Joe Clarke commented on Trigger an EEM script from a Remote Server and pass data into the script in EEM Scripting 1 month ago

The router definitely supports SNMPv3 authPriv, but I would not use the EEM SNMP Object ED.  It is...

Joe Clarke commented on Trigger an EEM script from a Remote Server and pass data into the script in EEM Scripting 1 month ago

You could use SNMP traps from Linux to the router.  I've only ever used v1 traps for this, though...

Joe Clarke commented on Automatic switchport configuration with EEM script ... in EEM Scripting 1 month ago

Please post your current policy in its entirety.

Joe Clarke commented on Automatic switchport configuration with EEM script ... in EEM Scripting 1 month ago

Have a look at this document, especially the discussion thread below (and my follow-up from 11...

Joe Clarke commented on EEM & IP SLA in EEM Scripting 1 month ago

Action 1.2 is trying to match something in $_cli_result, but the last CLI command run was enable,...

Joe Clarke commented on Not able to register a Simple script to capture high cpu usage in EEM Scripting 1 month ago

Depending on your version of code, you may need: ::cisco::eem::event_register_wdsysmon timewin 60...

Joe Clarke commented on Not able to register a Simple script to capture high cpu usage in EEM Scripting 1 month ago

You're missing the "period" keyword in your event spec line.  You need to specify a polling period...

Joe Clarke commented on N5k EEM script to send email when a fex error is logged in EEM Scripting 1 month ago

Then you need to run it: source nxos_email.py SMTP_SERVER TO_ADDR FROM_ADDR MSG Where SMTP_SERVER...

Joe Clarke commented on N5k EEM script to send email when a fex error is logged in EEM Scripting 1 month ago

How are you running the script now?

Joe Clarke commented on pull disconnected interfaces with last input higher than 10week on a switch with EEM script in EEM Scripting 1 month ago

The config looks okay for the original behavior of the scripts.  The timer policy should run every...

Joe Clarke commented on N5k EEM script to send email when a fex error is logged in EEM Scripting 1 month ago

Right, you need to run it with those arguments.  Without any arguments, the script just...

Joe Clarke commented on N5k EEM script to send email when a fex error is logged in EEM Scripting 1 month ago

You need to call this script with arguments. as it specifies in the message that's printed out. ...

Joe Clarke commented on N5k EEM script to send email when a fex error is logged in EEM Scripting 1 month ago

The first line of the an actual script needs to be: #!/usr/bin/env python Then you'll need to fill...

Joe Clarke commented on EEM Script issue blocking show run in EEM Scripting 1 month ago

This would be a bug.  The VTYs should be cleaned up once the applet dies.  You should work with TAC...

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

Points29788
Discussion started 10
Answers marked as Correct 3146
Endorsed 9
Content Rated 265
Website: