mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Add WOL list.
This wakes up a text file containing one MAC address per line.
This commit is contained in:
parent
f1e9525590
commit
cfa83c4bfe
@ -4,6 +4,17 @@ Network tools to run from the Master
|
||||
|
||||
import socket
|
||||
|
||||
def wollist(maclist, bcast='255.255.255.255', destport=9):
|
||||
'''
|
||||
Send a "Magic Packet" to wake up a list of Minions.
|
||||
This list must contain one MAC hardware address per line
|
||||
|
||||
CLI Example::
|
||||
|
||||
salt-run '/path/to/maclist'
|
||||
salt-run '/path/to/maclist' 255.255.255.255 7
|
||||
salt-run '/path/to/maclist' 255.255.255.255 7
|
||||
'''
|
||||
def wol(mac, bcast='255.255.255.255', destport=9):
|
||||
'''
|
||||
Send a "Magic Packet" to wake up a Minion
|
||||
|
Loading…
Reference in New Issue
Block a user