Hi Mishustin,
I've found why Net-SNMP shows the error :
"LLC-MIB: No such file or directory".
I found out that snmpconf() tool can load as many MIB files as you want, even
though, it is the same MIB file. So, the first time I loaded my LLC-MIB.txt it
was ok, but the 2nd time, something was wrong.
the snmpconf() tool, does not tell you if the MIB file was loaded successfully
or not. So, when I type
snmptranslate -Tp -IR frequency,
it does find the LLC-MIB file (the one I loaded correctly), but also try to
load the 2nd LLC-MIB file, the one has wrong path, so that when the error
message appears, because I instructed the Net-SNMP to output the errors to
stderr instead of a log file.
To fix this, I removed (rm) the snmp.conf and snmpd.conf file and re-created
them with snmpconf() tool.
I tried to extend again the snmp agent with mib2c. I re-created the header and
source files for 'frequency' and 'step', and them re-compiled them using
./configure --with-mib-modules="frequency step"
somehow during the configure script, net-snmp tries to access the
"module_tmp_header.h" file, which does not exist.
if I don't give the parameters --with-mib-modules, the script runs fine.
Is this normal?
Thanks!
Leo;
--- On Tue, 8/31/10, Mishustin Kirill <mishus...@eltex.nsk.ru> wrote:
From: Mishustin Kirill <mishus...@eltex.nsk.ru>
Subject: Re: Unable to Extend snmpd: There is not such variable name in this MIB
To: "Net-snmp-users" <net-snmp-users@lists.sourceforge.net>
Cc: "Leo Lin" <hayashi_...@yahoo.com>
Date: Tuesday, August 31, 2010, 9:53 PM
01.09.2010 10:38, Leo Lin wrote:
Hi, thanks for replying
I got these result with /usr/local/sbin/snmpd -Dmib_init
No log handling enabled - using stderror logging
registered debug token mib_init, 1
Log handling defined - disabling stderr
I checked that the process is queued with ps().
I also tried
snmpget -v 1 -c public localhost sysDescr.0
with the following result:
LLC-MIB: No such file or directory
SNMPv2-MIB::sysDescr.0 = STRING: CYGWIN_NT-5.1
Thanks!
Leo;
And that's all? Initial output should end with "NET-SNMP version x.x.x". If you
don't see that string - something is seriously wrong.
Post here how you launch configure script for net-snmp, I mean parameters for
configure.
And this "LLC-MIB: No such file or directory" worries me. Try quering agent
with numerical oid. (
#yiv1731932712 p, #yiv1731932712 li {white-space:pre-wrap;}
1.3.6.1.4.1.331.1.1.0 for frequency from your mib).
And please, don't mail me privately. Keep discussion on the list, so others can
learn from it.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
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