Metadata-Version: 2.0
Name: atenpdu
Version: 0.1.1
Summary: Interface for ATEN-PE PDUs
Home-page: https://github.com/mtdcr/pductl
Author: Andreas Oberritter
Author-email: obi@saftware.de
License: MIT
Download-URL: https://github.com/mtdcr/pductl
Description-Content-Type: text/markdown
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Home Automation
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Requires-Dist: pysnmp (>=4.3.2)

# 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> ...]
```


