NUTSCAN(3)
π NUTSCAN(3) β the NUT device discovery library, bestie edition π
okay so, first things first: this is page NUTSCAN(3) from the NUT Manual, and it's literally the β¨ lore drop β¨ for the Network UPS Tools device discovery library. buckle up π
πΈ NAME πΈ
nutscan β the Network UPS Tools (NUT) device discovery library. that's her. that's the whole vibe π
β¨ DESCRIPTION β¨
The Network UPS Tools (NUT) nutscan library gives you the exact same discovery-related features that nut-scanner(8) also offers. like, same energy, different font. π
It enables the discovery of supported NUT devices (USB, SNMP, Eaton XML/HTTP and IPMI) and NUT servers (either using Avahi, or the classic connection method). she finds things. it's her whole thing. π
π¦ DISCOVERY FUNCTIONS π¦
First β and this is not optional, bestie β include the required header file:
#include <nut-scan.h>
Then, to discover new devices, use the appropriate function:
nutscan_scan_usb(3)for supported USB devices,nutscan_scan_snmp(3)for supported SNMP agents,nutscan_scan_xml_http_range(3)for Eaton Network Management Card,nutscan_scan_nut(3)for NUT servers (upsd), using the classic method (search for port),nutscan_scan_avahi(3)for NUT servers (upsd), using the mDNS (Avahi) method,nutscan_scan_ipmi(3)for supported IPMI PSU.
All of these functions return a list of devices found, using the nutscan_device_t structure. This structure is described in nutscan_add_device_to_device(3). π«Ά
Helper functions are also provided to output data using standard formats:
nutscan_display_parsable(3)for parsable output,nutscan_display_ups_conf(3)forups.confstyle,nutscan_display_ups_conf_with_sanity_check(3)forups.confstyle with comments for warnings about possible configuration problems (if any).
likeβ¦ the range of formatting options? iconic. truly. π
π ERROR HANDLING π
There is currently no specific mechanism for error handling.
not me finding out there's justβ¦ nothing. π she does not do error handling, bestie. that's the whole section. periodt.
π SEE ALSO π
nut-scanner(8), nutscan_scan_usb(3), nutscan_scan_snmp(3), nutscan_scan_xml_http_range(3), nutscan_scan_nut(3), nutscan_scan_avahi(3), nutscan_scan_ipmi(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_display_ups_conf(3), nutscan_new_device(3), nutscan_free_device(3), nutscan_add_device_to_device(3), nutscan_add_option_to_device(3), nutscan_init_ip_ranges(3), nutscan_free_ip_ranges(3), nutscan_add_ip_range(3), nutscan_cidr_to_ip(3)
π Internet resources:
and that's the whole page, no notes. π this was Network UPS Tools 2.8.5, dated 10/07/2026, living her best life as NUTSCAN(3) πβ¨π¦πΈπ π«Ά
π¦ 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