Re: Regarding Table data Create and Fill

This is a discussion on Re: Regarding Table data Create and Fill within the SNMP Users forums, part of the Networking and Network Related category; --===============0435625473== Content-Type: multipart/alternative; boundary="----=_Part_14286_18207257.1205343078734" ------=_Part_14286_18207257.1205343078734 Content-Type: text/plain; charset=ISO-8859-1 ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-12-2008
kumar undurthi
 
Posts: n/a
Default Re: Regarding Table data Create and Fill

--===============0435625473==
Content-Type: multipart/alternative;
boundary="----=_Part_14286_18207257.1205343078734"

------=_Part_14286_18207257.1205343078734
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Thanks for the solution
Actually i am using mib2c.table_data.conf to generate a table , so
now i used the suggested command mib2c -c mib2c.table_data.conf -S cache=1
mytable , but i am unable to understand properly... , this approach is
trying to fill the values form a file but my values are dynamic , will come
throught a funtion call's ( if possible please give me a fully finished
example code for any table ).




On Wed, Mar 12, 2008 at 6:39 AM, Dave Shield <D.T.Shield@liverpool.ac.uk>
wrote:

> On 11/03/2008, kumar undurthi <manu1394@gmail.com> wrote:
> > I have a problem in creating a table and Fill the table. i.e
> > Normally table can create in initialization() part and can be fill with

> the
> > static data.
> > But in My case.... I want to Create and Fill the table with the dynamic
> > data(values) when ever a request comes to the Agent.

>
> Probably the best approach would be to use the cache helper.
>
> You haven't said how you are generating the code,
> or which table helper you are using. But if you run
> something like
> mib2c -c mib2c.table_data.conf -S cache=1 myTable
>
> this should generate a suitable framework for your MIB module,
> including the code to load the table data when a request
> comes in. This cached data will then be used for the next
> few requests, until it's judged "too old". Whereupon the
> next request will trigger a fresh reload.
>
> The same approach can be used with the iterator helper
> (same command, but specifying 'mib2c.iterator.conf'),
> and probably also with the MfD framework.
> (though I don't know much about that one).
>
> Dave
>


------=_Part_14286_18207257.1205343078734
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Thanks for the solution<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Actually i am using mib2c.table_data.conf to generate a table , so now i used the suggested command mib2c -c mib2c.table_data.conf &nbsp;-S cache=1 mytable , but i am unable to understand properly... , this approach is trying to fill the values form a file but my values are dynamic , will come throught a funtion call's ( if possible please give me a fully finished example code&nbsp; for any table&nbsp; ).<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp; <br><br><div class="gmail_quote">On Wed, Mar 12, 2008 at 6:39 AM, Dave Shield &lt;<a href="mailto:D.T.Shield@liverpool.ac.uk">D.T.Shiel d@liverpool.ac.uk</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 11/03/2008, kumar undurthi &lt;<a href="mailto:manu1394@gmail.com">manu1394@gmail.co m</a>&gt; wrote:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;I have a problem in creating a table and Fill the table. i.e<br>
&gt; Normally table can create in initialization() part and can be fill with the<br>
&gt; static data.<br>
&gt; But in My case.... I want to Create and Fill the table with the dynamic<br>
&gt; data(values) when ever a request comes to the Agent.<br>
<br>
</div>Probably the best approach would be to use the cache helper.<br>
<br>
You haven't said how you are generating the code,<br>
or which table helper you are using. &nbsp; But if you run<br>
something like<br>
&nbsp; &nbsp;mib2c -c mib2c.table_data.conf &nbsp;-S cache=1 &nbsp; myTable<br>
<br>
this should generate a suitable framework for your MIB module,<br>
including the code to load the table data when a request<br>
comes in. &nbsp; This cached data will then be used for the next<br>
few requests, until it's judged &quot;too old&quot;. &nbsp;Whereupon the<br>
next request will trigger a fresh reload.<br>
<br>
&nbsp;The same approach can be used with the iterator helper<br>
(same command, but specifying 'mib2c.iterator.conf'),<br>
and probably also with the MfD framework.<br>
&nbsp;(though I don't know much about that one).<br>
<font color="#888888"><br>
Dave<br>
</font></blockquote></div><br>

------=_Part_14286_18207257.1205343078734--


--===============0435625473==
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/
--===============0435625473==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============0435625473==--

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 02:43 AM.


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