FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
fhscripts:check:check_loginpass.exp.html [2017/11/07 00:45] kurihara ↷ Page name changed from scripts:login-check.html to scripts:passwd-check.html |
fhscripts:check:check_loginpass.exp.html [2018/03/29 00:05] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | [[: |
+ | ====== | ||
+ | $FHHOME/ | ||
+ | |||
+ | \\ | ||
+ | {{INLINETOC}} | ||
+ | \\ | ||
+ | |||
+ | ===== check_loginpass.exp ===== | ||
+ | $FHHOME/ | ||
+ | |||
+ | <sxh bash toolbar: | ||
+ | # | ||
+ | ######################################################### | ||
+ | # | ||
+ | # | ||
+ | ######################################################### | ||
+ | |||
+ | set IP [lindex $argv 0] | ||
+ | set USER [lindex $argv 1] | ||
+ | set PASS [lindex $argv 2] | ||
+ | |||
+ | |||
+ | spawn ssh $USER@$IP | ||
+ | |||
+ | expect " | ||
+ | send " | ||
+ | |||
+ | expect "$ " | ||
+ | send " | ||
+ | |||
+ | expect "$ " | ||
+ | send " | ||
+ | |||
+ | |||
+ | exit 0 | ||
+ | </ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | <WRAP box 90%> | ||
+ | <catlist ..: -noAddPageButton -smallHead -sortAscending | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | [[: |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.