echo "ipmitool -H 192.168.1.$i -I lanplus -U admin -P admin poweroff" >> poweroff.txt
done
如果需要批量打开服务器,
2.执行以下该脚本,bash 1.sh ,输出到poweroff.txt里
3.复制poweroff.txt里的内容,在shell下执行即可,poweroff.txt下的内容如下:
ipmitool -H 192.168.1.0 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.1 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.2 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.3 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.4 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.5 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.6 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.7 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.8 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.9 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.10 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.11 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.12 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.13 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.14 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.15 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.16 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.17 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.18 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.19 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.20 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.21 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.22 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.23 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.24 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.25 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.26 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.27 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.28 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.29 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.30 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.31 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.32 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.33 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.34 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.35 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.36 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.37 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.38 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.39 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.40 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.41 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.42 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.43 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.44 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.45 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.46 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.47 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.48 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.49 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.50 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.51 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.52 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.53 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.54 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.55 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.56 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.57 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.58 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.59 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.60 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.61 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.62 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.63 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.64 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.65 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.66 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.67 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.68 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.69 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.70 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.71 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.72 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.73 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.74 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.75 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.76 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.77 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.78 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.79 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.80 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.81 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.82 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.83 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.84 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.85 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.86 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.87 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.88 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.89 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.90 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.91 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.92 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.93 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.94 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.95 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.96 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.97 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.98 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.99 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.100 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.101 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.102 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.103 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.104 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.105 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.106 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.107 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.108 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.109 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.110 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.111 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.112 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.113 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.114 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.115 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.116 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.117 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.118 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.119 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.120 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.121 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.122 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.123 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.124 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.125 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.126 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.127 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.128 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.129 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.130 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.131 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.132 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.133 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.134 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.135 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.136 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.137 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.138 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.139 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.140 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.141 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.142 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.143 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.144 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.145 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.146 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.147 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.148 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.149 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.150 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.151 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.152 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.153 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.154 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.155 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.156 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.157 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.158 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.159 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.160 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.161 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.162 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.163 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.164 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.165 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.166 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.167 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.168 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.169 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.170 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.171 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.172 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.173 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.174 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.175 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.176 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.177 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.178 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.179 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.180 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.181 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.182 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.183 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.184 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.185 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.186 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.187 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.188 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.189 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.190 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.191 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.192 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.193 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.194 -I lanplus -U admin -P admin poweroff
ipmitool -H 192.168.1.195 -I lanplus -U admin -P admin poweroff
![](https://img-blog.csdnimg.cn/img_convert/9a8cb5f8c0ec69e6499adead0da6e95b.png)
最全的Linux教程,Linux从入门到精通
======================
1. **linux从入门到精通(第2版)**
2. **Linux系统移植**
3. **Linux驱动开发入门与实战**
4. **LINUX 系统移植 第2版**
5. **Linux开源网络全栈详解 从DPDK到OpenFlow**
![华为18级工程师呕心沥血撰写3000页Linux学习笔记教程](https://img-blog.csdnimg.cn/img_convert/59742364bb1338737fe2d315a9e2ec54.png)
第一份《Linux从入门到精通》466页
====================
内容简介
====
本书是获得了很多读者好评的Linux经典畅销书**《Linux从入门到精通》的第2版**。本书第1版出版后曾经多次印刷,并被51CTO读书频道评为“最受读者喜爱的原创IT技术图书奖”。本书第﹖版以最新的Ubuntu 12.04为版本,循序渐进地向读者介绍了Linux 的基础应用、系统管理、网络应用、娱乐和办公、程序开发、服务器配置、系统安全等。本书附带1张光盘,内容为本书配套多媒体教学视频。另外,本书还为读者提供了大量的Linux学习资料和Ubuntu安装镜像文件,供读者免费下载。
![华为18级工程师呕心沥血撰写3000页Linux学习笔记教程](https://img-blog.csdnimg.cn/img_convert/9d4aefb6a92edea27b825e59aa1f2c54.png)
**本书适合广大Linux初中级用户、开源软件爱好者和大专院校的学生阅读,同时也非常适合准备从事Linux平台开发的各类人员。**
> 需要《Linux入门到精通》、《linux系统移植》、《Linux驱动开发入门实战》、《Linux开源网络全栈》电子书籍及教程的工程师朋友们劳烦您转发+评论