-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nut-scanner: report bogus and duplicate serial numbers [#1810]
- Loading branch information
Showing
26 changed files
with
405 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
NUTSCAN_DISPLAY_SANITY_CHECK(3) | ||
=============================== | ||
|
||
NAME | ||
---- | ||
|
||
nutscan_display_sanity_check - Display sanity check warnings about | ||
the specified `nutscan_device_t` structure on stdout. | ||
|
||
SYNOPSIS | ||
-------- | ||
|
||
#include <nut-scan.h> | ||
|
||
void nutscan_display_sanity_check(nutscan_device_t * device); | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
The *nutscan_display_sanity_check()* function calls all sanity-check | ||
analyzers against displays all NUT devices in 'device', and they may | ||
print comments to stdout. It displays them in a way that it can be | ||
directly copied into the 'ups.conf' file. | ||
|
||
It is called from *nutscan_display_ups_conf_with_sanity_check()* to | ||
provide an aggregate content for 'ups.conf' file in one shot. | ||
|
||
SEE ALSO | ||
-------- | ||
|
||
linkman:nutscan_display_ups_conf_with_sanity_check[3], | ||
linkman:nutscan_display_sanity_check_serial[3], | ||
linkman:nutscan_scan_usb[3], linkman:nutscan_scan_xml_http_range[3], | ||
linkman:nutscan_scan_nut[3], linkman:nutscan_scan_avahi[3], | ||
linkman:nutscan_scan_ipmi[3], linkman:nutscan_scan_snmp[3], | ||
linkman:nutscan_display_ups_conf[3], | ||
linkman:nutscan_display_parsable[3], linkman:nutscan_new_device[3], | ||
linkman:nutscan_free_device[3], linkman:nutscan_add_option_to_device[3], | ||
linkman:nutscan_add_device_to_device[3], linkman:nutscan_cidr_to_ip[3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
NUTSCAN_DISPLAY_SANITY_CHECK_SERIAL(3) | ||
====================================== | ||
|
||
NAME | ||
---- | ||
|
||
nutscan_display_sanity_check_serial - Display sanity check warnings | ||
about "serial" (serial number/code string) optional values in the | ||
specified `nutscan_device_t` structure on stdout. | ||
|
||
SYNOPSIS | ||
-------- | ||
|
||
#include <nut-scan.h> | ||
|
||
void nutscan_display_sanity_check_serial(nutscan_device_t * device); | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
The *nutscan_display_sanity_check_serial()* function analyzes "serial" | ||
optional field in all NUT devices in 'device', and in case of duplicate | ||
or otherwise seemingly invalid values, prints comments to stdout. | ||
It displays them in a way that it can be directly copied into the | ||
'ups.conf' file. | ||
|
||
It is called from *nutscan_display_ups_conf_with_sanity_check()* to | ||
provide an aggregate content for 'ups.conf' file in one shot. | ||
|
||
SEE ALSO | ||
-------- | ||
|
||
linkman:nutscan_display_ups_conf_with_sanity_check[3], | ||
linkman:nutscan_display_sanity_check_serial[3], | ||
linkman:nutscan_scan_usb[3], linkman:nutscan_scan_xml_http_range[3], | ||
linkman:nutscan_scan_nut[3], linkman:nutscan_scan_avahi[3], | ||
linkman:nutscan_scan_ipmi[3], linkman:nutscan_scan_snmp[3], | ||
linkman:nutscan_display_sanity_check[3], | ||
linkman:nutscan_display_ups_conf_with_sanity_check[3], | ||
linkman:nutscan_display_ups_conf[3], | ||
linkman:nutscan_display_parsable[3], linkman:nutscan_new_device[3], | ||
linkman:nutscan_free_device[3], linkman:nutscan_add_option_to_device[3], | ||
linkman:nutscan_add_device_to_device[3], linkman:nutscan_cidr_to_ip[3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
NUTSCAN_DISPLAY_UPS_CONF_WITH_SANITY_CHECK(3) | ||
============================================= | ||
|
||
NAME | ||
---- | ||
|
||
nutscan_display_ups_conf_with_sanity_check - Display the specified | ||
`nutscan_device_t` structure and sanity-check warnings on stdout. | ||
|
||
SYNOPSIS | ||
-------- | ||
|
||
#include <nut-scan.h> | ||
|
||
void nutscan_display_ups_conf_with_sanity_check(nutscan_device_t * device); | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
The *nutscan_display_ups_conf_with_sanity_check()* function displays | ||
all NUT devices in 'device' to stdout, and follows up with comments | ||
about sanity-check violations (if any). It displays them in a way that | ||
it can be directly copied into the 'ups.conf' file. | ||
|
||
SEE ALSO | ||
-------- | ||
|
||
linkman:nutscan_scan_usb[3], linkman:nutscan_scan_xml_http_range[3], | ||
linkman:nutscan_scan_nut[3], linkman:nutscan_scan_avahi[3], | ||
linkman:nutscan_scan_ipmi[3], linkman:nutscan_scan_snmp[3], | ||
linkman:nutscan_display_sanity_check[3], | ||
linkman:nutscan_display_sanity_check_serial[3], | ||
linkman:nutscan_display_ups_conf[3], | ||
linkman:nutscan_display_parsable[3], linkman:nutscan_new_device[3], | ||
linkman:nutscan_free_device[3], linkman:nutscan_add_option_to_device[3], | ||
linkman:nutscan_add_device_to_device[3], linkman:nutscan_cidr_to_ip[3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.