RE: how can I make the net-snmp do a operation use a variable nameinstead of an oid?

"Ying Wang(CD)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <102DD20C03D522419F76934805171ECE61DD98@sh-exch2003.nt-fsrvr.o2micro.com>
Hi Dave,

I am sorry for my careless work for the problem information is something wrong. The error does not occur in every table just in one table with string-string index. 

The process snmpd stops in net-snmp-5.2.rc4\agent\Snmp_agent.c:

        for (var_ptr = asp->pdu->variables; var_ptr;
             var_ptr = var_ptr->next_variable) {
            DEBUGMSGTL(("results", "\t"));
            DEBUGMSGVAR(("results", var_ptr));
            DEBUGMSG(("results", "\n"));
        }

And, I doubted the problem is in my MIB, but, so far, I have not found any abnormity.

Thanks for your kindly help!

BR

Ying

-----Original Message-----
From: Robert Story [mailto:[email protected]] 
Sent: 2005年9月23日 23:04
To: Ying Wang(CD)
Cc: Dave Shield; [email protected]
Subject: Re: how can I make the net-snmp do a operation use a variable nameinstead of an oid?

On Wed, 21 Sep 2005 17:16:50 +0800 Ying wrote:
YW> If a table has multi-index, the translation will failed!
YW> 
YW> ”segment fault" occurs, snmpd stops, and the debug information stops at:
YW>        ……
YW>        trace: netsnmp_handle_request(): snmp_agent.c, 2975:
YW>        results: request results (status = 0):
YW>        trace: netsnmp_handle_request(): snmp_agent.c, 2978:
YW>        results: (stop here!)
YW> 
YW> At the same time, the translation to scalars and uni-index tables are ok.

This is a bug in the table module. Does this happen for one of our tables, or
only for your custom table?

-- 
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:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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.