Re: snmpgetnext for mips

"[email protected]" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Telxsi
Message-ID <[email protected]>
Hi,
*When I tried for linux machine*
# snmpgetnext -v 2c -c public 10.60.8.100 
WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.2.3.4.5.6       
WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.2.3.4.5.6: Unknown Object 
Identifier (Index out of range: 0 (ifIndex))

*later using the Ir*
# snmpgetnext -v 2c -Ir -c public 10.60.8.100 
WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.2.3.4.5.6
WMAN-IF2-MIB::wmanIf2BsSsMacAddress.1.2.3.4 = STRING: 0:2:3:4:5:6

*But on the mips platform
*# snmpgetnext -v 2c -c public 10.60.8.100 
WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.21.7d.0.25.36       
WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.21.7d.0.25.36: Unknown Object 
Identifier (Index out of range: 0 (ifIndex))

*with -Ir
*#snmpgetnext -v 2c -Ir -c public 10.60.8.100 
WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.21.7d.0.25.36
WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.21.7d.0.25.36: Unknown Object 
Identifier (Index out of range: 7d (wmanIf2BsSsMacAddress))

*What does that mean??
Why is it working fine on linux and not on board??

Thanks,
Forum
*

Dave Shield wrote:
> 2009/11/17 [email protected] <[email protected]>:
>   
>>       I have been trying the snmpgetnext command on my Linux it is
>> working fine, when I do it from linux to cross compiled snmp on the mips
>> platform I am not getting the values, Has anyone encountered a similar
>> problem?
>>
>> *The error coming up is:*
>>
>>  #snmpgetnext -v 2c -c public 125.125.1.29
>> WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.21.86.80.8a.49
>>
>> WMAN-IF2-MIB::wmanIf2BsSsMacAddress.0.21.86.80.8a.49: Unknown Object
>> Identifier (Index out of range: 0 (ifIndex))
>>     
>
> What is the definition of this table in the WMAN-IF2-MIB file?
>
> Judging by the error, the table is indexed by ifIndex,
> which cannot take a value of 0.   So the index value
> you are supplying is not valid  (though snmpgetnext ought
> to accept it anyway).
>
> Try adding the option '-Ir' to the snmpgetnext command.
>
> Dave
>
>   



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.