init
This commit is contained in:
20
root/netapp_usage_decide_billing/get4.sh
Executable file
20
root/netapp_usage_decide_billing/get4.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/expect -f
|
||||
set host [lindex $argv 0]
|
||||
spawn ssh connac4 -l admin
|
||||
expect "Password:"
|
||||
send "netapp123\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 /scripts/root/netapp_usage_decide/log4
|
||||
send "vol show -vserver decna4_PDV_NFS -volume * -fields volume,Size,used,percent-used\n"
|
||||
expect "::>"
|
||||
send "exit\n"
|
||||
interact
|
||||
|
||||
Reference in New Issue
Block a user