Jyoti> Is it possible to reboot a pc using snmp? 
Jyoti> Which MIB to use for this  purpose?

David> You could implement a private MIB to execute shutdown command
David> when a set is performed.

As David implies, there isn't a standard MIB to do this.
You'd have to implement it via a private MIB object.

But 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




-------------------------------------------------------
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

Reply via email to