Re: [NV-L] ? about automating action on Windows using SNMP Set
Okay, this sounds quite do-able.
When you get the event, you can call an expect script to connect to
the Windows server and do whatever it is that you need to do there.
However the expect script needs to be able to access the command line
on the Windows system.
The way I am thinking of is going to need you to have a telnet server
running on your windows system. Windows 2000 include a telnet server -
google for help on getting it up and running.
If clear-text passwords bother you, look into installing an SSH server
on Windows to give you access to the Windows command line over SSH -
Once you have the ability to telnet or SSH into your Windows server,
you can easily script the commands you need to execute to restart the
service ( net stop XYZ and then net start XYZ).
Expect is available as an rpm in RHAS 2.1 if I remember correctly. To
get started with expect, check out:
You can also use autoexpect to record an interactive session and turn
it into a script:
You might want to start with clear text passwords over telnet on a
test windows system and then once you've tested everything, move to
SSH and then onto the production server.
Good luck and let me know how it goes!
Tivoli Technical Specialist,
Software Group, IBM Pakistan
NV-L mailing list
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
Archive operated by Skills 1st Ltd
See also: The NetView Web