Vendor: Nokia
Product: MDM
Executor: SSH
set-connect-timeout 10
set-read-timeout 10
set-ssh-version 2
# Definir linguagem como inglês
expect "*$"
exec "export LC_ALL=C"
# Executa passwd
expect "*$"
exec set-connect-timeout 1
set-read-timeout 5
# Definir linguagem como inglês
expect-regex "/[$|#|>]/"
exec "export LC_ALL=C"
#Define a nova senha do usuario
expect "*]$"
exec "sudo passwd [#USERNAME#]"
#Digita a Nova senha
expect "New password: "
exec "[#NEW_PASSWORD#]"
expect "Retype new password: "
exec "[#NEW_PASSWORD#]"
expect "*updated successfully."
#logof
expect "*]$"
exec "exit"