NUTSCAN_DISPLAY_SANI(3)
π NUTSCAN_DISPLAY_SANI(3) π
okay bestie, welcome to the NUT Manual page for nutscan_display_sanity_check_serial β yes the man page name is abbreviated because apparently even man pages have to fit in a fit check β¨
πΈ NAME πΈ
nutscan_display_sanity_check_serial β it displays sanity check warnings about "serial" (that's your serial number / serial code string, iykyk) optional values that live inside the nutscan_device_t structure you hand it, and it prints all of that straight to stdout. no cap.
π SYNOPSIS π
#include <nut-scan.h>
void nutscan_display_sanity_check_serial(nutscan_device_t * device);
β¨ DESCRIPTION β¨
so here's the vibe: nutscan_display_sanity_check_serial() goes through the "serial" optional field in every single NUT device inside device, and if it spots duplicates or values that are justβ¦ seemingly invalid (π), it prints comments out to stdout. and the way it prints them? it formats them so you can literally copy-paste them directly into your ups.conf file. no cleanup era required, it's giving plug-and-play π«Ά
it gets called from nutscan_display_ups_conf_with_sanity_check() so that the whole aggregate content for the ups.conf file gets built in one shot. one shot, one kill, main character energy π
π SEE ALSO π
the whole squad, fr fr:
nutscan_display_ups_conf_with_sanity_check(3)nutscan_display_sanity_check_serial(3)nutscan_scan_usb(3)nutscan_scan_xml_http_range(3)nutscan_scan_nut(3)nutscan_scan_avahi(3)nutscan_scan_ipmi(3)nutscan_scan_snmp(3)nutscan_display_sanity_check(3)nutscan_display_ups_conf_with_sanity_check(3)nutscan_display_ups_conf(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)
(and yes, nutscan_display_ups_conf_with_sanity_check(3) really does show up twice in there β iconic, we don't gatekeep, we don't edit π
)
that's the whole page bestie, go forth and sanity-check those serials π
Network UPS Tools 2.8.5 Β· 10/07/2026 β mwah, love u, bye π¦π
π¦ 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