Oliver Lehmann lehmann at
Wed Mar 7 21:30:35 UTC 2007


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 . hdte /usr/local/snmp-scripts/ ata /dev/ad0

olivleh1 at fiori olivleh1> snmpwalk -v2c -c * kartoffel 1.1.5
iso. = INTEGER: 1
iso. = STRING: "hdte"
iso. = STRING: "/usr/local/snmp-scripts/ ata /dev/ad0"
iso. = INTEGER: 0
iso. = STRING: "31"
iso. = STRING: "0"
iso. = INTEGER: 0
iso. = ""

root at kartoffel /root> /usr/local/snmp-scripts/ ata /dev/ad0

 Oliver Lehmann

More information about the freebsd-questions mailing list