FastHandle - Automation Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Top     SiteMap

Sidebar


Top     SiteMap

Manager Server

Target Server













.

fhscripts:check_loginpass.exp.html



FastHandle Scripts

check_loginpass.exp

$FHHOME/fhscripts/check_loginpass.exp


check_loginpass.exp

$FHHOME/fhscripts/check_loginpass.exp

#!/usr/bin/expect
#########################################################
#./check_loginpass.exp  $IP $USER '$PASS'
#
#########################################################

set IP  [lindex $argv 0]
set USER [lindex $argv 1]
set PASS [lindex $argv 2]


spawn ssh $USER@$IP

expect "password: "
send "$PASS\r"

expect "$ "
send "LANG=C date\r"

expect "$ "
send "exit\r"


exit 0








FastHandle Scripts



fhscripts/check_loginpass.exp.html.txt ยท Last modified: 2018/01/08 00:06 by kurihara