Hi Robert,
I have another CLI process to control enable/disable the subagent traps
configuration. Currently I made the CLI work by snmpset the trap
configuration objects and save the p tokens in the permanent subagent .conf
file. This is working successfully to turn on/off subagent traps
generation.
My question came from how to make the CLI modify /etc/snmp/subagent.conf
tokens and then the subagent re-read them. Based on what you wrote, my
question is then how to let the CLI generate SIGHUP signal once
/etc/snmp/subagent.conf is updated.
Thanks for your support.
Emi
Robert Story
<[EMAIL PROTECTED]
com> To
[EMAIL PROTECTED]
06/01/2007 08:58 cc
AM [EMAIL PROTECTED]
et, [EMAIL PROTECTED]
Subject
Re: How to support subagent.conf
update
On Wed, 30 May 2007 13:48:18 -0500 [EMAIL PROTECTED] wrote:
EYC> The subagent framework is from mib2c.mfd.conf, I added
EYC> snmpd_register_config_handler() by myself so it can read from subagent
EYC> .conf file and save the p tokens to permanent subagent .conf file.
That
EYC> part is working successfully.
EYC>
EYC> I'm just wondering if there is a way to automatically re-read from the
EYC> subagent .conf whenever it is updated, does the master agent or
libnetsnmp*
EYC> provide this functionality to tell the subagent re-read the subagent
.conf
EYC> file?
Did you want to trigger the re-read from withing the subagent, or
externally? I
think that the libraries will re-read all conf files on receiving a SIGHUP.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders