On 7 July 2011 15:09, <[email protected]> wrote: > I have added the following line to snmpd.conf file: > > extend typefile3 cscript c:\str2num.vbs c:\drives.txt > > However - the values wind up in a variable-type Octet String
That's correct. The 'extend' (and 'exec') extension mechanisms are very general, and hence report printed output as string values (since this works with *any* command). If you need the script to return a number, then try tweaking the script to exit with the desired value (rather than printing it). This will be reported using the nsExtendResult MIB object. If that doesn't meet your needs, then you'll probably have to define a new MIB module (and write code to implement it!) Dave ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
