Shawn He is out of the office.

2008-12-22 Thread Shawn_He
I will be out of the office starting 12/22/2008 and will not return until 01/05/2009. For any urgent issues related to ESTF or SODA, please see Radhika for assistance. Otherwise, I will respond to your message when I return. In the event that I have to be reached, please talk to Brian as he

Shawn He is out of the office.

2008-11-25 Thread Shawn_He
I will be out of the office starting 11/24/2008 and will not return until 12/01/2008. For any urgent issues related to ESTF or SODA, please see Radhika for assistance. Otherwise, I will respond to your message when I return. In the event that I have to be reached, please talk to Brian as he

Shawn He is out of the office.

2008-09-16 Thread Shawn_He
I will be out of the office starting 09/15/2008 and will not return until 09/17/2008. For any urgent issues related to ESTF or SODA, please see Radhika for assistance. Otherwise, I will respond to your message when I return.

synchronous vs asynchronous mechanism

2008-04-16 Thread Shawn_He
Hi, I noticed that in the existing snmp request process, it calls user registered callback for every snmp request, and thus the process is very lock-stepped and synchronous. It's not that it has any problem, however, I am wondering if anyone has thought about a different approach that is more

stack memory requirement for net-snmp

2008-02-07 Thread Shawn_He
Does anyone what's the stack memory requirement for net-snmp agent to run in a thread? Thanks. -- Shawn He Online Technology Office:858-824-5969 Fax: 858-824-5878 AIM: CivRealtor - This SF.net email is sponsored by:

two possible table_tdata bugs

2008-01-14 Thread Shawn_He
I was using table_tdata api, following example in expExpression.c. However, I had two problems and think they might be bugs in table_tdata: my table only uses one index (say world index), and has a few columns, one of them is client count. I followed the mentioned example, and calls

table_tdata api question

2008-01-09 Thread Shawn_He
I was using table_tdata api, following example in expExpression.c. However, I had this problem and would like to get comments from you guys: my table only uses one index (say world index), and has a few columns, one of them is client count. I followed the mentioned example, and calls

mib file not loaded

2007-12-14 Thread Shawn_He
Hi, On one machine, I was running snmpd from /usr/local/sbin using snmpd.conf from /usr/local/share/snmp, and I placed my subagent.conf in the same directory as the main snmpd.conf, and my subagent was able to find the mib file. However, on another machine, snmpd was installed by other person,

does net-snmp internally support auto-reconnect for subagent?

2007-12-14 Thread Shawn_He
Right now if the timeout value on master agent uses default 1 try 5 seconds, after a while my subagent would get a SIGPIPE signal and the application would core dump. So I assume net-snmp internally doesn't handle this signal or auto-reconnect after the signal catches, or is it just that I

Is it possible to load a mib file from a relative path to the subagent?

2007-12-11 Thread Shawn_He
Is it possible for a subagent to load a mibfile from a local directory where the subagent runs? If yes, how do you configure the location? Assume the location of the subagent is not fixed. In another word, if you move the whole directory of the subagent (together with its mib files under its

how to trim down net-snmp lib size

2007-12-07 Thread Shawn_He
Does anyone know if it's possible to trim down the lib size? Currently the lib sizes for 5.4.1 version are 3.2M, 1.6M and 0.5 M, they look almost as big as my application server code, and subagent is supposed to be only a small part of the server. Any suggestions? Thanks. -- Shawn He Online

Re: Net-snmp-users Digest, Vol 18, Issue 48

2007-12-01 Thread Shawn_He
What would trigger a agentX master agent failure? I frequently got the following error when I am running an application with subagent in it: AgentX master agent failed to respond to ping. Attempting to re-register. NET-SNMP version 5.4.1 AgentX subagent connected Thanks. -- Shawn He Online

What's the best way to store data in net-snmp

2007-11-06 Thread Shawn_He
What's the best way to store data in net-snmp? I assume it would be best to save the data associated with its relevant mib node in the mib tree. I notice that there is void pointer my_reg_void inside netsnmp_handler_registration data structure, not sure if that's the best place to save the

Re: question about agentx configure file

2007-11-05 Thread Shawn_He
I have called init_snmp(example_subagent) in my subagent daemon code, and created a example_subagent.conf under /user/local/shared/snmp. When I run the subagent daemon, I got error messages of the following: /usr/local/share/snmp/example_subagent.conf: line 1: Warning: Unknown token: mibdirs.

Re: question about agentx configure file

2007-11-05 Thread Shawn_He
To answer my own question, I think the location for the mib files of an application daemon running subagent has to be listed inside snmp.conf, and even though the master agent probably would load it first, it doesn't matter, and if a user changes the mib file of the application and restarts

Re: question about agentx configure file

2007-11-04 Thread Shawn_He
How does the configuration work for the subagent? I understand that master agent looks for configure files in certain directories, but I am not clear about how that works for a subagent, i.e., how would a subagent know where to look for its configure files, and what configure files to read in,

question about agentx configure file

2007-11-02 Thread Shawn_He
Hi Dave, For an agentX related mib file, does netsnmp supports dynamic loading of that mib file with the start of the agentx without restarting the master agent, which I supposes means that if the agentx subagent supports a configure file that identifies its mib file location? Or the master

Is it possible to register some mib node after init_snmp() called?

2007-11-01 Thread Shawn_He
Hi Dave, Following the previous threads that I posted, I am trying to device a solution that allows users to register mib variables dynamically at any time after the agent starts. From sample code, I notice that once init_snmp() is called, the agent is put inside an infinite loop calling

Re: Is it possible to retrieve oid from mib node name

2007-10-30 Thread Shawn_He
Hi Dave, Is there an api (function call) in net-snmp to do that? If not, is mib2c compiler source code available anywhere? After the mib file loaded by net-snmp, I want to register individual mib node and its corresponding handler function using its node name instead of oid (if I don't run

Is it possible to retrieve oid from mib node name

2007-10-29 Thread Shawn_He
Suppose mib node names in a subtree are all unique, is it possible to retrieve an oid using a node name? Is there a way to do that in net-snmp? The reason I might want to do that is I am thinking of not using mib2c compiler which is a little bit cumbersome to me. -- Shawn He Online Technology

Shawn He is out of the office.

2007-09-04 Thread Shawn_He
I will be out of the office starting 09/04/2007 and will not return until 09/10/2007. I will respond to your message when I return. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find

question about mib tree parser

2007-08-29 Thread Shawn_He
Does net-snmp support an api that allows to read in a mib file and returns a pointer to the mib tree that is generated based on the mib file? Thanks. -- Shawn He Online Technology Office:858-824-5969 Fax: 858-824-5878 AIM: CivRealtor