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.1.4.192.168.100.100.33 to agent, how can I get 
index values (ip address = 192.168.100.100, port num = 33) in the template code 
generated from mib2c.iterate_access.conf?

Do you have any idea about this?



永鈦鑫   iTAS Corporation
新竹市水源街75號
NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C.
Tel:03-5716099 Ext.1208
E-mail:tewen.hs...@itas.com.tw
  ----- Original Message ----- 
  From: Amol Anil Malokar 
  To: Tewen Hsieh 
  Sent: Monday, June 08, 2009 6:41 PM
  Subject: RE: Could anyone give me some suggestions?


  hi ,

  check with data structure ;

  "netsnmp_table_registration_info" 




------------------------------------------------------------------------------
  From: Tewen Hsieh [mailto:tewen.hs...@itas.com.tw]
  Sent: Mon 6/8/2009 3:55 PM
  To: net-snmp-coders@lists.sourceforge.net
  Subject: Could anyone give me some suggestions?


  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 register values.)
  So the agent can response very fast after the first request.
  But the external data I must get at the first time is very huge, the agent 
always timeouts when it still works in  XXXTable_createStructure() to get 
external data.
  Could anyone give me some suggestions about resolving this condition?

  I also tried to not get all external data, but I don't know how to get the 
index value of the incoming request in XXXTable_get_first_data_point().
  Could anyone help me to know where can get the index valuse of the incoming 
request in template code that are generated from "mib2c.iterate_acc.conf".


  Thanks in advance.



  BR,







  永鈦鑫   iTAS Corporation
  新竹市水源街75號
  NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C.
  Tel:03-5716099 Ext.1208
  E-mail:tewen.hs...@itas.com.tw
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged 
information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately and destroy
 all copies of this message and any attachments contained in it.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to