Saturday, March 2, 2013

UPS on Netgear ReadyNas Duo

On the Netgear ReadyNas Duo you can add a UPS to prevent data loss.
But how do you manage that with out being present or able to login to your ready nas.
With the cli of course. First you have to setup the webui to handle the connection.
To do this you must login to the readynas
Click System
   >> Power
  >>> Under UPS Configuration you can select Enable network monitoring of attached UPS
      >>> Now you can enter your Ip of the host you want to check the ups status.


Here is what the output looks like

~]# upsc UPS@172.x.x.x
battery.charge: 100
battery.chemistry: PbAc
battery.runtime: 1688
battery.voltage: 27.6
driver.name: hidups
driver.parameter.lowbatt_pct: 0
driver.version: 2.0.5
ups.mfr: APC
ups.model: Back-UPS XS 1500 LCD
ups.serial: JB0648006890  
ups.status: OL

take your battery.runtime and / 49 and you get your time in mins
so mine is 
$ bcalc 1688/49
34.4489
34 mins of run time 

No comments: