#!/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