[Nut-upsuser] Arch Linux and Tripp Lite web snmp card issues.

Jason R Begley jayray at digitalgoat.com
Wed Feb 26 00:45:26 UTC 2014


Sorry, I just now figured out how to get a usable output.
-Option one doesn't work at all for me.

snmp_build: unknown failuresnmpget: Error building ASN.1 representation 
(Can't build OID for variable)
COUNT = 0 / 0
Creating /usr/share/snmp/mibs/ups-mib.txt-mib.h
Creating /usr/share/snmp/mibs/ups-mib.txt-mib.c
Done.

-Option 2 is attached. I ran the following to get the output.
snmpwalk -Os -v2c -c XXXXXX XXXXXXXXXXXX .1.3.6.1.4.1.850.100 -m 
//usr/share/snmp/mibs/TRIPPLITE-MIB.txt > snmpwalk-Os.log
snmpwalk -On -v2c -c XXXXXX XXXXXXXXXXXX .1.3.6.1.4.1.850.100 -m 
/usr/share/snmp/mibs/TRIPPLITE-MIB.txt > snmpwalk-On.log
./gen-snmp-subdriver.sh -s .1.3.6.1.4.1.850.100 snmpwalk-On.log 
snmpwalk-Os.log



Thanks again for the help,
Jason

On 2/25/2014 7:03 PM, Charles Lepple wrote:
> On Feb 25, 2014, at 4:23 PM, Arnaud Quette wrote:
>
>> gen-snmp-subdriver.sh simply hasn't done its job, for some reasons.
>> well, 1 clear is that's it not a completed effort... at all
>> but, still IIRC, it should have produced at least a bit more
>
> Hi Arnaud,
>
> I may not have been specific enough in my description.
>
> The crash that Jason saw is with the version of snmp-ups that is 
> currently in Git - including the new 'xppc' MIB, but the NULL pointer 
> in question is also in 'delta_ups'.
>
> Given that mib2nut[i]->oid_auto_check is only used for the "classic" 
> OID check, I think we can just add a special case to check for NULL, 
> and continue the loop if oid_auto_check has not been provided.
>
>> @Jason: how have you called the script?
>> could you please also send an archive including:
>> - the results of the adapted commands on #L73, #L74
>> https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh
>> - your mib file
>
> Jason,
>
> this would still be useful to address the issue of gen-snmp-subdriver 
> not parsing things correctly.
>
> -- 
> Charles Lepple
> clepple at gmail
>
>
>
>
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140225/5488e027/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trippups1.tar.gz
Type: application/gzip
Size: 2493 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140225/5488e027/attachment.bin>


More information about the Nut-upsuser mailing list