From b953ffea366a02c1e2bc2dfeda05b29292e60054 Mon Sep 17 00:00:00 2001
From: Jaime Melis <j.melis@fdi.ucm.es>
Date: Mon, 30 Aug 2010 16:34:08 +0200
Subject: [PATCH] feature-307: onehost sync

---
 src/cli/onehost | 11 +++++++++++
 1 file changed, 11 insertions(+)

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