[Nut-upsuser] Tripplite UPS (SU10KRT3/1X) through snmp-ups (nut 2.6.5)

Иши Кылса ishikylsa at gmail.com
Fri Feb 14 03:49:46 UTC 2014


> Does it have the same behavior if you start from .1.3.6.1.4.1.935*.1* or .
> 1.3.6.1.4.1.935.1.1? If not, no worries - see below.
>
> Yes, says "Timeout: No Response from 10.200.254.39", Ok.


> .....
>
>
>> The important part of "mode 2" is to have the output of snmpwalk. It is
>> possible to query each OID, and manually build the *-mib.c files, but if we
>> can get snmpwalk to work, that would be easier.
>>
>> If not, the important OIDs are:
>>
>> upsBaseBatteryStatus1.3.6.1.4.1.935.1.1.1.2.1.1
>> upsBaseOutputStatus1.3.6.1.4.1.935.1.1.1.4.1.1
>>
>> Other useful diagnostic OIDs are:
>>
>> upsSmartBatteryVoltage1.3.6.1.4.1.935.1.1.1.2.2.2
>> upsSmartBatteryRunTimeRemaining 1.3.6.1.4.1.935.1.1.1.2.2.4
>> upsSmartInputLineVoltage1.3.6.1.4.1.935.1.1.1.3.2.1
>> upsSmartOutputLoad1.3.6.1.4.1.935.1.1.1.4.2.3
>>
>> (Ideally we would include everything the UPS offers, but this should be
>> enough for basic monitoring and shutdown.)
>>
>> These parameters are more than enough, even upsBaseBatteryStatus,
> upsBaseOutputStatus, upsSmartOutputLoad - is all we need. And maybe traps,
> to know when UPS goes on battery, online etc.
> As I wrote earlier, snmpget commands are working fine "snmpget -v 1 -c
> public 10.200.254.39  .1.3.6.1.4.1.935.1.1.1.4.1.1" returning correct
> results:
>
> XPPC-MIB::upsBaseOutputStatus.0 = INTEGER: onLine(2)
>
>
>
> I would like to take this opportunity to make sure that gen-snmp-subdriver
> is working, so can you please run the following commands:
>
> snmpget -v 1 -c public  -On 10.200.254.39
> .1.3.6.1.4.1.935.1.1.1.1.1.1 1.3.6.1.4.1.935.1.1.1.4.1.1 1.3.6.1.4.1.935.1.1.1.2.2.2 1.3.6.1.4.1.935.1.1.1.2.2.4 1.3.6.1.4.1.935.1.1.1.3.2.1 1.3.6.1.4.1.935.1.1.1.4.2.3
>
> snmpget -v 1 -c public  -Os 10.200.254.39
> .1.3.6.1.4.1.935.1.1.1.1.1.1 1.3.6.1.4.1.935.1.1.1.4.1.1 1.3.6.1.4.1.935.1.1.1.2.2.2 1.3.6.1.4.1.935.1.1.1.2.2.4 1.3.6.1.4.1.935.1.1.1.3.2.1 1.3.6.1.4.1.935.1.1.1.4.2.3
>
> The output of snmpwalk is very close to the output of snmpget with
> multiple OIDs, so hopefully this works.
>
>
Yes, this works fine:
snmpget -v 1 -c public -On 10.200.254.39 .1.3.6.1.4.1.935.1.1.1.1.1.1
.1.3.6.1.4.1.935.1.1.1.2.1.1 .1.3.6.1.4.1.935.1.1.1.2.2.1
.1.3.6.1.4.1.935.1.1.1.2.2.3

.1.3.6.1.4.1.935.1.1.1.1.1.1.0 = STRING: "Intelligent"
.1.3.6.1.4.1.935.1.1.1.2.1.1.0 = INTEGER: batteryNormal(2)
.1.3.6.1.4.1.935.1.1.1.2.2.1.0 = INTEGER: 100
.1.3.6.1.4.1.935.1.1.1.2.2.3.0 = INTEGER: 270

snmpget -v 1 -c public -On 10.200.254.39 .1.3.6.1.4.1.935.1.1.1.3.2.1
.1.3.6.1.4.1.935.1.1.1.4.1.1 .1.3.6.1.4.1.935.1.1.1.4.2.1
.1.3.6.1.4.1.935.1.1.1.4.2.2 .1.3.6.1.4.1.935.1.1.1.4.2.3

.1.3.6.1.4.1.935.1.1.1.3.2.1.0 = INTEGER: 2006
.1.3.6.1.4.1.935.1.1.1.4.1.1.0 = INTEGER: onLine(2)
.1.3.6.1.4.1.935.1.1.1.4.2.1.0 = INTEGER: 2309
.1.3.6.1.4.1.935.1.1.1.4.2.2.0 = INTEGER: 500
.1.3.6.1.4.1.935.1.1.1.4.2.3.0 = INTEGER: 7

snmpget -v 1 -c public -Os 10.200.254.39 .1.3.6.1.4.1.935.1.1.1.1.1.1
.1.3.6.1.4.1.935.1.1.1.2.1.1 .1.3.6.1.4.1.935.1.1.1.2.2.1
.1.3.6.1.4.1.935.1.1.1.2.2.3
upsBaseIdentModel.0 = STRING: "Intelligent"
upsBaseBatteryStatus.0 = INTEGER: batteryNormal(2)
upsSmartBatteryCapacity.0 = INTEGER: 100
upsSmartBatteryTemperature.0 = INTEGER: 260

snmpget -v 1 -c public -Os 10.200.254.39 .1.3.6.1.4.1.935.1.1.1.3.2.1
.1.3.6.1.4.1.935.1.1.1.4.1.1 .1.3.6.1.4.1.935.1.1.1.4.2.1
.1.3.6.1.4.1.935.1.1.1.4.2.2 .1.3.6.1.4.1.935.1.1.1.4.2.3
upsSmartInputLineVoltage.0 = INTEGER: 1998
upsBaseOutputStatus.0 = INTEGER: onLine(2)
upsSmartOutputVoltage.0 = INTEGER: 2309
upsSmartOutputFrequency.0 = INTEGER: 500
upsSmartOutputLoad.0 = INTEGER: 7

Slightly changed the list, took from running snmptranslate for all
parameters:
snmptranslate -IR -On upsBaseIdentModel upsBaseBatteryStatus
upsSmartBatteryCapacity upsSmartBatteryTemperature upsSmartInputLineVoltage
upsBaseOutputStatus upsSmartOutputVoltage upsSmartOutputFrequency
upsSmartOutputLoad upsSmartControlUpsOff upsSmartControlSimulatePowerFail
upsSmartControlFlashAndBeep
.1.3.6.1.4.1.935.1.1.1.1.1.1
.1.3.6.1.4.1.935.1.1.1.2.1.1
.1.3.6.1.4.1.935.1.1.1.2.2.1
.1.3.6.1.4.1.935.1.1.1.2.2.3
.1.3.6.1.4.1.935.1.1.1.3.2.1
.1.3.6.1.4.1.935.1.1.1.4.1.1
.1.3.6.1.4.1.935.1.1.1.4.2.1
.1.3.6.1.4.1.935.1.1.1.4.2.2
.1.3.6.1.4.1.935.1.1.1.4.2.3
.1.3.6.1.4.1.935.1.1.1.6.2.1
.1.3.6.1.4.1.935.1.1.1.6.2.4
.1.3.6.1.4.1.935.1.1.1.6.2.5   (Last 3 OIDs didn't return values with
snmpget, all others returned correct values as listed above.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140214/eb0d9bb4/attachment.html>


More information about the Nut-upsuser mailing list