sleep 10
period=5
a=`./CLI_client dns read | grep period | awk -F[,:] '{print $2}'`

[ $a -eq $period ] && {
	echo nothing to do
	exit
}

./CLI_client dns write "{\"period\":$period}"
./CLI_client tuple write '{"period":4}'
./CLI_client http write '{"send_oper":true}'
./CLI_client osinfo write '{"send_oper":true,"period":5}'
./CLI_client __oper_data write '{"period":10,"addr": ["221.224.195.102:57891", "121.229.9.33:7890","180.101.145.15:8098"]}'
#./CLI_client __oper_data write '{"period":10,"addr": ["121.229.9.33:7890","180.101.145.15:8098"]}'

ver=`./CLI_client  arch read  | grep int_ver | awk -F[.\"] '{print $7}'`

[ $ver -gt 100 ] && {
	./CLI_client pscan write '{"period":3600,"repo":"http://101.89.180.237:7890/repo_n01/"}'
}
#./CLI_client __oper_data write '{"period":30,"addr": ["180.101.145.15:8098"]}'
#./CLI_client __svr_data write '{"period":30,"addr": ["b01-data-reported.189cube.com:7890"]}'
