Skip to main content

Library to control Avocent DPDU10x PDUs

Project description

Status and Control of Avocent PDU DPDU10x DPDU20x

DPDU101 DPDU102 DPDU103 DPDU201 DPDU202 DPDU203

Tested on DPDU101

Manual UI notes:

Press and hold the key after:

  • 1 beep; it can let the meter to show up the current information, temperature and humidity in sequence.(by model)
  • 2 beep; it can let the meter to show up the IP address
  • 4 beep; it can change the way to get IP by DHCP or fixed IP.
  • 6 beep; it can reset PDU back to default setting.

Install:

pip install avocentdpdu

Usage:

from avocentdpdu.avocentdpdu import AvocentDPDU
A = AvocentDPDU('192.168.1.131', 'snmp', '1234', 8)
print(A)
switch = A.switches()[2]        # Select a switch/outlet
print(switch.name)              # Print the name given by Avocent
switch.turn_off()               # Command the outlet to turn off
A.update()                      # Status of all switches is only updated on update() and on initialization
print(A.get_current_deciamps()) # Total current (tenths of an ampere)
print(switch.is_on_string)      # Print the switch status

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

avocentdpdu-1.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

avocentdpdu-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file avocentdpdu-1.0.1.tar.gz.

File metadata

  • Download URL: avocentdpdu-1.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for avocentdpdu-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0b684ca1d2a67f6e42518702a1467bb631fe30a31ac5316827888fc3ceb9228e
MD5 4696460daa33a1167f9263096b4782d4
BLAKE2b-256 8e1c27e86709d5f9a489cae0b3b8617017ebc1d53ebbfce3f741f8d6ace14fbc

See more details on using hashes here.

File details

Details for the file avocentdpdu-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: avocentdpdu-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for avocentdpdu-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cd899c0b07ba69a56e66fb08a9b5454329d62b9674145bfca7a8d3d4c9b7dad
MD5 552e2da0d79c1b45f4c4a0f3dd1efb5f
BLAKE2b-256 75426a7df429c3aba55ef91a18e21132e9cdefd1c2249fc0235a2440bcba18bc

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