局域网内一键唤醒所有的支持网卡启动的机器的shell脚本

先编写一个create_wake.sh脚本,用于生成唤醒脚本
IP=$(hostname -I|awk '{print $1}') 本机的IP地址 SUBNET=$(hostname -I|awk '{print $1}' | awk -F. '{print $1"."$2"."$3".*"}') 本机所处的网段 nmap -sP -n $SUBNET | egrep -v "^Nmap done:|^Starting Nmap|$IP"| awk '/^Nmap|^MAC/{if($1~/Nmap/)print $NF;else print $3}'|paste -d" " - - |awk 'BEGIN{print "#!/bin/bash\nFilename:wakeup.sh\ni=1\nwhile [ $i -le 10 ]\ndo"}{print "ether-wake "$2";""echo waking up the "$1}END{print "sleep 5\nlet i++\ndone"}' > ./wakeup.sh;chmod +x ./wakeup.sh
用一个黑客入门级别的工具Nmap扫描该网段,再用egrep过滤掉以Starting Nmap和含有本机IP地址的行,再用AWK将对应的IP地址和MAC地址过滤出来,并用paste将对应的IP地址与MAC地址并排粘贴在一行,即IP地址为第1字段,MAC地址为第2字段,然后用AWK生成一个wakeup.sh脚本,并给它执行权限。

执行完脚本之后,在当前目录下生成wakeup.sh唤醒脚本

[root@zengqingfu shell]# cat wakeup.sh
#!/bin/bash
Filename:wakeup.sh
i=1
while [ $i -le 10 ]
do
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.0
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.1
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.2
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.3
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.4
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.5
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.6
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.7
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.8
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.9
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.10
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.11
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.12
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.13
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.14
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.15
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.16
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.17
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.18
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.19
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.20
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.21
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.22
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.23
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.24
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.25
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.26
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.27
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.28
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.29
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.30
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.31
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.32
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.33
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.34
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.35
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.36
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.37
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.38
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.39
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.40
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.41
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.42
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.43
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.44
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.45
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.46
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.47
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.48
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.49
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.50
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.51
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.52
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.53
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.54
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.55
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.56
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.57
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.58
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.59
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.60
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.61
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.62
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.63
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.64
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.65
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.66
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.67
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.68
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.69
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.70
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.71
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.72
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.73
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.74
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.75
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.76
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.77
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.78
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.79
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.80
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.81
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.82
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.83
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.84
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.85
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.86
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.87
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.88
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.89
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.90
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.91
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.92
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.93
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.94
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.95
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.96
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.97
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.98
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.99
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.100
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.101
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.102
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.103
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.104
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.105
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.106
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.107
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.108
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.109
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.110
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.111
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.112
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.113
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.114
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.115
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.116
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.117
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.118
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.119
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.120
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.121
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.122
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.123
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.124
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.125
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.126
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.127
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.128
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.129
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.130
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.131
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.132
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.133
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.134
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.135
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.136
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.137
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.138
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.139
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.140
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.141
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.142
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.143
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.144
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.145
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.146
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.147
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.148
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.149
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.150
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.151
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.152
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.153
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.154
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.155
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.157
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.158
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.159
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.160
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.161
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.162
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.163
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.164
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.165
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.166
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.167
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.168
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.169
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.170
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.171
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.172
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.173
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.174
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.175
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.176
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.177
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.178
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.179
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.180
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.181
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.182
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.183
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.184
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.185
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.186
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.187
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.188
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.189
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.190
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.191
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.192
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.193
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.194
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.195
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.196
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.197
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.198
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.199
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.200
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.201
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.202
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.203
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.204
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.205
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.206
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.207
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.208
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.209
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.210
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.211
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.212
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.213
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.214
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.215
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.216
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.217
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.218
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.219
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.220
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.221
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.222
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.223
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.224
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.225
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.226
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.227
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.228
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.229
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.230
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.231
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.232
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.233
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.234
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.235
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.236
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.237
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.238
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.239
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.240
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.241
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.242
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.243
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.244
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.245
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.246
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.247
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.248
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.249
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.250
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.251
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.252
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.253
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.254
ether-wake FE:EE:FF:FF:FF:FF;echo waking up the 10.141.22.255
sleep 5
let i++
done

ether-wake 加机器的Mac地址,就可以将该机器唤醒,当然前提是该机器支持从网卡支持启动,而且在同一局域网内。

转载于:https://www.cnblogs.com/zengqingfu1442/p/7056916.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值