summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/wakeonlan.sh
blob: 1213f79b206f8bcc2c5526a7e2838bb520cbfb46 (plain)
1
2
3
4
5
6
7
8
9
10
11
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