Windows-based visual tools for Batch Management of linux servers
Background:
In terms of server O & M, nearly a thousand LINUX servers need to be managed in a unified manner, for example, you can run commands on LINUX servers in batches, upload packages on LINUX servers in batches, and download packages on LINUX servers in batches. Some common and powerful tools, such as puppet, dsh, and parallel-ssh, are available in the world, but they are too powerful, I had to learn their commands and complex usage, and for the "cainiao" who just entered the LINUX portal, the pure command operation without UI interface also seemed too "heavy. Therefore, this tool is developed based on the current industry and individual work needs.
Tool language:
This tool is developed using python2.7, and integrates with its WxPython powerful UI tool set-UI interface design module set, and paramiko Function Tool Set-supported by the Linux server operation module set.
Tool later:
As I have just learned about python and are not familiar with many methods and class modules, this tool has many bugs and many features to be optimized, I hope that my colleagues can improve their functions later, and make progress together for the open-source business and the growth of O & M friends. The source code will be synchronized to github in the near future.
Tool introduction:
Function introduction:
1. Select the "Execute Command" Operation:
Enter the IP address and password (note that the IP address and password are separated by spaces, and multiple IP addresses are differentiated by line breaks) and enter commands (note that different command lines are differentiated by line breaks, you can also use & connect to multiple commands). Click "run" to view the command execution result in the program directory by viewing the ssh_info.log log, the log area of the interface displays the running status of multi-server threads. (Note: because there are many results when there are multiple servers, the results are displayed using background log records .)
2. Select "Upload File:
Enter the IP address and password (note that the IP address and password are separated by spaces, and multiple IP addresses are differentiated by line breaks) and select "local directory" (the directory where the files to be uploaded locally are located, because sftp is used for uploading, make sure that the files in the local directory are not in the form of folders and must exist as independent files.) Select "remote directory" (the directory where the server receives the uploaded files, make sure that the remote directory ends with/, for example,/tmp/. After you click "run", all files in the local directory are uploaded to the server directory in sequence. You can also view the execution result in the ssh_info.log.
3. Select "download file:
Enter the IP address and password (note that the IP address and password are separated by spaces, and multiple IP addresses are differentiated by line breaks ), select "local directory" (directory of the files to be downloaded from the server) and select "remote directory" (directory of the files downloaded from the remote server, because sftp is used for download, therefore, you must ensure that the files in the remote directory are not in the form of folders and must exist as independent files. You must ensure that the end of the remote directory ends with/, such as/tmp/. After you click "run, files in the remote server directory are downloaded to the local directory in sequence. You can also view the execution result in the ssh_info.log.
4. Select the "use key" Operation:
When many O & M personnel manage servers, to avoid maintaining multiple password information, they can use public key and private key pairs to authorize the server. Therefore, this function is designed. When this function is selected, the key password and key Directory are set to operational. The "key password" is the password for secondary verification when the private key is used. The "key Directory" needs to browse to the path of the private key file. Of course, you can also enter it manually, ensure that the path is correct. Note: When this function is selected, the Entered IP address and password text box, that is, the password column in the first text box, will be invalid (because you know, you can enter only one IP column in the first text box. Multiple IP addresses exist as columns. Remember.
5. Other functions:
The port can be changed based on your actual situation. The default value is 22. The "Clear logs" function only clears the running logs in the current window. Advanced users can view the log file of paramiko in the program directory to confirm the running status of this tool.
:
(I personally think this is a good tool. If you really want to use it, please do not spray me, because downloading really requires points. If you have a passion and do not want to download points. Contact me and I will send you a message .)
Http://download.csdn.net/detail/drew27/7982757
Please indicate the source when reprinting, because this is the author's painstaking effort, although the program is not doing well.