How to restart agent from itself?

2013-06-05 Thread santosh
Hi, I've a private mib implemented as dlmod with a SET oid which should restart the snmpd agent. I tried the following but didn't work. case MODE_SET_COMMIT: if( 0 == strncmp("restart", requests->requestvb->val.string, requests->requestvb->val_len) ) { system("/etc/init.d/

RE: How to restart agent from itself?

2013-06-05 Thread jregovic
the process read its configuration files again, you should have it send itself a SIGHUP signal. That might be the only way to achieve your desired action.  Original Message Subject: How to restart agent from itself? From: santosh <ysa...@gmail.com> Date: Wed, June 05, 201

Re: How to restart agent from itself?

2013-06-07 Thread santosh
ead its configuration files > again, you should have it send itself a SIGHUP signal. That might be the > only way to achieve your desired action. > > Original Message ---- > Subject: How to restart agent from itself? > From: santosh > Date: Wed, J