FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


fhscripts:check:check_rootpass.exp.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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]
kurihara
Line 1: Line 1:
-~~NOTOC~~ 
 [[:index.html#FastHandle Scripts|FastHandle Scripts]] [[:index.html#FastHandle Scripts|FastHandle Scripts]]
-====== check_rootpass.exp ======+====== Expect to Check Root Passowrd  after logging as a general user ======
  
 +$FHHOME/bin/check_rootpass.exp
  
-===== How to use =====+\\ 
 +{{INLINETOC}} 
 +\\ 
 + 
 +===== How to use check_rootpass.exp=====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ check_rootpass.exp  192.168.0.10  'PASSWORD' $ check_rootpass.exp  192.168.0.10  'PASSWORD'
Line 12: Line 16:
  
 \\ \\
-===== Script =====+===== check_rootpass.exp ===== 
 +$FHHOME/bin/check_rootpass.exp
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
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 PASSWORD+set LOGINPASS PASSWORD
  
  
Line 29: Line 34:
  
 expect "password: " expect "password: "
-send "$INFRAPASS\r"+send "$LOGINPASS\r"
  
 expect "$ " expect "$ "
Line 51: Line 56:
 \\ \\
 <WRAP box 90%> <WRAP box 90%>
-<catlist -noAddPageButton -smallHead -sortAscending>+<catlist ..: -noAddPageButton -smallHead -sortAscending>
 </WRAP> </WRAP>
  


fhscripts/check/check_rootpass.exp.html.txt · Last modified: 2018/03/29 00:05 by kurihara