Re: get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-26 Thread Coders
On Wed, 24 Nov 2004 16:41:33 -0800 Fong wrote: FT> WH>The same as a master. Note: you can not query the master agent using FT> WH->a callback. You can only query yourself. FT> FT> So, if I want to query master agent and subagents, I can't use this FT> callback method, right? If I know OID name a

RE: get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-24 Thread Fong Tsui
From: Robert Story (Coders) [mailto:[EMAIL PROTECTED] RS->The agent doesn't keep data in memory in the tree. The hander must be called to RS->get the data. It would be rather tricky to try and properly set up all the RS->parameters to do this directly, so I'd suggest that you use the callback RS-

RE: get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-24 Thread Fong Tsui
>>>>>>>>From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 4:25 PM To: Fong Tsui Cc: [EMAIL PROTECTED] Subject: Re: get struct variable from netsnmp_subtree in 5.2.rc3 WH>The same as a master. Note: you can not query the master agent usi

Re: get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-24 Thread Wes Hardaker
> On Wed, 24 Nov 2004 12:28:15 -0800, "Fong Tsui" <[EMAIL PROTECTED]> said: Fong> 1) register callback function and open a callback session in init_XXX Fong> function Fong> If it is inside a subagent, what callback_master_num should be in Fong> netsnmp_callback_open()? The same as a master.

Re: get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-18 Thread Coders
On Wed, 17 Nov 2004 18:09:36 -0800 Fong wrote: FT> I am trying to fetch a value for variable(a known OID). FT> FT> What I know is (oid * name, size_t namelen), from it I want to get FT> (findVar of struct variable *) to find the value for the OID. Here is FT> what I did: FT> tree_ptr = netsnmp

get struct variable from netsnmp_subtree in 5.2.rc3

2004-11-17 Thread Fong Tsui
I am trying to fetch a value for variable(a known OID).   What I know is (oid * name, size_t namelen), from it I want to get  (findVar of  struct variable *)  to find the value for the OID. Here is what I did: { netsnmp_subtree *tree_ptr; tree_ptr = netsnmp_subtree_find(name, namelen, NUL