[Nut-upsdev] SNMP UPS: NETYS RT 1/1 UPS
Arnaud Quette
aquette.dev at gmail.com
Mon Oct 29 19:49:03 UTC 2012
2012/10/25 Ing. Ján <jan.ondrej at upjs.sk>
> Hello,
>
Hi Jan and Friedrich,
note that I've switched the thread to -upsdev since it's not anymore a user
topic...
On Wed, Oct 24, 2012 at 10:46:32PM +0200, Arnaud Quette wrote:
> >
> > great, I'll need your contrib for testing / adapting a script...
> > I'm currently completing gen-snmp-subdriver.sh.
> > it aims to do approx. the same things as gen-usbhid-subdriver.sh, but for
> > SNMP:
> >
> http://www.networkupstools.org/docs/developer-guide.chunked/ar01s04.html#hid-subdrivers
> >
> > for now, I'll need the output of the *exact* below commands:
> > $ snmpget -v1 -c XXX 192.168.14.10 .1.3.6.1.2.1.1.2.0
> > $ snmpwalk -On -v1 -c XXX 192.168.14.10 .1.3.6.1.4.1.2254.2.4
> > $ snmpwalk -Os -v1 -c XXX 192.168.14.10 .1.3.6.1.4.1.2254.2.4
> >
> > the previous one was missing the -On (forced numeric paths), and I want
> to
> > have the 3 output taken at the same time.
>
> OK, output of this script attached:
>
> snmpget -v1 -c $C $IP .1.3.6.1.2.1.1.2.0 > /tmp/snmpget.log
> snmpwalk -On -v1 -c $C $IP .1.3.6.1.4.1.2254.2.4 \
> | gzip > /tmp/snmpwalk-On.log.gz
> snmpwalk -Os -v1 -c $C $IP .1.3.6.1.4.1.2254.2.4 \
> | gzip > /tmp/snmpwalk-Os.log.gz
>
you'll find attached a first version of gen-snmp-subdriver.sh
it still needs some more polishing and documentation, but should be usable.
note that I've only with mode2 (using your files), but got compiling the
resulting files.
it would be nice if you could test the live version (mode 1), and counter
test mode 2.
from there, the mapping work is to be done. this is just an helper tool, to
facilitate the creation of a new subdriver...
cheers,
Arnaud
--
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20121029/57bff314/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gen-snmp-subdriver.sh.gz
Type: application/x-gzip
Size: 3788 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20121029/57bff314/attachment.bin>
More information about the Nut-upsdev
mailing list