A Python
library to control lab PSUs with SNMP protocol.
- Use
pip
to installpysnmp
- If you have
nix
with flake support enabled:nix develop
Get Channel current
python3 power-supply-ctrl.py -t 169.254.0.1 -m wiener get u0 current
Turn channel on
python3 power-supply-ctrl.py -t 169.254.0.1 -m wiener set u0 on
Suppose both your source ANSI MIB file and target output director are .
:
mibdump.py --mib-source . --mib-source http://mibs.snmplabs.com/asn1/@mib@ --destination-directory . <mib_filename>
It has a total of 14 channels.
Set state (an integer) to tlpPduDeviceMainLoadCommand.1
Set state (an integer) to tlpPduOutletCommand.1.x
.
tlpDeviceNumDevices
tlpPduCircuitTotalCurrent
tlpPduControlRamp
It has a total of 12 output channels.
Set state (an integer) to outputSwitch.x
.
outputSwitch
outputVoltage
outputCurrent
outputSupervisionBehavior