Hi Robert:

Sorry for the unclear message. Yes, it's in our CVS. I didn't mean it's from 
Net-Snmp CVS. We also use CVS for source control. It's a private MIB. 

I had compiled and built the agent  with that MIB and the corresponding module 
successful earlier. I duplicated the MIB files with different file name (to 
keep the similarity of other Company's MIB file name) under the 
/usr/local/share/snmp/mibs. Plus some other change made by another person - I 
don't think this change would cause this kind problem.  After that I had 
encountered the error messages right after the registration routine was called. 
Since a healthy agent was running on another machine several days. So I could 
compare the MIBS, configure options in between two machines. With that 
reference, finally I was able to build a workable agent.

I think what had happened is two different MIB files under 
/usr/local/share/snmp/mibs with exactly same DEFINITION and everything else. 
Then I did "export MIBS=ALL",  ran the configure with option 
-with-mibs=myPrivateMib (this is the MODULE-IDENTITY defined in my MIB file). 
In my_module.h file under agent/mibgroup there are lines of 
"config_require(myPrivateM)" and  "config_add_mib(MY-SYSTEM-MIB)".  I thought 
at that time since I had set MIBS=ALL so the agent will pick the one I want. 
And I had the line config_add_mib(***) precisely pointed to which MIB to be 
added any way. 

I guess since there are two identical DEFINITION in two different MIB files. So 
the snmpd was confused and returned the error message said "cannot find the 
module". Is this a correct assumption? This is especially true if I set 
MIBS=ALL, right? After I change the DEFINITION in one MIB file to a different 
name then the agent  was happy.  I may have to delete that duplicated MIB file 
to keep clean. The reason it is still kept is I don't know which MIB file the 
agent actually pick up. Some experiment can help me to clarify that. Thanks 
again for your patient and kind response.

Regards,
Jim

-----Original Message-----
From: Robert Story [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 10:20 PM
To: Jim Su
Cc: Net-Snmp-Users
Subject: Re: weird error

On Thu, 14 Apr 2005 21:41:10 +0800 Jim wrote:
JS>          The possible source of error  - 1. a
JS>          subtle modified MIB file was checked in CVS

Our CVS, or yours? I can guarantee you that there are no references to a genie
MIB in our cvs...

--
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.
HWj)bh+yNLv-yv'z\jwbv,xnv!3ۜjj[z('!lXzm^*^J֫v)!lgri؝

Reply via email to