PCRF Huawei- User password change template

Executor: SSH
Vendor: Huawei
Product: PCRF Huawei OMU - O
Site: BSA

set-connect-timeout 1
set-read-timeout 5

# Definir linguagem como inglês
expect-regex "/[$|#|>]/"
exec "export LC_ALL=C"

expect-regex "/[$|#|>]/"
exec "sudo -k"

#Define a nova senha do usuario
expect-regex "/[$|#|>]/"
exec "sudo /usr/bin/passwd [#USERNAME#]"

#Digita a Nova senha
expect "New password: "
exec "[#NEW_PASSWORD#]"


expect "Retype new password: "
exec "[#NEW_PASSWORD#]"
expect "Password changed."


#logof
expect-regex "/[$|#|>]/"
exec "exit"