From: Ian Jackson Date: Tue, 27 Oct 2020 12:01:40 +0000 (+0000) Subject: pdu-snmp: Support ServerTech PDUs "Pro 1/2" aka "Sentry4" X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d2ba25b10e7ee2a6bf8b994795170e6fa0ca3447;p=osstest.git pdu-snmp: Support ServerTech PDUs "Pro 1/2" aka "Sentry4" Values from Sentry4.mib, from https://www.servertech.com/support/sentry-mib-oid-tree-downloads Useful runes used when developing and testing, with "Sentry.mib" from the Servertech zipfile renamed to "mibs/Sentry4-MIB": snmpwalk -On -m Sentry4-MIB -M +:mibs/ -Ci -v 2c -c private pdu1 iso.3.6.1.4.1.1718.4 snmpwalk -m Sentry4-MIB -M +:mibs/ -Ci -v 2c -c private pdu1 iso.3.6.1.4.1.1718.4 snmptranslate -Td -m Sentry4-MIB -M +:mibs/ Sentry4-MIB::st4OutletControlAction.1.1.2 Signed-off-by: Ian Jackson --- diff --git a/pdu-snmp b/pdu-snmp index 7424414..6138076 100755 --- a/pdu-snmp +++ b/pdu-snmp @@ -44,6 +44,13 @@ sub model_apc6 () { $baseoid_write= '.1.3.6.1.4.1.318.1.1.12.3.3.1.1.4'; } +sub model_sentry4 () { + $baseoid = ".1.3.6.1.4.1.1718.4.1.8"; + $baseoid_name = "$baseoid.2.1.3.1.1"; # st4OutletName.1.1 + $baseoid_read = "$baseoid.3.1.1.1.1"; # st4OutletState.1.1 + $baseoid_write= "$baseoid.5.1.2.1.1"; # st4OutletControlAction.1.1 +} + my $model_name = 'msw'; while (@ARGV && $ARGV[0] =~ m/^-/) {