Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop, start, restart services

Status
Not open for further replies.

brno78

IS-IT--Management
Jul 21, 2005
4
AT
Hi folks!
Does anybody know how I can stop and start services from Windows with a snmpset command?
I'm looking for a MIB that can show me the services but I found none.
Thanks
 
The old LAN Manager MIB (.1.3.6.1.4.1.77) will show a basic services table, but will not give you control over the services.
SNMP Informant's WMI agent will give you a much more comprehensive solution, including the ability to force a service to stop or start using SNMP sets. It works very well!
 
Do know a Linux tool to do the same? We want to use Nagios to monitor Windows and Linux machines and to set different parameters like IP-Adress, start stop services and so on.
 
Try check_nt and nsclient, basically the same idea as nrpe and check_nrpe. You can execute commands on the remote server.
 
The net-snmp agent that is installed on most Linux systems supports SET functionality, though you will need to do some experimenting with the read/write oids that you want to change to make sure it does just what you want.
 
@lgarner
I've tested check_nt an nsclient but are you sure that I can set states to the services? And if yes, how?
 
@peterc73
Yes that's right but I tried some times to set different values to the oids that are interessting for me. But I found no way to control services or to give the machine another ip adress. I don't think that this will be possible with the "normal" set functionality from linux.
 
If you can set your states via SNMP, then just give the Windows server a RW community use snmpset.

Sorry, I meant to say check_nrpe and a Windows nrpe client. Check
I don't know what you mean by "set states to the services", but you mentioned stopping and restarting services. You can execute "net stop service" at the console; you can also put that into nrpe_nt's config and remotely trigger it with check_nrpe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top