NUTSCAN_SCAN_AVAHI(3)
π NUTSCAN_SCAN_AVAHI π
okay bestie, welcome to the NUT Manual β¨ this is the page for nutscan_scan_avahi from the NUT manual, section 3, and it's literally about finding your NUT services out there in the wild via mDNS π¦
πΈ NAME πΈ
nutscan_scan_avahi β scan the network for NUT services via mDNS πβ¨
π SYNOPSIS π
#include <nut-scan.h>
#include <unistd.h> /* useconds_t */
nutscan_device_t * nutscan_scan_avahi(useconds_t usec_timeout);
π DESCRIPTION π
so the nutscan_scan_avahi() function is the one that goes out there and tries to detect the NUT service via mDNS, plus all its associated devices π«Ά it does that using the Avahi library, no cap.
β οΈ You MUST call nutscan_init(3) before using this function. like, mandatory. not optional. do it first, bestie π€
and here's the tea: this function can query perspective IP addresses using the NUT protocol, and when it does that, it waits up to usec_timeout microseconds before deciding an IP address is unresponsive β³ so yeah, that timeout is doing real work.
π RETURN VALUE π
- it returns a pointer to a
nutscan_device_tstructure containing all found devices π - it returns
NULLif an error occurs, or if no device is found π (it's giving "nobody home")
π SEE ALSO π
go read these too, they're iconic:
nutscan_init(3)nutscan_scan_usb(3)nutscan_scan_xml_http_range(3)nutscan_scan_nut(3)nutscan_scan_snmp(3)nutscan_scan_ipmi(3)nutscan_display_ups_conf(3)nutscan_display_sanity_check(3)nutscan_display_sanity_check_serial(3)nutscan_display_ups_conf_with_sanity_check(3)nutscan_display_parsable(3)nutscan_new_device(3)nutscan_free_device(3)nutscan_add_option_to_device(3)nutscan_add_device_to_device(3)nutscan_cidr_to_ip(3)nutscan_scan_eaton_serial(3)
π§ Internet resources π§
http://avahi.org/π
that's the whole page, bestie, you ate it π
β¨ this was Network UPS Tools 2.8.5, dated 10/07/2026, from the NUTSCAN_SCAN_AVAHI(3) manual page β mwah, go scan something ππ¦π
π¦ where this page comes from
- fedora 43: nut-devel 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 43: nut-devel 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut-devel 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut-devel 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms