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)
await A.initialize() # Initialize one time
print(A)
switch = A.switches()[2] # Select a switch/outlet
print(switch.name) # Print the name given by Avocent
await switch.turn_off() # Command the outlet to turn off
await 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-2.0.1.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file avocentdpdu-2.0.1.tar.gz.
File metadata
- Download URL: avocentdpdu-2.0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1146923ee79b56364b1a02ba757a5cf9b620d6e86ba55e540ac92715f84f1ec6
|
|
| MD5 |
c6ba0603275e02941729e1c5fe34e300
|
|
| BLAKE2b-256 |
d7efd1ab936d5eeac11f0fde0d615e7e8e0c814e79c6f53a915c0d6790b73937
|
File details
Details for the file avocentdpdu-2.0.1-py3-none-any.whl.
File metadata
- Download URL: avocentdpdu-2.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a572effd3333472fa26236959b33e60f7d9f01f4cae0277d654713c0c32d4c60
|
|
| MD5 |
1f5edd28b54e9c988f8982ff6e66e8df
|
|
| BLAKE2b-256 |
33d454abc1aebb6619d23eca76666d4c67f27187e51ce69afd85d5f026501a9a
|