I need a way to list out the last mac address known to port-security per port in IOS, and EEM may be my answer. The command "show port-security address" gets me close - it shows current mac on all up ports, like: > AS5#show port-security address ...
Yes you can. You would have to do it via EEM (Embedded Event Manager) - something along the lines of:
[catch {cli_exec $cli1(fd) "show cellular 0 gps"} _cli_result]
and
action_syslog msg "$_cli_result"
Actually the better solution would be to not use that command at all. There is no reason to create a local user on the IOS device at all. Don't include
username test priv 15 secret supers3cr3tn0bdyw1llgue55
All you need is
ip ssh pubkey-chain
...
Do the cameras have a 2nd method of finding their media server -- in the Cisco Access Points resolve a hostname (CISCOCAPWAPCONTROLLER.xxx.com) to find their controller. Is there a DNS workaround to DHCP option 125?
Here is the output of the script against a test switch (with the shameless self-promotion removed):AS1#show-last-macsLast MAC associated with all port-security switch ports:Last MAC for GigabitEthernet1/0/22 is 0014.22f4.85c8 -- Secure-upLast MAC for...
Thanks Joseph! With your code I got my script working! I'm attaching it here.Some notes of mine.1) I sure like PERL *a lot* more than TCL. I find TCL weird where I don't do a ; at the end of lines, don't declare my variables with $ and not having ...