HELP!Who can tell me how can I get a row from a table?

2009-06-08 Thread mk26
I want to get some data from a table,in the form of a row at a time,that is to say ,how can get an entry from a table at a time?Thanks!-- OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to d

Could anyone give me some suggestions?

2009-06-08 Thread Tewen Hsieh
Hi all, I used "mib2c.iterate_access.conf" to generate my template code for XXX table. In XXXTable_get_first_data_point(), I use XXXTable_createStructure() to get external data and store them in a local structure when this table is accessed at the first time. (The external data are all PHY regis

Re: Could anyone give me some suggestions?

2009-06-08 Thread Tewen Hsieh
Hi, Thanks for your help. But I can't understand your suggestion. Could you explain more clearly? Thanks. I want to get the the index *values*, not to know the indices a table used. For example, in XXX table there are two indices including ip address and port number. When I send a request 1.3.6

Re: Could anyone give me some suggestions?

2009-06-08 Thread Dave Shield
2009/6/8 Tewen Hsieh : > I used "mib2c.iterate_access.conf" to generate my template code for XXX > table. > In XXXTable_get_first_data_point(), I use XXXTable_createStructure() to get > external data and store them in a local structure when this table is > accessed at the first time. (The external

Re: Could anyone give me some suggestions?

2009-06-08 Thread Tewen Hsieh
Hi Dave, Thanks for your suggestion. Loading the internal cache in the 'init_xxx()' routine is not fisable for my case, becaues my external data will be updated periodically. Also the loacl structure needs to be updated periodically. In my case, do you have any other suggestion? The time it too

Re: Could anyone give me some suggestions?

2009-06-08 Thread Dave Shield
2009/6/8 Tewen Hsieh : > Loading the internal cache in the 'init_xxx()' routine is not fisable for my > case, becaues my external data will be updated periodically. > Also the loacl structure needs to be updated periodically. OK - an alternative approach might be to run mib2c -Scache=1 -c mi

Re: Could anyone give me some suggestions?

2009-06-08 Thread Tewen Hsieh
Hi Dave, Thanks for your help. I will try your suggestion, but it should focus on "periodically update". My key question is how to *not* get *all* external data one time. The external data is really huge in my case, and automatic updating is still not enough for my scenior. Is there any method t