Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Can't update battery date in NUT

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 4 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gregeehG
      gregeeh
      last edited by

      Hi all,

      I've replace the battery in my APC UPS and want to update the battery date.

      [2.6.0-RELEASE][admin@pfSense.localdomain]/root: upsrw -s "battery.date=2022May1" -u admin "apcups@localhost"
      Password:
      Unexpected response from upsd: ERR READONLY
      [2.6.0-RELEASE][admin@pfSense.localdomain]/root:
      

      As you can see I'm getting a ReadOnly Error. Any ideas why?

      TIA

      PfSense running on Qotom mini PC
      CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
      UniFi AC-Lite access point

      NollipfSenseN dennypageD 2 Replies Last reply Reply Quote 0
      • NollipfSenseN
        NollipfSense @gregeeh
        last edited by

        @gregeeh Have you tried rebooting first?

        pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
        pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

        gregeehG 1 Reply Last reply Reply Quote 0
        • gregeehG
          gregeeh @NollipfSense
          last edited by

          @nollipfsense said in Can't update battery date in NUT:

          Have you tried rebooting first?

          Yes, sure have and same result.

          PfSense running on Qotom mini PC
          CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
          UniFi AC-Lite access point

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Probably your UPS simply doesn't support it:

            Not all models support this feature. Typically, cheaper hardware does not support any of them. Run upsrw with a UPS identifier to see what will work for you.
            

            Steve

            gregeehG 1 Reply Last reply Reply Quote 1
            • dennypageD
              dennypage @gregeeh
              last edited by

              As @stephenw10 notes, many UPSs, do not support updating battery date, particularly via the USB-HID interface. You may be able to do it with APC's proprietary software (PowerChute). Alternatively you can reach out on the NUT Users mailing list and see if someone has an alternative solution.

              1 Reply Last reply Reply Quote 0
              • gregeehG
                gregeeh @stephenw10
                last edited by

                @stephenw10 said in Can't update battery date in NUT:

                Probably your UPS simply doesn't support it:

                Seems you might be correct:

                [2.6.0-RELEASE][admin@pfSense.localdomain]/root: upsrw apcups@localhost
                [battery.runtime.low]
                Remaining battery runtime when UPS switches to LB (seconds)
                Type: STRING
                Maximum length: 10
                Value: 120
                
                [input.sensitivity]
                Input power sensitivity
                Type: STRING
                Maximum length: 10
                Value: medium
                
                [input.transfer.high]
                High voltage transfer point (V)
                Type: STRING
                Maximum length: 10
                Value: 266
                
                [input.transfer.low]
                Low voltage transfer point (V)
                Type: STRING
                Maximum length: 10
                Value: 180
                
                [ups.delay.shutdown]
                Interval to wait after shutdown with delay command (seconds)
                Type: STRING
                Maximum length: 10
                Value: 20
                
                [ups.delay.start]
                Interval to wait before (re)starting the load (seconds)
                Type: STRING
                Maximum length: 10
                Value: 30
                
                [2.6.0-RELEASE][admin@pfSense.localdomain]/root:
                

                PfSense running on Qotom mini PC
                CPU N3150, 2 GB memory, 32 GB SSD & 2 Realtek Gb Ethernet ports.
                UniFi AC-Lite access point

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.