This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-oam/gloam/conf/collector/expect_scp_get
fangshunjian 788b321414 1、修改程序启动读取配置文件,修改node_table表信息
2、添加数据收集脚本,程序启动时主动下发监测脚本,同时修改监测配置文件seq_id
3、修改进程shell命令
2018-12-21 16:55:02 +06:00

21 lines
323 B
Plaintext

#!/usr/bin/expect
set timeout 3600
set password [lindex $argv 0]
set src_file [lindex $argv 1]
set dest_file [lindex $argv 2]
spawn scp -r $src_file $dest_file
expect {
"(yes/no)?" {
send "yes\n"
expect "*assword:" { send "$password\n"}
}
"*assword:" {
send "$password\n"
}
"*csv" {
}
}
expect eof