-
-
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.
Merge pull request #2247 from aquette/2243-nut-scanner-generated-conf…
…-can-cause-device-name-collisions nut-scanner: fix device-name collisions in generated conf
- Loading branch information
Showing
5 changed files
with
54 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,10 @@ 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 | ||
------------ | ||
|
||
|
@@ -91,7 +95,6 @@ ports using 'X-Y', where X and Y are characters referring to the port number. | |
- a single port name. | ||
- a list of ports name, coma separated, like '/dev/ttyS1,/dev/ttyS4'. | ||
|
||
|
||
NETWORK OPTIONS | ||
--------------- | ||
|
||
|
@@ -220,20 +223,40 @@ 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 = "[email protected]" | ||
+ | ||
|
||
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: | ||
|
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