CN112433899A - Cloud server batch detection method, device, equipment and storage medium - Google Patents

Cloud server batch detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN112433899A
CN112433899A CN202011363451.3A CN202011363451A CN112433899A CN 112433899 A CN112433899 A CN 112433899A CN 202011363451 A CN202011363451 A CN 202011363451A CN 112433899 A CN112433899 A CN 112433899A
Authority
CN
China
Prior art keywords
cloud server
address
detection
result
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011363451.3A
Other languages
Chinese (zh)
Inventor
王昌旭
单洪博
曾光
韩建新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011363451.3A priority Critical patent/CN112433899A/en
Publication of CN112433899A publication Critical patent/CN112433899A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Probability & Statistics with Applications (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a batch detection method, a batch detection device, equipment and a storage medium of cloud servers, wherein the method comprises the following steps: receiving a test item to be executed and an IP address of at least one cloud server for executing the test item, which are input in a display interface; adding a legal and reachable IP address to an IP address list; 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 comprises an identifier of a test script; and receiving a detection result returned by the cloud server, wherein the detection result is obtained by executing a test script by the cloud server based on the detection execution command, and the test script is obtained by analyzing the configuration file information of the management server by the cloud server based on the identification of the test script. By implementing the method and the system, manual SSH can be distinguished to log in each cloud server to execute the inspection, and the system inspection workload of the cloud servers before production is reduced.

Description

Cloud server batch detection method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of cloud services, in particular to a cloud server batch detection method, a cloud server batch detection device, cloud server batch detection equipment and a storage medium.
Background
With the rapid increase of the operation scale of the public cloud in the data center in recent years, thousands of x86 servers are put into production every year, even tens of thousands of servers are required by many units of public clouds, and the workload of inspection before resource delivery is increased by dozens of times, even hundreds of times. In order to ensure safe and stable operation of a public cloud server after production, efficient and complete health check work is urgently done in advance.
At present, an operator usually adopts a manual inspection method for servers before production, logs in the servers one by one through an SSH (Secure Shell, Secure Shell protocol), runs commands or writes scripts to inspect related items of a current system, but if hundreds of servers need to be inspected, each server needs to inspect 10 items, which is time-consuming and has huge manpower investment.
Disclosure of Invention
The technical problem to be solved by the application is to provide a cloud server batch detection method, device and storage medium, which can avoid servers from being put into production with diseases, reduce the workload of server system inspection before installation of each product in public clouds, and take notice of manual SSH login of each server to execute related inspection.
In order to solve the technical problem, in one aspect, the application provides a cloud server batch detection method, including: receiving a test item to be executed and a login user name, a login password, an SSH remote port and an IP address of at least one cloud server for executing the test item, which are input in a display interface; concurrently performing IP address legal screening and IP address reachable detection on the input IP address, and adding the legal and reachable IP address into an IP address list; 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 comprises an identifier of a test script, and the identifier of the test script is an identifier of the test script corresponding to the test item, which is generated when a management server starts to load configuration file information; receiving a detection result returned by the cloud server, wherein the detection result is obtained by executing a test script by the cloud server based on the detection execution command, and the test script is obtained by analyzing the configuration file information of the management server by the cloud server based on the identification of the test script; and carrying out classification statistics on the detection results to obtain classification statistical results, and displaying the classification statistical results on the display interface, wherein the classification statistical results comprise a summary and a result detail, the summary comprises a passing number and a number needing manual review, and the result detail comprises a server inspection abnormal result.
Further, the receiving a test item to be executed and a login user name, a login password, an SSH remote port, and an IP address of at least one cloud server to execute the test item input in the display interface includes: displaying a test item list on a display interface; receiving the test item to be executed selected from the test item list by a user; displaying at least one input box and at least one text field on a display interface; and receiving a login user name, a login password and an SSH remote port of the cloud server to be executed with the test item, which are input by the user in the input box, and receiving at least one IP address input by the user in the text field.
Further, the method further comprises: classifying and counting the IP addresses which are not in compliance and the IP addresses which are not reachable in the IP address list; adding an IP address unreachable result and an IP address exception result to the result detail.
Further, the method further comprises: 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 the cloud servers with abnormal detection in the server abnormal detection result; when the IP address is reachable and the IP address is not compliant and the remote port connected with the cloud server is rejected due to errors, accumulating the number of the cloud servers with abnormal detection in the abnormal detection result of the server; and when the IP address is reachable and is in compliance, but the connection with the cloud server is rejected due to account number and password errors, accumulating the number of the cloud servers with abnormal detection in the server detection abnormal result.
Further, after the step of receiving the detection result returned by the cloud server, the step further includes: and sending the detection result to the management server so that the management server stores the detection result in a database of the management server and a cloud server to be checked.
On the other hand, the application provides a cloud server batch detection device, the device includes: the information receiving module is used for receiving a test item to be executed and a login user name, a login password, an SSH remote port and an IP address of at least one cloud server for executing the test item, which are input in a display interface; the IP address list generating module is used for carrying out IP address legal screening and IP address reachable detection on the input IP addresses concurrently and adding the legal and reachable IP addresses into the IP address list; the execution command sending module is used for sending a detection execution command to the corresponding cloud server based on the IP address in the IP address list, wherein the detection execution command comprises an identifier of a test script, and the identifier of the test script is an identifier of the test script which is generated by the management server when the management server starts to load the configuration file information and corresponds to the test item; the detection result receiving module is used for receiving a detection result returned by the cloud server, wherein the detection result is obtained by executing a test script by the cloud server based on the detection execution command, and the test script is obtained by analyzing the configuration file information of the management server by the cloud server based on the identification of the test script; and the detection result processing module is used for carrying out classification statistics on the detection results to obtain classification statistical results, and displaying the classification statistical results on the display interface, wherein the classification statistical results comprise a summary and a result detail, the summary comprises a passing quantity and a quantity required to be manually reviewed, and the result detail comprises a server inspection abnormal result.
Further, the information receiving module includes: the first display submodule is used for displaying a test item list on a display interface; the first receiving submodule is used for receiving the test item to be executed, which is selected from the test item list by a user; the second display submodule is used for displaying at least one input box and at least one text field on the display interface; and the second receiving submodule is used for receiving a login user name, a login password and an SSH remote port of the cloud server to be executed with the test item, which are input in the input box by the user, and receiving at least one IP address input in the text field by the user.
Further, the apparatus further comprises: and the detection result sending module is used for sending the detection result to the management server so that the management server stores the detection result in a database of the management server and a cloud server which needs to be checked.
In another aspect, the present application provides an apparatus comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement any one of the cloud server batch detection methods.
In another aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions causes the computer to execute any one of the cloud server batch detection methods.
Due to the technical scheme, the method has the following beneficial effects:
test items to be executed are input in an interface control mode, and the cloud servers in each area needing to be checked are subjected to batch concurrent detection, so that the individualized checking requirements of the cloud servers are met, the detection operation of logging in the cloud servers one by one through SSH is avoided, and the workload of testers is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings used in the description of the embodiment or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIG. 1 is a diagram of an application scenario provided by an embodiment of the present invention;
fig. 2 is a schematic flowchart of a cloud server batch detection method according to an embodiment of the present invention;
3-14 are schematic operational flow diagrams of a user provided by an embodiment of the present invention;
FIG. 15 is configuration file information loaded at startup of the present invention;
fig. 16 is a schematic structural diagram of a cloud server batch detection apparatus according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of a cloud server batch detection device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
In order to solve the above technical problems, the inventor has tried to use ANSIBLE (open source operation and maintenance automation tool) for batch inspection, but the management server is a WINDOWS system and needs a way of instant deletion, and ANSIBLE, though it is well used, needs to install many packages and cannot install other software packages on the cloud server to be delivered, so the method is not well suited to the current application scenario.
The inventor has tried to script the EXPECT command, and although it can realize sending script and command from one server to multiple servers, the disadvantage is single process, and the operating system like RDS (Relational Database Service) server does not have the EXPECT command, and each time updating script needs to be synchronized to other manager, and when inquiring whether the checked log is done, the user needs to log in the server again, which is cumbersome and inefficient.
Referring to fig. 1, a schematic diagram of an application scenario according to an embodiment of the present invention is shown, where the application scenario at least includes: the system comprises a client 110, a management server 120 and at least one cloud server 130 to be detected, wherein the client 110, the management server 120 and the cloud server 130 can be in data communication through a network.
Specifically, the client may allow a user to input a test item and an IP address to be executed in a display interface, and send a detection execution command to the cloud server 130, the management server 120 may be configured to store a test script and store a test result, and the cloud server 130 may receive the detection execution command sent by the client, acquire the test script from the management server 120 according to the detection execution command, execute the test script, and return the test result to the client 110.
The client 110, the management server 120 and the cloud server 130 may be implemented in software or hardware, they may be located in the same or different physical entities, and any one of them may be located in a device having a data computing processing function, including but not limited to a desktop computer, a smart phone, a palm computer, a tablet computer, and the like.
Based on the above application environment, please refer to fig. 2, fig. 2 is a schematic flow chart of a cloud server batch detection method according to an embodiment of the present invention, and the present specification provides the method operation steps described in the embodiment or the flow chart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the devices or apparatuses may be executed sequentially or in parallel (for example, in the context of parallel processors or multi-thread processing) according to the methods shown in the embodiments or figures. The method is applied to a client, and as shown in fig. 2, the method may include:
step S201: receiving a test item to be executed and a login user name, a login password, an SSH remote port and an IP address of at least one cloud server for executing the test item, which are input in a display interface;
in the embodiment of the present invention, the display interface may be a browser web interface or an application interface, and the test item is a test item 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 partition, and performing a conventional check.
Specifically, the client may be written in HTML + JQUERY, and the management server may be a GIN web framework implemented in Go (gold, strong static type, compiled type) language (GIN is a web framework written in Go language).
In practical application, as shown in fig. 3, a user (i.e., an operator) may input a website in a browser, the client sends a web page request to the management server, and the management server returns a front-end page corresponding to the input website, as shown in fig. 4, the returned front-end page includes an interface of an account number input area and a password input area, when the user successfully logs in to the client using a pre-registered account number and password, the client displays a test item selection interface as shown in fig. 5 in a display interface of the client, and when the account number and password are not verified, the client returns to the login interface.
After the user successfully logs in the client by using the pre-registered account and the password, the user can select the corresponding test item and the sub-item according to the service, and input the IP address and the login user name, the login password and the SSH remote port information which need to be inquired in a display interface.
Step S203: concurrently performing IP address legal screening and IP address reachable detection on the input IP address, and adding the legal and reachable IP address into an IP address list;
for example, when the user inputs the IP addresses 192.168.179.ah (IP address illegal), 192.168.179.130(IP address not reachable), and 192.168.179.131(IP address reachable) of the cloud server on which the test item is to be executed in the input box, the IP address list generated includes only the IP address 192.168.179.131.
Step S205: sending a detection execution command to a corresponding cloud server based on a compliant and reachable IP address in the IP address list, wherein the detection execution command comprises an identifier of a test script, and the identifier of the test script is an identifier of the test script corresponding to the test item, which is generated when a management server starts to load configuration file information;
it can be understood that, when a plurality of IP addresses are included in the IP address list, a detection execution command is concurrently sent 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 item.
Specifically, the detection execution command may call an SSH interface at the bottom layer of the operating system of the corresponding cloud server, and after determining that a communicated physical path exists between the host where the client is located and the cloud server, the SSH command is remotely executed in the cloud server to pull the corresponding test script to the management server and execute the test script.
Step S207: receiving a detection result returned by the cloud server, wherein the detection result is obtained by executing a test script by the cloud server based on the detection execution command, and the test script is obtained by analyzing the configuration file information of the management server by the cloud server based on the identification of the test script;
in the embodiment of the invention, various test scripts corresponding to various test items are stored in the management server in advance, all the test scripts are declared to be static files, and a user can flexibly add and modify the check items and the method in the scripts.
Specifically, the cloud server may pull a test script corresponding to the test item from the management server using CURL (a file transfer tool that works under a command line using URL syntax, which supports file upload and download).
For example, using the command: curl XXX (XXX is a test script network address pointed to by the URL), which is the simplest method of use, with which test scripts pointed to by the URL can be downloaded locally.
In practical application, a user can complete selection of a test item to be executed and a cloud server by simply clicking on a display interface such as a browser webpage interface, so that health check of the cloud server before delivery is completed.
Step S209: and carrying out classification statistics on the detection results to obtain classification statistical results, and displaying the classification statistical results on the display interface, wherein the classification statistical results comprise a summary and a result detail, the summary comprises a passing number and a number needing manual review, and the result detail comprises a server inspection abnormal result.
In some embodiments, the receiving a test item to be executed and a login user name, a login password, an SSH remote port, and an IP address of at least one cloud server to execute the test item input in the display interface may include:
displaying a test item list on a display interface;
receiving the test item to be executed selected from the test item list by a user;
displaying at least one input box and at least one text field on a display interface;
and receiving a login user name, a login password and an SSH remote port of the cloud server to be executed with the test item, which are input by the user in the input box, and receiving at least one IP address input by the user in the text field.
Specifically, as shown in fig. 3 and 10, the test item list may include a conventional SERVER health check, a CBS SERVER health check, an RDS SERVER health check, a CORA SERVER health check, a SERVER-TOOLS, a DCOS-TOOLS, a SERVER examination log query, a user management sublist, wherein the conventional SERVER health check sublist includes a conventional-SERVER, a SERVER-initialization, an examination modification YUM source, an examination modification NTP, an examination installation ZHIYUN; CBS server health check word list includes CBS (CFS) -ZK, CBS (CFS) -STOR, CFS-headpiece, CBS (CFS) -general purpose check, CBS (CFS) -ZK partition; the RDS SERVER health examination sub-list comprises an RDS-SERVER upgrade kernel, RDS-SERVER initialization and RDS-SERVER health examination; the CORA SERVER health check sub-list comprises a CORA-SERVER creation VG, a CORA-SERVER modification BOND, a CORA-SERVER initialization and a CORA-SERVER health check; the SERVER-TOOLS word list comprises SERVER-MAKE-BOND and batch execution shell scripts; the DCOS-TOOLS sublist comprises a DCOS remark for batch modification, monitoring information for batch query and a SERVER-added monitoring port, and the SERVER check log query word list comprises a SERVER check log query; the user management sublist comprises an added user and a deleted user.
In some embodiments, before the step of displaying the input box on the display interface, the receiving the test item to be executed input in the display interface may further include:
displaying a functional component list on a display interface;
receiving a functional component to be executed selected from the functional component list by a user;
correspondingly, the step of sending a detection execution command to the corresponding cloud server based on the IP address in the IP address list, where the detection execution command includes the identifier of the test script may include:
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 comprises an identifier of the test script and an identifier of the functional component;
the receiving a detection result returned by the cloud server, where the detection result is obtained by the cloud server executing a test script based on the detection execution command, and the obtaining of the test script by the cloud server through parsing from configuration file information of a management server based on an identifier of the test script may include:
the method comprises the steps of receiving a detection result returned by the cloud server, receiving the detection result returned by the cloud server by the browser, carrying out classification statistics on the detection result, wherein the result comprises a summary (the total number of the servers to be checked, the number of the servers to be checked manually) and result details (the IP address inaccessible result and the number statistics, the IP address abnormal result and the number statistics, the server abnormal result and the number of the servers to be checked), and meanwhile, generating an excel document from the detection result and downloading information for marking and processing the abnormal result by operation and maintenance personnel, wherein the detection result is obtained by executing a test script by the cloud server based on a detection execution command, and the test script is obtained by analyzing a management server configuration file by the cloud server based on the identification of the test script.
In practical applications, the user may first select the sub-list, for example, first select the conventional SERVER health check sub-list, and then select the test item to be executed from the corresponding sub-list, for example, select the conventional-SERVER from the conventional SERVER health check sub-list, after selecting the test item, as shown in fig. 5, the user may further select the functional component to be executed, as shown in fig. 11, after selecting the functional component, the user may further input the IP addresses 192.168.179.ah (IP address is illegal), 192.168.179.130(IP address is not reachable), and 192.168.179.131(IP address is reachable) of the cloud SERVER to execute the test item in the input box, and when the user inputs the login user name, the login password, and clicks the "submit" button after logging in the port, then only the IP address 192.168.179.131 is included in the pre-executed IP address list.
Accordingly, as shown in fig. 12, 192.168.100.ah is displayed in the IP address exception result, 192.168.100.1 is displayed in the IP address unreachable result, and 192.168.179.131 is displayed in the detection result obtained by executing the test script.
In some embodiments, the method may further comprise:
classifying and counting the IP addresses which are not in compliance and the IP addresses which are not reachable in the IP address list;
adding an IP address unreachable result and an IP address exception result to the result detail.
The IP address unreachable result not only comprises unreachable IP addresses, but also comprises the number of unreachable IP addresses, and similarly, the IP address abnormal result not only comprises abnormal IP addresses, but also comprises the number of abnormal IP addresses.
In some embodiments, the method may further comprise:
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 the cloud servers with abnormal detection in the server abnormal detection result;
when the IP address is reachable and the IP address is not compliant and the remote port connected with the cloud server is rejected due to errors, accumulating the number of the cloud servers with abnormal detection in the abnormal detection result of the server;
and when the IP address is reachable and is in compliance, but the connection with the cloud server is rejected due to account number and password errors, accumulating the number of the cloud servers with abnormal detection in the server detection abnormal result.
Specifically, as shown in fig. 12, "Ping Bad" is used to characterize that the IP address is not reachable; "Fail" is used to characterize that the test result obtained by executing the test script is a failure; "Dial Tcp" is used for IP address reachability and IP address compliance, but connection to the cloud server remote port is denied due to an error; the 'handset failed' is used for representing that an IP address is reachable and is in compliance, but the connection with the cloud server is rejected due to account password error; "Info" is used to characterize that the detection result needs to be presented in a browser.
In practical application, the checking results are screened and collected, and the server information with the fault is displayed back in the page and fed back to the user, so that the user can timely perform fault processing.
In some embodiments, after the step of receiving the detection result returned by the cloud server, the step may further include:
and sending the detection result to the management server so that the management server stores the detection result in a database of the management server and the local part of the corresponding cloud server.
In practical application, the detection result is saved in the database of the management server, so that query and information summarization of later users are facilitated, and the query and the information summarization are shown in fig. 13 and 14.
In the embodiment of the invention, the test items to be executed are input in an interface control mode, and the cloud servers in each area needing to be checked are subjected to batch detection, so that the individualized checking requirement of each cloud server is met, the detection operation of logging in the cloud servers one by one through SSH is avoided, and the workload of testers is reduced.
Moreover, the embodiment of the invention starts from the actual use of an automatic operation and maintenance system, is attached to the inspection service of the public cloud pre-production server, aims to improve the inspection efficiency and the inspection accuracy, is convenient for summarizing the inspection result, replaces the traditional manual SSH inspection mode, and reduces the error probability of operators.
The traditional manual inspection mode takes about 15-20 minutes to deliver a cloud server, and the operation comprises the following steps: creating users, editing timeout configuration, checking DNS and NTP configuration, checking double network card binding, checking hard disk and disk partitions, performing routine check and the like. Taking 100 cloud servers as an example, it takes about 33 hours to conduct inspection in a traditional manner, 330 hours to conduct inspection in 1000 cloud servers, and 8 days to conduct concurrent inspection in 5 individuals. By using the batch detection amplification of the embodiment of the invention, each cloud server only needs 30 seconds, which saves 40 times of time compared with the manual mode, and the tool can be used for concurrent inspection to concurrently perform 50 calculations, so that the efficiency can be improved by 2000 times. When the inspection task amount is increased, the concurrent processing efficiency may be higher.
An embodiment of the present invention further provides a cloud server batch detection apparatus, as shown in fig. 16, the apparatus may include:
the information receiving module 1601 is configured to receive a test item to be executed and a login user name, a login password, an SSH remote port, and an IP address of at least one cloud server on which the test item is to be executed, which are input in a display interface;
an IP address list generating module 1602, configured to perform IP address legal screening and IP address reachable detection on an input IP address concurrently, and add a legal and reachable IP address to an IP address list;
an execution command sending module 1603, configured to send a detection execution command to a corresponding cloud server based on the IP address in the IP address list, where 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, which is generated when the management server starts to load configuration file information;
a detection result receiving module 1604, configured to receive a detection result returned by the cloud server, where the detection result is obtained by executing a test script by the cloud server based on the detection execution command, and the test script is obtained by parsing, by the cloud server, from configuration file information of the management server based on an identifier of the test script;
the detection result processing module 1605 is configured to perform classification statistics on the detection results to obtain classification statistical results, and display the classification statistical results on the display interface, where the classification statistical results include a summary and a result detail, the summary includes a passing quantity and a quantity that needs to be manually reviewed, and the result detail includes a server abnormal inspection result.
In some embodiments, the information receiving module may include:
the first display submodule is used for displaying a test item list on a display interface;
the first receiving submodule is used for receiving the test item to be executed, which is selected from the test item list by a user;
the second display submodule is used for displaying at least one input box and at least one text field on the display interface;
and the second receiving submodule is used for receiving a login user name, a login password and an SSH remote port of the cloud server to be executed with the test item, which are input in the input box by the user, and receiving at least one IP address input in the text field by the user.
In some embodiments, the apparatus may further comprise:
and the detection result sending module is used for sending the detection result to the management server so that the management server stores the detection result in a database of the management server and a cloud server which needs to be checked.
The device provided in the above embodiments can execute the method provided in any embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in the above embodiments may be referred to a method provided in any of the embodiments of the present application.
The present embodiments also provide a computer-readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions that is loaded by a processor and performs any of the methods described above in the present embodiments.
Referring to fig. 17, the apparatus 1700 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) (e.g., one or more processors) and a memory, and one or more storage media (e.g., one or more mass storage devices) for storing applications or data. The memory and storage medium may be, among other things, transient or persistent storage. The program stored on the storage medium may include one or more modules (not shown), each of which may include a sequence of instruction operations for the device. Still further, the central processor may be configured to communicate with the storage medium to perform a series of instruction operations on the storage medium on the device. The apparatus 1700 may also include one or more power supplies, one or more wired or wireless network interfaces, one or more input-output interfaces, and/or one or more operating systems, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth. Any of the methods described above in this embodiment can be implemented based on the apparatus shown in fig. 17.
The present specification provides method steps as described in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive labor. The steps and sequences recited in the embodiments are but one manner of performing the steps in a multitude of sequences and do not represent a unique order of performance. In the actual system or interrupted product execution, it may be performed sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The configurations shown in the present embodiment are only partial configurations related to the present application, and do not constitute a limitation on the devices to which the present application is applied, and a specific device may include more or less components than those shown, or combine some components, or have an arrangement of different components. It should be understood that the methods, apparatuses, and the like disclosed in the embodiments may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a division of one logic function, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or unit modules.
Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A cloud server batch detection method is applied to a client side, and is characterized by comprising the following steps:
receiving a test item to be executed and a login user name, a login password, an SSH remote port and an IP address of at least one cloud server for executing the test item, which are input in a display interface;
concurrently performing IP address legal screening and IP address reachable detection on the input IP address, and adding the legal and reachable IP address into an IP address list;
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 comprises an identifier of a test script, and the identifier of the test script is an identifier of the test script corresponding to the test item, which is generated when a management server starts to load configuration file information;
receiving a detection result returned by the cloud server, wherein the detection result is obtained by executing a test script by the cloud server based on the detection execution command, and the test script is obtained by analyzing the configuration file information of the management server by the cloud server based on the identification of the test script;
and carrying out classification statistics on the detection results to obtain classification statistical results, and displaying the classification statistical results on the display interface, wherein the classification statistical results comprise a summary and a result detail, the summary comprises a passing number and a number needing manual review, and the result detail comprises a server inspection abnormal result.
2. The cloud server batch detection method of claim 1, wherein the receiving of the test item to be executed and the login user name, the login password, the SSH remote port and the IP address of the at least one cloud server to execute the test item input in the display interface comprises:
displaying a test item list on a display interface;
receiving the test item to be executed selected from the test item list by a user;
displaying at least one input box and at least one text field on a display interface;
and receiving a login user name, a login password and an SSH remote port of the cloud server to be executed with the test item, which are input by the user in the input box, and receiving at least one IP address input by the user in the text field.
3. The cloud server batch detection method of claim 1, wherein the method further comprises:
classifying and counting the IP addresses which are not in compliance and the IP addresses which are not reachable in the IP address list;
adding an IP address unreachable result and an IP address exception result to the result detail.
4. The cloud server batch detection method of claim 3, wherein the method further comprises:
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 the cloud servers with abnormal detection in the server abnormal detection result;
when the IP address is reachable and the IP address is not compliant and the remote port connected with the cloud server is rejected due to errors, accumulating the number of the cloud servers with abnormal detection in the abnormal detection result of the server;
and when the IP address is reachable and is in compliance, but the connection with the cloud server is rejected due to account number and password errors, accumulating the number of the cloud servers with abnormal detection in the server detection abnormal result.
5. The cloud server batch detection method according to claim 1, wherein after the step of receiving the detection result returned by the cloud server, the step further comprises:
and sending the detection result to the management server so that the management server stores the detection result in a database of the management server and a cloud server to be checked.
6. The cloud server batch detection device is characterized by comprising:
the information receiving module is used for receiving a test item to be executed and a login user name, a login password, an SSH remote port and an IP address of at least one cloud server for executing the test item, which are input in a display interface;
the IP address list generating module is used for carrying out IP address legal screening and IP address reachable detection on the input IP addresses concurrently and adding the legal and reachable IP addresses into the IP address list;
the execution command sending module is used for sending a detection execution command to the corresponding cloud server based on the IP address in the IP address list, wherein the detection execution command comprises an identifier of a test script, and the identifier of the test script is an identifier of the test script which is generated by the management server when the management server starts to load the configuration file information and corresponds to the test item;
the detection result receiving module is used for receiving a detection result returned by the cloud server, wherein the detection result is obtained by executing a test script by the cloud server based on the detection execution command, and the test script is obtained by analyzing the configuration file information of the management server by the cloud server based on the identification of the test script;
and the detection result processing module is used for carrying out classification statistics on the detection results to obtain classification statistical results, and displaying the classification statistical results on the display interface, wherein the classification statistical results comprise a summary and a result detail, the summary comprises a passing quantity and a quantity required to be manually reviewed, and the result detail comprises a server inspection abnormal result.
7. The cloud server batch detection device of claim 6, wherein the information receiving module comprises:
the first display submodule is used for displaying a test item list on a display interface;
the first receiving submodule is used for receiving the test item to be executed, which is selected from the test item list by a user;
the second display submodule is used for displaying at least one input box and at least one text field on the display interface;
and the second receiving submodule is used for receiving a login user name, a login password and an SSH remote port of the cloud server to be executed with the test item, which are input in the input box by the user, and receiving at least one IP address input in the text field by the user.
8. The cloud server batch detection apparatus of claim 6, wherein the apparatus further comprises:
and the detection result sending module is used for sending the detection result to the management server so that the management server stores the detection result in a database of the management server and a cloud server which needs to be checked.
9. An apparatus comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the cloud server batch detection method of any of claims 1 to 5.
10. A computer-readable storage medium storing at least one instruction, at least one program, a set of codes, or a set of instructions that cause a computer to perform the cloud server batch detection method of any of claims 1-5.
CN202011363451.3A 2020-11-27 2020-11-27 Cloud server batch detection method, device, equipment and storage medium Pending CN112433899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011363451.3A CN112433899A (en) 2020-11-27 2020-11-27 Cloud server batch detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011363451.3A CN112433899A (en) 2020-11-27 2020-11-27 Cloud server batch detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112433899A true CN112433899A (en) 2021-03-02

Family

ID=74698652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011363451.3A Pending CN112433899A (en) 2020-11-27 2020-11-27 Cloud server batch detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112433899A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948266A (en) * 2021-03-31 2021-06-11 建信金融科技有限责任公司 Database grammar test system, method, device, equipment and storage medium
CN113238851A (en) * 2021-06-01 2021-08-10 平安科技(深圳)有限公司 Script automatic execution method, system, equipment and medium based on cloud platform
CN114499985A (en) * 2021-12-29 2022-05-13 奇安信科技集团股份有限公司 Safety detection method and device based on endogenous safety mechanism
CN114546535A (en) * 2022-02-28 2022-05-27 中国建设银行股份有限公司 Service configuration method and device of operating system, storage medium and electronic equipment
CN114553930A (en) * 2022-01-26 2022-05-27 石化盈科信息技术有限责任公司 System integration method and device, computer equipment and storage medium
CN117234951A (en) * 2023-11-13 2023-12-15 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270609A (en) * 2014-10-09 2015-01-07 深圳市中控生物识别技术有限公司 Method, system and device for remote monitoring
CN106484485A (en) * 2016-10-21 2017-03-08 贵阳朗玛信息技术股份有限公司 The script execution of multiserver and device
CN108923997A (en) * 2018-05-24 2018-11-30 广东睿江云计算股份有限公司 A kind of cloud service node automatic test approach and device based on python
CN110275872A (en) * 2019-07-18 2019-09-24 中国银行股份有限公司 Version automatic deployment method, device, computer equipment and storage medium
US20190327258A1 (en) * 2018-04-18 2019-10-24 Oracle International Corporation Cloud-based security testing interface with security scanners
CN110389900A (en) * 2019-07-10 2019-10-29 深圳市腾讯计算机系统有限公司 A kind of distributed experiment & measurement system test method, device and storage medium
CN111294386A (en) * 2020-01-13 2020-06-16 北京淳中科技股份有限公司 Server communication method and device and electronic equipment
CN111541591A (en) * 2020-07-09 2020-08-14 武汉绿色网络信息服务有限责任公司 SSH-based server detection method and device
CN111782447A (en) * 2020-06-30 2020-10-16 深圳忆联信息系统有限公司 Batch test updating method and device based on SSH service and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270609A (en) * 2014-10-09 2015-01-07 深圳市中控生物识别技术有限公司 Method, system and device for remote monitoring
CN106484485A (en) * 2016-10-21 2017-03-08 贵阳朗玛信息技术股份有限公司 The script execution of multiserver and device
US20190327258A1 (en) * 2018-04-18 2019-10-24 Oracle International Corporation Cloud-based security testing interface with security scanners
CN108923997A (en) * 2018-05-24 2018-11-30 广东睿江云计算股份有限公司 A kind of cloud service node automatic test approach and device based on python
CN110389900A (en) * 2019-07-10 2019-10-29 深圳市腾讯计算机系统有限公司 A kind of distributed experiment & measurement system test method, device and storage medium
CN110275872A (en) * 2019-07-18 2019-09-24 中国银行股份有限公司 Version automatic deployment method, device, computer equipment and storage medium
CN111294386A (en) * 2020-01-13 2020-06-16 北京淳中科技股份有限公司 Server communication method and device and electronic equipment
CN111782447A (en) * 2020-06-30 2020-10-16 深圳忆联信息系统有限公司 Batch test updating method and device based on SSH service and computer equipment
CN111541591A (en) * 2020-07-09 2020-08-14 武汉绿色网络信息服务有限责任公司 SSH-based server detection method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948266A (en) * 2021-03-31 2021-06-11 建信金融科技有限责任公司 Database grammar test system, method, device, equipment and storage medium
CN112948266B (en) * 2021-03-31 2023-06-20 建信金融科技有限责任公司 Database grammar testing system, method, device, equipment and storage medium
CN113238851A (en) * 2021-06-01 2021-08-10 平安科技(深圳)有限公司 Script automatic execution method, system, equipment and medium based on cloud platform
CN114499985A (en) * 2021-12-29 2022-05-13 奇安信科技集团股份有限公司 Safety detection method and device based on endogenous safety mechanism
CN114553930A (en) * 2022-01-26 2022-05-27 石化盈科信息技术有限责任公司 System integration method and device, computer equipment and storage medium
CN114553930B (en) * 2022-01-26 2024-04-16 石化盈科信息技术有限责任公司 System integration method, device, computer equipment and storage medium
CN114546535A (en) * 2022-02-28 2022-05-27 中国建设银行股份有限公司 Service configuration method and device of operating system, storage medium and electronic equipment
CN117234951A (en) * 2023-11-13 2023-12-15 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium
CN117234951B (en) * 2023-11-13 2024-01-30 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112433899A (en) Cloud server batch detection method, device, equipment and storage medium
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
WO2020147419A1 (en) Monitoring method and apparatus, computer device and storage medium
US9602599B2 (en) Coordinating application migration processes
US9697104B2 (en) End-to end tracing and logging
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN112261118B (en) Multimedia data anomaly detection method, terminal and server
CN107957940B (en) Test log processing method, system and terminal
CN111309343B (en) Development deployment method and device
US11061669B2 (en) Software development tool integration and monitoring
CN111131320B (en) Asset identification method, device, system and medium
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
CN110851471A (en) Distributed log data processing method, device and system
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
CN112269744A (en) System abnormity testing method and device, computer equipment and storage medium
CN109814957B (en) Label adding method and device for IOS (input/output system)
US10970159B1 (en) Automated system maintenance capabilities for a computing system
US20060095395A1 (en) Using MD4 checksum as primary keys to link transactions across machines
CN115729727A (en) Fault repairing method, device, equipment and medium
CN112579406B (en) Log call chain generation method and device
CN113342560A (en) Fault processing method, system, electronic equipment and storage medium
CN112698998B (en) Sustainable integrated ARM server factory testing method
CN116244186A (en) Operating system test management method and device and computing equipment
CN115604343A (en) Data transmission method, system, electronic equipment and storage medium
CN114138762A (en) Data processing method, device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination