> On Tue, 21 Jun 2005 15:12:47 -0700 (PDT) Mihir wrote: > ML> Now, when I generate a trap with an object that has a wrong > 'type', > ML> snmptrapd rightly complains with a message like: > ML> "Wrong Type (should be INTEGER): STRING: "foo" > ML> > ML> However when I generate a trap for an object defined to be of > ML> SYNTAX INTEGER ( 0..100) > ML> > ML> .. with a value of 102, snmptrapd does not complain. > ML> > ML> Is there anyway I can make snmptrapd complain about this? Is this > ML> information available in the tree that is populated when the MIB > file > ML> is parsed? > > The info should be in the tree, so you could add some code to > snmptrapd to > check ranges. I think snmpset does this type of checking, so you > could start > looking there... you might even make snmptrap check this and complain > before > sending the trap... >
Just an FYI, snmpset doesn't seem to be doing range checking. It relies on the agent to return a "wrong value" error code. The information is there in the tree though so I can get to it. thanks, mihir __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users