bsnmpd
Oliver Lehmann
lehmann at ans-netz.de
Wed Mar 7 21:30:35 UTC 2007
Hi,
please keep me CCed - I'm not subscribed to questions@
Is there a way to have bsnmpd execute a script when questioning a
specific oid and returning it's output? Like it can be done with the
following config directive in net-snmp
exec .1.1.5.0 hdte /usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0
olivleh1 at fiori olivleh1> snmpwalk -v2c -c * kartoffel 1.1.5
iso.1.5.0.1.1 = INTEGER: 1
iso.1.5.0.2.1 = STRING: "hdte"
iso.1.5.0.3.1 = STRING: "/usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0"
iso.1.5.0.100.1 = INTEGER: 0
iso.1.5.0.101.1 = STRING: "31"
iso.1.5.0.101.2 = STRING: "0"
iso.1.5.0.102.1 = INTEGER: 0
iso.1.5.0.103.1 = ""
root at kartoffel /root> /usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0
31
0
--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
More information about the freebsd-questions
mailing list