Vendor: Huawei
Product: vCUPS
Executor: SSH
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 /usr/bin/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"