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/snmpd restart &", NULL);
                exit(0);
        }
        break;

With above code restart fails with socket unavailable error.


Thanks,
Santosh
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to