Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

What config to enter for an APC UPS with 9630 network card?

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

Stilez

Senior Member
Joined
Apr 8, 2016
Messages
508
I've read every thread I can find on this, but none (including the guide and the NUT docs) actually say in clear terms, what config to enter on the UPS service dialog. So far I've never succeeded in getting the two communicating. I'm hoping someone who has got this working, can explain.

The UPS network card is an AP9630 with IP address 192.168.1.3, latest firmware AFAIK, and various users configured:
  • Under "Configuration" -> "Security" ->"Local Users" -> "User Management Configuration":
    - "Superuser" also used for web login, user=apc, Password=SUPASS999 (not really, but something!)
    - Various other accounts below it, under "General user management", with names like device, admin, user, etc - all disabled at the moment as nobody else uses web login.
  • Under "Configuration" -> "Network" -> "SNMPv3" (which is enabled) -> "User Profile", I have created a profile with a name "freenas-agent", authentication=SHA, privacy=AES, "authentication passphrase"=AUTHPASS999, and "privacy passphrase"=PRIVPASS999
Is this config correct and sufficient on the UPS side?

If so, what config do I need to enter in FreeNAS (and in which fields!), to make the UPS service able to work with it?

The threads on this are full of half-information that hasn't helped. Apart from putting the IP address in the "host" field, a random identifier, selecting any random item in the "Port" field (ignored for SNMP), and selecting "Master" and the correct driver, which is easy, the rest (ups+upsd params, monitor user+PW, extra users) are very unclear as to which data needs to be added in which GUI field to make this work, and how written.
 
Last edited:

Heracles

Neophyte Sage
Joined
Feb 2, 2018
Messages
903
Hi Stilez,

I do not have one of these myself, but when I see a UPS listed as "APC ups 3 (various) AP9630 SNMP monitoring card (snmp-ups privProtocol=AES)", I can not think about a better match...

So I would go with that one. Not sure if it is for SNMP v3 or v2c but some sniffing should tell you quickly.

Good luck,
 

Stilez

Senior Member
Joined
Apr 8, 2016
Messages
508
Hi Stilez,

I do not have one of these myself, but when I see a UPS listed as "APC ups 3 (various) AP9630 SNMP monitoring card (snmp-ups privProtocol=AES)", I can not think about a better match...

So I would go with that one. Not sure if it is for SNMP v3 or v2c but some sniffing should tell you quickly.

Good luck,
Thanks. Like I said, driver selection is easy, that's the one I selected already.

The problem is with the other params I mentioned, like knwoing what aux params to put in which box, and knowing which of the many accounts from the APC need entering in which boxes in the FreeNAS GUI (enter them in "monitor user" or "extra users", and how to enter any extra user passwords if needed, and which accounts from the APC to enter?), that are opaque.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,360
I just connect mine via USB cable. I don't think the network card addition works the way you want it to. It's just a webui or powerchute interface.
 

B-lennium

Neophyte
Joined
Nov 30, 2013
Messages
4
I have a AP9617 in a Smart-ups 750, I got it working trough NUT with Various 3 ups RFC1628 driver
 

danb35

Wizened Sage
Joined
Aug 16, 2011
Messages
11,946
I don't think the network card addition works the way you want it to. It's just a webui or powerchute interface.
No, the network card works perfectly for this, using the driver suggested by @Heracles. I haven't configured anything on the UPS itself; all the configuration has been on the FreeNAS box (and that's simply the driver and the IP of the UPS).

Specifically, on the UPS, I haven't done anything with the user management, I haven't done anything in SNMPv3 Access Control, and I haven't done anything in the SNMPv3 User Profiles. In the latter, I have four profiles, "apc snmp profile{1-4}", all with no authentication and no privacy.
 
Last edited:

Stilez

Senior Member
Joined
Apr 8, 2016
Messages
508
No, the network card works perfectly for this, using the driver suggested by @Heracles. I haven't configured anything on the UPS itself; all the configuration has been on the FreeNAS box (and that's simply the driver and the IP of the UPS).

Specifically, on the UPS, I haven't done anything with the user management, I haven't done anything in SNMPv3 Access Control, and I haven't done anything in the SNMPv3 User Profiles. In the latter, I have four profiles, "apc snmp profile{1-4}", all with no authentication and no privacy.
Exactly.

The AP9630/SNMPv3 UPS card should - and almost certainly can - work perfectly with NUT + this driver. But nobody has ever posted on this forum, a clear description how to configure the connection for SMNPv3 (except almost factory-default setup and absolutely-no-security SNMPv1 style which isn't correct config for an open + networked protocol like SNMP these days), and which accounts+PW from the UPS and other aux config, need to be entered in which fields?

Does anyone actually know?
 
Last edited:

EPU

Neophyte
Joined
Jul 26, 2019
Messages
10
Last edited:

Elliot Dierksen

Neophyte Sage
Joined
Dec 29, 2014
Messages
961
I'm in the same boat with an AP9619 card in a SUA1500, and found this post
I have the same settings for a AP9619 installed in a Smart-UPS 5000 RM DL4, and it works just fine for me.
 

Stilez

Senior Member
Joined
Apr 8, 2016
Messages
508
I have no idea what this log means:

MY CONFIG:

nut.png

I've used the superadmin account on the UPS to be sure that login works. The account, PW and IP are the ones I use to get into the APC UPS web UI just now; I know they're good, and so is the connection.

Log output? I don't understand the issue. The UPS is a standard APC AP9630 network card.

DAEMON LOG:

Timer daemon started​
Startup successful​
New timer: NOTIFY-COMMBAD (10 seconds)​
plugin_load: plugin "syslog" successfully loaded.​
plugin_load: plugin "threshold" successfully loaded.​
plugin_load: plugin "zfs_arc" successfully loaded.​
plugin_load: plugin "nfsstat" successfully loaded.​
plugin_load: plugin "write_graphite" successfully loaded.​
plugin_load: plugin "cputemp" successfully loaded.​
plugin_load: plugin "ctl" successfully loaded.​
plugin_load: plugin "geom_stat" successfully loaded.​
plugin_load: plugin "nut" successfully loaded.​
plugin_load: plugin "python" successfully loaded.​
plugin_load: plugin "zfs_arc_v2" successfully loaded.​
plugin = nut, key = UPS, value = my-APC@localhost:3493​
nut plugin: nut_add_ups (name = my-APC@localhost:3493);​
plugin = syslog, key = LogLevel, value = err​
Event: NOTIFY-COMMBAD
nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Unknown error
nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Unknown error
exec_cmd(/usr/local/bin/sudo /usr/local/bin/custom-upssched-cmd NOTIFY-COMMBAD) returned 1

MIDDLEWARE LOG:

(WARNING) middlewared.plugins.service_.services.base_freebsd.freebsd_service():134 - nut onestart failed with code 1: 'Startup timer elapsed, continuing...\nNetwork UPS Tools - UPS driver controller 2.7.4\n/usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut\nNo supported device detected\nNetwork UPS Tools - Generic SNMP UPS driver 0.97 (2.7.4)\n'
(WARNING) aiohttp.websocket._send_frame():571 - websocket connection is closing.
 

G. Arends

Member
Joined
Jan 20, 2015
Messages
28
I have the same problem. Haven't been able to get it working yet.
I get the following error: nas collectd[92015]: nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused
 

G. Arends

Member
Joined
Jan 20, 2015
Messages
28
So, I think I have it working. It's just that collectd is not able to connect?

My config looks as follows:
Code:
root@nas:~ # cat /usr/local/etc/nut/upsd.conf
LISTEN 0.0.0.0 3493
LISTEN ::0 3493

root@nas:~ # cat /usr/local/etc/nut/ups.conf
[apcnmc2]
    driver = snmp-ups
    port = 192.168.1.20
    desc =


The driver selected was: APC ups 3 Smart-UPS RT XL AP9618 SNMP monitoring card (snmp-ups)
Make sure you have enabled SNMPv1 on the UPS Network Management Card 2.
Also, it uses the default community name of public

From the cli, I executed the following:
Code:
root@nas:~ # upsc apcnmc2
battery.charge: 100.00
battery.runtime: 3060.00
battery.runtime.low: 300.00
battery.temperature: 23.00
battery.voltage: 27.20
device.mfr: APC
device.model: Smart-UPS 1000
device.type: ups
driver.name: snmp-ups
driver.parameter.pollinterval: 2
driver.parameter.port: 192.168.1.20
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: ietf MIB 1.5
driver.version.internal: 0.97
input.bypass.current: 1.90
input.bypass.frequency: 60.00
input.bypass.phases: 1.00
input.bypass.realpower: 0.00
input.bypass.voltage: 0.00
input.current: 0.00
input.frequency: 59.90
input.frequency.nominal: 60.00
input.phases: 1.00
input.realpower: 0.00
input.transfer.high: 136.00
input.transfer.low: 97.00
input.voltage: 128.00
output.current: 1.90
output.frequency: 59.90
output.frequency.nominal: 60.00
output.phases: 1.00
output.power.nominal: 1000.00
output.realpower: 0.00
output.realpower.nominal: 700.00
output.voltage: 128.00
output.voltage.nominal: 120.00
ups.beeper.status: enabled
ups.firmware: UPS 09.3 (ID18)
ups.load: 30.00
ups.mfr: APC
ups.model: Smart-UPS 1000
ups.start.auto: no
ups.status: OL
ups.test.result: no test initiated
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.timer.start: -1
 
Last edited:
Top