Ticket #153 (assigned enhancement)

Opened 1 year ago

Last modified 1 year ago

Include avahi-find-hosts

Reported by: jwm Assigned to: lennart (accepted)
Priority: minor Milestone:
Component: avahi-utils Version:
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 on 08/09/07 14:29:55.
avahi-list.tar (10.0 kB) - added by jwm on 08/29/07 17:24:32.
avahi-list and manpage.

Change History

08/09/07 14:29:55 changed by jwm

  • attachment avahi-find-hosts added.

08/12/07 14:45:52 changed 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?

08/12/07 14:46:28 changed by lennart

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

08/13/07 13:36:44 changed 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.

08/29/07 17:24:32 changed by jwm

  • attachment avahi-list.tar added.

avahi-list and manpage.

08/29/07 17:26:45 changed 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.