Automatic server testing method, system and equipment and storage medium
By obtaining and updating the associated data of the server, determining and displaying its location information, the problems of inefficiency of traditional server testing methods and difficulty in data traceability are solved, and automated monitoring and efficient management of server aging tests are realized.
Patent Information
- Application Number
- CN202510129876.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-05
- Publication Date
- 2025-06-06
AI Technical Summary
Traditional server testing methods face problems such as inefficiency and difficulty in data traceability due to server screenless and large test volume.
By obtaining the associated data of the server to be tested, including server identification information and test information, updating the database, determining the location information of the server to be tested, and displaying the location information and associated data, we can realize automated monitoring of server aging test.
It improves the efficiency and production efficiency of server testing, realizes automatic monitoring of server aging tests, and simplifies data traceability and management.
Smart Images

Figure CN120104444A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of servers, and in particular to a server automated testing method, system, device and storage medium. Background Art
[0002] A server is a specific device that provides computing power and runs software applications in a network environment. In the server manufacturing industry, server testing is a key link to ensure the stable, reliable and safe operation of the server. For example, among many test items, aging testing is one of the key tests to ensure the long-term stable operation of the product. Aging testing simulates the working state of the server under high load conditions to test its reliability and performance stability under long-term high-intensity operation. However, traditional testing methods face problems such as low efficiency and difficulty in data tracing due to the lack of screens on servers and large testing volume. Summary of the invention
[0003] The present disclosure provides a server automated testing method, system, device and storage medium to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present disclosure, a server automated testing method is provided, the method comprising:
[0005] Acquire the associated data of the server to be tested, wherein the associated data includes server identification information and test information;
[0006] Updating a database based on the server identification information, wherein the database is used to store associated data of all servers and location information of the servers;
[0007] Determining the location information of the server to be tested based on the updated database;
[0008] The location information and associated data of the server to be tested are displayed.
[0009] In one possible implementation, the server identification information includes a serial number and a hardware address, and the serial number and the hardware address correspond one to one.
[0010] In one possible implementation, updating the database based on the server identification information includes:
[0011] Determining whether the server to be tested exists in the database based on the serial number;
[0012] If it exists, then update the test information of the server to be tested to the database;
[0013] If not, the associated data and location information of the server to be tested are updated to the database.
[0014] In one possible implementation manner, determining the location information of the server to be tested based on the updated database includes:
[0015] A first mapping relationship between a preset hardware address and a switch port and a second mapping relationship between a switch port and a physical location;
[0016] Determining the hardware address corresponding to the serial number;
[0017] Determine a switch port corresponding to the serial number based on the hardware address and the first mapping relationship;
[0018] The physical location corresponding to the serial number is determined based on the corresponding switch port and the second mapping relationship as the location information of the server to be tested.
[0019] In one embodiment, the method further comprises:
[0020] Acquire a first sequence number set and a second sequence number set composed of sequence numbers in the database at different times, wherein a first time corresponding to the first sequence number set is earlier than a second time corresponding to the second sequence number set;
[0021] If the serial number of the server to be tested exists in the first serial number set and the serial number of the server to be tested does not exist in the second serial number set, the serial number of the server to be tested is unbound from the corresponding location information.
[0022] According to a second aspect of the present disclosure, a server automated testing system is provided, the system comprising:
[0023] An acquisition module, used to acquire the associated data of the server to be tested, wherein the associated data includes server identification information and test information;
[0024] A processing module, used for updating a database based on the server identification information, wherein the database is used for storing associated data of all servers and location information of the servers;
[0025] A positioning module, used to determine the location information of the server to be tested based on the updated database;
[0026] The display module is used to display the location information and related data of the server to be tested.
[0027] In one possible implementation, the server identification information includes a serial number and a hardware address, and the serial number and the hardware address correspond one to one.
[0028] In one embodiment, the processing module is further configured to:
[0029] Determining whether the server to be tested exists in the database based on the serial number;
[0030] If it exists, then update the test information of the server to be tested to the database;
[0031] If not, the associated data and location information of the server to be tested are updated to the database.
[0032] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0033] at least one processor; and
[0034] a memory communicatively connected to the at least one processor; wherein,
[0035] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0036] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0037] The present invention provides a server automated testing method, system, device and storage medium, which obtains the associated data of the server to be tested, the associated data includes server identification information and test information; then updates a database based on the server identification information, the database is used to store the associated data of all servers and the location information of the servers; then determines the location information of the server to be tested based on the updated database; and displays the location information and associated data of the server to be tested. Through the above method, the automated monitoring of server aging test is realized, and the test efficiency and production efficiency are improved.
[0038] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0040] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0041] Figure 1A schematic diagram showing a flow chart of a server automated testing method according to an embodiment of the present disclosure is shown;
[0042] Figure 2 A schematic diagram showing a flow chart of another server automated testing method according to an embodiment of the present disclosure;
[0043] Figure 3 A schematic diagram of the structure of a server automated testing system according to an embodiment of the present disclosure is shown;
[0044] Figure 4 A structural schematic diagram of another server automated testing system according to an embodiment of the present disclosure is shown;
[0045] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0046] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0047] In the server manufacturing industry, aging testing is a crucial link to ensure product quality. However, with the expansion of production scale and the increase in product complexity, traditional artificial aging testing methods can no longer meet current needs. On the one hand, as a screenless device, the test status and process of the server are difficult to display intuitively. In addition, the large number of test samples makes it difficult for testers to grasp the real-time status of each server in a timely and comprehensive manner, which undoubtedly increases the difficulty of discovering and responding to abnormal conditions. On the other hand, manual monitoring and recording are not only time-consuming and labor-intensive, but also prone to errors, which greatly reduces the accuracy of test data. At the same time, the lack of an effective data tracing mechanism makes it particularly difficult to trace and analyze the root cause of the problem. In view of this, the server manufacturing industry is facing the problem of how to optimize the aging test process and improve test efficiency and quality. Therefore, the present invention provides a server testing method to achieve real-time monitoring, efficient management and data tracing of the test process.
[0048] like Figure 1 A flow chart of a server automated testing method provided by an embodiment of the present disclosure is shown, and the method includes:
[0049] S1. Obtaining associated data of a server to be tested, wherein the associated data includes server identification information and test information.
[0050] Obtain the associated data of the server to be tested, where the server identification information is the key to identifying each server and is unique. In one example, the server identification information includes a serial number and a hardware address, and the serial number and the hardware address correspond one to one. The serial number is a unique number for the server and is assigned by the server manufacturer during the production process. The hardware address, such as the common MAC address, is the physical identification of the network device in the network, which is also unique and corresponds one to one with the serial number, and together they can accurately locate each server.
[0051] The test information includes a series of test indicators and requirements developed for the server. This data can be obtained by interacting with the server's management interface, using a dedicated API interface call, extracting it from the server's built-in configuration file, or collecting it through a network scanning tool.
[0052] In the example of a server aging test, the test information includes:
[0053] Test status: used to indicate the stage of the current server aging test, such as not started, in progress, paused or completed, so that testers can grasp the test progress in real time.
[0054] Start time: Accurately record the specific time when the test starts. This is important for counting the test duration and analyzing the performance of the server at different time stages.
[0055] Work order number: Each test task corresponds to a unique work order number. The work order number can be used to quickly query the relevant information of the test task, including testers, test plans, etc., to facilitate task tracking and management.
[0056] Current test items: Detailed description of the test items currently being conducted, such as high temperature stability test, long-term high-load operation test, etc., so that testers can clearly understand the test focus.
[0057] IP address of the product to be tested: clarify the address of the server in the network to facilitate data transmission, command sending and other operations through the network to achieve control of the test process and data collection.
[0058] First-level server IP address: This is the IP address of the upper-level server that is closely related to the server under test in the network architecture. Knowing this address helps analyze the impact of the network topology on the test results and troubleshoot problems during data interaction.
[0059] S2. Update a database based on the server identification information, wherein the database is used to store associated data of all servers and location information of the servers.
[0060] As a server information warehouse, the database stores the associated data of all servers and their location information, where the location information is the physical location of the server. The location information can be accurate to the data center where the server is located, the cabinet number, and the specific slot position in the cabinet; the location information can also include the computer room, rack, and shelf location of the server.
[0061] The process of updating the database is to compare and integrate the newly acquired server identification information with the existing data in the database. If there is already a record of the server in the database, it will be updated according to the newly acquired information. If it is a brand new server record, a new record will be created in the database to ensure the accuracy and timely update of the data.
[0062] S3. Determine the location information of the server to be tested based on the updated database.
[0063] When the database is updated, the location information of the server to be tested is quickly determined based on the updated database. By using the server identification information as a search condition in the database, an accurate query is performed to locate the location information corresponding to the server to be tested from the numerous records stored in the database.
[0064] For example, in a large data center, there are tens of thousands of servers. With this database query-based method, the specific physical location of the target server can be accurately obtained in a short time, which facilitates subsequent testing operations and maintenance management.
[0065] S4. Display the location information and associated data of the server to be tested.
[0066] The determined location information of the server to be tested is displayed in various ways. For example, in a special server management interface, the layout of the server in the data center is displayed in the form of a visual chart, and the location of the server to be tested is marked with a striking logo; or in a command line interface, the location details of the server can be clearly output in text form, including the data center name, cabinet number, slot number, etc.
[0067] At the same time, it displays relevant data related to the server, such as the server's configuration parameters, running time, and the time of the most recent maintenance. The comprehensive display of this information allows administrators to have a more comprehensive understanding of the server status, so as to better conduct subsequent testing and management decisions.
[0068] In the above scheme, by obtaining the associated data of the server to be tested, the associated data includes server identification information and test information; then updating the database based on the server identification information, the database is used to store the associated data of all servers and the location information of the servers; then determining the location information of the server to be tested based on the updated database; and displaying the location information and associated data of the server to be tested. Through the above method, the automatic monitoring of server aging test is realized, and the test efficiency and production efficiency are improved.
[0069] In one example, updating the database based on the server identification information includes:
[0070] Determining whether the server to be tested exists in the database based on the serial number;
[0071] If it exists, then update the test information of the server to be tested to the database;
[0072] If not, the associated data and location information of the server to be tested are updated to the database.
[0073] Based on the unique serial number of the server, an accurate match is carried out in the huge data records in the database to determine whether the server to be tested exists in the database. In order to achieve efficient search, a B-tree index or hash index can be created for the serial number field. The B-tree index is suitable for range queries and sorting operations, and can quickly locate the range of records that meet the conditions; the hash index performs well in precise matching queries, and can directly locate the target record at an extremely fast speed, greatly improving the efficiency of finding the target server record in massive data. Among them, the B-tree index or hash index are both exemplary implementation methods, and other methods can also be used to determine whether the server to be tested exists in the database.
[0074] When the serial number of the server already exists in the database, the newly acquired test status, start time, work order number, current test item, IP address of the product to be tested, and the IP address of the first-level server are accurately updated to the corresponding database record according to the precisely specified conditions (i.e., serial number). This method ensures that only the relevant fields of the target server are updated, and will not cause any interference to the data of other servers, thereby ensuring the accuracy and integrity of the data.
[0075] When the serial number of the server does not exist in the database, the associated data including the server identification information (serial number, hardware address), test information, and location information (accurate to data center, cabinet number, slot location) will be fully inserted into the database to create a new server record. This process ensures that all key information of the new server can be properly recorded, providing solid data support for subsequent query, management, and testing operations. Through this strict database update mechanism, the accuracy and real-time nature of the server information in the database are guaranteed.
[0076] In one example, determining the location information of the server to be tested based on the updated database includes:
[0077] A first mapping relationship between a preset hardware address and a switch port and a second mapping relationship between a switch port and a physical location;
[0078] Determining the hardware address corresponding to the serial number;
[0079] Determine a switch port corresponding to the serial number based on the hardware address and the first mapping relationship;
[0080] The physical location corresponding to the serial number is determined based on the corresponding switch port and the second mapping relationship as the location information of the server to be tested.
[0081] A first mapping relationship between a preset hardware address and a switch port. For example, in a network architecture of a data center, the hardware address of server A is 00:11:22:33:44:55, and its corresponding switch port is SW1-Port10. This mapping relationship is recorded in detail in a specific table of the database. By establishing this corresponding relationship, the hardware identifier of the server can be associated with its connection port on the network switching device.
[0082] The second mapping relationship between the switch port and the physical location is preset. Continuing with the above data center as an example, the switch where the switch port SW1-Port10 is located is located in cabinet No. 3 in area A of the data center, and the physical location corresponding to the port is on the 5th floor of the cabinet. This mapping relationship is also stored in the database, providing a key basis for locating the actual physical location of the server from the network port.
[0083] After obtaining the serial number of the server to be tested, first query the database for the hardware address corresponding to the serial number. For example, it is known that the serial number of the server to be tested is SER005. By querying the server information table in the database, the corresponding hardware address is obtained as 00:AA:BB:CC:DD:EE. Based on the obtained hardware address, the corresponding switch port is searched in the database using the first mapping relationship. According to the previously preset mapping relationship, the switch port corresponding to the hardware address 00:AA:BB:CC:DD:EE is SW2-Port20. Finally, based on the found switch port and combined with the second mapping relationship, the physical location of the server to be tested is determined. It can be seen from the database that the physical location corresponding to SW2-Port20 is the 8th floor of cabinet No. 5, area B of the data center. In this way, the physical location corresponding to the serial number, that is, the location information of the server to be tested, is accurately determined.
[0084] Through this method based on database and preset mapping relationships, each server to be tested can be quickly and accurately located in a complex data center environment, which greatly facilitates the automated testing, maintenance and management of the server.
[0085] In one example, if Figure 2 , the method further comprises:
[0086] S5. Obtain a first sequence number set and a second sequence number set composed of sequence numbers in the database at different times, wherein a first time corresponding to the first sequence number set is earlier than a second time corresponding to the second sequence number set;
[0087] If the serial number of the server to be tested exists in the first serial number set and the serial number of the server to be tested does not exist in the second serial number set, the serial number of the server to be tested is unbound from the corresponding location information.
[0088] In the daily operation of the data center, the server may be removed from the test process or offline from the data center for various reasons. In order to grasp these changes in a timely manner, you can regularly obtain a set of serial numbers in the database. For example, at 2 a.m. every day (the first moment), the serial numbers of all servers in the current database are automatically obtained to form the first serial number set; at 5 p.m. on the same day (the second moment), the serial numbers are obtained again to form the second serial number set. The selection of these two time points is based on the business rules of the data center. The server load is relatively low in the early morning, and data acquisition has little impact on the business; 5 p.m. is after the peak business period of the day, and changes in the server status of the day can be captured in time. It should be noted that 2 a.m. and 5 p.m. are exemplary explanations.
[0089] Take a server (serial number SER010) participating in the aging test as an example. The serial number exists in the first serial number set, indicating that at 2 a.m., the server was still operating normally in the data center and was in the test process. However, the serial number was not found in the second serial number set. The absence of the serial number means that during the period from 2 a.m. to 5 p.m., the state of the server changed, and it is very likely that it has been moved out of the data center or is no longer participating in the test. At this time, the serial number of the server to be tested will be automatically unbound from the corresponding location information. Through this mechanism, the data center can update the server status information in a timely manner to ensure that the database records the information of the servers that are currently running and participating in the test. This not only improves the accuracy of server management, but also avoids waste of resources and operational errors caused by erroneous information when performing large-scale server maintenance and test task allocation, further improving the efficiency of server automated testing and management.
[0090] According to the embodiments of the present disclosure, Figure 3 A schematic diagram of the structure of a server testing system provided by an embodiment of the present disclosure is shown, and the system includes:
[0091] An acquisition module 10 is used to acquire the associated data of the server to be tested, wherein the associated data includes server identification information and test information;
[0092] A processing module 20, configured to update a database based on the server identification information, wherein the database is configured to store associated data of all servers and location information of the servers;
[0093] A positioning module 30, configured to determine the location information of the server to be tested based on the updated database;
[0094] The display module 40 is used to display the location information and associated data of the server to be tested.
[0095] In the above scheme, the acquisition module acquires the associated data of the server to be tested, and the associated data includes server identification information and test information; then the processing module updates the database based on the server identification information, and the database is used to store the associated data of all servers and the location information of the servers; the positioning module determines the location information of the server to be tested based on the updated database; the display module displays the location information and associated data of the server to be tested. Through this server automated testing system, automated monitoring of server aging tests is realized, and testing efficiency and production efficiency are improved.
[0096] In one example, the server identification information includes a serial number and a hardware address, and the serial number and the hardware address correspond one to one.
[0097] In one example, the processing module 20 is further configured to:
[0098] Determining whether the server to be tested exists in the database based on the serial number;
[0099] If it exists, then update the test information of the server to be tested to the database;
[0100] If not, the associated data and location information of the server to be tested are updated to the database.
[0101] In one example, the positioning module 30 is further configured to:
[0102] A first mapping relationship between a preset hardware address and a switch port and a second mapping relationship between a switch port and a physical location;
[0103] Determining the hardware address corresponding to the serial number;
[0104] Determine a switch port corresponding to the serial number based on the hardware address and the first mapping relationship;
[0105] The physical location corresponding to the serial number is determined based on the corresponding switch port and the second mapping relationship as the location information of the server to be tested.
[0106] In one example, if Figure 4 , the system further comprises:
[0107] An updating module 50 is used to obtain a first sequence number set and a second sequence number set composed of sequence numbers in the database at different times, wherein a first time corresponding to the first sequence number set is earlier than a second time corresponding to the second sequence number set;
[0108] If the serial number of the server to be tested exists in the first serial number set and the serial number of the server to be tested does not exist in the second serial number set, the serial number of the server to be tested is unbound from the corresponding location information.
[0109] According to an embodiment of the present disclosure, there is also provided an electronic device, including:
[0110] at least one processor; and
[0111] a memory communicatively connected to the at least one processor; wherein,
[0112] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0113] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is further provided, wherein the computer instructions are used to enable the computer to execute the method described in the present disclosure.
[0114] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0115] Figure 5 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0116] like Figure 5 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0117] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0118] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a server automation test method. For example, in some embodiments, the server automation test method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the server automation test method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the server automation test method in any other appropriate manner (e.g., by means of firmware).
[0119] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0121] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0123] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0124] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0125] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0126] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0127] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A server automated testing method, characterized in that: The method comprises: Acquire the associated data of the server to be tested, wherein the associated data includes server identification information and test information; Updating a database based on the server identification information, wherein the database is used to store associated data of all servers and location information of the servers; Determining the location information of the server to be tested based on the updated database; The location information and associated data of the server to be tested are displayed.
2. The method according to claim 1, characterized in that The server identification information includes a serial number and a hardware address, and the serial number and the hardware address correspond one to one.
3. The method according to claim 2, characterized in that The updating of the database based on the server identification information comprises: Determining whether the server to be tested exists in the database based on the serial number; If it exists, then update the test information of the server to be tested to the database; If not, the associated data and location information of the server to be tested are updated to the database.
4. The method according to claim 2, characterized in that: The determining the location information of the server to be tested based on the updated database includes: A first mapping relationship between a preset hardware address and a switch port and a second mapping relationship between a switch port and a physical location; Determining the hardware address corresponding to the serial number; Determine a switch port corresponding to the serial number based on the hardware address and the first mapping relationship; The physical location corresponding to the serial number is determined based on the corresponding switch port and the second mapping relationship as the location information of the server to be tested.
5. The method according to claim 2, characterized in that: The method further includes: Acquire a first sequence number set and a second sequence number set composed of sequence numbers in the database at different times, wherein a first time corresponding to the first sequence number set is earlier than a second time corresponding to the second sequence number set; If the serial number of the server to be tested exists in the first serial number set and the serial number of the server to be tested does not exist in the second serial number set, the serial number of the server to be tested is unbound from the corresponding location information.
6. A server automated testing system, characterized in that: The system comprises: An acquisition module, used to acquire the associated data of the server to be tested, wherein the associated data includes server identification information and test information; A processing module, used for updating a database based on the server identification information, wherein the database is used for storing associated data of all servers and location information of the servers; A positioning module, used to determine the location information of the server to be tested based on the updated database; The display module is used to display the location information and related data of the server to be tested.
7. The system according to claim 6, characterized in that The server identification information includes a serial number and a hardware address, and the serial number and the hardware address correspond one to one.
8. The system according to claim 6, characterized in that The processing module is also used for: Determining whether the server to be tested exists in the database based on the serial number; If it exists, then update the test information of the server to be tested to the database; If not, the associated data and location information of the server to be tested are updated to the database.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute: Acquire the associated data of the server to be tested, wherein the associated data includes server identification information and test information; Updating a database based on the server identification information, wherein the database is used to store associated data of all servers and location information of the servers; Determining the location information of the server to be tested based on the updated database; The location information and associated data of the server to be tested are displayed.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute: Acquire the associated data of the server to be tested, wherein the associated data includes server identification information and test information; Updating a database based on the server identification information, wherein the database is used to store associated data of all servers and location information of the servers; Determining the location information of the server to be tested based on the updated database; The location information and associated data of the server to be tested are displayed.