Skip to content

Instantly share code, notes, and snippets.

@burden
Created June 20, 2022 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burden/90069ef1c0d7729d0444d681d9bbf495 to your computer and use it in GitHub Desktop.
Save burden/90069ef1c0d7729d0444d681d9bbf495 to your computer and use it in GitHub Desktop.
Power Status for APC brand UPS
#!/bin/ash
apcaccess | awk -F "[, ]+" '/STATUS/{print $(NF-1)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment