python中的pdsh
pypdsh的Python项目详细描述
Pypdsh
python版本的pdsh。
如何使用?
打开控制台,键入pypdsh -h
,您将看到一些参数
-h, --help
show this help message and exit
-i IP, --ip=IP
single ip or ip in format '192.168.1.[1-10,16,19,30-40]'
-I IP, --IP=IP
ip(s) in CSV file: ip | username | password
-c COMMAND, --command=COMMAND
single command or command in TXT file
-f FILE, --file=FILE
file to transmit to each host
-d DESTINATION, --destination=DESTINATION
destination path of each host, and this path must be existing in host(s)
-p PASSWORD, --password=PASSWORD
password of host(s)
-u USERNAME, --username=USERNAME
username of host(s)
--log-level=LOG_LEVEL
log level: INFO or ERROR
-v, -V, --version
show version number of pypdsh and exit