how to use python to execute commands on many servers

空扰寡人 提交于 2019-12-11 01:58:04

问题


everyone! I have an admin task: I need to write a script to execute commands given in a file on a list of servers whose ip address, login name and password is given in another file. My goal is to execute a command on every server concurrently, that is I don't want to wait until a server finish its command before I ask another server to execute the command. Anyone know how to do it? Thanks!


回答1:


Fabric could be your answer. I am using it for my current project.



来源:https://stackoverflow.com/questions/11752613/how-to-use-python-to-execute-commands-on-many-servers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!