?
Solved

Advanced SNMP question

Posted on 2014-02-28
4
Medium Priority
?
271 Views
Last Modified: 2014-03-03
Experts,

I know that you can reboot a router via snmp, is it possible to send a command via snmp to reboot a workstation?
0
Comment
Question by:ionmanage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 37

Accepted Solution

by:
bbao earned 668 total points
ID: 39896639
NO.

SNMP is used to monitor network-attached devices for conditions that warrant administrative attention, there is no device control command for SNMP.
0
 
LVL 27

Assisted Solution

by:skullnobrains
skullnobrains earned 668 total points
ID: 39897050
you need each machine to be configured to allow this.

basically
- create a mib in your snmpd software
- make it read-write
- have a script that checks its value periodically and issues a reboot command

some snmpd servers will let you directly trigger a script directly from within the server. it can even be triggered by reading a MIB instead of writing to it

it is actually trivial in perl's snmpd
this is a redhat doc but is applicable to anything that runs the same soft
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-System_Monitoring_Tools-Net-SNMP-Extending.html
0
 
LVL 38

Assisted Solution

by:Rich Rumble
Rich Rumble earned 664 total points
ID: 39897222
For windows it is possible, but not easy. It is better to use a remote command shell via power-shell, WMI or a program like PsShutDown, or even PsExec. You could set a trap for it to execute a command on a remote machine or using a script.

Here are some possible ways to access the WRITE portions of SNMP in windows
http://msdn.microsoft.com/en-us/library/aa393008%28v=vs.85%29.aspx
-rich
0
 
LVL 27

Expert Comment

by:skullnobrains
ID: 39897254
you can also do it in windows either with an snmp extension using the builtin snmpd
http://support.microsoft.com/kb/128729/en

or by installing perl's snmpd under windows (which actually used some of the dll's of windows's snmpd last time i checked)

... but if you have a domain, psshutdown is simpler

likewise most unices workstations can be shut down over ssh for example
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question