#1
|
|||
|
|||
Script Send Password failed
Hello,
I'm writing a script to automatically change passwords on Hirschmann Switches, but to send the old Password fails. The connect via telnet is working. Script: crt.Screen.Send "users passwd user" & vbCr crt.Screen.WaitForString "Enter old password:" crt.Screen.Send oldPass & vbCr crt.Screen.WaitForString "Enter new password:" crt.Screen.Send newPass & vbCr crt.Screen.WaitForString "Confirm new password:" crt.Screen.Send newPass & vbCr Logfile: (K2_EB_SW001) >en (K2_EB_SW001) #conf (K2_EB_SW001) (Config)#users passwd user Enter old password:*** Incorrect Password! (K2_EB_SW001) (Config)#Exit The old Password has 5 Digits but only 3 "*" are in the logfile. |
#2
|
|||
|
|||
Hi kraftr,
I do not see a synchronous statement in your script. As described in our VB scripting manual here (section 4.2, specifically Avoid "Missing" Data with Screen.Synchronous = True), using synchronous is the key to avoiding missing data coming from the remote.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#3
|
|||
|
|||
Hi Brenda,
Thank you for your reply, but the "Screen.Synchronous = True" statement is in the script. I have tested "crt.Sleep" commands, but without success. In the putty-Logfile I don't see anything wrong. |
#4
|
|||
|
|||
Hi kraftr,
I will need to see a copy of the complete script, with sensitive data redacted. When redacting, please leave an equal number of redaction characters (ie: 192.0.0.1 becomes ###.#.#.#). Please send it to support@vandyke.com and reference "Attn Brenda - Forum Thread #12428".
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|