Control method, apparatus, device, and storage medium
By acquiring target information through the baseboard manager interface and loading target system files using network disk devices and USB interfaces, the high cost and high error rate problems caused by the lack of network ports on server motherboards are solved, and efficient production testing without the need for external network cards is achieved.
Patent Information
- Application Number
- CN202311817034.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-27
AI Technical Summary
In existing technologies, the lack of a built-in network port on server motherboards necessitates the use of an external USB network card during production testing, increasing costs, raising error rates, and reducing production efficiency.
By obtaining target information through the interface of the baseboard manager in the server, and loading the target system files using the network disk device and USB interface, remote boot can be achieved without the need for an external network card.
It reduced production costs, improved production efficiency, and decreased the error rate of startup testing.
Smart Images

Figure CN117827312B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer processing, and more particularly to a control method, apparatus, device, and storage medium. Background Technology
[0002] Most current server motherboards have eliminated the built-in network port, replacing it with an optional external one. However, during factory production testing, the servers under test need to boot from a Preboot Execution Environment (PXE) into the local area network to batch install a RAMDISK OS test environment; this cannot be done without an onboard network card.
[0003] Related technologies include booting via an external Universal Serial Bus (USB) tooling network card. However, this method not only requires the purchase of a large number of tooling network cards as test fixtures, increasing production costs, but also leads to problems such as high boot test error rates and low production efficiency due to interface wear caused by repeated use of USB tooling network cards. Summary of the Invention
[0004] This disclosure provides a control method, apparatus, device, and storage medium.
[0005] According to a first aspect of this disclosure, a control method is provided, comprising:
[0006] The target information of the target server is obtained through the first interface of the baseboard manager in the server under test. The target information includes at least some information required to start the target system.
[0007] When the server under test is powered on, the target information is read through the second interface to start the target system.
[0008] In one embodiment of this application, before obtaining the target information of the target server, the following steps are also included:
[0009] The address of the target server and its corresponding configuration file are obtained through an address allocation server, wherein the configuration file contains file information and path information of the target system;
[0010] By parsing the configuration file, the file information and path information of the target system can be obtained.
[0011] In one embodiment of this application, obtaining the target information of the target server includes:
[0012] Obtain first target information of the target server, wherein the first target information contains all files required to start the target system;
[0013] Accordingly, reading the target information through the second interface includes:
[0014] The first target information is read through the second interface.
[0015] In one embodiment of this application, obtaining the target information of the target server includes:
[0016] Obtain second target information of the target server, wherein the second target information contains a first file required to start the target system;
[0017] Accordingly, reading the target information through the second interface includes:
[0018] The first file within the second target information is read through the second interface;
[0019] Based on the network disk device and the first file, load the second file concerning the startup of the target system from the target server.
[0020] In one embodiment of this application, after the target system is started, the method further includes:
[0021] Based on the first network protocol, the test request of the server under test is sent to the detection server via the baseboard manager;
[0022] Based on the second network protocol, the test file sent by the detection server is received to test whether the server under test is qualified.
[0023] In one embodiment of this application, before sending the test request of the server under test to the detection server via the baseboard manager, the method further includes:
[0024] Based on a third network protocol between the baseboard manager and the central processing unit within the server under test, the test request sent by the central processing unit is received.
[0025] In one embodiment of this application, after the target system is started, the method further includes:
[0026] Receive interactive information sent by the central processing unit;
[0027] The interactive information is sent to the remote server via the baseboard manager.
[0028] According to a second aspect of this disclosure, a control device is provided, comprising:
[0029] The acquisition module is used to acquire target information of the target server through the first interface of the baseboard manager in the server under test, wherein the target information includes at least some information required to start the target system;
[0030] The startup module is used to read the target information through a second interface to start the target system when the server under test is powered on.
[0031] In this application, the following are also included:
[0032] The address allocation module is used to obtain the address of the target server and its corresponding configuration file through the address allocation server before obtaining the target information of the target server. The configuration file contains the file information and path information of the target system. The file information and path information of the target system are obtained by parsing the configuration file.
[0033] In one embodiment of this application, the acquisition module is specifically used for:
[0034] Obtain first target information of the target server, wherein the first target information contains all files required to start the target system;
[0035] Accordingly, the startup module is specifically used to: read the first target information through the second interface.
[0036] In one embodiment of this application, the acquisition module is specifically used for:
[0037] Obtain second target information of the target server, wherein the second target information contains a first file required to start the target system;
[0038] Accordingly, the startup module is specifically used to: read the first file in the second target information through the second interface; and load the second file in the target server regarding the startup of the target system based on the network disk device and the first file.
[0039] In this application, the following are also included:
[0040] The testing module is used to, after the target system is started, send the test request of the server under test to the detection server via the baseboard manager based on a first network protocol; and receive the test file sent by the detection server based on a second network protocol to test whether the server under test is qualified.
[0041] In one embodiment of this application, the test module is specifically used for:
[0042] Before the test request of the server under test is sent to the detection server via the baseboard manager, the test request sent by the central processing unit is received based on a third network protocol between the baseboard manager and the central processing unit within the server under test.
[0043] In this application, the following are also included:
[0044] An interaction module is used to receive interaction information sent by the central processing unit after the target system is started; and to send the interaction information to a remote server via the baseboard manager.
[0045] According to a third aspect of this disclosure, an electronic device is provided, comprising:
[0046] At least one processor; and
[0047] A memory communicatively connected to the at least one processor; wherein,
[0048] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the methods described in this disclosure.
[0049] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the methods described in this disclosure.
[0050] The control method, apparatus, device, and storage medium disclosed herein acquire target information of a target server through a first interface of a baseboard manager in a server under test, wherein the target information includes at least some information required to start the target system; when the server under test is powered on, the target information is read through a second interface to start the target system.
[0051] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0052] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which:
[0053] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
[0054] Figure 1This diagram illustrates the implementation flow of the control method according to an embodiment of the present disclosure. Figure 1 ;
[0055] Figure 2 This illustration shows an exemplary structure diagram of a server under test starting PXE, provided by an embodiment of this disclosure.
[0056] Figure 3 This diagram illustrates the implementation flow of the control method according to an embodiment of the present disclosure. Figure 2 ;
[0057] Figure 4 This illustration shows a schematic diagram of an exemplary test server provided in an embodiment of this disclosure.
[0058] Figure 5 A schematic diagram of the structure of a control device provided in an embodiment of this disclosure is shown;
[0059] Figure 6 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0060] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.
[0061] Figure 1 A flowchart illustrating a control method provided in this disclosure embodiment is provided. This method can be executed by a control device provided in this disclosure embodiment, which can be implemented in software and / or hardware. The method specifically includes:
[0062] S110. Obtain the target information of the target server through the first interface of the baseboard manager in the server under test.
[0063] The target information includes at least some information required to start the target system.
[0064] The server under test (DUT) is a brand-new server that requires performance testing. The BaseboardManager Controller (BMC) is an embedded chip on the DUT used to manage and monitor its operational status, especially facilitating remote monitoring. The first interface is the BaseboardManager's dedicated network port, allowing remote management of the DUT. The target server is a server containing files capable of booting the target system, such as a Trivial File Transfer Protocol (TFTP) server. The target system can be a PXE-booting system, such as a Ramdisk operating system (Ramdisk OS).
[0065] Specifically, in this embodiment, the baseboard manager (BMC) within the server under test (DUT) automatically starts upon power-up. Existing BMCs merely allow operators to view the DUT's status via a first interface and lack the capability to initiate PXE. This embodiment, however, upgrades the BMC's functionality through program design, enabling it to initiate PXE. Specifically, PXE is initiated by acquiring target information from the target server.
[0066] In this embodiment of the disclosure, before obtaining the target information of the target server, the method further includes: obtaining the address of the target server and its corresponding configuration file through an address allocation server, wherein the configuration file contains file information and path information of the target system; and obtaining the file information and path information of the target system by parsing the configuration file.
[0067] The address allocation server can be a server that dynamically allocates Internet Protocol addresses (IP) or obtains simple information for the server under test, such as a Dynamic Host Configuration Protocol (DHCP) server.
[0068] Specifically, in this embodiment, relevant files can be pre-configured on the address allocation server, such as configuring the target server's address and its corresponding configuration file. In this way, the target server's address and its corresponding configuration file can be obtained through the address allocation server, and then the file information and path information of the target system can be obtained through parsing.
[0069] In this embodiment, by pre-configuring the relevant files of the target server in the address allocation server, a program can be written to obtain the relevant files, thereby parsing the path information of the target server and the target system, and obtaining the part of the information required to start the target system from the target server.
[0070] S120. When the server under test is powered on, the target information is read through the second interface to start the target system.
[0071] The second interface can be an interface for reading target information, such as a Universal Serial Bus (USB) interface.
[0072] Specifically, in this embodiment, when the server under test is powered on, the Unified Extensible Firmware Interface (UEFI) of the server under test can enumerate the devices of all interfaces within the server under test, thereby detecting the partial information required to start the target system and thus starting the target system.
[0073] For example, in this embodiment, the target information can be downloaded to the file system within the baseboard manager as an intermediary, and then the target information can be loaded onto the second interface in the server under test so that the target information can be read from the second interface immediately when the server under test is powered on.
[0074] This embodiment obtains target information of the target server through the first interface of the baseboard manager in the server under test. The target information includes at least some information required to start the target system. When the server under test is powered on, the target information is read through the second interface to start the target system. No external network card or device is required. PXE can be started from the remote target server without a tooling network card, thereby testing the newly manufactured server and significantly reducing production costs.
[0075] In this embodiment of the disclosure, obtaining the target information of the target server includes: obtaining first target information of the target server, wherein the first target information contains all files required to start the target system; correspondingly, reading the target information through the second interface includes: reading the first target information through the second interface.
[0076] Specifically, the first target information in this embodiment contains all the files required to start the target system. Therefore, this embodiment can obtain the first target information, that is, obtain all the files required to start the target system, through the baseboard manager. Thus, when the server under test is powered on, it can detect all the files required to start the target system through the second interface, thereby realizing the function of loading and starting the target system.
[0077] Figure 2 This is a schematic diagram illustrating an exemplary structure for starting PXE on a server under test (DUT) according to an embodiment of this disclosure. It includes the DUT, the central processing unit (CPU) and baseboard manager (BMC) of the main operating system within the DUT, a remotely connected address allocation server (DHCP), a target server (TFTP), and partial information about the target system within the target server to start PXE.
[0078] like Figure 2 As shown, in this embodiment, the baseboard manager can connect to the address allocation server (DHCP) and the target server (TFTP) via the first interface using the Ethernet protocol to obtain target information for booting the target system. After obtaining some information about booting the target system, after the server under test is powered on, the central processing unit can traverse each interface to find the target information for booting the target system loaded on the second interface, thereby starting PXE.
[0079] In another disclosed embodiment, obtaining target information of the target server includes: obtaining second target information of the target server, wherein the second target information contains a first file required to start the target system; correspondingly, reading the target information through a second interface includes: reading the first file in the second target information through the second interface; and loading the second file in the target server regarding starting the target system based on the network disk device and the first file.
[0080] In this embodiment, the files used to launch the target system include a first file and a second file. The first file can be used to launch the second file, and the size of the second file is larger than the size of the first file.
[0081] For example, the target system can consist of three parts: the core kernel module of the operating system, the boot module (initrd), and the root system file (rootfs image size). The first file can be the kernel module and the boot module (initrd), and the second file can be the root system file (rootfs imagesize).
[0082] Specifically, in this embodiment, the baseboard manager can obtain only the second target information from the target server, that is, the first file required to start the target system. Therefore, when the server under test is powered on, the second interface can detect the first file required to start the target system, and the second file for starting the target system can be loaded from the target server based on the first file and the Network Block Device (NBD) loading method.
[0083] This embodiment is suitable for situations where the target system file size is large. It starts by loading the first file of the target system and then starts the second file, which is larger in size and stored in the target server, by loading it through a network disk device.
[0084] For example, in this embodiment, when the BMC starts up, its dedicated network port will still be assigned a dynamic address from the DHCP server, and it will obtain the IP address of the corresponding TFTP server, as well as the filename and path information of the Ramdisk OS deployed on the TFTP server. At this time, the BMC in this embodiment only downloads the smaller first file (kernel / initrd) image file from the TFTP server to its own file system. Then, the BMC can load the first file (kernel / initrd) boot image file onto the server's second interface, such as a USB interface.
[0085] Finally, when the server under test is powered on, the server's UEFI can detect the first file and start it. For the root system file of the target system, which is relatively large, this embodiment can load it onto the system's USB interface via the BMC through a network disk device. In this way, the target system (Ramdisk OS) can read the root file information and download it all to the memory of the server under test system for the next step.
[0086] In addition, this embodiment can also obtain the file size of the target system in advance from the file information of the target system, and determine whether to obtain the first target information or the second target information based on the file size of the target system. For example, when the file size of the target system does not exceed the cache size in the baseboard manager, the first target information can be downloaded, that is, all files required to start the target system can be downloaded; when the file size of the target system exceeds the cache size in the baseboard manager, the second target information can be downloaded, that is, the first file required to start the target system can be downloaded, and then the second file related to starting the target system in the target server can be loaded via a network disk device loading method.
[0087] This embodiment allows for flexible selection of the method for downloading and launching target system files based on the file size of the target system. It eliminates the need to download all files of the target system and is applicable to more types of target systems, thus possessing greater value and wider applicability.
[0088] In this embodiment of the disclosure, after the target system is started, the following steps are also included: Figure 3 Steps S310-S320 shown are as follows:
[0089] S310. Based on the first network protocol, the test request of the server under test is sent to the detection server via the baseboard manager.
[0090] The first network protocol can be a network protocol used to connect the server under test (DUT) and the testing server, such as Ethernet, to establish communication between them. The test request can be a request used to check whether the various functions of the DUT are operating normally. The testing server can be a remote server storing test files.
[0091] Specifically, in this embodiment, the target system is started to enable the PXE function. Enabling the PXE function is for performing functional testing on the server under test to identify defective products and prevent them from entering the market. Therefore, the specific testing function in this embodiment can use the baseboard manager as an intermediary, based on a first network protocol, to connect to the testing server through the baseboard manager's first interface to send test requests to the testing server.
[0092] In this embodiment of the disclosure, before sending the test request of the server under test to the testing server via the baseboard manager, the method further includes: receiving the test request sent by the central processing unit based on a third network protocol between the baseboard manager and the central processing unit within the server under test.
[0093] The third network protocol can be any in-band communication protocol between the central processing unit and the baseboard manager, such as LAN over USB. In this embodiment, the test request sent by the central processing unit is sent to the baseboard manager through the third network protocol.
[0094] S320. Based on the second network protocol, receive the test file sent by the detection server to test whether the server under test is qualified.
[0095] The second network protocol can be a network protocol used to transmit specific data files, such as Secure Shell (SSH). The test file can be a file that tests the various functionalities within the server under test.
[0096] Specifically, in this embodiment, based on the second network protocol, test files can be downloaded from the test server to the server under test via the baseboard manager to perform a pass / fail test on the server under test.
[0097] In addition, after the target system is started, this embodiment also includes: receiving interactive information sent by the central processing unit; and sending the interactive information to a remote server via the baseboard manager.
[0098] The interactive information can be any information transmitted from the server under test to any remote server. In this embodiment, the interactive information can also be sent from the central processing unit to the baseboard manager via a third network protocol, and then from the baseboard manager to any remote server. Therefore, this embodiment enables the server under test to flexibly communicate with any remote server even without a pre-installed network card, thereby facilitating the transmission of more information.
[0099] Figure 4 This is a schematic diagram illustrating an exemplary test structure for a server under test (DUT) according to an embodiment of this disclosure. It includes the DUT, the central processing unit (CPU) and baseboard manager (BMC) of the main operating system within the DUT, and a test server remotely connected to it.
[0100] In this system, the central processing unit (CPU) in the server under test (DUT) can communicate with the baseboard manager via a third network protocol. The DUT establishes a connection with the testing server via a first interface in the baseboard manager, using a first network protocol, and communicates with it. Test files are then transmitted to the DUT via a second network protocol. The first network protocol could be, for example, Ethernet; the second network protocol could be, for example, SSH; and the third network protocol could be, for example, LANover USB.
[0101] For example, when the server under test (DUT) enables PXE functionality, this embodiment needs to download the factory's test scripts from the remote testing server, such as downloading test code or storing test logs in the working directory of the DUT. In this case, this embodiment can use the Baseboard Manager (BMC) as an intermediary bridge, enabling the main operating system CPU to interact with the remote testing server via a second network protocol (SSHTunnel).
[0102] For example, this embodiment can communicate via an in-band method using a third network protocol (LAN over USB). The BMC's address could be, for example, 169.254.95.118, and the host operating system's CPU address could be, for example, 169.254.95.120. Since the BMC itself has an SSH server, and the host operating system can act as an SSH client, an SSH channel can be established between the host operating system's CPU and the BMC. The BMC then forwards requests and responses from the host operating system's CPU to the detection server. Furthermore, if the detection server needs to access the host operating system, it can also remotely forward SSH requests within the BMC to run corresponding commands.
[0103] After enabling the PXE function, this embodiment can establish a connection with any remote server. For example, the function of the server under test can be tested by detecting the server. The function of the server under test can be tested without manual intervention of the tool network card, thus reducing the error rate of the test server.
[0104] Figure 5 This is a schematic diagram of a control device provided in an embodiment of the present disclosure. The device specifically includes:
[0105] The acquisition module 510 is used to acquire target information of the target server through the first interface of the baseboard manager in the server under test, wherein the target information includes at least some information required to start the target system;
[0106] The startup module 520 is used to read the target information through the second interface when the server under test is powered on, so as to start the target system.
[0107] In this application, the following are also included:
[0108] The address allocation module is used to obtain the address of the target server and its corresponding configuration file through the address allocation server before obtaining the target information of the target server. The configuration file contains the file information and path information of the target system. The file information and path information of the target system are obtained by parsing the configuration file.
[0109] In one embodiment of this application, the acquisition module 510 is specifically used to: acquire first target information of the target server, wherein the first target information includes all files required to start the target system;
[0110] Accordingly, the startup module 520 is specifically used to: read the first target information through the second interface.
[0111] In one embodiment of this application, the acquisition module 510 is specifically used for:
[0112] Obtain second target information of the target server, wherein the second target information contains a first file required to start the target system;
[0113] Accordingly, the startup module 520 is specifically used to: read the first file in the second target information through the second interface; and load the second file in the target server regarding the startup of the target system based on the network disk device and the first file.
[0114] In one embodiment of this application, it further includes: a testing module, configured to, after the target system is started, send a test request of the server under test to the detection server via the baseboard manager based on a first network protocol; and receive a test file sent by the detection server based on a second network protocol to test whether the server under test is qualified.
[0115] In one embodiment of this application, the test module is further configured to: receive the test request sent by the central processing unit based on a third network protocol between the baseboard manager and the central processing unit within the server under test, before the test request of the server under test is sent to the detection server via the baseboard manager.
[0116] In one embodiment of this application, it further includes: an interaction module, used to receive interaction information sent by the central processing unit after the target system is started; and to send the interaction information to a remote server via the baseboard manager.
[0117] According to embodiments of this disclosure, this disclosure also provides an electronic device and a readable storage medium.
[0118] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement embodiments 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 may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0119] like Figure 6As shown, device 600 includes a computing unit 601, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 602 or a computer program loaded from storage unit 608 into random access memory (RAM) 603. RAM 603 may also store various programs and data required for the operation of device 600. The computing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0120] Multiple components in device 600 are connected to I / O interface 605, including: input unit 606, such as keyboard, mouse, etc.; output unit 607, such as various types of monitors, speakers, etc.; storage unit 608, such as disk, optical disk, etc.; and communication unit 609, such as network card, modem, wireless transceiver, etc. Communication unit 609 allows device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0121] The computing unit 601 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as control methods. For example, in some embodiments, the control method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the control method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform control methods by any other suitable means (e.g., by means of firmware).
[0122] Various embodiments 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), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0124] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, 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 sound input, voice input, or tactile input).
[0126] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0127] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0128] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0129] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.
[0130] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A control method, the method comprising: The target information of the target server is obtained through the first interface of the baseboard manager in the server under test. The target information includes at least some information required to start the target system. The step of obtaining target information of the target server includes: obtaining second target information of the target server, wherein the second target information contains a first file required to start the target system; When the server under test is powered on, the target information is read through the second interface to start the target system; The step of reading the target information through the second interface includes: reading a first file within the second target information through the second interface; and loading a second file about starting the target system from the target server based on the network disk device and the first file.
2. The method according to claim 1, wherein, Before obtaining the target information of the target server, the following is also included: The address of the target server and its corresponding configuration file are obtained through an address allocation server, wherein the configuration file contains file information and path information of the target system; By parsing the configuration file, the file information and path information of the target system can be obtained.
3. The method according to claim 2, wherein, The acquisition of target information from the target server includes: Obtain first target information of the target server, wherein the first target information contains all files required to start the target system; Accordingly, reading the target information through the second interface includes: The first target information is read through the second interface.
4. The method according to claim 3 or 1, further comprising, after starting the target system: Based on the first network protocol, the test request of the server under test is sent to the detection server via the baseboard manager; Based on the second network protocol, the test file sent by the detection server is received to test whether the server under test is qualified.
5. The method according to claim 4, further comprising, before sending the test request of the server under test to the detection server via the baseboard manager: Based on a third network protocol between the baseboard manager and the central processing unit within the server under test, the test request sent by the central processing unit is received.
6. The method according to claim 5, further comprising, after starting the target system: Receive interactive information sent by the central processing unit; The interactive information is sent to the remote server via the baseboard manager.
7. A control device, the device comprising: The acquisition module is used to acquire target information of the target server through the first interface of the baseboard manager in the server under test, wherein the target information includes at least some information required to start the target system; The step of obtaining target information of the target server includes: obtaining second target information of the target server, wherein the second target information contains a first file required to start the target system; The startup module is used to read the target information through a second interface when the server under test is powered on, so as to start the target system; The step of reading the target information through the second interface includes: reading a first file within the second target information through the second interface; and loading a second file about starting the target system from the target server based on the network disk device and the first file.
8. 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 that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.
Citation Information
Patent Citations
BMC automatic testing system and method
CN106407054A
Methods and system for remotely and automatically deploying server OS through utilization of BMC
CN109639803A
