Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Usage of mib2c.old-api.conf

0 views
Skip to first unread message

Vachan

unread,
Mar 9, 2004, 1:41:07 AM3/9/04
to
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C405A0.EB4720F0
Content-Type: text/plain;
charset="iso-8859-1"

Hi,
Can the Mib2c Configuaration file "mib2c.old-api.conf" be used for
Net-SNMP5.X code. The mib2c.conf file says it generates code that is
compatible with ucd-snmp4.x line of code.

Would there be any performance or any other issues if "mib2c.old-api.conf"
is used for Net-SNMP5.X code?

Thanx,
Vachan

"The only place success comes before work is in the dictionary."


------_=_NextPart_001_01C405A0.EB4720F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>Usage of mib2c.old-api.conf</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; Can the Mib2c =
Configuaration file &quot;mib2c.old-api.conf&quot; be used for =
Net-SNMP5.X code. The mib2c.conf file says it generates code that is =
compatible with ucd-snmp4.x line of code.&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Would there be any performance or any =
other issues if &quot;mib2c.old-api.conf&quot; is used for Net-SNMP5.X =
code?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanx,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Vachan</FONT>
</P>

<P><B><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">&quot;The only =
place success comes before work is in the dictionary.&quot;</FONT></B>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C405A0.EB4720F0--


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield

unread,
Mar 9, 2004, 4:57:06 AM3/9/04
to

> Can the Mib2c Configuaration file "mib2c.old-api.conf" be used for
> Net-SNMP5.X code.

Yes.
Many of the MIB modules shipped with the v5 agent still use the v4 API.
The v5 agent includes a backwards compatability mode.


> Would there be any performance or any other issues if "mib2c.old-api.conf"
> is used for Net-SNMP5.X code?

There will be a slight performace hit, yes.
I'm not aware of any measurements to determine how much of a
penalty there would be - probably not great in comparison with
the overall request handling (including network delays).
But it would be less efficient that using the native v5 API, yes.

Dave

PS: Please - no HTML mail. Thanks

Vachan

unread,
Mar 9, 2004, 6:07:36 AM3/9/04
to
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C405C6.21298850
Content-Type: text/plain;
charset="iso-8859-1"

Hi Dave,
Thanks for the information.
Are there any examples of MIB implementation for "mib2c.iterate.conf"
method?
The agent mib group "vacm context" is implemented (vacm_context.c) using
this method but is not elaborate to understand(since it has only one OID). I
checked in the ../agent/mibgroup/examples directory, but I was not able to
find examples implemented using only "mib2c.iterate.conf" method. There was
this netSnmpHostsTable implemented using the mib2c.iterate_access.conf.

Please let me know of any examples implemented using "mib2c.iterate.conf"
method only.

Thanx,
Vachan

-----Original Message-----
From: Dave Shield [mailto:D.T.S...@csc.liv.ac.uk]
Sent: Tuesday, March 09, 2004 3:15 PM
To: Vachan
Cc: net-snm...@lists.sourceforge.net
Subject: Re: Usage of mib2c.old-api.conf

> Can the Mib2c Configuaration file "mib2c.old-api.conf" be used for
> Net-SNMP5.X code.

Yes.
Many of the MIB modules shipped with the v5 agent still use the v4 API.
The v5 agent includes a backwards compatability mode.


> Would there be any performance or any other issues if "mib2c.old-api.conf"
> is used for Net-SNMP5.X code?

There will be a slight performace hit, yes.
I'm not aware of any measurements to determine how much of a
penalty there would be - probably not great in comparison with
the overall request handling (including network delays).
But it would be less efficient that using the native v5 API, yes.

Dave

PS: Please - no HTML mail. Thanks

------_=_NextPart_001_01C405C6.21298850


Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">

<TITLE>RE: Usage of mib2c.old-api.conf </TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi Dave,</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for the =
information.</FONT>
<BR><FONT SIZE=3D2>Are there any examples of MIB implementation for =
&quot;mib2c.iterate.conf&quot; method?</FONT>
<BR><FONT SIZE=3D2>The agent mib group &quot;vacm context&quot; is =
implemented (vacm_context.c) using this method but is not elaborate to =
understand(since it has only one OID). I checked in the =
../agent/mibgroup/examples directory, but I was not able to find =
examples implemented using only &quot;mib2c.iterate.conf&quot; method. =
There was this netSnmpHostsTable implemented using the =
mib2c.iterate_access.conf.</FONT></P>

<P><FONT SIZE=3D2>Please let me know of any examples implemented using =
&quot;mib2c.iterate.conf&quot; method only.</FONT>
</P>

<P><FONT SIZE=3D2>Thanx,</FONT>
<BR><FONT SIZE=3D2>Vachan</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Dave Shield [<A =
HREF=3D"mailto:D.T.S...@csc.liv.ac.uk">mailto:D.T.S...@csc.liv.ac.uk=
</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, March 09, 2004 3:15 PM</FONT>
<BR><FONT SIZE=3D2>To: Vachan</FONT>
<BR><FONT SIZE=3D2>Cc: net-snm...@lists.sourceforge.net</FONT>
<BR><FONT SIZE=3D2>Subject: Re: Usage of mib2c.old-api.conf </FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Can the Mib2c =
Configuaration file &quot;mib2c.old-api.conf&quot; be used for</FONT>
<BR><FONT SIZE=3D2>&gt; Net-SNMP5.X code.</FONT>
</P>

<P><FONT SIZE=3D2>Yes.</FONT>
<BR><FONT SIZE=3D2>Many of the MIB modules shipped with the v5 agent =
still use the v4 API.</FONT>
<BR><FONT SIZE=3D2>The v5 agent includes a backwards compatability =
mode.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&gt; Would there be any performance or any other =
issues if &quot;mib2c.old-api.conf&quot;</FONT>
<BR><FONT SIZE=3D2>&gt; is used for Net-SNMP5.X code?</FONT>
</P>

<P><FONT SIZE=3D2>There will be a slight performace hit, yes.</FONT>
<BR><FONT SIZE=3D2>I'm not aware of any measurements to determine how =
much of a</FONT>
<BR><FONT SIZE=3D2>penalty there would be - probably not great in =
comparison with </FONT>
<BR><FONT SIZE=3D2>the overall request handling (including network =
delays).</FONT>
<BR><FONT SIZE=3D2>But it would be less efficient that using the native =
v5 API, yes.</FONT>
</P>

<P><FONT SIZE=3D2>Dave</FONT>
</P>

<P><FONT SIZE=3D2>PS: Please - no HTML mail.&nbsp; Thanks</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C405C6.21298850--

Dave Shield

unread,
Mar 9, 2004, 6:37:14 AM3/9/04
to
> Are there any examples of MIB implementation for "mib2c.iterate.conf"
> method?

$ cd net-snmp-5.1/agent/mibgroup/
/users/tech/daves/SNMP/net-snmp-5.1/agent/mibgroup
$ grep -l netsnmp_iterator */*.c
agent/nsCache.c
agent/nsDebug.c
agent/nsLogging.c
agent/nsModuleTable.c
agent/nsTransactionTable.c
examples/netSnmpHostsTable_access.c
examples/netSnmpHostsTable.c
mibII/ipCidrRouteTable.c
mibII/tcpTable.c
mibII/udpTable.c
mibII/vacm_context.c

Dave

0 new messages