Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions PortFlap_email_alert/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
# port_flap_email_alert script will send an email alert if an interface is flapping
# port_flap_email_alert script will send an email alert if an interface is flapping

If an interface has flapped 5 times in last 5 minutes this script will shutdown that interface. You can change the flapping count to whatever you want. Then the script will wait for 5 mins and enable the shutdown interface. If that interface still flapping at least once script will shutdown the interface and will send an email alert.

## requirements

-- IOS-XE running >/= 16.5.1

## Setup

This script requires the IOS-XE guestshell feature. To enable guestshell, configure
* This script requires the IOS-XE guestshell feature. To enable guestshell, configure

```
iox
```
```

Then type the following in EXEC mode:
* Then type the following in EXEC mode:

```
guestshell enable
```

Save the script port_flap_email_alert.py in guestshell.
* Save the script port_flap_email_alert.py in guestshell.

Next, configure the EEM environment using EEM_configuration file. Embedded Event Manager (EEM) is a distributed and customized approach to event detection and recovery. EEM offers the ability to monitor events and take informational, corrective, or any desired EEM action when the monitored events occur or when a threshold is reached.
* Next, configure the EEM environment using EEM_configuration file. Embedded Event Manager (EEM) is a distributed and customized approach to event detection and recovery. EEM offers the ability to monitor events and take informational, corrective, or any desired EEM action when the monitored events occur or when a threshold is reached.