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_rootpass.exp.html [2017/12/04 00:22] kurihara |
fhscripts:check:check_rootpass.exp.html [2018/03/29 00:05] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOTOC~~ | ||
[[: | [[: | ||
- | ====== | + | ====== |
+ | $FHHOME/ | ||
- | ===== How to use ===== | + | \\ |
+ | {{INLINETOC}} | ||
+ | \\ | ||
+ | |||
+ | ===== How to use check_rootpass.exp===== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
$ check_rootpass.exp | $ check_rootpass.exp | ||
Line 12: | Line 16: | ||
\\ | \\ | ||
- | ===== Script | + | ===== check_rootpass.exp |
+ | $FHHOME/ | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 23: | Line 28: | ||
set IP [lindex $argv 0] | set IP [lindex $argv 0] | ||
set ROOTPASS [lindex $argv 1] | set ROOTPASS [lindex $argv 1] | ||
- | set INFRAPASS | + | set LOGINPASS |
Line 29: | Line 34: | ||
expect " | expect " | ||
- | send "$INFRAPASS\r" | + | send "$LOGINPASS\r" |
expect "$ " | expect "$ " | ||
Line 51: | Line 56: | ||
\\ | \\ | ||
<WRAP box 90%> | <WRAP box 90%> | ||
- | <catlist -noAddPageButton -smallHead -sortAscending> | + | < |
</ | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.