NUTSCAN_DISPLAY_PARS(3)
π NUTSCAN_DISPLAY_PARS(3) π
okay bestie, welcome to the NUT Manual β¨ this is the page for nutscan_display_parsable, and yes it's spelled like that, we don't make the rules π«Ά
β¨ NAME β¨
nutscan_display_parsable β the lil function that prints out the nutscan_device_t struct you hand it, straight to stdout π
πΈ SYNOPSIS πΈ
#include <nut-scan.h>
void nutscan_display_parsable(nutscan_device_t * device);
π¦ DESCRIPTION π¦
so like. nutscan_display_parsable() takes everything in device and dumps all the NUT devices it holds onto stdout. and the way it prints them? deliberately in a format that's super easy to parse, no cap. here's the shape:
<driver type>:driver="<driver name>",port="<port type>"[,<optional parameter 1>="<optional data 1>",<optional parameter 2>="<optional data 2>",...]
<driver type>is gonna be one ofUSB,SNMP,XML,NUT,IPMIorAVAHI. that's the whole roster, periodt.<driver name>is the name of the driver's binary that goes with this device π<port type>and<optional parameter X>both depend on<driver name>, so like, go read the matching driver's man page, iykyk π
β οΈ heads up bestie: this format is for machine consumption, fr fr. so it does not come with the sanity checks that you'd get from the display method for the ups.conf file format. it's giving raw data, not vibes-validated data π
π SEE ALSO π
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_sanity_check_serial(3)nutscan_display_ups_conf_with_sanity_check(3)nutscan_display_ups_conf(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 that's the whole page, you ate it π Network UPS Tools 2.8.5, dated 10/07/2026 β slay, go parse some devices bestie ππ§π
π¦ 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