cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1076
Views
0
Helpful
1
Replies

Monitoring Virtual Ports

IT_ Guy
Level 1
Level 1

Hello,  I am new to EEM and scripting in general. I would like to know if it is possible to set up a 6500 to do 'show vlan virtual port' command,  every 5 minutes or so, and alert me (email) if the counts go over a certain number? Is this possible with with EEM? How would I do this?

 

 

1 Reply 1

IT_ Guy
Level 1
Level 1

This is what I was able to come up with after some research. 

 event manager applet Port-Tracker
 description "This applet monitors vitual port counts"
 event timer watchdog time 300
 action 1.0 cli command "enable"
 action 2.0 cli command "show vlan virtual port"
 action 3.0 regexp "[0-9.]+" $_cli_result result
 action 4.0 if $_regexp_result gt 1000
 action 5.0 mail server"xxxx"
 action 6.0 else 
 action 7.0 cli command exit
 

 

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: