Hi,
I have compiled the sub agent using AgentX
[example-demon.c, nstAgentSubagentObject.c] in Windows mode. [Got the
source code from
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent#Instrumenting_your_own_code_with_agentx_subagent_support].
Enabled the "master agentx" line in snmpd,conf and "agentXSocket
tcp:localhost:705" in example-demon.conf
Run the agent[snmpd] exe and subagent[exampled] exe separately, both are
running fine. Request the GET operation for the OID
".1.3.6.1.4.1.8072.2.4.1.1.2.0" and received the response as "2" in MIB
browser.
static long nstAgentSubagentObject = 2;
I want to clarify how this request and response works, 1 or 2? How to make
sure the this flow? What are all the low level APIs involved in this stack?
1.
--------------- --------------
-------------- ------------
| mib |---Request GET Operation-->| Agent |----------->| Sub
|-----Reqest--------->| MIB |
| browser | | |
| Agent | | OIDs |
| |<---Response----------------------|
|<-----------| |<-----Response-----| |
--------------- --------------
------------- -------------
2 .
------------
-------------- -----------
| mib |--------Request GET Operation------------------------>|
|---------Request------->| MIB |
| browser| ------------
| Sub | | OIDs |
| | | Agent |
| Agent | | |
| | ------------
| | | |
| |<----Response-----------------------------------------------
| |<----Response--------- | |
-------------
--------------- -----------
Thanks in advance.
Suresh
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders