I've missed one more comment (see the end of the mail)<br><br><div class="gmail_quote">2011/11/8 Arnaud Quette <span dir="ltr"><<a href="mailto:aquette.dev@gmail.com">aquette.dev@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Mathieu,<div><div class="h5"><br><br><div class="gmail_quote">2011/11/7 Mathieu Simon <span dir="ltr"><<a href="mailto:mathieu.sim@gmail.com" target="_blank">mathieu.sim@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





G'day<br>
<br>
I'm currently using NUT on Debian squeeze box in the same subnet with an IBM<br>
3000 HV (branded Eaton 5125 with Web/SNMP card),  now I wanted to get our<br>
storage appliance running NexentaStor 3.1 set up to be using NUT too. Nexenta-<br>
Stor is an OpenSolaris / illumos-based appliance OS currently using<br>
NUT packages<br>
from ubuntu hardy.<br>
<br>
My question here is whether I'm running into a<br>
- network configuration (Firewall) problem?<br>
- config error?<br>
- problem in the package?<br>
<br>
NUT version:  2.4.1<br>
Packages installed: snmp, nut, nut-snmp<br>
OS: SunOS 5.11 NexentaOS_134f (NexentaStor 3.1.1)<br>
<br>
I have set up the IBM in ups.conf as follows<br>
[ibm3000_1]<br>
 driver = snmp-ups<br>
 port = <ip-of-ups><br>
 mibs = pw<br>
 pollfreq = 30<br>
 community = public<br>
 snmp_version = v1<br>
 desc = "Rack 1: main network ups"<br>
<br>
When I startt NUT, dmesg spits out, before SMF turns nut into maintenance:<br>
Nov  7 13:36:05 museion upsd[18640]: [ID 702911 daemon.error] Can't<br>
connect to UPS [ibm3000_1] (snmp-ups-ibm3000_1): No such file or<br>
directory<br>
<br>
When launching snmp-ups driver directly using I get<br>
root@nexenta1:/# /lib/nut/snmp-ups -D -a ibm3000_1<br>
Network UPS Tools - Generic SNMP UPS driver 0.44 (2.4.1)<br>
debug level is '1'<br>
SNMP UPS driver : entering upsdrv_initups()<br>
load_mib2nut: using pw mib<br>
pw MIB wasn't found on <ip-of-ups><br>
<br>
Network: The UPS is in another subnet. Our network guy has opened port 161 betwe<br>
en the 2 boxes, and I can also do a 'snmpget' from nexenta<br>
and fetch some data with an OID of the UPS. i.e.:<br>
root@nexenta1:/# snmpget -v1 -c public <ip-of-ups>  .1.3.6.1.4.1.534.1.6.1.0<br>
SNMPv2-SMI::enterprises.534.1.6.1.0 = INTEGER: 35 (which is the battery temp)<br>
<br>
If anyone could point me in the right direction, how to debug further,<br>
I'd be grateful.<br></blockquote></div><br></div></div>first of all, IBM support in NUT is still on my (Eaton) TODO list...<br><br>I've (very) quickly looked at it, and should be able to provide something quickly.<br>
That said:<br>
- the sysOID is buggy (fix scheduled) and pointing wrongly the MGE MIB (iso.3.6.1.4.1.705.1), which is not implemented on this device.<br><br>Moreover, the NUT version you're using is using a simple "try and fail" test, that tries to match against ".1.3.6.1.4.1.534.1".<br>

And this OID is also not available:<div class="im"><br>$ snmpget -v1 -c public <ip-of-ups> .1.3.6.1.4.1.534.1<br></div>
Error in packet<br>Reason: (noSuchName) There is no such variable name in this MIB.<br>
Failed object: iso.3.6.1.4.1.534.1<br><br>I'll check all this when I have a bit more time, and will update you as soon as possible.<br><span class="HOEnZb"><font color="#888888"><a href="http://arnaud.quette.free.fr/" target="_blank"></a></font></span></blockquote>
<div><br>
IETF MIB is also implemented, so in the meantime, you will be able to 
use it (with "mibs = ietf" in ups.conf) and get the following output:<br>
<br>
battery.charge: 92.00<br>
battery.current: 0.00<br>
battery.runtime: 21420.00<br>
battery.runtime.low: 180.00<br>
battery.temperature: 0.00<br>
battery.voltage: 41.00<br>
beeper.status: enabled<br>
device.mfr: IBM<br>
device.model: IBM 1440VA/1000W Rack HV UPS<br>
device.type: ups<br>
<a href="http://driver.name">driver.name</a>: snmp-ups<br>
driver.parameter.mibs: ietf<br>
driver.parameter.pollinterval: 2<br>
driver.parameter.port: 166.99.224.166<br>
driver.version: 2.6.1<br>
driver.version.internal: 0.50 (mib: ietf 1.3)<br>
input.bypass.phases: 0.00<br>
input.current: 0.00<br>
input.frequency: 49.90<br>
input.frequency.nominal: 50.00<br>
input.phases: 1.00<br>
input.realpower: 0.00<br>
input.transfer.high: 286.00<br>
input.transfer.low: 160.00<br>
input.voltage: 239.00<br>
input.voltage.nominal: 230.00<br>
output.current: 0.00<br>
output.frequency: 0.00<br>
output.frequency.nominal: 50.00<br>
output.phases: 1.00<br>
output.power.nominal: 1440.00<br>
output.realpower: 0.00<br>
output.realpower.nominal: 1000.00<br>
output.voltage: 0.00<br>
output.voltage.nominal: 230.00<br>
ups.firmware: INV: 01.02.0012<br>
ups.firmware.aux: Network Management Card V6.00 01.05.0001<br>
ups.load: 0.00<br>
ups.mfr: IBM<br>
ups.model: IBM 1440VA/1000W Rack HV UPS<br>
ups.start.auto: yes<br>
ups.status: OFF<br>
ups.test.result: done and passed<br>
ups.timer.reboot: -1<br>
ups.timer.shutdown: -1<br>
ups.timer.start: -1<br><br>Note that I haven't made any tests, so feedback is welcome.<br><br></div></div>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>