Skip to main content

Interface for ATEN-PE PDUs

Project description

pductl - Control outlets of ATEN PE PDUs

Installation

pip install atenpdu

Example configuration [~/.pductl]

{
  "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

pductl [-p <PDU>] list
pductl [-p <PDU>] <on|off|reboot|status> <OUTLET> [<OUTLET> ...]

Use ALL to select all outlets.

Project details


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.6.2.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

atenpdu-0.6.2-py3-none-any.whl (16.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page