UPS Connectivity without USB?

Status
Not open for further replies.

tom__w

Explorer
Joined
Mar 26, 2013
Messages
87
Hello,

I have a Smart-UPS 2200 RM XL battery backup. The unit only has a serial port and a Network interface. It does not have a USB port.

How can I connect this battery backup to my FreeNAS 9.1 box?

...T
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Easy.. use the serial port or network inferface :P
 

tom__w

Explorer
Joined
Mar 26, 2013
Messages
87
My understanding was that FreeNAS only worked with USB? How do I use the Network method (preferred)
 

tom__w

Explorer
Joined
Mar 26, 2013
Messages
87
And serial.....

I would love to know how to connect my FreeNAS box to the APC UPS via ethernet. Do I configure NUT as a slave and specify the UPS management card as the host?
 

tom__w

Explorer
Joined
Mar 26, 2013
Messages
87
Anyone able to tell me how to connect my 9.1 FreeNAS box to my APC UPS via Ethernet (the APC doesn't have USB)?
 

TheSmoker

Patron
Joined
Sep 19, 2012
Messages
225

MrKz

Dabbler
Joined
Sep 27, 2013
Messages
10
You will need to configure your APC to accept SNMP read from the IP of your FreeNAS box, once you've done that you'll need to get a little hacky with your FreeNAS box for it to use SNMP.

Out of the box SNMP doesn't work and the webinterface will not let you select the driver/port for snmp-ups correctly, in the first instance configure your UPS in the FreeNAS interface, selecting "Various ups 3" as the driver, the config will not work once saved as you cannot select the correct port, i.e. you can not define the IP of the target UPS, merely the Serial/USB port.

I accept no responsibility from this point, tinker at your own risk.

You can over come this problem by downloading your /data/freenas-v1.db and editing it in SQLlite database browser. Open the DB, browse data and edit the 'services_ups' table, change 'ups_port' to the IP address of your UPS. Save and upload the file back to your box.

Go back into the UPS config web page and add a line to the Auxiliary parameters (ups.conf) section;

community = public

my community is public2, but the default is public on most APC's.

Save this.

If you look at /etc/local/nut/ups.conf you should have something like this;

[APCUPS]
driver = snmp-ups
port = 192.168.2.250
desc = "5000"
community = public

At this point you can try and start the UPS service, it should connect. To check if the FreeNAS box can actually see the SNMP data, use;

/usr/local/libexec/nut/./snump-util

I have this working with an APC Smart-UPS RT 5000 XL at the moment.
 

max322223

Dabbler
Joined
Nov 23, 2015
Messages
13
For the record -- steps from the previous post work with 9.3.1, and APC 3000 RM XL. Plus, the port selection control on UPS configuration UI is editable, so I could enter the IP address of the UPS, and didn't have to mess with any databases.
 

nello

Patron
Joined
Dec 30, 2012
Messages
351
I used a serial connection to add a UPS to FreeNAS. In my case, my FreeNAS server didn't have a serial port, but my motherboard supported one so I had to add a card.

Is there some reason you don't want to use a serial connection?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Not that I can think of.
 
Status
Not open for further replies.
Top