<br><div class="gmail_quote">2012/10/25 Ing. Ján <span dir="ltr"><<a href="mailto:jan.ondrej@upjs.sk" target="_blank">jan.ondrej@upjs.sk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br></blockquote><div><br>Hi Jan and Friedrich,<br> <br>note that I've switched the thread to -upsdev since it's not anymore a user topic...<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
On Wed, Oct 24, 2012 at 10:46:32PM +0200, Arnaud Quette wrote:<br>
><br>
> great, I'll need your contrib for testing / adapting a script...<br>
> I'm currently completing gen-snmp-subdriver.sh.<br>
> it aims to do approx. the same things as gen-usbhid-subdriver.sh, but for<br>
> SNMP:<br>
> <a href="http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers" target="_blank">http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers</a><br>
><br>
> for now, I'll need the output of the *exact* below commands:<br>
> $ snmpget -v1 -c XXX 192.168.14.10 .1.3.6.1.2.1.1.2.0<br>
> $ snmpwalk -On -v1 -c XXX 192.168.14.10 .1.3.6.1.4.1.2254.2.4<br>
> $ snmpwalk -Os -v1 -c XXX 192.168.14.10 .1.3.6.1.4.1.2254.2.4<br>
><br>
> the previous one was missing the -On (forced numeric paths), and I want to<br>
> have the 3 output taken at the same time.<br>
<br>
</div>OK, output of this script attached:<br>
<br>
snmpget -v1 -c $C $IP .1.3.6.1.2.1.1.2.0 > /tmp/snmpget.log<br>
snmpwalk -On -v1 -c $C $IP .1.3.6.1.4.1.2254.2.4 \<br>
  | gzip > /tmp/snmpwalk-On.log.gz<br>
snmpwalk -Os -v1 -c $C $IP .1.3.6.1.4.1.2254.2.4 \<br>
  | gzip > /tmp/snmpwalk-Os.log.gz<br></blockquote></div><br>you'll find attached a first version of gen-snmp-subdriver.sh<br>it still needs some more polishing and documentation, but should be usable.<br clear="all">
note that I've only with mode2 (using your files), but got compiling the resulting files.<br>it would be nice if you could test the live version (mode 1), and counter test mode 2.<br><br>from there, the mapping work is to be done. this is just an helper tool, to facilitate the creation of a new subdriver...<br>
<br>cheers,<br>Arnaud<br>-- <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.fr" target="_blank">http://arnaud.quette.fr</a><br><br>