-
Notifications
You must be signed in to change notification settings - Fork 0
s57445560/sun_put_get_cmd
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
---------------------------------------------------------------------------------------------------------- | 程序名称:sun工具箱 |版本:1.0.0 |作者:孙杨 | | 目前本版本可以支持,主机与组的设置,协程的方式远端执行命令,上传下载文件 | ---------------------------------------------------------------------------------------------------------- 程序需要在linux下执行!!!! --help 可以查看帮助信息 ###############################使用模块简介 程序用的gevent协程方式传递,使用paramiko实现远端的操作,configparser配置文件的处理 在put的时候,默认会传递到远端的/tmp目录下 -H all 是全部执行 ---------------目录说明 data 目录是存放主机和组的信息 ip 为存放主机信息 使用的是configparser作为配置文件 格式如下: [192.168.2.141] 服务器ip passwd = 123456 密码 group 为存放组的信息 使用的是configparser作为配置文件 格式如下: [web1] 组名 hosts = 192.168.2.141,192.168.2.142 包含什么主机,多台主机需要用逗号分割 get_file 从远程批量get文件的时候,存放文件的目录 默认是用远程主机ip为子目录 里面是get过来的文件,这样的设计主要是为了避免多台get文件时覆盖问题。 requirements.txt 需要安装的依赖包 test 测试的结果
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published