> From: mn kh [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 07, 2008 11:25 PM

> 1-all of my MIB object instances are of Counter type, 
> shouldn't I return NULL?

        Never!

Counter32 ::=
    [APPLICATION 1]
        IMPLICIT INTEGER (0..4294967295)

        You must define an initial value for your counter (note that this may 
be any valid value - the value 0 has no special meaning syntactically, but 
typically has semantic meaning and is usually used as an initial value).  You 
may increment that value, by any amount, during subsequent reads, as your 
business logic demands, but it must never decrease or present a negative or 
null value.

> 2-when I used a dynamically loaded subagent, and I send the 
> same request (snmpwalk), the exact variable is 0 in contrast 
> to the agentx subagent which sends exact=1 and then it 
> becomes 0 so I thought there is smthg wrong? is there?

        Probably not.  If you are getting the correct value returned, then 
don't worry about this.  This is probably just an artifact of 
registration/implementation details.

> 3-I have added to the end of file my MIB implementation, 
> there are no tables in this MIB

        Yep.  I understand a lot more now, thanks.

> 4-what I ment in my -t argument is that when I increase the 
> timeout and after that snmpwalk walk the tree thousands of 
> times (I think) it outputs the correct the result but this is 
> only when i increse the timeout

        First, let's not use snmpwalk yet, as it is an application, not a 
command.  I would suggest starting with `snmpget JINNY-MMSC-MIB:msend-ok.0` to 
test the value retrieval, then `snmpget JINNY-MMSC-MIB:msend-ok` to test the 
search.  In each case, observe the time needed to execute the command.  If it 
executes in under a second, that's good enough for now, otherwise, you may want 
to examine your implementation.  I suspect the delays were caused by your 
nulls, but if not, please try to isolate a single SNMP command that exhibits 
the bad behavior.


        HTH,

Mike

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
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