Ticket #153 (assigned enhancement)

Opened 4 years ago

Last modified 4 years ago

Include avahi-find-hosts

Reported by: jwm Owned by: lennart
Milestone: Component: avahi-utils
Keywords: Cc:

Description

avahi-find-hosts is a script that will fetch a list of FQDNs for hosts on the network that are advertising a particular service. It can also be instructed to return IP addresses or, if it makes sense for the protocol, URLs.

I'm using it to gather a list of all the desktops on my network that are up and running ssh, so I can log in and have them pull software updates. I'm probably going to use it to check that certain local NFS shares are available, too.

Attachments

avahi-find-hosts (10.1 kB) - added by jwm 4 years ago.
avahi-list.tar (10.0 kB) - added by jwm 4 years ago.
avahi-list and manpage.

Change History

Changed 4 years ago by jwm

Changed 4 years ago by lennart

  • status changed from new to assigned

Looks good to me, and I will definitely add this, given that the code looks pretty high quality and this also makes a good example how to use the Avahi D-Bus APIs from Python.

But... I think the name is a little bit confusing. Any objections if I rename this to "avahi-dump-hosts" or "avahi-list-hosts" or similar?

Also, it might make sense to filter out duplicates when dumping host names, wouldn't it?

Changed 4 years ago by lennart

Hmm, also, for merging this into Avahi I'd need a man page of some kind...

Changed 4 years ago by jwm

I'm open to suggestions on the name. I switched to avahi-find-hosts because it sucked less that avahi-services; avahi-list might be good, as it can do both hosts and URLs.

Duplicate filter on hosts is a good plan, as well as the man page. I should sort those out tomorrow evening.

Changed 4 years ago by jwm

avahi-list and manpage.

Changed 4 years ago by jwm

Fixed the duplicate bug, cleaned up the options, added handling for failing to contact avahi-daemon, and put together a manpage, as requested.

Note: See TracTickets for help on using tickets.