LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2013, 09:43 AM   #1
biyabani
Member
 
Registered: Mar 2013
Posts: 65

Rep: Reputation: Disabled
Snmpwalk command not giving response in arm based controller porting


Hi,
I am working on ARM9 based LPC3250 controller with linux kernel version 2.6.34 in ubuntu 11.10 based host.

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).

The procedure to make binary file and porting that file into board is (that i was used)


1. Go to the contained file of NET-SNMP like below

root@biya:/home/biya/net-snmp-5.4.3#

2. Run ./configure command with below arguments

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"

3. Perform Make operation

root@biya:/home/biya/net-snmp-5.4.4# make
root@biya:/home/biya/net-snmp-5.4.4# make install

Then BINARY file created with name "snmpd", and ported that file into board using(NFS) below procedure after kernel booting

~ # mkdir nfs
~ # mount -t nfs -o nolock 192.168.1.10:/home/biya/nfs /nfs
/nfs # ./snmpd
then it is giving below output
Entered into program

Then i have tried to use SNMPWALK from host or target then No response from both sides

The procedure i followed is
/nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.101
/usr/local/share/snmp/mibs: No such file or directory
Timeout: No Response from 192.168.1.101
/nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.41
/usr/local/share/snmp/mibs: No such file or directory
Timeout: No Response from 192.168.1.41

I was thought that it is missing MIBS.
I have found MIBS in host path /usr/local/share/snmp/mibs After MAKE INSTALL command while generating SNMPD binary.
so,I have created same path /usr/local/share/snmp/mibs on NMS BOARD and i copied that MIBS into created path.

Then i tried with SNMPWALK COMMAND then it is not giving any response.

The procedure that i have followed and output is shown below,


# mkdir nfs
# mount -t nfs -o nolock 192.168.1.41:/home/mohan/nfs /nfs
~ # cd usr/
/usr # mkdir local
/usr # cd local/
usr/local #mkdir share
/usr/local # cd share/
/usr/local/share # mkdir snmp
/usr/local/share # cd snmp/
/usr/local/share/snmp # mkdir mibs
usr/local/share/snmp #cd mibs/
/usr/local/share/snmp/mibs # pwd
/usr/local/share/snmp/mibs


I mounted MIBS using NFS and copied into /usr/local/share/snmp/mibs

/nfs/usr/local/share/snmp/mibs # cp -r NET-SNMP-* /usr/local/share/snmp/mibs
/nfs/usr/local/share/snmp/mibs # cp -r UCD-* /usr/local/share/snmp/mibs
/nfs/usr/local/share/snmp/mibs # cp -r SNMP-* /usr/local/share/snmp/mibs
/nfs/usr/local/share/snmp/mibs # cp -r SNMPv2* /usr/local/share/snmp/mibs
/nfs/usr/local/share/snmp/mibs # cp -r DISMAN-* /usr/local/share/snmp/mibs
/nfs/usr/local/share/snmp/mibs # cp -r IANA-* /usr/local/share/snmp/mibs
/nfs/usr/local/share/snmp/mibs # cp -r HOST-* /usr/local/share/snmp/mibs
/nfs/usr/local/share/snmp/mibs # cp -r AGENT-* /usr/local/share/snmp/mibs
/nfs/usr/local/share/snmp/mibs # cp -r IP* /usr/local/share/snmp/mibs


~ # export MIBS=/usr/local/share/snmp/mibs

~ #nfs/net-snmp-5.7.2_bin_1/apps # ./snmpwalk -v1 -c public 192.168.1.101
Failed to parse MIB file /usr/local/share/snmp/mibs
Timeout: No Response from 192.168.1.101

Why it is giving Failed to parse MIB file error.
Please help me.

Thanks & Regards,
MOHAMMAD BIYABANI.

Last edited by biyabani; 06-12-2013 at 09:45 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB mounting in ARM based LPC3250 controller nightrapper Linux - Hardware 1 03-15-2013 11:51 AM
USB mounting in ARM based LPC3250 controller nightrapper Linux - Newbie 1 03-09-2013 05:16 AM
[SOLVED] Linux Porting with ARM Controller coolzam Linux - Embedded & Single-board computer 3 11-05-2010 04:26 AM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration