<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>[Please keep the list CC'd. Thanks!]</div><div><br></div><div>On Feb 13, 2014, at 4:55 AM, Иши Кылса wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap:break-word"><div><div dir="ltr"><div><div dir="ltr"><div>Can you try adding "-v 1" to the snmpwalk command? If that works, we can add it to gen-snmp-subdriver.sh.</div><div></div></div></div>
</div></div></div></blockquote><div><br>Yes, I tried it before, ran command "snmpwalk -v 1 -On -c public 10.200.254.39 .1.3.6.1.4.1.935" <br><br>Output:<br>.1.3.6.1.4.1.935 = NULL<br>Error: OID not increasing: .1.3.6.1.4.1.935<br>
 >= .1.3.6.1.4.1.935<br><br></div><div>To solve this error in some forums it is advised to use "-Cc":<br>snmpwalk -Cc -v 1 -On -c public 10.200.254.39 .1.3.6.1.4.1.935<br></div><div>But it outputs infinitely the following:<br>
.1.3.6.1.4.1.935 = NULL<br>.1.3.6.1.4.1.935 = NULL<br></div></div></div></div></blockquote><div><br></div><div>Does it have the same behavior if you start from .1.3.6.1.4.1.935<b>.1</b> or .1.3.6.1.4.1.935.1.1? If not, no worries - see below.</div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>.....<br></div><div></div><div> </div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; "><div style="word-wrap:break-word">
<div>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.</div><div>
<br></div><div>If not, the important OIDs are:</div><div><br></div><div><table style="margin:0px;padding:0px;color:rgb(80,80,80);font-family:Tahoma,Verdana,Arial,sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:100;letter-spacing:normal;line-height:19px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" bgcolor="#ebebeb" border="0" hspace="0" width="100%">
<tbody style="margin:0px;padding:0px"><tr style="margin:0px;padding:0px" bgcolor="#EBEBEB"><td style="margin:0px;padding:0px;font-size:12px">upsBaseBatteryStatus</td><td style="margin:0px;padding:0px;font-size:12px">1.3.6.1.4.1.935.1.1.1.2.1.1</td>
</tr></tbody></table><div><table style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(80, 80, 80); font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 100; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; position: static; z-index: auto; " bgcolor="#ebebeb" border="0" hspace="0" width="100%">
<tbody style="margin:0px;padding:0px"><tr style="margin:0px;padding:0px" bgcolor="#EBEBEB"><td style="margin:0px;padding:0px;font-size:12px">upsBaseOutputStatus</td><td style="margin:0px;padding:0px;font-size:12px">1.3.6.1.4.1.935.1.1.1.4.1.1</td>
</tr></tbody></table><div><br></div></div></div><div>Other useful diagnostic OIDs are:</div><div><br></div><div><table style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(80, 80, 80); font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 100; letter-spacing: normal; line-height: 19px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; position: static; z-index: auto; " bgcolor="#ebebeb" border="0" hspace="0" width="100%">
<tbody style="margin:0px;padding:0px"><tr style="margin:0px;padding:0px" bgcolor="#DCDCDC"><td style="margin:0px;padding:0px;font-size:12px">upsSmartBatteryVoltage</td><td style="margin:0px;padding:0px;font-size:12px">1.3.6.1.4.1.935.1.1.1.2.2.2</td>
</tr></tbody></table><div><table style="margin:0px;padding:0px;color:rgb(80,80,80);font-family:Tahoma,Verdana,Arial,sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:100;letter-spacing:normal;line-height:19px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" bgcolor="#ebebeb" border="0" hspace="0" width="100%">
<tbody style="margin:0px;padding:0px"><tr style="margin:0px;padding:0px" bgcolor="#DCDCDC"><td style="margin:0px;padding:0px;font-size:12px">upsSmartBatteryRunTimeRemaining</td><td style="margin:0px;padding:0px;font-size:12px">
1.3.6.1.4.1.935.1.1.1.2.2.4</td></tr></tbody></table><div><table style="margin:0px;padding:0px;color:rgb(80,80,80);font-family:Tahoma,Verdana,Arial,sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:100;letter-spacing:normal;line-height:19px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" bgcolor="#ebebeb" border="0" hspace="0" width="100%">
<tbody style="margin:0px;padding:0px"><tr style="margin:0px;padding:0px" bgcolor="#DCDCDC"><td style="margin:0px;padding:0px;font-size:12px">upsSmartInputLineVoltage</td><td style="margin:0px;padding:0px;font-size:12px">1.3.6.1.4.1.935.1.1.1.3.2.1</td>
</tr></tbody></table><div><table style="margin:0px;padding:0px;color:rgb(80,80,80);font-family:Tahoma,Verdana,Arial,sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:100;letter-spacing:normal;line-height:19px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" bgcolor="#ebebeb" border="0" hspace="0" width="100%">
<tbody style="margin:0px;padding:0px"><tr style="margin:0px;padding:0px" bgcolor="#DCDCDC"><td style="margin:0px;padding:0px;font-size:12px">upsSmartOutputLoad</td><td style="margin:0px;padding:0px;font-size:12px">1.3.6.1.4.1.935.1.1.1.4.2.3</td>
</tr></tbody></table><div><br></div></div></div></div></div><div>(Ideally we would include everything the UPS offers, but this should be enough for basic monitoring and shutdown.)</div><br></div></blockquote></div>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.<br>
</div><div class="gmail_extra">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:<br><br>XPPC-MIB::upsBaseOutputStatus.0 = INTEGER: onLine(2)<br>
<br></div><div class="gmail_extra"><br></div></div>
</blockquote><br></div><div>I would like to take this opportunity to make sure that gen-snmp-subdriver is working, so can you please run the following commands:</div><div><br></div><div><div dir="ltr"><div class="gmail_extra">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</div></div></div><div><br></div>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<div><br></div><div>The output of snmpwalk is very close to the output of snmpget with multiple OIDs, so hopefully this works.</div><div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>