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.
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.
@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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.