Re: Subagentx : how to define the path where MIBS are installed
"Arnaud BODENAN" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
OK, now I understand. But I'm still in trouble with my test. I run my sample subagentX with a directory where no MIBS exist, and I try the command: snmpwalk -Oa -c public -v 2c localhost:1400 system I think I would have an error as system is not known, but I get no error and snmpwalk displays me the right informations. Problably, I miss something again. >From: "Dave Shield" <[email protected]> >To: "Arnaud BODENAN" <[email protected]> >CC: [email protected] >Subject: Re: Subagentx : how to define the path where MIBS are installed >Date: Fri, 13 Oct 2006 09:16:39 +0100 > >On 13/10/06, Arnaud BODENAN <[email protected]> wrote: >>I debug with the token "parse-mibs" and I get the following output: >> >>registered debug token parse-mibs, 1 >>parse-mibs: Module SNMPv2-SMI not found >>parse-mibs: Module RFC1155-SMI not found >>parse-mibs: Module RFC1213-MIB not found >>parse-mibs: Scanning directory /home/arnboden/testMonitoring/etc >>parse-mibs: No index >>parse-mibs: cannot open MIB directory /home/arnboden/testMonitoring/etc > > >So the agent is looking in the correct place (and failing to find any >MIBs). >As expected. > > >>Despite these errors, I still do a snmpwalk on the tables defined in my >>MIB >>which is not in the directory /home/arnboden/testMonitoring/etc. > >Ah - I understand what you're meaning now. >Remember that the MIB files are only used to translate between numeric >OIDs and textual names. They are not involved in actually providing >the relevant management values. >That is effectively hardcoded into the subagent binary. > >Please see the FAQ entry > "Do I actually need the MIB files?" > >If the MIB files are not installed, the agent will continue to run >quite unaffected. >(Apart from a few places where it actually refers to MIB objects by >name, such as defining the access control views). But in general, the >agent doesn't use MIB files much at all. > >The absence of MIB files is more visible with the command-line tools - >snmpwalk and friends. These can also work without the MIB files being >present, but everything will be displayed using numeric OIDs. > You couldn't say > snmpwalk -v 1 -c public -On localhost system > >since snmpwalk wouldn't know what was meant by "system". >But you *could* say > snmpwalk -v 1 -c public -On localhost .1.3.6.1.2.1.1 > >and you'd see basically the same information. > > > >So returning to your original question: >>I create a subagentX and I set the Path for the MIBS... >>it successfully parses the MIB files despite I set a wrong path for the >>MIB. > >In fact the subagent is *not* parsing the MIB files, but it doesn't >need them to run. > >Dave _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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