Re: SNMPSET illusion?
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2008/7/23 Raghavendra Prasad <[email protected]>: >>Try >> ret = netsnmp_check_vb_int_range( requests->requestvb, 1, 2); > > I may sound stupid, sometime ago I remember that this range check for > enumeration types was done automatically - I am fairly confident, which I > thought was due to parsing of MIB by snmpd ??? No - the SNMP agent does *not* use the MIB file for processing SET (or GET*) requests. It''s up to your code to handle any validation that might be required. Hence the suggestion above. The "snmpset" command does do range validation, and will simply not send requests that it knows will fail. But if you want the agent to reject invalid values, then *your* code must check for these. Dave ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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