diff --git a/src/cli/onehost b/src/cli/onehost index f4f26b83f9..7d49757a36 100755 --- a/src/cli/onehost +++ b/src/cli/onehost @@ -187,6 +187,9 @@ Commands: * top (Lists hosts continuously) onehost top +* sync (synchronizes probes with remote hosts) + onehost sync + EOT def text_commands @@ -357,6 +360,14 @@ when "disable" end end +when "sync" + check_parameters("sync", 0) + if ONE_LOCATION + FileUtils.touch "#{ONE_LOCATION}/lib/remotes" + else + FileUtils.touch "/var/lib/one/remotes" + end + else onehost_opts.print_help exit -1