File tree Expand file tree Collapse file tree 1 file changed +20
-20
lines changed
Expand file tree Collapse file tree 1 file changed +20
-20
lines changed Original file line number Diff line number Diff line change 11==========
22
3- ## 本项目为日常工作中的使用的python脚本
3+ 本项目为日常工作中的使用的python脚本
44
55
6- ## # 1 . ssh_thread.py 是一个批量执行命令的脚本,支持直接执行ssh命令及文件传输,支持多线程
6+ 1 . ssh_thread.py 是一个批量执行命令的脚本,支持直接执行ssh命令及文件传输,支持多线程
77
8- 使用说明如下:
8+ 使用说明如下:
99
10- -h,-H,--help 帮助页面
11- -C, --cmd 执行命令模式
12- -M, --command 执行命令模式
13- -S, --sendfile 传输文件模式
14- -L, --localpath 本地文件路径
15- -R, --remotepath 远程服务器路径
10+ -h,-H,--help 帮助页面
11+ -C, --cmd 执行命令模式
12+ -M, --command 执行命令模式
13+ -S, --sendfile 传输文件模式
14+ -L, --localpath 本地文件路径
15+ -R, --remotepath 远程服务器路径
1616
17- IP列表格式:
17+ IP列表格式:
1818
19- IP地址 用户名 密码 端口
20- 192.168.1.1 root 123456 22
19+ IP地址 用户名 密码 端口
20+ 192.168.1.1 root 123456 22
2121
2222 e.g.
2323 批量执行命令格式: -C "IP列表" -M '执行的命令'
2424 批量传送文件: -S "IP列表" -L "本地文件路径" -R "远程文件路径"
25- 错误日志文件:$PWD/ssh_errors.log
25+ 错误日志文件:$PWD/ssh_errors.log
2626
27- ## # 2 . check_ping.py 多进程检测ping,并取值
27+ 2 . check_ping.py 多进程检测ping,并取值
2828
29- 默认开启4个进程,需要将hosts.txt IP列表文件放入同一目录下,IP列表每行一个,支持域名、IP
29+ 默认开启4个进程,需要将hosts.txt IP列表文件放入同一目录下,IP列表每行一个,支持域名、IP
3030
3131
32- ## # 3 . check_ip138.py 通过ip138检测IP(域名)归属地
32+ 3 . check_ip138.py 通过ip138检测IP(域名)归属地
3333
34- 使用方法: python check_ip138.py 192.168.1.1
34+ 使用方法: python check_ip138.py 192.168.1.1
3535
3636
3737
3838
39- ## # 4 . vps_baidu.py 使用baidupan备份VPS
39+ 4 . vps_baidu.py 使用baidupan备份VPS
4040
41- pip install baidupan
41+ pip install baidupan
4242
43- ### 参考:http://solos.github.io/baidupan/
43+ 参考:http://solos.github.io/baidupan/
You can’t perform that action at this time.
0 commit comments