Re: about agentx support in windows

This is a discussion on Re: about agentx support in windows within the SNMP Coders forums, part of the Networking and Network Related category; --===============0440014148== Content-Type: multipart/alternative; boundary="----=_Part_7477_10133476.1165336462993" ------=_Part_7477_10133476.1165336462993 Content-Type: text/plain; charset=ISO-8859-1; ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-05-2006
bhushan
 
Posts: n/a
Default Re: about agentx support in windows

--===============0440014148==
Content-Type: multipart/alternative;
boundary="----=_Part_7477_10133476.1165336462993"

------=_Part_7477_10133476.1165336462993
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello
after reading code of init_agent, add_trap_session i understand that
add_trap_session function will register session & fill sinks global
structure
(struct trap_sink sinks) & this structure is used by netsnmp_send_traps
for sending trap i.e. if this structure is NULL no traps get send when we
are calling
send_v2trap/send_easy_trap etc. .
"init_agent" function call init_agent_read_config function & this function
inturn call

register_app_config_handler("trapsess", snmpd_parse_config_trapsess,
NULL, "[snmpcmdargs] host");
& snmpd_parse_config_trapsess function call add_trap_session function
so my question is register_app_config_handler get invoke when we are master
agent
in init_agent_read_config function . so if we are subagent then this
function never get
call.
so if we are subagent process then using which flow of code sinks structure
get fill
so that when we are calling send_v2trap then it get data from sinks
structure & send trap to destination
tell me If i am wrong .
Thanks in advance
Regards
Bhushan

------=_Part_7477_10133476.1165336462993
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello<br>after reading code of init_agent, add_trap_session i understand that <br>add_trap_session function will register session &amp; fill sinks global structure<br>(struct trap_sink sinks) &amp; this structure is used by netsnmp_send_traps
<br>for sending trap i.e. if this structure is NULL no traps get send when we are calling <br>send_v2trap/send_easy_trap etc. .<br>&quot;init_agent&quot; function call init_agent_read_config function &amp; this function inturn call
<br><br>register_app_config_handler(&quot;trapsess &quot;, snmpd_parse_config_trapsess, NULL,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp; &quot;[snmpcmdargs] host&quot;);<br>&amp; snmpd_parse_config_trapsess function call add_trap_session function<br>
so my question is register_app_config_handler get invoke when we are master agent <br>in init_agent_read_config function . so if we are subagent then this function never get <br>call.<br>so if we are subagent process then using which flow of code sinks structure get fill
<br>so that when we are calling send_v2trap then it get data from sinks structure &amp; send trap to destination<br>tell me If i am&nbsp; wrong .<br>Thanks in advance<br>Regards <br>Bhushan<br><br><br><br>

------=_Part_7477_10133476.1165336462993--


--===============0440014148==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
--===============0440014148==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============0440014148==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0