Amazon Dash Button Events On A Catalyst
Lots of folks are detecting Amazon Dash button events by watching for ARP traffic with python.I took a slightly different approach by watching for the button's MAC address with an EEM applet.
My Mac 'n Cheese button speaks on the network twice with each push: once right when it's pushed, and then a second time about 40 seconds later.
The applet sleeps for 60 seconds after it's fired to ensure that the button only creates a single event with each press.
event manager applet macNcheese
event mat mac-address 00bb.3a4b.5a01 type add maxrun 90
action 1 syslog msg "It's Mac N Cheese time!"
action 2 cli command "enable"
action 3 cli command "copy https://username:password@some_server/path/to/events.php^V?eventtype=MAC%20N%20CHEESE%20TIME! null:"
action 4 wait 60
action 5 cli command "clear mac address-table dynamic address 00bb.3a4b.5a01"
event mat refers to "mac address table" changes. This applet fires only when the button's address is added to the table. Without the add keyword, the event would fire twice, once when the entry is added, and again when the entry is removed from the switch L2 filtering table.
I'm triggering an external event by hitting a web server that's already configured to receive Continue reading


Users are flocking to the service.
An earthquake first propelled the operator to virtualize.