cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1287
Views
10
Helpful
1
Comments
Joe Clarke
Cisco Employee
Cisco Employee

Here are two EEM Tcl policies that work in concert to track ports that are operationally down for a given period of time.  If they are down long enough, then the ports are administratively shutdown (or placed in a quarantine VLAN if said VLAN is defined) to prevent unknown or untracked use of them.  Each policy uses some EEM environment variables.  For the timer policy:

# This policy runs at a configured time, then checks to see if inactive ports

# have been inactive for a configured amount of time.  If so, then the ports

# will be shutdown.

#

# This policy uses the following environment variables:

#

# suspend_ports_days        : Number of days before a port is suspended.

#

# suspend_ports_config      : Path to configuration file.

#

# suspend_quarantine_vlan   : (optional) VLAN number into which ports will be moved

#                             instead of being shutdown.  If not defined, ports will be

#                             shutdown.

#

And for the syslog policy:

# This policy listens for link up syslog messages, and removes the port from

# the list of down ports.

#

# This policy uses the following environment variables:

#

# suspend_ports_config      : Path to configuration file.

#

Comments
Nisterio
Level 1
Level 1

Five Year Later, I have discovered the "ancient script" ....  Great work thanks

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco