Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...with companys cutting back on training, lack of true support by makers of software, the forums are a great tool in your cyber-toolbox...."

Geography

Where in the world do Tek-Tips members come from?
brno78 (IS/IT--Management)
21 Jul 05 10:48
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
peterc73 (IS/IT--Management)
25 Jul 05 23:22
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!
brno78 (IS/IT--Management)
26 Jul 05 3:33
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.
lgarner (IS/IT--Management)
26 Jul 05 9:58
Try check_nt and nsclient, basically the same idea as nrpe and check_nrpe.  You can execute commands on the remote server.
peterc73 (IS/IT--Management)
27 Jul 05 7:53
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.
brno78 (IS/IT--Management)
27 Jul 05 7:53
@lgarner
I've tested check_nt an nsclient but are you sure that I can set states to the services? And if yes, how?
brno78 (IS/IT--Management)
27 Jul 05 8:03
@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.
lgarner (IS/IT--Management)
27 Jul 05 10:15
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 http://www.nagiosexchange.org/NRPE_Plugins.66.0.html

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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close