NUT-SCANNER(8) | NUT Manual | NUT-SCANNER(8) |
NAME¶
nut-scanner - scan communication buses for NUT devices
SYNOPSIS¶
nut-scanner -h
nut-scanner [OPTIONS]
DESCRIPTION¶
nut-scanner scans available communication buses and displays any NUT-compatible devices it has found.
nut-scanner can also display the detected devices in various formats, including ups.conf, and ensures that the generated devices name are unique across buses.
INSTALLATION¶
nut-scanner is only built if libltdl (part of libtool development suite) is available. Available options (USB, SNMP, IPMI, ...) will vary according to the available compile time and runtime dependencies. For example, if Net-SNMP is installed, thus providing libsnmp (.so or .dll) and headers, both during compilation and runtime, then SNMP discovery will be available.
OPTIONS¶
-h
DISPLAY OPTIONS¶
-Q | --disp_nut_conf_with_sanity_check
-N | --disp_nut_conf
-P | --disp_parsable
BUS OPTIONS¶
-C | --complete_scan
-U | --usb_scan
This option can be specified several times, for more hardware link-specific details; these can be counter-productive in case of USB enumeration changes over time:
| -U | do not report any bus/device/busport details | | -UU | report bus and busport, if available | | -UUU | report bus/device/busport details | | -UUUU | report bus/device/busport details, and bcdDevice (limited use and benefit) |
Note
For reliability, it is preferable to match just by vendor and product identification, and a serial number if available and unique.
-S | --snmp_scan
-M | --xml_scan
-O | --oldnut_scan
-n | --nut_simulation_scan
-A | --avahi_scan
-I | --ipmi_scan
-E | --eaton_serial serial ports
NETWORK OPTIONS¶
-t | --timeout timeout
-s | --start_ip start IP
-e | --end_ip end IP
-m | --mask_cidr IP address/mask
NUT DEVICE OPTION¶
-p | --port port number
SNMP V1 OPTION¶
-c | --community community
SNMP V3 OPTIONS¶
-l | --secLevel security level
-u | --secName security name
-w | --authProtocol authentication protocol
-W | --authPassword authentication pass phrase
-x | --privProtocol privacy protocol
-X | --privPassword privacy pass phrase
IPMI OPTIONS¶
-b | --username username
-B | --password password
-d | --authType authentication type
-L | --cipher_suite_id cipher suite identifier
The authentication algorithm identifies the algorithm to use for session setup, the integrity algorithm identifies the algorithm to use for session packet signatures, and the confidentiality algorithm identifies the algorithm to use for payload encryption (default=3).
The following cipher suite ids are currently supported (Authentication; Integrity; Confidentiality):
MISCELLANEOUS OPTIONS¶
-V | --version
-a | --available
-q | --quiet
-D | --nut_debug_level
Note
The level of debugging needed depends both on nut-scanner and the problem you’re trying to diagnose. Therefore, first explain the problem you have with nut-scanner to a developer/maintainer, before sending them debugging output. More often than not, if you just pick a level, the output may be either too limited or too verbose to be of any use.
EXAMPLES¶
To scan USB devices only:
:; nut-scanner -U [nutdev-usb1]
driver = "snmp-ups"
port = "192.168.0.42"
To scan SNMP v1 device with public community on address range 192.168.0.0 to 192.168.0.255:
:; nut-scanner -S -s 192.168.0.0 -e 192.168.0.255 [nutdev-snmp1]
driver = "snmp-ups"
port = "192.168.0.42"
The same using CIDR notation:
:; nut-scanner -S -m 192.168.0.0/24 [nutdev-snmp1]
driver = "snmp-ups"
port = "192.168.0.42"
To scan NUT servers with a timeout of 10 seconds on IP range 192.168.0.0 to 192.168.0.127 using CIDR notation:
:; nut-scanner -O -t 10 -m 192.168.0.0/25 [nutdev-nut1]
driver = "dummy-ups"
port = "dummy-test@192.168.1.28"
To scan for power supplies, through IPMI (1.5 mode) over the network, on address range 192.168.0.0 to 192.168.0.255 using CIDR notation:
:; nut-scanner -I -m 192.168.0.0/24 -b username -B password
To scan for Eaton serial devices on ports 0 and 1 (/dev/ttyS0, /dev/ttyUSB0, /dev/ttyS1 and /dev/ttyUSB1 on Linux):
:; nut-scanner --eaton_serial 0-1
To scan for Eaton serial devices on ports 1 and 2 (COM1 and COM2 on Windows):
:; nut-scanner --eaton_serial 1-2
SEE ALSO¶
Internet resources:¶
The NUT (Network UPS Tools) home page: https://www.networkupstools.org/
09/29/2024 | Network UPS Tools 2.8.2 |