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.7.2.tar.gz (24.8 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.7.2-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atenpdu-0.7.2.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.2 Linux/6.15.10-1.qubes.fc37.x86_64

File hashes

Hashes for atenpdu-0.7.2.tar.gz
Algorithm Hash digest
SHA256 f944150a2ceaa7255eee7b90518c1204eb624f05bed0b547d4769ab9c9c883d9
MD5 b857e6f71819efc2b10dd19f7d6d6797
BLAKE2b-256 8866d2b14c045be3ae3fbbe70c6dbaed58df169f9f004594f184b5eed059de02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: atenpdu-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.2 Linux/6.15.10-1.qubes.fc37.x86_64

File hashes

Hashes for atenpdu-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5c5a4fff98f9811c95d64d2dc6f1517ea86029706be85bc81578ca7a11ef57a
MD5 5637fe003a369efb0b0c7b79cb49c00a
BLAKE2b-256 896b2c1c0c2282f178a57256eb984f072ab293ea9a392bdb3a9e7ed6c6958c9f

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