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 Display the help text. -v | --verbose Increase output verbosity (may be used multiple times). --is-configured Checks whether NUT was configured, before. --system System configuration directory shall be used. --local directory Sets alternative configuration directory. --get-mode Prints current NUT configuration mode --set-mode mode Sets NUT configuration mode. Known modes are: o standalone o netserver o netclient o controlled o manual o none 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 Sets/adds a NUT monitor. Arguments: [:] (\"master\"|\"slave\") --set-listen | --add-listen
[] Sets/adds upsd daemon listen address --set-device | --add-device Sets/adds a device (typically a UPS). Arguments: [=]* 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 + Sets/adds notification flags for the notification type. Notification types are: o ONLINE (mains is present) o ONBATT (mains is gone) o LOWBATT (remaining battery capacity is low) o FSD (shutdown was forced) o COMMOK (communication with device established) o COMMBAD (lost communication with device) o SHUTDOWN (system is going down, now) o REPLBATT (UPS battery needs replacing) o NOCOMM (device is unavailable) o NOPARENT (upsmon parent process died, shutdown is impossible) Notification flags: o SYSLOG (use syslogd to log the notification) o WALL (push a message to users' terminals) o EXEC (execute a command) o IGNORE (don't act) --set-notifymsg Sets message for the specified notification type. --set-shutdowncmd Sets command used to shut the system down. --set-user | --add-user Sets/adds NUT user. Arguments: o (specifies user name). For upsmon user, it has a special form of upsmon=(master|slave) which specifies the monitoring mode. o password= sets password for the user o actions= sets actions (SET, FSD are supported) o instcmds= sets instant commands allowed for the user (may be used multiple times) SCANNING OPTIONS Availability of each scanning option depends on availability of various 3rd-party libraries both at compile time and run time. Issue the tool with the --help option to check which of the --scan-... options are actually supported. All timeouts are in microseconds. --scan-snmp [=]* Scans for SNMP devices on IP addresses from the specified range. Known attributes are: o timeout device scan timeout o community SNMP community (default: public) o sec-level security level (SNMPv3); one of noAuthNoPriv authNoPriv, authPriv o sec-name security name (SNMPv3); mandatory companion of sec-level o auth-password authentication password (SNMPv3); mandatory for authNoPriv and authPriv o priv-password privacy password (SNMPv3); mandatory for authPriv o auth-protocol authentication protocol (SNMPv3): MD5 or SHA, MD5 is the default o priv-protocol priv. protocol (SNMPv3): DES or AES, DES is the default o peer-name peer name --scan-usb Scans the USB bus for known devices --scan-xml-http [] Scans for XML/HTTP devices on the network. --scan-nut [] Scans for NUT (pseudo-)devices on the network. --scan-avahi [] Scans for Avahi devices. --scan-ipmi [=]* Scans for IPMI devices on IP addresses from the specified range. Known attributes are: o username username (mandatory for IPMI/LAN) o password user password (mandatory for IPMI/LAN) o auth-type authentication type (see below) o cipher-suite-id cipher suite ID (see below) o K-g-BMC-key optional second key (???) o priv-level priv. level o workaround-flags o version (1.5 or 2.0) Authentication types: 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. o none (authentication is disabled) o MD2 o MD5 (default) o plain-password (no ciphering used for password sending) o OEM o RMCPplus Cipher suite IDs: 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 (Authentication; Integrity; Confidentiality): o 0: None; None; None o 1: HMAC-SHA1; None; None o 2: HMAC-SHA1; HMAC-SHA1-96; None o 3: HMAC-SHA1; HMAC-SHA1-96; AES-CBC-128 o 6: HMAC-MD5; None; None o 7: HMAC-MD5; HMAC-MD5-128; None o 8: HMAC-MD5; HMAC-MD5-128; AES-CBC-128 o 11: HMAC-MD5; MD5-128; None o 12: HMAC-MD5; MD5-128; AES-CBC-128 o 15: HMAC-SHA256; None; None o 16: HMAC-SHA256; HMAC_SHA256_128; None o 17: HMAC-SHA256; HMAC_SHA256_128; AES-CBC-128 --scan-serial * Scans for serial devices (of supported types) on the specified serial ports. 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 1st two ports): nutconf --scan-usb --scan-serial /dev/ttyS1 /dev/ttyS2 SEE ALSO ups.conf(5) nut-scanner(8) INTERNET RESOURCES The NUT (Network UPS Tools) home page: http://www.networkupstools.org/ Network UPS Tools 2.8.2 11/20/2024 NUTCONF(8)