Is there any way to read the interface descriptions without launching a show command each time? I'm using the script as a base but instead of using cdp neighbor, I'm using the mac address added. I'd like to check the interface description as a condition of whether to do an action or not. I'm worried that with the rate mac addresses may be learned I could be spawning hundreds or thousands of show commands on the switch. Here is a test script I was playing with: event manager applet TEST11 authorization bypass event mat interface GigabitEthernet1/0/14 type add action 001 string range "$_mat_mac_address" 0 6 action 002 set oui $_string_result action 003 syslog msg "Found OUI $oui from $_mat_mac_address" action 004 cli command "enable" action 005 cli command "show interface $_mat_intf_name | inc Description:" <----THIS IS WHAT I WANT TO DO A BETTER WAY action 006 set cdescr "" action 007 regexp "Description: ([^\n]+)" $_cli_result match cdescr action 008 string trim $cdescr action 009 set cdescr $_string_result action 010 syslog msg "cdescr is $cdescr" action 011 string range "$cdescr" 0 3 action 012 if $_string_result ne "AUTO" action 013 syslog msg "Port is ignored" action 014 elseif $oui eq "ec8e.b5" action 015 syslog msg "Port is OUI Laptop" action 016 else action 017 syslog msg "all tests failed" action 018 end
... View more
No, the situatuion which i have explained, ACE will send a RST to close the connection. Also i guess 404 is legitmate reply from server and should not be considered as a drop, unless server is sending a RST to close the same.
... View more