Comments on: Expect Script – Daylight Saving Time https://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/ technology, networking, virtualization and IP telephony Sat, 30 Oct 2021 14:38:00 +0000 hourly 1 https://wordpress.org/?v=6.8.3 By: Michael McNamara https://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/comment-page-1/#comment-17567 Sun, 30 Jun 2013 15:19:02 +0000 http://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/#comment-17567 In reply to Franck.

When I converted this document to TXT/HTML it looks like the Ctrl-Y was lost in the translation. You need to insert a Ctrl-Y into your Expect script. Assuming you are using VI you can do this pretty ease. You can also use autoexpect to record your keystrockes and then just cut-n-paste that value using VI.

Good Luck!

]]>
By: Franck https://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/comment-page-1/#comment-17537 Fri, 28 Jun 2013 10:16:49 +0000 http://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/#comment-17537 In reply to Maik Garbade.

Hello, on switch Nortel Ethernet Routing Switch 4548GT-PWR, I need “Enter Ctrl-Y to begin” to go next step
But it will not work in my expect script.
could you please give me your script ?
thanks
Franck

]]>
By: Michael McNamara https://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/comment-page-1/#comment-5927 Fri, 13 Jan 2012 03:55:54 +0000 http://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/#comment-5927 In reply to Maik Garbade.

Hi Maik,

You’ve got to really appreciate autoexpect… great script!

Cheers!

]]>
By: Maik Garbade https://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/comment-page-1/#comment-5917 Wed, 11 Jan 2012 15:37:17 +0000 http://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/#comment-5917 In reply to Maik Garbade.

solved

i generated my own script with autoexpect.

thx

]]>
By: Maik Garbade https://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/comment-page-1/#comment-5915 Wed, 11 Jan 2012 14:36:08 +0000 http://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/#comment-5915 Hey,

how to modify this script to connct to a switch without password … i have to input ctrl-y to get next step

Best regards,
Maik

]]>
By: Michael McNamara https://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/comment-page-1/#comment-1084 Fri, 31 Jul 2009 13:50:14 +0000 http://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/#comment-1084 In reply to David Ryba.

Hi David,

You could most certainly modify the Expect script above to change the password. You may need to tweak the script right after the login portion since we’re checking for a specific version of software on the ES 460/470 switches.

Instead of setting the time just change the commands to the following;
cli password read-only readpass
cli password read-write writepass

Just replace “readpass” and “writepass” with whatever password you wish.

Good Luck!

]]>
By: David Ryba https://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/comment-page-1/#comment-1080 Fri, 31 Jul 2009 09:36:22 +0000 http://blog.michaelfmcnamara.com/2008/07/expect-script-daylight-saving-time/#comment-1080 Hi,
I’m looking for a script to change password of lot of “RW passowrd” on ers25xx-T-pwr.
I find your script very intersting, and I looking for modify your’script to do it.

Do you think it’s possible ? Perhaps you have already make it or can you help me to do it ?

Best regards,
David.

P.S : sorry for my poor english.

]]>