To: | "Tivoli NetView Discussions" <nv-l@lists.ca.ibm.com> |
---|---|
Subject: | Re: [NV-L] ? about automating action on Windows using SNMP Set |
From: | "Ahsan Ali" <ahsanali@gmail.com> |
Date: | Sat, 23 Sep 2006 00:22:58 +0500 |
Delivery-date: | Fri, 22 Sep 2006 20:41:17 +0100 |
Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NuOENtDqec4j7sZc6M10ZWH5NwXfxxQQm/1KwRGvbKcM18HTGXk8muBHfKI+O60W6HER2OuT5qjSccnzhBBy1eaPHqspbCfzp/WPVCqhVsraMZjEqwi2CjjsLrMGcWNpN7w6yyywMWvjevbMaOI4+SQ6MOUK65BsjkY0zrKA1tE= |
Envelope-to: | nv-l-archive@lists.skills-1st.co.uk |
In-reply-to: | <AD79F859134E49439B1BF655B50EB1DE038DDA83@pccsseaex01.pemcocorp.net> |
List-help: | <mailto:nv-l-request@lists.ca.ibm.com?subject=help> |
List-id: | Tivoli NetView Discussions <nv-l.lists.ca.ibm.com> |
List-post: | <mailto:nv-l@lists.ca.ibm.com> |
List-subscribe: | <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=subscribe> |
List-unsubscribe: | <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=unsubscribe> |
References: | <AD79F859134E49439B1BF655B50EB1DE038DDA83@pccsseaex01.pemcocorp.net> |
Reply-to: | Tivoli NetView Discussions <nv-l@lists.ca.ibm.com> |
Sender: | nv-l-bounces@lists.ca.ibm.com |
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 - http://sshwindows.sourceforge.net/ 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: http://www.tcl.tk/man/expect5.31/expect.1.html You can also use autoexpect to record an interactive session and turn it into a script: http://www.tcl.tk/man/expect5.31/autoexpect.1.html 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! --- Ahsan Ali Tivoli Technical Specialist, Software Group, IBM Pakistan _______________________________________________ NV-L mailing list NV-L@lists.ca.ibm.com Unsubscribe:NV-L-leave@lists.ca.ibm.com http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only) |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [NV-L] Email Rule for Windows, James Shanks |
---|---|
Next by Date: | Re: [NV-L] Email Rule for Windows, ronnie . ross |
Previous by Thread: | RE: [NV-L] ? about automating action on Windows using SNMP Set, Glen Warn |
Next by Thread: | [NV-L] Cisco aironet mib, Jorge Jiles |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web