Solved

Advanced SNMP question

Posted on 2014-02-28
4
269 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 167 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 167 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 166 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

690 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