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.4.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atenpdu-0.4.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file atenpdu-0.4.0.tar.gz.

File metadata

  • Download URL: atenpdu-0.4.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.2 Linux/5.15.78-1.fc32.qubes.x86_64

File hashes

Hashes for atenpdu-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9a7e389c2856cbacff07e80b7373039dd9116f6fa07a8a234ffe00ab02a92d73
MD5 327179b26cae36cc04f9507d0a8a9e9b
BLAKE2b-256 8dc0ae9f1bebe47988cecb0a597aa7a379827cfd78e218886f6ad3ba5d032ee4

See more details on using hashes here.

File details

Details for the file atenpdu-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: atenpdu-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.2 Linux/5.15.78-1.fc32.qubes.x86_64

File hashes

Hashes for atenpdu-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b817f830460caa5446e2bb2a1a49eafef688639760e51d5434844e39f600573d
MD5 2514e94182c0dd5d724d274f487d0768
BLAKE2b-256 c020fa19fbf2cc06dc0892c885709a578fa3acb2bf13500a7bea86de1834f298

See more details on using hashes here.

Supported by

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