<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic  Failed to parse MIB file error while snmpwalk command in SNMP in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Failed-to-parse-MIB-file-error-while-snmpwalk-command-in-SNMP/m-p/544004#M12813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MOHAMMAD BIYABANI on Wed Jun 12 21:52:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div id="ticket_content"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div class="markdown_content"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;Hi,&lt;BR /&gt; I am working on ARM9 based LPC3250 controller with linux kernel version 2.6.34 in ubuntu 11.10 based host.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have downloaded NET-SNMP-5.4.3 version package from NET-snmp web site and created SNMPD binary file with below configuration and tried to port that binary file into NMS board using NFS(NETWORK FILE SHARING).&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The procedure to make binary file and porting that file into board is (that i was used)&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Go to the contained file of NET-SNMP like below&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;root@biya:/home/biya/net-snmp-5.4.3#&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Run ./configure command with below arguments&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;root@biya:/home/biya/net-snmp-5.4.3# ./configure --enable-mini-agent --with-cc=arm-linux-gcc --with-mib-modules=mibII --target=arm-linux- --build=i686-pc-linux-gnu --host=arm-linux- --disable-scripts --disable-embedded-perl --enable-static=yes --with-endianness=little --without-perl-modules --disable-manuals --with-rpm build_alias=i686-pc-linux-gnu host_alias=arm-linux target_alias=arm-linux --with-default-snmp-version="1" --with-sys-contact="root" --with-sys-location="unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp"&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Perform Make operation&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;root@biya:/home/biya/net-snmp-5.4.4# make&lt;BR /&gt; root@biya:/home/biya/net-snmp-5.4.4# make install&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then BINARY file created with name "snmpd", and ported that file into board using(NFS) below procedure after kernel booting&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;~ # mkdir nfs&lt;BR /&gt; ~ # mount -t nfs -o nolock 192.168.1.10:/home/biya/nfs /nfs&lt;BR /&gt; /nfs # ./snmpd&lt;BR /&gt; then it is giving below output&lt;BR /&gt; Entered into program&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then i have tried to use SNMPWALK from host to/from target then No response from both sides&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The procedure i followed is&lt;BR /&gt; /nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.101&lt;BR /&gt; /usr/local/share/snmp/mibs: No such file or directory&lt;BR /&gt; Timeout: No Response from 192.168.1.101&lt;BR /&gt; /nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.41 &lt;BR /&gt; /usr/local/share/snmp/mibs: No such file or directory&lt;BR /&gt; Timeout: No Response from 192.168.1.41&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I was thought that it is missing MIBS so,&lt;BR /&gt; I have found MIBS in host path /usr/local/share/snmp/mibs After MAKE INSTALL command while generating SNMPD binary&lt;BR /&gt; I have created same path /usr/local/share/snmp/mibs on NMS BOARD and i copied that MIBS into created path.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then i tried with SNMPWALK COMMAND then it is not giving any response.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The procedure that i have followed and output is shown below,&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;h1 id="mkdir-nfs"&amp;gt;mkdir nfs&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;h1 id="mount-t-nfs-o-nolock-192168141homemohannfs-nfs"&amp;gt;mount -t nfs -o nolock 192.168.1.41:/home/mohan/nfs /nfs&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;~ # cd usr/&lt;BR /&gt; /usr # mkdir local&lt;BR /&gt; /usr # cd local/&lt;BR /&gt; usr/local #mkdir share&lt;BR /&gt; /usr/local # cd share/&lt;BR /&gt; /usr/local/share # mkdir snmp&lt;BR /&gt; /usr/local/share # cd snmp/&lt;BR /&gt; /usr/local/share/snmp # mkdir mibs&lt;BR /&gt; usr/local/share/snmp #cd mibs/&lt;BR /&gt; /usr/local/share/snmp/mibs # pwd&lt;BR /&gt; /usr/local/share/snmp/mibs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I mounted MIBS using NFS and copied into /usr/local/share/snmp/mibs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;/nfs/usr/local/share/snmp/mibs # cp -r NET-SNMP-&amp;lt;em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r UCD-&amp;lt;/em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r SNMP-&amp;lt;em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r SNMPv2&amp;lt;/em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r DISMAN-&amp;lt;em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r IANA-&amp;lt;/em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r HOST-&amp;lt;em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r AGENT-&amp;lt;/em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r IP* /usr/local/share/snmp/mibs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;~ # export MIBS=/usr/local/share/snmp/mibs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;~ #nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.101&lt;BR /&gt; Failed to parse MIB file /usr/local/share/snmp/mibs&lt;BR /&gt; Timeout: No Response from 192.168.1.101&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Why it is giving Failed to parse MIB file error.&lt;BR /&gt; Please help me .&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks &amp;amp;amp; Regards,&lt;BR /&gt; MOHAMMAD BIYABANI.&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:27:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:27:47Z</dc:date>
    <item>
      <title>Failed to parse MIB file error while snmpwalk command in SNMP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Failed-to-parse-MIB-file-error-while-snmpwalk-command-in-SNMP/m-p/544004#M12813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MOHAMMAD BIYABANI on Wed Jun 12 21:52:14 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div id="ticket_content"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div class="markdown_content"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;Hi,&lt;BR /&gt; I am working on ARM9 based LPC3250 controller with linux kernel version 2.6.34 in ubuntu 11.10 based host.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have downloaded NET-SNMP-5.4.3 version package from NET-snmp web site and created SNMPD binary file with below configuration and tried to port that binary file into NMS board using NFS(NETWORK FILE SHARING).&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The procedure to make binary file and porting that file into board is (that i was used)&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Go to the contained file of NET-SNMP like below&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;root@biya:/home/biya/net-snmp-5.4.3#&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Run ./configure command with below arguments&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;root@biya:/home/biya/net-snmp-5.4.3# ./configure --enable-mini-agent --with-cc=arm-linux-gcc --with-mib-modules=mibII --target=arm-linux- --build=i686-pc-linux-gnu --host=arm-linux- --disable-scripts --disable-embedded-perl --enable-static=yes --with-endianness=little --without-perl-modules --disable-manuals --with-rpm build_alias=i686-pc-linux-gnu host_alias=arm-linux target_alias=arm-linux --with-default-snmp-version="1" --with-sys-contact="root" --with-sys-location="unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp"&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Perform Make operation&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;root@biya:/home/biya/net-snmp-5.4.4# make&lt;BR /&gt; root@biya:/home/biya/net-snmp-5.4.4# make install&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then BINARY file created with name "snmpd", and ported that file into board using(NFS) below procedure after kernel booting&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;~ # mkdir nfs&lt;BR /&gt; ~ # mount -t nfs -o nolock 192.168.1.10:/home/biya/nfs /nfs&lt;BR /&gt; /nfs # ./snmpd&lt;BR /&gt; then it is giving below output&lt;BR /&gt; Entered into program&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then i have tried to use SNMPWALK from host to/from target then No response from both sides&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The procedure i followed is&lt;BR /&gt; /nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.101&lt;BR /&gt; /usr/local/share/snmp/mibs: No such file or directory&lt;BR /&gt; Timeout: No Response from 192.168.1.101&lt;BR /&gt; /nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.41 &lt;BR /&gt; /usr/local/share/snmp/mibs: No such file or directory&lt;BR /&gt; Timeout: No Response from 192.168.1.41&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I was thought that it is missing MIBS so,&lt;BR /&gt; I have found MIBS in host path /usr/local/share/snmp/mibs After MAKE INSTALL command while generating SNMPD binary&lt;BR /&gt; I have created same path /usr/local/share/snmp/mibs on NMS BOARD and i copied that MIBS into created path.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Then i tried with SNMPWALK COMMAND then it is not giving any response.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The procedure that i have followed and output is shown below,&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;h1 id="mkdir-nfs"&amp;gt;mkdir nfs&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;h1 id="mount-t-nfs-o-nolock-192168141homemohannfs-nfs"&amp;gt;mount -t nfs -o nolock 192.168.1.41:/home/mohan/nfs /nfs&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;~ # cd usr/&lt;BR /&gt; /usr # mkdir local&lt;BR /&gt; /usr # cd local/&lt;BR /&gt; usr/local #mkdir share&lt;BR /&gt; /usr/local # cd share/&lt;BR /&gt; /usr/local/share # mkdir snmp&lt;BR /&gt; /usr/local/share # cd snmp/&lt;BR /&gt; /usr/local/share/snmp # mkdir mibs&lt;BR /&gt; usr/local/share/snmp #cd mibs/&lt;BR /&gt; /usr/local/share/snmp/mibs # pwd&lt;BR /&gt; /usr/local/share/snmp/mibs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I mounted MIBS using NFS and copied into /usr/local/share/snmp/mibs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;/nfs/usr/local/share/snmp/mibs # cp -r NET-SNMP-&amp;lt;em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r UCD-&amp;lt;/em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r SNMP-&amp;lt;em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r SNMPv2&amp;lt;/em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r DISMAN-&amp;lt;em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r IANA-&amp;lt;/em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r HOST-&amp;lt;em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r AGENT-&amp;lt;/em&amp;gt; /usr/local/share/snmp/mibs&lt;BR /&gt; /nfs/usr/local/share/snmp/mibs # cp -r IP* /usr/local/share/snmp/mibs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;~ # export MIBS=/usr/local/share/snmp/mibs&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;~ #nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.101&lt;BR /&gt; Failed to parse MIB file /usr/local/share/snmp/mibs&lt;BR /&gt; Timeout: No Response from 192.168.1.101&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Why it is giving Failed to parse MIB file error.&lt;BR /&gt; Please help me .&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks &amp;amp;amp; Regards,&lt;BR /&gt; MOHAMMAD BIYABANI.&lt;/P&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Failed-to-parse-MIB-file-error-while-snmpwalk-command-in-SNMP/m-p/544004#M12813</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:27:47Z</dc:date>
    </item>
  </channel>
</rss>

