Patch to silence net-snmp
Status: Alpha
Brought to you by:
anthonybaxter
net-snmp is a bit noisy when it does its MIB
parsing. It parses the mibs when you do the
"import snmp"
The attached patch looks for environment var
SNMPLOGGING='0' and turns off syslog and stderr
output from net-snmp
So at the top of your py script you do something like
os.environ['MIBFILES']="/home/harryr/local/etc/mib.txt"
os.environ['SNMPLOGGING']='0'
import snmp
When compiling net-snmp (on solaris), I found it
usefull to build the static snmplib.a with the
-fPIC so that it can be sucked into snmpymodule.so
making it nicely standalone.
patch to shut up net-snmp