Created
June 20, 2022 14:38
-
-
Save burden/90069ef1c0d7729d0444d681d9bbf495 to your computer and use it in GitHub Desktop.
Power Status for APC brand UPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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