On Tue, 28 Dec 2004 20:03:01 -0500 Struminski, wrote:
SP> After I generated agent code using mib2c I am able to walk the entire table
SP> however, trying to access indexes, snmpwalk application tells me that the
SP> value provided is out of range.  This only happens when my indexes are of
SP> type OCTET STRING. 
SP> 
SP> using STRING indexes:
SP> LIB-SNMP-MIB::hostname."arrow"."lib.com" = STRING: arrow
SP> 
SP> running snmpget -v 2c -c libcomm localhost
SP> LIB-SNMP-MIB::"hostname."arrow"."lib.com""
SP> produces error:
SP> hostname.arrow.lib.com: Unknown Object Identifier (Index out of range:
SP> arrow(hostname))

You have to quote the ", or the shell interprets them before snmpget sees them.
Try LIB-SNMP-MIB::hostname.\"arrow\".\"lib.com\" instead.

SP> I have used mfd.conf configuration to mib2c to generate C code.

How was it? This is a new config file, so I'm interested in feedback.

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


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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