Hello,
I want to write a subagent that updates the values of some MIBs from a text
file (Some other function fill the file).

I am altering the following tutorial code to reach my goal:
http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demon/example-demon.c

So my subagent can check the file every (for example) 5 seconds, then call
a function that updates the OID values.
1. WHAT IS THAT UPDATE FUNCTION? I used
2. WHERE SHOULD I PLACE THIS CHECKING CODE? Is the main loop
*while(keep_running){...}* in the above link suitable?
3. WHAT DOES [agent_check_and_process(1);] LINE DO IN THE MAIN LOOP?
4. IS THERE ANOTHER WAY TO UPDATE SOME MIBS ITERATIVELY?

Thank you very much for your good support
Best regards,
Mustafa
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to