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 av
exec or system can invoke the cmd command
Directly on the code:
Copy Code code as follows:
/** Open the Windows Calculator * *
EXEC (' Start c:windowssystem32calc.exe ');
/** PHP to generate a batch file for Windows, and then execute this batch
Batch modification file name
import os
dir = os.getcwd ()
dir = Os.chdir (R ' C:\Users\Administrator\Desktop\cupdata ')
j = 0 for
file in Os.listdir (dir):
#os. Listdir ('. ') Traverses each file name within the folder and returns a list if file[-2 containing the
JMeter Project maven file under this. bat tool, you can move the necessary jar packages to the JMeter response folderrem This file is placed under the JMeter script Maven project root directory, and Pom.xml under the same folder REM pre-conditions, the official website of the Apache download-jmeter-3.2.Zipput the following FilePath and unzip to the current folder set FilePath=D:\work\jmeterPerformanceTestre
First, what is Windows services?A: Microsoft Windows services (that is, previous NT services) enable you to create executable applications that can run for a long time in their own Windows sessions. These services can be started automatically when the computer starts, can be paused and restarted, and does not display any user interface. This makes the service ide
will also encounter this situation, some files we have modified it! There is a new version on the Web. The original copy of the file we need to update the timely. So how do you sync updates? Of course, we can copy the latest good documents to the past, which is also a solution.If there are many changes to the file, you will not remember that the document is updated. So much of the original copy of the
Detecting network Connectivity I'm using the Cong approach, which is " External Network -- Gateway -- Intranet -- This machine " , the implementation of the script is also based on this order Ping to detect, in order to improve the detection speed, here I only Ping the 2 times, you can make changes according to your own needs. How to use the great gods will ... copy code, save as . Bat after the file is executed. 1 @echo off2 Color 2F3 Title Network c
() f.close () F = Open (Path, ' WB ') f.write (content) f.close () print ' Convert%s finish '% (path) def useage (): If Len (sys.argv) = = 1:print ' Useage:utf8 file or dir ... ' return truedef Exist_error (f): If not os.path.exists (f):p rint ' ERROR:%s was not exist '% (f) return Truedef main (): If Useage () : Returnfor F in Sys.argv[1:]:if Exist_error (f): Breakif Os.path.isdir (f): For Root, dirs, files in Os.walk (f): For I in Files : Convert (
For more information about how to use winscp to upload files through the SSH port for next batch processing in windows, see this article.
1. Download winscpYou can find it on the Internet. I installed winscp under c :.2. Save the command to be executed to the winscp. bat file. This winscp. bat can be created by myself. I put it under d.Content of the winscp. bat
Number of Windows Scan Port links batch
Because we have a problem with the disconnected development of a program here, there are often thousands of links in the established state, but in fact these links should have been disconnected, when the link piled up to a certain extent, the server can not access the situation. That's why the following script was generated.
The purpose of the script is to make a st
Debian automatically mounts windows partition batch processing-Linux Release Technology-Debian information. The following is a detailed description. [I = s] This post was last edited by chenxiaobosc
First you have to install NTFS-3G, the following are transferred from the Internet.
Run the following command to edit the Mount script autowinfs.
Sudo gedit/usr/sbin/autowinfs
Copy and paste the following
After years of not writing batch processing, the first case of the new company is to write a bat script, batch update collection agent configuration file, which involves remote IP port detection.This thought would be as simple as Linux to judge:
Copy Code code as follows:
echo q|telnet-e ' q ' $ip $port echo "$ip:p ort Tong" | | echo "$ip:p ort.
Think that using the IDE to generate MAVEN projects will get stuck, very slowly. A cmd Batch command was written with CMD to generate the MAVEN project. The effect is as followsBuild Project import idea after the structure is as followsThe batch command code is as follows@echo Off::echo Please select the project type: Echo 1.maven-archetype-quickstartecho 2.maven-archetype-webappset/p webtype= Please select
For people with obsessive-compulsive disorder, if I have deleted some software, but there is a system tray inside it, I will be very uncomfortable. So, there is no way, must think of ways to clear it off, but also a peace of their own!!! I do not know if you have encountered the same problems with me, the following post a batch file code for obsessive-Compulsive patients use!!!!@echo Offtaskkill/Im Explorer
previously created. will not be deleted to the Recycle Bin. specifies that the path is the folder path to be deleted, which can be placed under any folder . forfiles/p d:\aizzw\log/m *.log-d -7/c "cmd/c del/f @path" Parameter explanation: Here,/P refers to the path of the backup file to be deleted /M refers to the character to match, the wildcard character is the * number, and the suffix name can be modified according to the actual situation .
Windows bulk Add firewall exception port
Copy Code code as follows:
echo off
Cls
Set var=30000
Set end=30010
: Continue
set/a var+=1
echo Add Port%var%
netsh firewall add portopening TCP%var% ftp_data_%var%
If%var% LSS%end% Goto Continue
Echo Complete
Pause
The following article features, if the order can be manually added, can also be batch processing VBS JS, su
\ WinRAR.exe" a-r-ibck-p123456-y E: \ wwwroot \ Default \ % date :~ 0, 102.16-webdata.rar E: \ wwwroot \ Default \ webmysql \*.*
Delete copy dataE: \ wwwroot \ Default \ webmysql \ * is the Backup Directory, which must be deleted next time. Otherwise, it is easy to repeat.Copy codeThe Code is as follows: del/s/q E: \ wwwroot \ Default \ webmysql \*
Backup Task downloadNote:Download commands from the website to the specified directoryCopy codeThe Code is as follows: wget http: // WEB address of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.