mardi 3 mars 2015

How can I list the IP addresses of all the AirPrint printers on a network?


I am trying to make a list of all AirPrint printers on the network at a school. We have many of them because of all the classroom and office printers, but they have not been set up with meaningful names. I tried reading the DHCP allocation table in the router, but many of the printers do not report a host name. I can't check printers in-person because of the disruption to classes from going in to every room and playing with the 1-3 printers there. The dns-sd command as in How to find IP address of my other Mac? gives a column called Instance Name, rather than the host name. Using the dns-sd -G option on the instance names gave no such record. dns-sd -Z is closer, since it gives host names to look up with the G option, but it doesn't give a complete list. There are many more printers in the add printer dialog on a Mac than there are in the output of dns-sd -Z. Does anyone have some code or script to just find all the IP addresses of things advertising by Bonjour?





Aucun commentaire:

Enregistrer un commentaire