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...

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
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

Reply via email to