Have you tried the solution Dave proposed? It seems so much easier than the one I gave?
If you want to implement your own private MIB to do this, first follow the NET-SNMP tutorial about extending the agent: http://www.net-snmp.org/tutorial-5/toolkit/mib_module/index.html Regards, David Dave wrote: It should be possibly to use the UCD-SNMP-MIB::extTable to handle this, by setting up a (dummy) "exec" line: exec reboot /usr/bin/uptime and then a corresponding "execfix" line: execfix reboot /usr/bin/reboot Then snmpset ..... UCD-SNMP-MIB::extErrFix.{N} i 1 (where {N} is the appropriate index) should reboot the system. But be *VERY* careful about your access control settings. This *NOT* something you want to allow general access to with the "public" or "private" communities. (Or probably any Internet-wide community-based SNMP at all!) Dave -----Original Message----- Sent: Thursday, June 03, 2004 1:28 PM Subject: RE: how to reboot the pc using snmp? Dear Sir, Thank you very much for your reply, but can you please tell me exactly what to do in some detail. thanks jyoti ------------------------------------------------------------------------------------------------------------------- Este correo electr�nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci�n de car�cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgaci�n, copia o distribuci�n a terceros sin la previa autorizaci�n escrita de Indra. En el caso de haber recibido este correo electr�nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv�o a la direcci�n electr�nica del remitente. The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
