init III
This commit is contained in:
19
Expect Netapp Connect Beispiel/expect_beispiel.exp
Normal file
19
Expect Netapp Connect Beispiel/expect_beispiel.exp
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/expect -f
|
||||
set host [lindex $argv 0]
|
||||
spawn ssh $host -l admin
|
||||
expect "Password:"
|
||||
send "pW4n3taPP\n"
|
||||
expect "::>"
|
||||
send "rows 0\n"
|
||||
expect "::>"
|
||||
send "set -showseparator :\n"
|
||||
expect "::>"
|
||||
send "set -units GB\n"
|
||||
expect "::>"
|
||||
|
||||
set date [timestamp -format %C%y%m%d]
|
||||
log_file /home/conetadm/scripts/netapp/log
|
||||
send "vol show -fields vserver,volume,Aggregate,Size,available,percent-used\n"
|
||||
expect "::>"
|
||||
send "exit\n"
|
||||
interact
|
||||
Reference in New Issue
Block a user