Problem in Porting net-snmp to uClinux

This is a discussion on Problem in Porting net-snmp to uClinux within the SNMP Coders forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============1313016565== Content-class: urn:content-classes:message Content-Type: multipart/related; ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-06-2008
 
Posts: n/a
Default Problem in Porting net-snmp to uClinux

This is a multi-part message in MIME format.

--===============1313016565==
Content-class: urn:content-classes:message
Content-Type: multipart/related; type="multipart/alternative";
boundary="----_=_NextPart_001_01C87F6B.7DF88F7F"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C87F6B.7DF88F7F
Content-Type: multipart/alternative;
boundary="----_=_NextPart_002_01C87F6B.7DF88F7F"


------_=_NextPart_002_01C87F6B.7DF88F7F
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=20

Hi All,

=20

I am able to run the SNMP agent on the uClinux (Blackfin Board). I am
using the following command to run the agent:

=20

root:/bin> snmpd -c tst &

=20

where tst is the community name.

=20

On the SNMP manager, I am giving the command:

=20

[root@babbage sbin]# snmpwalk -v 1 -c tst 10.201.179.222 system End of
MIB

=20

=20

And getting the End of MIB response. (10.201.179.222 is my boards'
ip-address).

=20

What is the meaning of this?

=20

I have some more doubts:

=20

1. Also I want to know whether I have to do some thing manually to
create MIB on the agent side? If so, how to do it?

=20

2. Where exactly I have to put the snmpd.conf file in the agent
side(Blackfin Board)?

=20

3. Is it necessary to run the ./configure, make and make install in
/uClinux-dist/user/net-snmp/ folder? or all this will be taken care when
I build uClinux-dist by enabling snmpd and net-snmp through make
menuconfig?

=20

=20

In addition to the above problem, I am also getting the following error
when I try to do a snmpget from SNMP Manager(Linux PC) to SNMP agent
(Blackfin-561 Board):

=20

[manu@babbage sbin]$ snmpget -v1 -c tst 10.201.179.222
system.sysContact.0=20

Error in packet

Reason: (noSuchName) There is no such variable name in this MIB.

Failed object: SNMPv2-MIB::sysContact.0

=20

=20

Any idea what is the problem?

Any help will be greatly appreciated.

=20

Best Regards,

=20


------_=_NextPart_002_01C87F6B.7DF88F7F
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Bookman Old Style";
panose-1:2 5 6 4 5 5 5 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Arial;
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
color:black;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=3Dwhite background=3D"cid:image001.gif@01C87F99.97469BD0" =
lang=3DEN-US
link=3Dblue vlink=3Dpurple>
<img src=3D"cid:image001.gif@01C87F99.97469BD0"
v:src=3D"cid:image001.gif@01C87F99.97469BD0" v:shapes=3D"_x0000_Mail" =
width=3D0
height=3D0 class=3Dshape style=3D'display:none;width:0;height:0'>

<div class=3DSection1>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>Hi All,<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>I am able to run the SNMP agent on the uClinux =
(Blackfin
Board). I am using the following command to run the =
agent:<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>root:/bin&gt; snmpd&nbsp; -c tst =
&amp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>where tst is the community =
name.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>On the SNMP manager, I am giving the =
command:<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>[root@babbage sbin]# snmpwalk -v 1 -c tst =
10.201.179.222
system End of MIB<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>And getting the End of MIB response. (10.201.179.222 =
is my
boards' ip-address).<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>What is the meaning of =
this?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>I have some more doubts:<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>1. Also I want to know whether I have to do some thing
manually to create MIB on the agent side? If so, how to do =
it?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>2. Where exactly I have to put the snmpd.conf file in =
the
agent side(Blackfin Board)?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>3. Is it necessary to run the ./configure, make and =
make
install in /uClinux-dist/user/net-snmp/ folder? or all this will be =
taken care
when I build uClinux-dist by enabling snmpd and net-snmp through make
menuconfig?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>In addition to the above problem, I am also getting =
the
following error when I try to do a snmpget from SNMP Manager(Linux PC) =
to SNMP
agent (Blackfin-561 Board):<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>[manu@babbage sbin]$ snmpget -v1 -c tst 10.201.179.222
system.sysContact.0 <o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>Error in packet<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>Reason: (noSuchName) There is no such variable name in =
this
MIB.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>Failed object: =
SNMPv2-MIB::sysContact.0<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>Any idea what is the =
problem?<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>Any help will be greatly =
appreciated.<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman";
color:windowtext'>Best Regards,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Bookman Old =
Style"><span
style=3D'font-size:12.0pt;font-family:"Bookman Old =
Style"'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_002_01C87F6B.7DF88F7F--

------_=_NextPart_001_01C87F6B.7DF88F7F
Content-Type: image/gif;
name="image001.gif"
Content-Transfer-Encoding: base64
Content-ID: <image001.gif@01C87F99.97469BD0>
Content-Description: image001.gif
Content-Location: image001.gif

R0lGODlhLQAtAID/AP////f39ywAAAAALQAtAEACcAxup8vtvxKQsFon6d02898pGkgiYoCm 6sq2
7iqWcmzOsmeXeA7uPJd5CYdD2g9oPF58ygqz+XhCG9JpJGmlYr PXGlfr/Yo/VW45e7amp2tou/lW
xo/zX513z+Vt+1n/tiX2pxP4NUhy2FM4xtjIUQAAOw==

------_=_NextPart_001_01C87F6B.7DF88F7F--


--===============1313016565==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============1313016565==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============1313016565==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0