> Date: Tue, 30 Mar 2010 08:07:47 +0100
> Subject: Re: Help on Index out of range error ‏
> From: d.t.shi...@liverpool.ac.uk
> To: b...@live.com
> CC: net-snmp-users@lists.sourceforge.net
> 
> 2010/3/30 X Z <b...@live.com>:
> > I implemented a table using iterator, and I can do snmpwalk on the table.
> > But snmpget gave the Index out of range error. Table index starts from 1.
> 
> What is the exact command you used?
> What does the MIB file look like.
> 
snmpget -v2c -c public localhost MY-MIB::myStatus.1
MY-MIB::status.1: Unknown Object Identifier (Index out of range: 1 (Index))
Index OBJECT-TYPE    SYNTAX          Unsigned32 (1..4294967295)    MAX-ACCESS   
not-accessible    STATUS          current

myStatus OBJECT-TYPE    SYNTAX          INTEGER     MAX-ACCESS      read-only   
 STATUS          current
> 
> 
> > Here is related the code piece, can anyone point out where I did wrong?
> 
> "Index out of range" is an error from the snmpget command.
> The agent-side code is not relevant here.
> 
> Dave
                                          
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/210850552/direct/01/
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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