RE: array_user.conf row creation

This is a discussion on RE: array_user.conf row creation within the SNMP Users forums, part of the Networking and Network Related category; Thanks Robert. Can you please provide some information regarding addition of caching to this? The attached pseudo code describes how ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-22-2005
George, Geo
 
Posts: n/a
Default RE: array_user.conf row creation

Thanks Robert.
Can you please provide some information regarding addition of caching to
this?

The attached pseudo code describes how my init function is implemented.
void LoadData()
{
xxTable_context *context;
=20
For all data available
do
/* create row */
context =3D xxTable_create_row(&index);
=20
/* fill in data */
context->abc =3D some_value;
=20
/* insert row in container */
CONTAINER_INSERT(cb.container, context
done
}
=20
void Reload()
{
Release previous context
LoadData();
}


1) The question is can I directly add snmp_alarm_register? After
Initialization Something like the below statement which basically
reloads data?

snmp_alarm_register(timeout, SA_REPEAT, Reload, NULL);

Basic intension is to avoid using all the cache handler functions. If
this suffices my requirement then I can avoid using cache_handler
functions from 5.2 release.

2) If I add my own refresh routines, how to handle the requests while
reloading the data?

Regards,
Geo






-----Original Message-----
From: Robert Story [mailto:rstory@freesnmp.com]=20
Sent: Thursday, April 21, 2005 8:18 PM
To: George, Geo
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: array_user.conf row creation

On Thu, 21 Apr 2005 13:20:30 -0700 George, wrote:
GG> Does the current array_user code handles this ?(version 5.0.9) row
GG> creation during startup ? If so can anyone tell some example?


Yes. simply add them in the init function. Examples here:

http://www.freesnmp.com/net-snmp/faq...er.html#create

--=20
NOTE: messages sent directly to me, instead of the lists, will be
deleted
unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> =20
Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=3Dnet-snmp-users>

You are lost in a twisty maze of little standards, all different.=20


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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
Reply With Quote
Reply


Thread Tools
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

vB 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 07:30 AM.


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