NUTCONF(8) | NUT Manual | NUTCONF(8) |
NAME
nutconf - NUT configuration tool
SYNOPSIS
nutconf --help
nutconf [OPTIONS]
DESCRIPTION
nutconf tool is used to create and manipulate NUT configuration files. It also supports device scanning (to suggest configuration of devices).
INSTALLATION
The scanning feature depends on the very same compile time and run time dependencies as the nut-scanner.
OPTIONS
-h | -help | --help
-v | --verbose
--is-configured
--system
--local directory
--get-mode
--set-mode mode
Known modes are:
CONFIGURATION ENTRY SET/ADD OPTIONS
These options mostly have 2 forms: --set-... or --add-....
The difference is that the set options discard previous settings while the add options keep them.
Note that such options may be specified multiple times for one run (to enable setting multiple entries at once).
--set-monitor | --add-monitor <arguments>
'<ups_ID>' '<host>[:<port>]' '<power_value>' '<user>' '<passwd>' '(\"master\"|\"slave\")'
--set-listen | --add-listen <address> [<port>]
--set-device | --add-device <arguments>
'<ups_ID>' '<driver>' '<port>' '[<attribute>=<value>]*'
The attribute/value pairs follow device configuration syntax. Devices may have very different configuration attributes depending on the driver. Exhaustive description of them is beyond this man page and may be found in NUT documentation.
--set-notifyflags | --add-notifyflags <type> <flag>+
--set-notifymsg <type> <message>
--set-shutdowncmd <command>
--set-user | --add-user <arguments>
SCANNING OPTIONS
Availability of each scanning option depends on availability of various 3rd-party libraries both at compile time and run time.
Run the tool with the --help option to check which of the --scan-... options are actually supported.
All timeouts are in microseconds.
--scan-snmp <start IP> <stop IP> [<attribute>=<value>]*
--scan-usb
--scan-xml-http [<timeout>]
--scan-nut <start IP> <stop IP> <port> [<timeout>]
--scan-avahi [<timeout>]
--scan-ipmi <start IP> <stop IP> [<attribute>=<value>]*
Specifies 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 lan IPMI interface, thus in IPMI 1.5 mode.
Specifies 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).
The following cipher suite IDs are currently supported:
Code | Authentication | Integrity | Confidentiality |
0 | None | None | None |
1 | HMAC-SHA1 | None | None |
2 | HMAC-SHA1 | HMAC-SHA1-96 | None |
3 | HMAC-SHA1 | HMAC-SHA1-96 | AES-CBC-128 |
6 | HMAC-MD5 | None | None |
7 | HMAC-MD5 | HMAC-MD5-128 | None |
8 | HMAC-MD5 | HMAC-MD5-128 | AES-CBC-128 |
11 | HMAC-MD5 | MD5-128 | None |
12 | HMAC-MD5 | MD5-128 | AES-CBC-128 |
15 | HMAC-SHA256 | None | None |
16 | HMAC-SHA256 | HMAC_SHA256_128 | None |
17 | HMAC-SHA256 | HMAC_SHA256_128 | AES-CBC-128 |
--scan-serial <port>*
EXAMPLES
To set alternative directory for configuration files:
:; nutconf --local ~/test/nut/etc
To add another user (keeping the existing ones):
:; nutconf --add-user bart password=qwerty
To scan USB devices and serial devices (on the first two ports):
:; nutconf --scan-usb --scan-serial /dev/ttyS1 /dev/ttyS2
SEE ALSO
INTERNET RESOURCES
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
05/29/2025 | Network UPS Tools 2.8.3 |