> I have built a mib which is a list of scalars > Note the xpressObjects oid is .1.3.6.1.4.1.2286.85.1.1.4
OK - then why not use the 'scalar' helper? Register each MIB object using 'netsnmp_register_scalar' and giving the OID of the object (.1.3.6.1.4.1.2286.85.1.1.4) Then when a request comes in, the scalar helper will take care of deciding whether it's asking for the (sole) instance or not. Your handler routine for a given object will *only* be called when it is - a request that's asking for something else will be passed on to the appropriate handler (or else an error returned automatically). The scalar helper even takes care of turning a GETNEXT request into a GET request before calling your routine. You don't need to worry about trying to keep track of all this. The agent driving code will do it for you. Dave ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
