summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/lh_system_all_host_update
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-30 19:03:20 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-30 19:03:20 (GMT)
commit68def16b69900b781eab3f36f27d94eaf42a360b (patch)
tree55ae3b3f8a8611d73e1b2e4eb2bb12fe9c6d9fdd /abs/core/LinHES-system/lh_system_all_host_update
parentf01f4a6a837ccbdc55107bb0738846b5a56f1462 (diff)
downloadlinhes_pkgbuild-68def16b69900b781eab3f36f27d94eaf42a360b.zip
linhes_pkgbuild-68def16b69900b781eab3f36f27d94eaf42a360b.tar.gz
linhes_pkgbuild-68def16b69900b781eab3f36f27d94eaf42a360b.tar.bz2
linhes-system: add new utils for backup/update/and restore
Diffstat (limited to 'abs/core/LinHES-system/lh_system_all_host_update')
-rw-r--r--abs/core/LinHES-system/lh_system_all_host_update8
1 files changed, 8 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/lh_system_all_host_update b/abs/core/LinHES-system/lh_system_all_host_update
new file mode 100644
index 0000000..98fe668
--- /dev/null
+++ b/abs/core/LinHES-system/lh_system_all_host_update
@@ -0,0 +1,8 @@
+#!/bin/bash
+results=`cat /data/srv/xymon/server/etc/hosts.cfg|grep -v ^#|awk '{print $2}' `
+for i in $results
+do
+ echo "$i"
+ echo "-------------------------------------------"
+ sudo /usr/bin/func $i call pacman update_system $1
+done