summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/wakeonlan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/supplemental-web/wakeonlan.sh')
-rw-r--r--abs/core/supplemental-web/wakeonlan.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core/supplemental-web/wakeonlan.sh b/abs/core/supplemental-web/wakeonlan.sh
new file mode 100644
index 0000000..1213f79
--- /dev/null
+++ b/abs/core/supplemental-web/wakeonlan.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+HWADDR=`curl -s http://localhost/xymon/hobbit-cgi/svcstatus.sh?CLIENT=$1|grep HWaddr|tr -s [:space:]| cut -d" " -f5|uniq`
+
+#for mac in `grep HW "$DIR/$FILE" |awk '{ print $5 } '`
+for mac in $HWADDR
+do
+ echo "/usr/bin/wol -v $mac"
+ /usr/bin/wol -v $mac
+done
+
+
+