New toy :D
[flv:http://ben.akrin.com/wp-content/uploads/2012/10/IMG_1786.MOV.flv http://ben.akrin.com/wp-content/uploads/2012/10/Screen-Shot-2012-10-09-at-8.58.34-PM.png 688 387]
MDNS/Bonjour printer discovery script
Here’s a script I wrote whose purpose is to discover the printers that are currently being advertised by Bonjour on the network. The reason I wrote it was for a Nagios check that would in term verify that our printers were present. Writing it took me through the meanders of MDNS in Python & on Linux with multiple vlans. Let’s just say non-trivial.
Download
Sample output