Skip to content

Does this script allow use of apctest to change EEPROM battery date after replacing UPS batteries while still supporting NUT? #14

@42Network

Description

@42Network

This is not an issue, but a question.

For years I have run NUT to share UPS status information with my HA, Proxmox, OPNsense, etc. devices. But I always struggle with the dance I have to do when replacing the APC UPS batteries, which goes like this:

  1. Try to run apctest, find out it is not installed
  2. Install apcupsd to get apctest, and apcupsd "helpfully" wipes out NUT install without me noticing
  3. Try to use apctest to update battery date but it complains it can't get access because apcupsd has the device
  4. Stop apcupsd
  5. Sucessfully use apctest to finally update battery date on the UPS
  6. Try to restart NUT "systemctl start nut-driver" only to be told it doesn't exist
  7. Reinstall NUT and spend an hour getting it happy again
  8. Repeat the above every few years, LOL

I really like your wrapper script. I am thinking it would avoid the messy middle of my steps with NUT and I can simply do steps 4 and 5.

Thoughts? I'm willing to give it a try and will report back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions