A cloud server batch detection method, device, equipment and storage medium

The automated cloud server batch inspection method solves the problem of long time-consuming inspection of public cloud servers before they are put into production, achieves efficient inspection and statistics, reduces the amount of manual review, and improves inspection efficiency.

CN112433899BActive Publication Date: 2024-10-25CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011363451.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-10-25
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

In the existing technology, public cloud servers need to be manually inspected one by one before being put into production, which is time-consuming and requires huge manpower investment. It cannot effectively reduce the workload of server system inspection.

Method used

Provides a cloud server batch detection method. By receiving input test items and server login information, it performs IP address screening and detection, generates detection execution commands, automatically sends and executes test scripts to the cloud server, collects and classifies statistical detection results, and displays Summary and details to reduce the amount of manual review.

Benefits of technology

It realizes batch detection of cloud servers, reduces the workload of testers, improves inspection efficiency, saves time, avoids SSH login operations one by one, and improves inspection accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112433899B_ABST
    Figure CN112433899B_ABST
Patent Text Reader

Abstract

The present invention relates to a batch detection method, device, equipment and storage medium for cloud servers, the method comprising: receiving a test item to be executed input in a display interface and an IP address of at least one cloud server to execute the test item; adding a legal and reachable IP address to an IP address list; sending a detection execution command to a corresponding cloud server based on an IP address in the IP address list, the detection execution command including an identification of a test script; receiving a detection result returned by the cloud server, the detection result being obtained by the cloud server executing a test script based on the detection execution command, the test script being obtained by the cloud server parsing from the configuration file information of the management server based on the identification of the test script. By implementing the present invention, manual SSH login to each cloud server to perform inspections can be eliminated, reducing the workload of system inspections of cloud servers before production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud service technology, and in particular to a cloud server batch detection method, device, equipment and storage medium. Background Art

[0002] With the rapid growth of the scale of public cloud operations in data centers in recent years, many units have put into production thousands or even tens of thousands of x86 servers required for public cloud each year, and the workload of pre-delivery inspection has increased by dozens or even hundreds of times. In order to ensure the safe and stable operation of public cloud servers after they are put into production, it is urgent to carry out efficient and complete health inspections in advance.

[0003] Currently, operators usually use manual inspection methods for servers before going into production. They log in to the servers one by one through SSH (Secure Shell) and run commands or write scripts to check the current system-related items. However, if hundreds of servers need to be checked, 10 items need to be checked for each server, which will take a long time and require huge manpower investment. Summary of the invention

[0004] The technical problem to be solved by this application is to provide a cloud server batch detection method, device equipment and storage medium, which can prevent servers from being put into production with problems, reduce the workload of server system inspections before installation of various public cloud products, and say goodbye to manual SSH login to each server to perform relevant inspections.

[0005] In order to solve the above technical problems, on the one hand, the present application provides a cloud server batch detection method, the method comprising: receiving a test item to be executed input in a display interface and a login username, login password, SSH remote port and IP address of at least one cloud server to execute the test item; concurrently performing IP address legality screening and IP address reachability detection on the input IP address, and adding a legal and reachable IP address to an IP address list; based on the IP address in the IP address list, sending a detection execution command to the corresponding cloud server, the detection execution command including an identifier of the test script, and the identifier of the test script is a management server in An identifier of a test script corresponding to the test item generated when loading the configuration file information is started; receiving the detection result returned by the cloud server, the detection result is obtained by the cloud server executing the test script based on the detection execution command, and the test script is obtained by the cloud server parsing from the configuration file information of the management server based on the identifier of the test script; classifying and counting the detection results to obtain classified statistical results, and displaying the classified statistical results on the display interface, the classified statistical results including an overview and result details, the overview including the number of passes and the number requiring manual review, and the result details including abnormal server inspection results.

[0006] Furthermore, the receiving of the test items to be executed and the login user name, login password, SSH remote port and IP address of at least one cloud server to execute the test items input in the display interface includes: displaying a test item list on the display interface; receiving the test items to be executed selected by the user from the test item list; displaying at least one input box and at least one text field on the display interface; receiving the login user name, login password and SSH remote port of the cloud server to execute the test items input by the user in the input box, and receiving at least one IP address entered by the user in the text field.

[0007] Furthermore, the method also includes: classifying and counting the non-compliant IP addresses and unreachable IP addresses in the IP address list; and adding the IP address unreachable results and IP address abnormal results to the result details.

[0008] Furthermore, the method also includes: when the IP address is unreachable, accumulating the number of unreachable cloud servers in the IP address unreachable result; when the test result is failure, accumulating the number of cloud servers with abnormal checks in the server check exception result; when the IP address is reachable and compliant, and connection to the cloud server remote port is rejected due to an error, accumulating the number of cloud servers with abnormal checks in the server check exception result; when the IP address is reachable and compliant, but connection to the cloud server is rejected due to an account and password error, accumulating the number of cloud servers with abnormal checks in the server check exception result.

[0009] Furthermore, after the step of receiving the detection result returned by the cloud server, the step also includes: sending the detection result to the management server, so that the management server saves the detection result to the database of the management server and the cloud server to be checked.

[0010] On the other hand, the present application provides a cloud server batch detection device, the device comprising: an information receiving module, used to receive the test items to be executed input in the display interface and the login username, login password, SSH remote port and IP address of at least one cloud server to execute the test items; an IP address list generating module, used to concurrently perform IP address legality screening and IP address reachability detection on the input IP addresses, and add legal and reachable IP addresses to the IP address list; an execution command sending module, used to send a detection execution command to the corresponding cloud server based on the IP address in the IP address list, the detection execution command including the identification of the test script, and the identification of the test script is generated by the management server in An identifier of a test script corresponding to the test item generated when loading the configuration file information is started; a detection result receiving module, used to receive the detection result returned by the cloud server, the detection result is obtained by the cloud server executing the test script based on the detection execution command, and the test script is obtained by the cloud server parsing from the configuration file information of the management server based on the identifier of the test script; a detection result processing module, used to classify and count the detection results to obtain classified statistical results, and display the classified statistical results on the display interface, the classified statistical results include an overview and result details, the overview includes the number of passes and the number requiring manual review, and the result details include abnormal server inspection results.

[0011] Furthermore, the information receiving module includes: a first display submodule, used to display a test item list on a display interface; a first receiving submodule, used to receive the test item to be executed selected by a user from the test item list; a second display submodule, used to display at least one input box and at least one text field on the display interface; a second receiving submodule, used to receive the login user name, login password and SSH remote port of the cloud server to execute the test item entered by the user in the input box, and receive at least one IP address entered by the user in the text field.

[0012] Furthermore, the device also includes: a detection result sending module, which is used to send the detection result to the management server, so that the management server saves the detection result to the database of the management server and the cloud server that needs to be checked.

[0013] On the other hand, the present application provides a device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement any one of the cloud server batch detection methods described.

[0014] On the other hand, the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set enables the computer to execute any of the cloud server batch detection methods described.

[0015] Due to the above technical solution, this application has the following beneficial effects:

[0016] The test items to be executed are input through interface control, and batch concurrent detection is performed on the cloud servers in each area that need to be checked. This not only meets the personalized inspection needs of each cloud server, but also avoids logging into the cloud server one by one through SSH for detection operations, reducing the workload of testers. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 is an application scenario diagram provided by an embodiment of the present invention;

[0019] Figure 2 It is a flow chart of a cloud server batch detection method provided by an embodiment of the present invention;

[0020] Figure 3-14 It is a schematic diagram of the operation flow of a user provided by an embodiment of the present invention;

[0021] Fig.15 It is the configuration file information loaded when the present invention is started;

[0022] Fig.16 It is a structural schematic diagram of a cloud server batch detection device provided by an embodiment of the present invention;

[0023] Fig.17 It is a structural schematic diagram of a cloud server batch detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0026] In order to solve the above technical problems, the inventor has tried to use ANSIBLE (open source operation and maintenance automation tool) to perform batch inspections, but the management server is a WINDOWS system and requires a use-and-delete method. Although ANSIBLE is easy to use, it requires the installation of many packages, and other software packages cannot be installed on the cloud server to be delivered, so this method is not suitable for the current application scenario.

[0027] The inventors have also tried to script the EXPECT (Automated Interaction Suite) command. Although it is possible to send scripts and commands from one server to multiple servers, the disadvantage is that it is a single process, and the operating system of the RDS (Relational Database Service) server does not have the EXPECT command. Each time the script is updated, it needs to be synchronized to other management machines, and it is necessary to log in to the server again to check whether the check log has been done. The operation is cumbersome and inefficient.

[0028] See also Figure 1 , which shows a schematic diagram of an application scenario of an embodiment of the present invention, the application scenario at least includes: a client 110, a management server 120 and at least one cloud server 130 to be detected, and the client 110, the management server 120 and the cloud server 130 can communicate data through a network.

[0029] Specifically, the client allows the user to input the test items and IP addresses to be executed in the display interface, and is used to send detection execution commands to the cloud server 130. The management server 120 can be used to store test scripts and save test results. The cloud server 130 can receive the detection execution command sent by the client, and obtain the test script from the management server 120 according to the detection execution command, execute the test script and return the test results to the client 110.

[0030] The above-mentioned client 110, management server 120 and cloud server 130 can be implemented as software or hardware, they can be located in the same or different physical entities, and any of them can be located in a device with data computing and processing capabilities, including but not limited to desktop computers, smart phones, PDAs, tablet computers, etc.

[0031] Based on the above application environment, the following is a specific embodiment of a cloud server batch detection method provided by an embodiment of the present invention, please refer to Figure 2 , Figure 2 It is a flowchart of the cloud server batch detection method provided by the embodiment of the present invention. This specification provides the method operation steps described in the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only execution order. When the device or equipment is executed in practice, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, in a parallel processor or multi-threaded processing environment). The method is applied to the client, such as Figure 2 As shown, the method may include:

[0032] Step S201: receiving a test item to be executed and a login user name, login password, SSH remote port and IP address of at least one cloud server to execute the test item input in the display interface;

[0033] In an embodiment of the present invention, the display interface may be a browser web page interface or an application program interface, and the test items are test items to be executed by the cloud server, for example, checking DNS (Domain Name System) and NTP (Network Time Protocol) configuration, checking dual network card binding, checking hard disk and disk partitions and routine checks, etc.

[0034] Specifically, the client can be written in HTML+JQUERY, and the management server can be implemented in the GIN web framework (GIN is a web framework written in Go language) using the Golang (statically strongly typed, compiled) language.

[0035] In practical applications, such as Figure 3 As shown, the user (ie, the operator) can enter a URL in the browser, and the client sends a web page request to the management server, and the management server returns a front-end page corresponding to the input URL, such as Figure 4 As shown, the returned front-end page includes an interface of an account input area and a password input area. When the user successfully logs in to the client using a pre-registered account and password, the client displays the following information to the user in its display interface: Figure 5 The test item selection interface shown in the figure will return to the login interface when the account and password verification fails.

[0036] After the user successfully logs in to the client using the pre-registered account and password, the user can select the corresponding test items and sub-items according to the business, and enter the IP address and login username, login password, and SSH remote port information to be queried in the display interface.

[0037] Step S203: concurrently performing IP address legality screening and IP address reachability detection on the input IP addresses, and adding legal and reachable IP addresses to the IP address list;

[0038] For example, when the user enters the IP addresses 192.168.179.ah (illegal IP address), 192.168.179.130 (unreachable IP address) and 192.168.179.131 (reachable IP address) of the cloud server to execute the test project in the input box, the generated IP address list only includes the IP address 192.168.179.131.

[0039] Step S205: Sending a detection execution command to the corresponding cloud server based on the compliant and reachable IP addresses in the IP address list, wherein the detection execution command includes an identifier of a test script, and the identifier of the test script is an identifier of a test script corresponding to the test item generated by the management server when starting to load the configuration file information;

[0040] It is understandable that when the IP address list includes multiple IP addresses, a detection execution command is sent concurrently to the cloud server corresponding to each legally reachable IP address, so that the cloud servers corresponding to the IP addresses in the IP address list all perform the inspection of the test items.

[0041] Specifically, the detection execution command can call the underlying SSH interface of the operating system of the corresponding cloud server. After determining that there is a connected physical path between the host where the client is located and the cloud server, the corresponding SSH command is remotely executed in the cloud server to pull the corresponding test script from the management server and execute it.

[0042] Step S207: receiving the detection result returned by the cloud server, wherein the detection result is obtained by the cloud server executing a test script based on the detection execution command, and the test script is obtained by the cloud server parsing the configuration file information of the management server based on the identifier of the test script;

[0043] In the embodiment of the present invention, various test scripts corresponding to various test items are pre-stored in the management server. Various test scripts are declared as static files, and users can flexibly add and modify inspection items and methods in the scripts.

[0044] Specifically, the cloud server may use CURL (a file transfer tool that uses URL syntax and works under a command line, and supports file upload and download) to pull the test script corresponding to the test item from the management server.

[0045] For example, use the command: curl XXX (XXX is the network address of a test script pointed to by the URL). This is the simplest method of use. This command can be used to download the test script pointed to by the URL to the local computer.

[0046] In actual applications, users can select test items and cloud servers to be executed by simply clicking on a display interface such as a browser web page interface, thereby completing a health check of the cloud server before production.

[0047] Step S209: Classify and count the test results to obtain classified statistical results, and display the classified statistical results on the display interface. The classified statistical results include a summary and detailed results. The summary includes the number of passed results and the number of results that require manual review, and the detailed results include abnormal results of server inspection.

[0048] In some embodiments, the receiving display interface inputs a test item to be executed and a login user name, login password, SSH remote port and IP address of at least one cloud server to execute the test item, which may include:

[0049] Displaying a list of test items on a display interface;

[0050] receiving the test item to be executed selected by a user from the test item list;

[0051] Displaying at least one input box and at least one text field on the display interface;

[0052] The login user name, login password and SSH remote port of the cloud server to execute the test project input by the user in the input box are received, and at least one IP address input by the user in the text field is received.

[0053] Specifically, Figure 3 and Fig.10 As shown, the test item list may include regular server health check, CBS server health check, RDS server health check, CORA server health check, SERVER-TOOLS, DCOS-TOOLS, server check log query, and user management sublist, wherein the regular server health check sublist includes regular-SERVER, SERVER-initialization, check and modify YUM source, check and modify NTP, and check and install ZHIYUN; the CBS server health check sublist includes CBS (CFS) -ZK, CBS (CFS) -STOR, CFS-head, CBS (CFS) -general check, and CBS (CFS) -ZK partition; the RDS server health check sublist includes R DS-SERVER upgrade kernel, RDS-SERVER initialization, RDS-SERVER health check; CORA server health check sublist includes CORA-SERVER create VG, CORA-SERVER modify BOND, CORA-SERVER initialization, CORA-SERVER health check; SERVER-TOOLS sublist includes SERVER-MAKE-BOND, batch execution of shell scripts; DCOS-TOOLS sublist includes batch modification of DCOS notes, batch query of monitoring information, SERVER-add monitoring port, server check log query sublist includes server check log query; user management sublist includes adding users and deleting users.

[0054] In some embodiments, before the step of displaying the input box on the display interface, the step of receiving the test items to be executed inputted in the display interface may further include:

[0055] Displaying a list of functional components on a display interface;

[0056] Receiving a function component to be executed selected by a user from the function component list;

[0057] Accordingly, the step of sending a detection execution command to a corresponding cloud server based on the IP address in the IP address list, wherein the detection execution command includes the identification of the test script may include:

[0058] Sending a detection execution command to a corresponding cloud server based on the IP address in the IP address list, wherein the detection execution command includes an identifier of the test script and an identifier of the functional component;

[0059] The receiving of the detection result returned by the cloud server, wherein the detection result is obtained by the cloud server executing a test script based on the detection execution command, and the test script is obtained by the cloud server parsing the configuration file information of the management server based on the identifier of the test script, may include:

[0060] The detection results returned by the cloud server are received, and the browser receives the detection results returned by the cloud server and classifies and counts the detection results. The results include a general description (the total number of servers checked this time, the number of passed servers, and the number of servers that need manual review) and detailed results (IP address unreachable results and quantity statistics, IP address abnormal results and quantity statistics, server inspection abnormal results and quantity). At the same time, it supports generating an Excel document for the inspection results and downloading it for operation and maintenance personnel to mark and process abnormal result information. The detection result is obtained by the cloud server executing a test script based on the detection execution command, and the test script is obtained by the cloud server parsing the management server configuration file based on the identifier of the test script.

[0061] In actual application, the user may first select a sublist, for example, first select the regular server health check sublist, and then select the test item to be executed from the corresponding sublist, for example, select regular-SERVER from the regular server health check sublist, and after selecting the test item, Figure 5 As shown, the user can further select the functional components to be executed, such as Fig.11 As shown, after selecting the functional component, the user can further enter the IP address 192.168.179.ah (illegal IP address), 192.168.179.130 (unreachable IP address) and 192.168.179.131 (reachable IP address) of the cloud server to execute the test project in the input box. When the user enters the login username, login password, login port and clicks the "Submit" button, the generated pre-execution IP address list only includes the IP address 192.168.179.131.

[0062] Correspondingly, such as Fig.12 As shown in the figure, 192.168.100.ah will be displayed in the IP address anomaly result, 192.168.100.1 will be displayed in the IP address unreachable result, and 192.168.179.131 will be displayed in the detection result obtained by executing the test script.

[0063] In some embodiments, the method may further include:

[0064] Classify and count the non-compliant IP addresses and unreachable IP addresses in the IP address list;

[0065] The IP address unreachable results and IP address abnormal results are added to the result details.

[0066] Among them, the IP address unreachable result includes not only the unreachable IP address, but also the number of unreachable IP addresses. Similarly, the IP address abnormal result includes not only the abnormal IP address, but also the number of abnormal IP addresses.

[0067] In some embodiments, the method may further include:

[0068] When the IP address is unreachable, the number of unreachable cloud servers is accumulated in the unreachable result of the IP address;

[0069] When the test result is failure, the number of cloud servers with abnormal inspection is accumulated in the server inspection abnormality result;

[0070] When the IP address is reachable and compliant, and the connection to the remote port of the cloud server is rejected due to an error, the number of cloud servers with abnormal inspection is accumulated in the server inspection abnormality result;

[0071] When the IP address is reachable and compliant, but the connection to the cloud server is denied due to an incorrect account and password, the number of cloud servers with abnormal inspections is accumulated in the server inspection abnormality result.

[0072] Specifically, Fig.12 As shown, "Ping Bad" is used to indicate that the IP address is unreachable; "Fail" is used to indicate that the test result obtained by executing the test script is a failure; "Dial Tcp" is used to indicate that the IP address is reachable and compliant, but the connection to the remote port of the cloud server is rejected due to an error; "Handshake Faild" is used to indicate that the IP address is reachable and compliant, but the connection to the cloud server is rejected due to an incorrect account and password; "Info" is used to indicate that the detection result needs to be displayed in the browser.

[0073] In actual applications, by filtering and summarizing the inspection results, the faulty server information is echoed on the page and fed back to the user so that the user can handle the fault in time.

[0074] In some embodiments, after the step of receiving the detection result returned by the cloud server, the step may further include:

[0075] The detection result is sent to the management server so that the management server saves the detection result to the database of the management server and the corresponding cloud server locally.

[0076] In practical applications, by saving the detection results in the database of the management server, it is convenient for later users to query and summarize the information. Fig.13 and Fig.14 .

[0077] In an embodiment of the present invention, the test items to be executed are input through interface control and batch detection is performed on the cloud servers in each area that needs to be checked, thereby not only meeting the personalized inspection requirements of each cloud server, but also avoiding logging into the cloud server one by one through SSH for detection operations, thereby reducing the workload of testers.

[0078] In addition, the embodiments of the present invention are based on the actual use of the automated operation and maintenance system and are suitable for the server inspection business before the public cloud is put into production. They aim to improve inspection efficiency, improve inspection accuracy, facilitate the summary of inspection results, replace the traditional manual SSH inspection method, and reduce the probability of operator error.

[0079] It takes about 15-20 minutes to deliver a cloud server using the traditional manual inspection method. Operations include: creating users, editing timeout configurations, checking DNS and NTP configurations, checking dual network card binding, checking hard disks and disk partitions, routine inspections, etc. Taking the processing of 100 cloud servers as an example, it takes nearly 33 hours to inspect using the traditional method, 330 hours for 1,000 cloud servers, and 8 days for 5 people to inspect concurrently. Using the batch detection amplification of the embodiment of the present invention, each cloud server only takes about 30 seconds, which saves 40 times the time compared to the manual mode. The tool can also be used for concurrent inspections. With 50 concurrent inspections, the efficiency can be increased by 2,000 times. When the inspection task volume increases, the concurrent processing efficiency can be higher.

[0080] The embodiment of the present invention also provides a cloud server batch detection device, such as Fig.16 As shown, the device may include:

[0081] The information receiving module 1601 is used to receive the test items to be executed and the login user name, login password, SSH remote port and IP address of at least one cloud server to execute the test items input in the display interface;

[0082] An IP address list generation module 1602 is used to concurrently perform IP address legality screening and IP address reachability detection on input IP addresses, and add legal and reachable IP addresses to the IP address list;

[0083] An execution command sending module 1603 is used to send a detection execution command to the corresponding cloud server based on the IP address in the IP address list, wherein the detection execution command includes an identifier of a test script, and the identifier of the test script is an identifier of a test script corresponding to the test item generated by the management server when starting to load configuration file information;

[0084] A detection result receiving module 1604 is used to receive the detection result returned by the cloud server, wherein the detection result is obtained by the cloud server executing a test script based on the detection execution command, and the test script is obtained by the cloud server parsing the configuration file information of the management server based on the identifier of the test script;

[0085] The detection result processing module 1605 is used to classify and count the detection results, obtain classified statistical results, and display the classified statistical results on the display interface. The classified statistical results include a summary and detailed results. The summary includes the number of passes and the number that requires manual review, and the detailed results include abnormal results of server inspection.

[0086] In some embodiments, the information receiving module may include:

[0087] A first display submodule, used to display a test item list on a display interface;

[0088] A first receiving submodule, configured to receive the test item to be executed selected by a user from the test item list;

[0089] A second display submodule, used to display at least one input box and at least one text field on the display interface;

[0090] The second receiving submodule is used to receive the login username, login password and SSH remote port of the cloud server to execute the test project entered by the user in the input box, and receive at least one IP address entered by the user in the text field.

[0091] In some embodiments, the apparatus may further include:

[0092] The detection result sending module is used to send the detection result to the management server, so that the management server saves the detection result to the database of the management server and the cloud server that needs to be checked.

[0093] The device provided in the above embodiment can execute the method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiment, please refer to the method provided in any embodiment of the present application.

[0094] This embodiment also provides a computer-readable storage medium, in which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded by a processor and executed by any of the above methods of this embodiment.

[0095] This embodiment also provides a device, whose structure diagram can be seen in Fig.17 , the device 1700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) (for example, one or more processors) and memories, and one or more storage media for storing applications or data (for example, one or more mass storage devices). Among them, the memory and the storage medium may be short-term storage or permanent storage. The program stored in the storage medium may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the device. Furthermore, the central processing unit may be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the device. The device 1700 may also include one or more power supplies, one or more wired or wireless network interfaces, one or more input and output interfaces, and / or, one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc. Any of the above methods in this embodiment can be based on Fig.17 The device shown is implemented.

[0096] This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative labor. The steps and sequence listed in the embodiments are only one way of executing the sequence of many steps and do not represent the only execution sequence. When the actual system or interrupt product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment).

[0097] The structure shown in this embodiment is only a partial structure related to the scheme of the present application, and does not constitute a limitation on the device to which the scheme of the present application is applied. The specific device may include more or fewer components than shown, or combine certain components, or have different arrangements of components. It should be understood that the method, device, etc. disclosed in this embodiment can be implemented in other ways. For example, the device embodiment described above is only schematic. For example, the division of the modules is only a division of a logical function. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or unit modules.

[0098] Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.

[0099] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0100] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A cloud server batch detection method, the batch detection method is applied to a client, characterized in that: The method comprises: Receive the test items to be executed input in the display interface and the login user name, login password, SSH remote port and IP address of at least one cloud server to execute the test items; Concurrently perform IP address legal screening and IP address reachability detection on the input IP addresses, add legal and reachable IP addresses to the IP address list; classify and count the non-compliant IP addresses and unreachable IP addresses in the IP address list; add the IP address unreachable results and IP address abnormal results to the result details; the IP address unreachable results include the unreachable IP addresses and the number of unreachable IP addresses; the IP address abnormal results include the abnormal IP addresses and the number of abnormal IP addresses; When the IP address is unreachable, the number of unreachable cloud servers is accumulated in the IP address unreachable result; when the test result is failure, the number of cloud servers with abnormal checks is accumulated in the server check exception result; when the IP address is reachable and compliant, and the connection to the remote port of the cloud server is rejected due to an error, the number of cloud servers with abnormal checks is accumulated in the server check exception result; when the IP address is reachable and compliant, but the connection to the cloud server is rejected due to an account and password error, the number of cloud servers with abnormal checks is accumulated in the server check exception result; Based on the multiple IP addresses in the IP address list, a detection execution command is concurrently sent to the cloud server corresponding to each legal and reachable IP address, wherein the detection execution command includes an identifier of a test script, and the identifier of the test script is an identifier of a test script corresponding to the test item generated by the management server when starting to load the configuration file information; Receive a detection result returned by the cloud server, wherein the detection result is obtained by the cloud server executing a test script based on the detection execution command, and the test script is obtained by the cloud server parsing from the configuration file information of the management server by remotely executing a corresponding secure shell protocol command based on an identifier of the test script; Sending the detection result to the management server so that the management server saves the detection result to a database of the management server and a cloud server to be checked; The detection results are classified and counted to obtain classified statistical results, and the classified statistical results are displayed on the display interface. The classified statistical results include a summary and detailed results. The summary includes the number of passed and the number of required manual review, and the detailed results include abnormal results of server inspection.

2. The cloud server batch detection method according to claim 1, characterized in that: The receiving display interface inputs a test item to be executed and a login user name, login password, SSH remote port and IP address of at least one cloud server to execute the test item, including: Displaying a list of test items on a display interface; receiving the test item to be executed selected by a user from the test item list; Displaying at least one input box and at least one text field on the display interface; The login user name, login password and SSH remote port of the cloud server to execute the test project input by the user in the input box are received, and at least one IP address input by the user in the text field is received.

3. A cloud server batch detection device, characterized in that: The device comprises: An information receiving module, used to receive the test items to be executed input in the display interface and the login username, login password, SSH remote port and IP address of at least one cloud server to execute the test items; The IP address list generation module is used to concurrently perform IP address legal screening and IP address reachability detection on the input IP addresses, and add the legal and reachable IP addresses to the IP address list; classify and count the non-compliant IP addresses and unreachable IP addresses in the IP address list; add the IP address unreachable results and IP address abnormal results to the result details; the IP address unreachable results include the unreachable IP addresses and the number of unreachable IP addresses; the IP address abnormal results include the abnormal IP addresses and the number of abnormal IP addresses; when the IP address is unreachable, the number of unreachable cloud servers is accumulated in the IP address unreachable results; when the test result is failure, the number of abnormal cloud servers is accumulated in the server check abnormal results; when the IP address is reachable and the IP address is compliant, and the connection to the remote port of the cloud server is rejected due to an error, the number of abnormal cloud servers is accumulated in the server check abnormal results; when the IP address is reachable and the IP address is compliant, but the connection to the cloud server is rejected due to an account and password error, the number of abnormal cloud servers is accumulated in the server check abnormal results; An execution command sending module, used for concurrently sending a detection execution command to a cloud server corresponding to each legal and reachable IP address based on multiple IP addresses in the IP address list, wherein the detection execution command includes an identifier of a test script, and the identifier of the test script is an identifier of a test script corresponding to the test item generated by the management server when starting to load configuration file information; A detection result receiving module, used for receiving the detection result returned by the cloud server, wherein the detection result is obtained by the cloud server executing a test script based on the detection execution command, and the test script is obtained by the cloud server parsing the configuration file information of the management server by remotely executing a corresponding secure shell protocol command based on the identification of the test script; A detection result sending module, used for sending the detection result to the management server, so that the management server saves the detection result to the database of the management server and the cloud server to be checked; The detection result processing module is used to classify and count the detection results to obtain classified statistical results, and display the classified statistical results on the display interface. The classified statistical results include a summary and detailed results. The summary includes the number of passes and the number that requires manual review, and the detailed results include abnormal results of server inspection.

4. The cloud server batch detection device according to claim 3, characterized in that: The information receiving module comprises: A first display submodule, used to display a test item list on a display interface; A first receiving submodule, configured to receive the test item to be executed selected by a user from the test item list; A second display submodule, used to display at least one input box and at least one text field on the display interface; The second receiving submodule is used to receive the login username, login password and SSH remote port of the cloud server to execute the test project entered by the user in the input box, and receive at least one IP address entered by the user in the text field.

5. A device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the cloud server batch detection method as described in any one of claims 1 to 2.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set enables the computer to execute the cloud server batch detection method as described in any one of claims 1-2.