An open API service indexing awesome lists of open source software.

https://github.com/fidgetingbits/cyberpower-pdu.sh

Updated version of archived cyberpower-pdu project
https://github.com/fidgetingbits/cyberpower-pdu.sh

Last synced: 11 months ago
JSON representation

Updated version of archived cyberpower-pdu project

Awesome Lists containing this project

README

          

# cyberpower-pdu.sh

This is an improved version of the archived [cyberpower-pdu](https://github.com/gportay/cyberpower-pdu).

## NAME

**cyberpower-pdu** - manages remote outlets

## SYNOPSIS

**cyberpower-pdu** [IP|HOSTNAME]

**cyberpower-pdu** [IP|HOSTNAME] [OUTLET_NUM|OUTLET_NAME]

**cyberpower-pdu** [IP|HOSTNAME] [OUTLET_NUM|OUTLET_NAME] [ACTION|RENAME ]

## DESCRIPTION

**cyberpower-pdu(1)** runs on top of [snmpwalk(1)] and [snmpset(1)] to manage
outlets.

## ACTIONS

**1** or **on**
Turn On.

**2** or **off**
Turn Off.

**3** or **reboot**
Reboot.

**4** or **cancel**
Cancel pending command.

## EXAMPLES

Lists all outlets:

$ cyberpower-pdu 127.0.0.1
my_first_outlet OFF
your_second_outlet ON

Get status for the first outlet:

$ cyberpower-pdu localhost my_first_outlet
ON

Turn off the second outlet

$ cyberpower-pdu localhost 2 off
OFF

Rename an outlet

$ cyberpower-pdu 127.0.0.1 your_second_outlet rename new_name
Renamed outlet 2 from your_second_outlet to new_name

## INSTALLATION

$ sudo apt-add-repository multiverse && sudo apt-get update
$ sudo apt install snmp snmp-mibs-downloader

## AUTHOR

cyberpower-pdu.sh is written and maintained by *fidgetingbits*

The original [cyberpower-pdu](https://github.com/gportay/cyberpower-pdu) project was written by Gaël PORTAY
*gael.portay@gmail.com* and one unmerged PR from that project I used was written by Blu Wireless Technology
Ltd.

## COPYRIGHT

Copyright (C) 2019 Gaël PORTAY
Copyright (C) 2021 Blu Wireless Technology Ltd.
Copyright (C) 2024 fidgeting bits

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

## SEE ALSO

[snmpwalk(1)], [snmpset(1)]

[snmpwalk(1)]: https://linux.die.net/man/1/snmpwalk
[snmpset(1)]: https://linux.die.net/man/1/snmpset