2011-09-29 21:14:46 +03:00
'\" t
. \" Title: nut-scanner
2022-07-10 10:23:45 +03:00
. \" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
. \" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
. \" Date: 04/26/2022
2011-09-29 21:14:46 +03:00
. \" Manual: NUT Manual
2022-07-10 10:23:45 +03:00
. \" Source: Network UPS Tools 2.8.0
2011-09-29 21:14:46 +03:00
. \" Language: English
. \"
2022-07-10 10:23:45 +03:00
.TH "NUT\-SCANNER" "8" "04/26/2022" "Network UPS Tools 2\&.8\&.0" "NUT Manual"
2011-09-29 21:14:46 +03:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
nut-scanner \- scan communication buses for NUT devices
.SH "SYNOPSIS"
.sp
\fB nut\- scanner\fR \- h
.sp
\fB nut\- scanner\fR [\fI OPTIONS\fR ]
.SH "DESCRIPTION"
.sp
2012-01-24 12:22:33 +02:00
\fB nut\- scanner\fR scans available communication buses and displays any NUT\- compatible devices it has found\& .
2012-06-01 16:55:19 +03:00
.SH "INSTALLATION"
.sp
2012-08-13 00:39:31 +03:00
\fB nut\- scanner\fR 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\& .
2011-09-29 21:14:46 +03:00
.SH "OPTIONS"
.PP
\fB \- h\fR
.RS 4
Display the help text\& .
.RE
.SH "DISPLAY OPTIONS"
.PP
\fB \- N\fR | \fB \- \- disp_nut_conf\fR
.RS 4
Display result in the
\fI ups\& .conf\fR
format\& .
.RE
.PP
\fB \- P\fR | \fB \- \- disp_parsable\fR
.RS 4
Display result in a parsable format\& .
.RE
.SH "BUS OPTIONS"
.PP
\fB \- C\fR | \fB \- \- complete_scan\fR
.RS 4
Scan all available communication buses (default behavior)
.RE
.PP
\fB \- U\fR | \fB \- \- usb_scan\fR
.RS 4
2012-01-24 12:22:33 +02:00
List all NUT\- compatible USB devices currently plugged in\& .
2011-09-29 21:14:46 +03:00
.RE
.PP
\fB \- S\fR | \fB \- \- snmp_scan\fR
.RS 4
2012-01-24 12:22:33 +02:00
Scan SNMP devices\& . Requires at least a
\fI start IP\fR , and optionally, an
2011-09-29 21:14:46 +03:00
\fI end IP\fR \& . See specific SNMP OPTIONS for community and security settings\& .
.RE
.PP
\fB \- M\fR | \fB \- \- xml_scan\fR
.RS 4
Scan XML/HTTP devices\& . Broadcast a network message on the current network interfaces to retrieve XML/HTTP capable devices\& . No IP required\& .
.RE
.PP
\fB \- O\fR | \fB \- \- oldnut_scan\fR
.RS 4
Scan NUT devices (i\& .e\& . upsd daemon) on IP ranging from
\fI start IP\fR
to
\fI end IP\fR \& .
.RE
.PP
\fB \- A\fR | \fB \- \- avahi_scan\fR
.RS 4
2012-01-24 12:22:33 +02:00
Scan NUT servers using Avahi request on the current network interfaces\& . No IP required\& .
2011-09-29 21:14:46 +03:00
.RE
.PP
\fB \- I\fR | \fB \- \- ipmi_scan\fR
.RS 4
2013-11-24 17:00:12 +02:00
Scan NUT compatible power supplies available via IPMI on the current host, or over the network\& .
.RE
.PP
\fB \- E\fR | \fB \- \- eaton_serial\fR \fI serial ports\fR
.RS 4
2022-07-10 10:23:45 +03:00
Scan Eaton devices (XCP and SHUT) available via serial bus on the current host\& . This option must be requested explicitly, even for a complete scan\& .
2013-11-24 17:00:12 +02:00
\fI serial ports\fR
can be expressed in various forms:
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fI auto\fR
to scan all serial ports\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2022-07-10 10:23:45 +03:00
a single character indicating a port number (\fI 0\fR
2013-11-24 17:00:12 +02:00
(zero) for /dev/ttyS0 and /dev/ttyUSB0 on Linux,
\fI 1\fR
for COM1 on Windows,
\fI a\fR
for /dev/ttya on Solaris\& ...)
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
a range of N characters, hyphen separated, describing the range of ports using
2022-07-10 10:23:45 +03:00
\fI X\- Y\fR , where X and Y are characters referring to the port number\& .
2013-11-24 17:00:12 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
a single port name\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
a list of ports name, coma separated, like
\fI /dev/ttyS1,/dev/ttyS4\fR \& .
.RE
2011-09-29 21:14:46 +03:00
.RE
.SH "NETWORK OPTIONS"
.PP
\fB \- t\fR | \fB \- \- timeout\fR \fI timeout\fR
.RS 4
Set the network timeout in seconds\& . Default timeout is 5 seconds\& .
.RE
.PP
\fB \- s\fR | \fB \- \- start_ip\fR \fI start IP\fR
.RS 4
Set the first IP (IPv4 or IPv6) when a range of IP is required (SNMP, old_nut)\& .
.RE
.PP
\fB \- e\fR | \fB \- \- end_ip\fR \fI end IP\fR
.RS 4
Set the last IP (IPv4 or IPv6) when a range of IP is required (SNMP, old_nut)\& . If this parameter is omitted, only the
\fI start IP\fR
is scanned\& . If
\fI end IP\fR
2012-01-24 12:22:33 +02:00
is less than
\fI start IP\fR , both parameters are internally permuted\& .
.RE
.PP
\fB \- m\fR | \fB \- \- mask_cidr\fR \fI IP address/mask\fR
.RS 4
Set a range of IP using CIDR notation\& .
2011-09-29 21:14:46 +03:00
.RE
.SH "NUT DEVICE OPTION"
.PP
2012-01-24 12:22:33 +02:00
\fB \- p\fR | \fB \- \- port\fR \fI port number\fR
2011-09-29 21:14:46 +03:00
.RS 4
Set the port number of scanned NUT devices (default 3493)\& .
.RE
.SH "SNMP V1 OPTION"
.PP
\fB \- c\fR | \fB \- \- community\fR \fI community\fR
.RS 4
Set SNMP v1 community name (default = public)\& .
.RE
.SH "SNMP V3 OPTIONS"
.PP
\fB \- l\fR | \fB \- \- secLevel\fR \fI security level\fR
.RS 4
Set the
\fI security level\fR
used for SNMPv3 messages\& . Allowed values are: noAuthNoPriv, authNoPriv and authPriv\& .
.RE
.PP
\fB \- u\fR | \fB \- \- secName\fR \fI security name\fR
.RS 4
Set the
\fI security name\fR
used for authenticated SNMPv3 messages\& . This parameter is mandatory if you set
\fI security level\fR \& .
.RE
.PP
2012-01-24 12:22:33 +02:00
\fB \- w\fR | \fB \- \- authProtocol\fR \fI authentication protocol\fR
2011-09-29 21:14:46 +03:00
.RS 4
Set the
\fI authentication protocol\fR
2022-07-10 10:23:45 +03:00
used for authenticated SNMPv3 messages\& . Allowed values are MD5, SHA, SHA256, SHA384 or SHA512 (depending on Net\- SNMP library capabilities; check help of the
nut\- scanner
binary program for the run\- time supported list)\& . Default value is MD5\& .
2011-09-29 21:14:46 +03:00
.RE
.PP
2012-01-24 12:22:33 +02:00
\fB \- W\fR | \fB \- \- authPassword\fR \fI authentication pass phrase\fR
2011-09-29 21:14:46 +03:00
.RS 4
Set the
\fI authentication pass phrase\fR
used for authenticated SNMPv3 messages\& . This parameter is mandatory if you set
\fI security level\fR
to authNoPriv or authPriv\& .
.RE
.PP
\fB \- x\fR | \fB \- \- privProtocol\fR \fI privacy protocol\fR
.RS 4
Set the
\fI privacy protocol\fR
2022-07-10 10:23:45 +03:00
used for encrypted SNMPv3 messages\& . Allowed values are DES, AES, AES192 or AES256 (depending on Net\- SNMP library capabilities; check help of the
nut\- scanner
binary program for the run\- time supported list)\& . Default value is DES\& .
2011-09-29 21:14:46 +03:00
.RE
.PP
\fB \- X\fR | \fB \- \- privPassword\fR \fI privacy pass phrase\fR
.RS 4
Set the
\fI privacy pass phrase\fR
used for encrypted SNMPv3 messages\& . This parameter is mandatory if you set
\fI security level\fR
to authPriv\& .
.RE
2013-11-24 17:00:12 +02:00
.SH "IPMI OPTIONS"
.PP
\fB \- b\fR | \fB \- \- username\fR \fI username\fR
.RS 4
Set the username used for authenticating IPMI over LAN connections (mandatory for IPMI over LAN\& . No default)\& .
.RE
.PP
\fB \- B\fR | \fB \- \- password\fR \fI password\fR
.RS 4
2015-04-30 16:53:36 +03:00
Specify the password to use when authenticating with the remote host (mandatory for IPMI over LAN\& . No default)\& .
2013-11-24 17:00:12 +02:00
.RE
.PP
\fB \- d\fR | \fB \- \- authType\fR \fI authentication type\fR
.RS 4
Specify the IPMI 1\& .5 authentication type to use (NONE, STRAIGHT_PASSWORD_KEY, MD2, and MD5) with the remote host (default=MD5)\& . This forces connection through the
\fI lan\fR
IPMI interface , thus in IPMI 1\& .5 mode\& .
.RE
.PP
2022-07-10 10:23:45 +03:00
\fB \- L\fR | \fB \- \- cipher_suite_id\fR \fI cipher suite identifier\fR
2013-11-24 17:00:12 +02:00
.RS 4
Specify the IPMI 2\& .0 cipher suite ID to use\& . The Cipher Suite ID identifies a set of authentication, integrity, and confidentiality algorithms to use for IPMI 2\& .0 communication\& . 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)\& .
.sp
The following cipher suite ids are currently supported (Authentication; Integrity; Confidentiality):
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 0\fR : None; None; None
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 1\fR : HMAC\- SHA1; None; None
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 2\fR : HMAC\- SHA1; HMAC\- SHA1\- 96; None
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 3\fR : HMAC\- SHA1; HMAC\- SHA1\- 96; AES\- CBC\- 128
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 6\fR : HMAC\- MD5; None; None
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 7\fR : HMAC\- MD5; HMAC\- MD5\- 128; None
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 8\fR : HMAC\- MD5; HMAC\- MD5\- 128; AES\- CBC\- 128
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 11\fR : HMAC\- MD5; MD5\- 128; None
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 12\fR : HMAC\- MD5; MD5\- 128; AES\- CBC\- 128
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 15\fR : HMAC\- SHA256; None; None
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 16\fR : HMAC\- SHA256; HMAC_SHA256_128; None
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB 17\fR : HMAC\- SHA256; HMAC_SHA256_128; AES\- CBC\- 128
.RE
.RE
2012-01-24 12:22:33 +02:00
.SH "MISCELLANEOUS OPTIONS"
.PP
\fB \- V\fR | \fB \- \- version\fR
.RS 4
Display NUT version\& .
.RE
.PP
\fB \- a\fR | \fB \- \- available\fR
.RS 4
Display available bus that can be scanned , depending on how the binary has been compiled\& . (OLDNUT, USB, SNMP, XML, AVAHI, IPMI)\& .
.RE
.PP
\fB \- q\fR | \fB \- \- quiet\fR
.RS 4
Display only scan result\& . No information on currently scanned bus is displayed\& .
.RE
2022-07-10 10:23:45 +03:00
.PP
\fB \- D\fR | \fB \- \- nut_debug_level\fR
.RS 4
Raise the debugging level\& . Use this multiple times to see more details\& .
.RE
2012-01-24 12:22:33 +02:00
.SH "EXAMPLES"
.sp
To scan USB devices only:
.sp
\fB nut\- scanner \- U\fR
.sp
To scan SNMP v1 device with public community on address range 192\& .168\& .0\& .0 to 192\& .168\& .0\& .255:
.sp
\fB nut\- scanner \- S \- s 192\& .168\& .0\& .0 \- e 192\& .168\& .0\& .255\fR
.sp
The same using CIDR notation:
.sp
\fB nut\- scanner \- S \- m 192\& .168\& .0\& .0/24\fR
.sp
2015-04-30 16:53:36 +03:00
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:
2012-01-24 12:22:33 +02:00
.sp
\fB nut\- scanner \- O \- t 10 \- m 192\& .168\& .0\& .0/25\fR
2013-11-24 17:00:12 +02:00
.sp
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:
.sp
\fB nut\- scanner \- I \- m 192\& .168\& .0\& .0/24 \- b username \- B password\fR
.sp
To scan for Eaton serial devices on ports 0 and 1 (/dev/ttyS0, /dev/ttyUSB0, /dev/ttyS1 and /dev/ttyUSB1 on Linux):
.sp
\fB nut\- scanner \- \- eaton_serial 0\- 1\fR
.sp
To scan for Eaton serial devices on ports 1 and 2 (COM1 and COM2 on Windows):
.sp
\fB nut\- scanner \- \- eaton_serial 1\- 2\fR
2011-09-29 21:14:46 +03:00
.SH "SEE ALSO"
.sp
\fB ups.conf\fR (5)
2022-07-10 10:23:45 +03:00
.SS "Internet resources:"
2011-09-29 21:14:46 +03:00
.sp
The NUT (Network UPS Tools) home page: http://www\& .networkupstools\& .org/