Hi, I created an own OID with the following line in snmpd.conf: exec .1.3.6.1.4.1.424242.1 myTest /home/mytest
/home/mytest (shell script): […] echo $4 return 0 snmpwalk returns: […] iso.3.6.1.4.1.424242.2.100.1 = INTEGER: 0 iso.3.6.1.4.1.424242.2.101.1 = STRING: "278" […] Now the question: Is it possible to declare iso.3.6.1.4.1.424242.2.101.1 = STRING: "278" as an integer and not as a string? The snmp-user needs the output as an integer. I now that it would be possible in this way: echo $4 return $4 because the return value can be found at iso.3.6.1.4.1.424242.2.100.1 The problem: shell scripts can only return 8 bit integer but this is not enough ... Or is there another way to realize an integer output? (By the way: I use net-snmp on an openWRT (kamikaze)) Thanks! Martin ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
