Vieri
2013-Jun-07 08:43 UTC
[Nut-upsuser] cannot update battery.date value of APC ups battery
Hi, I'm running this command: # upsrw -s "battery.date=2013Jun7" -u ups-mon-IT "IT-APC-BOTTOMRIGHT at 127.0.0.1" Password: OK but I'm getting this listing: # upsc IT-APC-BOTTOMRIGHT at 127.0.0.1 battery.alarm.threshold: 0 battery.charge: 100.0 battery.charge.restart: 15 battery.date: 01/10/06 battery.packs: 000 battery.runtime: 1440 battery.runtime.low: 120 battery.voltage: 55.05 battery.voltage.nominal: 048 device.mfr: APC device.model: SMART-UPS 5000 RM DL4 device.serial: CS0603110577 device.type: ups driver.name: apcsmart driver.parameter.pollinterval: 2 driver.parameter.port: /dev/UPS-3 driver.version: 2.6.3 driver.version.internal: 3.0 input.frequency: 50.00 input.quality: FF input.sensitivity: H input.transfer.high: 253 input.transfer.low: 196 input.transfer.reason: simulated power failure or UPS test input.voltage: 224.9 input.voltage.maximum: 226.2 input.voltage.minimum: 224.9 output.voltage: 224.9 output.voltage.nominal: 230 ups.delay.shutdown: 180 ups.delay.start: 000 ups.firmware: 112.1DL4.I ups.id: UPS_IDEN ups.load: 047.3 ups.mfr: APC ups.mfr.date: 01/10/06 ups.model: SMART-UPS 5000 RM DL4 ups.serial: CS0603110577 ups.status: OL ups.temperature: 024.7 ups.test.interval: 1209600 ups.test.result: NO Should I be doing something else in order to update battery.date? Maybe reset the UPS? Thanks, Vieri
Charles Lepple
2013-Jun-08 02:50 UTC
[Nut-upsuser] cannot update battery.date value of APC ups battery
On Jun 7, 2013, at 4:43 AM, Vieri wrote:> # upsrw -s "battery.date=2013Jun7" -u ups-mon-IT "IT-APC-BOTTOMRIGHT at 127.0.0.1"Have you tried using the DD/MM/YY format? On APC UPS models with USB ports, the date is stored as a packed integer, so if the firmware does support changing the date, it might expect it to be in the same format. On the other hand, there has been discussion in the past that it is not possible to change this through the NUT interfaces, e.g.: thread.gmane.org/gmane.comp.monitoring.nut.user/7786 -- Charles Lepple clepple at gmail