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

Stilez

Guru
Joined
Apr 8, 2016
Messages
529
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

Wizard
Joined
Feb 2, 2018
Messages
1,401
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

Guru
Joined
Apr 8, 2016
Messages
529
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,421
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

Cadet
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

Hall of Famer
Joined
Aug 16, 2011
Messages
15,466
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

Guru
Joined
Apr 8, 2016
Messages
529
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

Dabbler
Joined
Jul 26, 2019
Messages
12
@Stilez I'm in the same boat with an AP9619 card in a SUA1500, and found this post

https://www.ixsystems.com/community/threads/freenas-with-apc-ups.76578/

In my case, setting the parameters as below enabled it to work fine

1597934349734.png


Is this what you meant or have I misunderstood ?
 
Last edited:
Joined
Dec 29, 2014
Messages
1,135
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

Guru
Joined
Apr 8, 2016
Messages
529
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.
 

gdarends

Explorer
Joined
Jan 20, 2015
Messages
72
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
 

gdarends

Explorer
Joined
Jan 20, 2015
Messages
72
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:

dovla091

Cadet
Joined
Feb 5, 2020
Messages
9
Hi to all.
I must admit that all these answers make a huge confusion (at least in my case).
I consider myself an average intelligent person, but this partial answers really makes hard to follow.

I have situation where I have APC SRT10KRMXLI which has network card on top model: AP9537SUM and TrueNAS Core 12.0-U5 (latest verion)
Now I tried both drivers APC and various,
driver-config.png


with this configuration in the APC (please note that SNMPv1 I have disabled, as I don't want to use it due to security concerns, only SNMPv3 must be used).

apc1.PNG


apc2.PNG


apc3.PNG


Please note that I have restarted NMC2 network card after applying this settings
With configuration in TrueNAS Core as:

truenas-config.PNG


Now to point out that I can PING both devices as they are in the same network range and firewall is not blocking any communication.
For some reason I cannot get these two things to communicate together.

host <truenas> - upsmon 10875 - - UPS [apc@localhost:3493]: connect failed: Connection failure: Connection refused

I have several questions:
1. which driver is more suitable for this type of APC UPS?
2. In the APC I have disabled SNMPv1 and left only SNMPv3 to be active with this parameters from the picture... Where is authentication passphrase and privacy passphrase set in TrueNAS and how?
3. Is the APC SNMPv3 access and control list set correctly?
4. Is configuration of the UPS service in TrueNAS Core set correctly, or am I missing something.
5. Do I need to do any other configuration except edit UPS service and turn it on?
6. How can I get all the input from TrueNAS via terminal to check if there is successful connection established between those two devices?

Looking forward for your reply.
Brgds
 
Last edited:

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,946
I gave up and just used the USB connection for the NAS. I use the APC software for the VMWare setup
 

dovla091

Cadet
Joined
Feb 5, 2020
Messages
9
I gave up and just used the USB connection for the NAS. I use the APC software for the VMWare setup
I am guessing that it is a problem with a driver, as not even SNMPv1 work, and it is not picking up any info from the battery, so my solution was to use powerchute which is controlling VMWare, but also it has option to execute commands via SSH, so I created script to issue /sbin/shutdown -p now
 

chashock

Cadet
Joined
Dec 13, 2021
Messages
1
Apologies for tagging onto an older post, but I've been reviewing UPS setup posts in the forums and wondering if anyone has had a breakthrough when it comes to snmp cards, like the Tripp Lite SNMPWebCard?

I've tried every combo I can think of but can't seem to get past the can't connect to ups@localhost:3493 error many posts also list. This should be generic enough to work, but NUT seems to not be very active, I don't find user groups or forums for them (maybe I'm just missing something here) and snmp communication is a standard, so receiving a trap should relatively straightforward. Not having the ability to shutdown storage and prevent corruption is about to become a show-stopper for my use of TrueNAS, which would really stink.
 
Top