Interface for ATEN-PE PDUs
Project description
# pductl - Control outlets of ATEN PE PDUs
## Requirements:
* Python 3
* PySNMP
## Installation:
```sh
python3 setup.py install
```
## Example configuration [~/.pductl]:
```json
{
"format": 1,
"pdus": {
"pdu1": {
"node": "pdu1",
"service": "snmp",
"username": "administrator",
"authkey": "AAAAAAAAAAAAAA",
"privkey": "BBBBBBBBBBBBBB"
},
"pdu2": {
"authkey": "CCCCCCCCCCCCCC",
"privkey": "DDDDDDDDDDDDDD"
},
"pdu3": {
"node": "192.168.21.19",
"service": "16161",
"username": "joe",
"authkey": "EEEEEEEEEEEEEE",
"privkey": "FFFFFFFFFFFFFF"
},
"pdu4": {
"community": "private"
},
"pdu5": {
}
}
}
```
* `authkey` and `privkey` are required for SNMPv3. On absence, SNMPv2c gets used.
* `community` defaults to `private` for SNMPv2c.
* `node` defaults to PDU entry's name.
* `service` defaults to `"snmp"`, i.e. port 161.
* `username` defaults to `"administrator"` for SNMPv3.
## Usage:
```sh
pductl [-p <PDU>] list
pductl [-p <PDU>] <on|off|reboot|status> <OUTLET> [<OUTLET> ...]
```
## Requirements:
* Python 3
* PySNMP
## Installation:
```sh
python3 setup.py install
```
## Example configuration [~/.pductl]:
```json
{
"format": 1,
"pdus": {
"pdu1": {
"node": "pdu1",
"service": "snmp",
"username": "administrator",
"authkey": "AAAAAAAAAAAAAA",
"privkey": "BBBBBBBBBBBBBB"
},
"pdu2": {
"authkey": "CCCCCCCCCCCCCC",
"privkey": "DDDDDDDDDDDDDD"
},
"pdu3": {
"node": "192.168.21.19",
"service": "16161",
"username": "joe",
"authkey": "EEEEEEEEEEEEEE",
"privkey": "FFFFFFFFFFFFFF"
},
"pdu4": {
"community": "private"
},
"pdu5": {
}
}
}
```
* `authkey` and `privkey` are required for SNMPv3. On absence, SNMPv2c gets used.
* `community` defaults to `private` for SNMPv2c.
* `node` defaults to PDU entry's name.
* `service` defaults to `"snmp"`, i.e. port 161.
* `username` defaults to `"administrator"` for SNMPv3.
## Usage:
```sh
pductl [-p <PDU>] list
pductl [-p <PDU>] <on|off|reboot|status> <OUTLET> [<OUTLET> ...]
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atenpdu-0.1.1.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atenpdu-0.1.1.tar.gz.
File metadata
- Download URL: atenpdu-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc433cbe05bba91fd16eb4aff821e99ea97229341cdc422083572b43139cb55a
|
|
| MD5 |
62f70cd20ed6b445f68ebd31fca93c05
|
|
| BLAKE2b-256 |
bdf1387debea83edd3baf98702e6251609e884ecdebceb268bedd59a88b6270b
|
File details
Details for the file atenpdu-0.1.1-py3-none-any.whl.
File metadata
- Download URL: atenpdu-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
159b98884fccf8464429d935933baeb71c7193a5a7d4da5e700464cfbfa504e4
|
|
| MD5 |
abe42f3880d67c778ad5bded5356f93c
|
|
| BLAKE2b-256 |
b428b24714c32fb9e3965385d133954dda9f10aa98a0152101e0eedabe4eb178
|