forked from rocfy/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
remote_cmd | ||
========== | ||
|
||
远程批量执行管理多台服务器 | ||
-h,-H,--help 帮助页面 | ||
-C, --cmd 执行命令模式 | ||
-M, --command 执行命令模式 | ||
-S, --sendfile 传输文件模式 | ||
-L, --localpath 本地文件路径 | ||
-R, --remotepath 远程服务器路径 | ||
|
||
IP列表格式: | ||
|
||
IP地址 用户名 密码 端口 | ||
192.168.1.1 root 123456 22 | ||
|
||
e.g. | ||
批量执行命令格式: -C "IP列表" -M '执行的命令' | ||
批量传送文件: -S "IP列表" -L "本地文件路径" -R "远程文件路径" | ||
错误日志文件:$PWD/ssh_errors.log | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.