Fault processing method and device, equipment and medium
By obtaining the device function number and generating slot identification information in the server's basic input and output system, the problem of shutdown and disassembly of equipment failure handling in the server is solved, rapid positioning and reduced maintenance risks are achieved, and stable operation of the server is promoted.
Patent Information
- Application Number
- CN202411413882.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-01-03
AI Technical Summary
When handling equipment failures in the server, the existing technology requires shutting down the machine and removing the housing, which increases the risk of maintenance and is not conducive to the stable operation of the server.
By calling the objective function in the server's basic input and output system, querying the slot identification information based on the device function number, and printing it as silkscreen information on the chassis position, achieving rapid positioning of the faulty equipment without shutting down and disassembly, reducing maintenance risk.
It realizes rapid processing and positioning of device failures in the server, reduces the risk of equipment maintenance, and is conducive to the stable operation of the server.
Smart Images

Figure CN119248559A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a fault handling method, device, equipment and medium. Background Art
[0002] A server usually has various devices installed, such as memory, network card, and disk. These devices are key to the stable operation of the server, so it is necessary to monitor the operating status of these devices. Generally, memory, network card, disk and other devices have corresponding device numbers. After a device failure occurs, the operation and maintenance personnel can find the corresponding device in the server according to its device number for maintenance, but the server needs to be shut down and the case needs to be disassembled to check the motherboard, which increases the maintenance risk and is not conducive to the stable operation of the server, affecting the front-end business.
[0003] Therefore, how to quickly handle the failure of each device in the server is a problem that technical personnel in this field need to solve. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a fault handling method, device, equipment and medium to quickly handle the faults of various devices in the server. The specific scheme is as follows:
[0005] In a first aspect, the present application provides a fault handling method, which is applied to a basic input and output system of a server, comprising:
[0006] If a target device in the server fails, calling a target function to obtain a device function number of the target device;
[0007] According to the device function number, corresponding slot identification information is queried in the configuration space corresponding to the target device; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located;
[0008] The slot identification information and the fault information of the target device are sent to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
[0009] Optionally, the process of generating the slot identification information includes:
[0010] Receiving bandwidth, port number and status identification information of the target slot sent by the logic control device in the server;
[0011] If it is confirmed based on the status identification information that the target device connected to the target slot is in place, the slot identification information corresponding to the bandwidth and port number of the target slot is generated.
[0012] Optionally, if it is confirmed based on the status identification information that the target slot is faulty or the target device connected to the target slot is not in place, a corresponding fault prompt message or device not in place prompt message is generated.
[0013] Optionally, the baseboard management controller sends the slot identification information and the fault information to an operation and maintenance end for display, including:
[0014] The baseboard management controller generates a fault log according to the slot identification information and the fault information, and sends the fault log to the operation and maintenance end so as to be displayed in a fault monitoring system of the operation and maintenance end.
[0015] Optionally, it also includes:
[0016] Receiving bandwidth, port number and status identification information of the slot where each device in the server is located, sent by the logic control device in the server;
[0017] According to the device arrangement order negotiated with the logic control device, the bandwidth and port number of the slot where each device is located are recorded in the bandwidth structure;
[0018] According to the device arrangement sequence negotiated with the logic control device, the state identification information and port number of the slot where each device is located are recorded in the state structure;
[0019] Traversing the state structure;
[0020] If it is confirmed that any device is in place, the bandwidth structure is traversed, and slot identification information corresponding to the bandwidth and port number of the slot where the current device is located is generated; otherwise, the slot identification information corresponding to the bandwidth and port number of the slot where the current device is located is assigned a default value;
[0021] Recording slot identification information of each device in the silk-screen structure according to the device arrangement sequence negotiated with the logic control device;
[0022] After the initialization of each device is completed, the slot identification information of each device in the silk-screen structure is written into the configuration space corresponding to each device.
[0023] Optionally, after the server is powered on, the logic control device collects bandwidth, port number and status identification information of the slot where each device in the server is located.
[0024] Optionally, the device arrangement order negotiated with the logic control device is: the initialization order of each device in the server.
[0025] In a second aspect, the present application provides a fault handling device, which is applied to a basic input and output system of a server, comprising:
[0026] An acquisition module, used for calling a target function to acquire a device function number of the target device if a target device in the server fails;
[0027] A query module, used to query corresponding slot identification information in the configuration space corresponding to the target device according to the device function number; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located;
[0028] A processing module is used to send the slot identification information and the fault information of the target device to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
[0029] Optionally, the process of generating the slot identification information includes:
[0030] Receiving bandwidth, port number and status identification information of the target slot sent by the logic control device in the server;
[0031] If it is confirmed based on the status identification information that the target device connected to the target slot is in place, the slot identification information corresponding to the bandwidth and port number of the target slot is generated.
[0032] Optionally, if it is confirmed based on the status identification information that the target slot is faulty or the target device connected to the target slot is not in place, a corresponding fault prompt message or device not in place prompt message is generated.
[0033] Optionally, the baseboard management controller generates a fault log according to the slot identification information and the fault information, and sends the fault log to the operation and maintenance end for display in a fault monitoring system of the operation and maintenance end.
[0034] Optionally, it also includes:
[0035] A generation module is used to receive the bandwidth, port number and status identification information of the slot where each device in the server is located, which is sent by the logic control device in the server; record the bandwidth and port number of the slot where each device is located in the bandwidth structure according to the device arrangement order negotiated with the logic control device; record the status identification information and port number of the slot where each device is located in the status structure according to the device arrangement order negotiated with the logic control device; traverse the status structure; if it is confirmed that any device is in place, traverse the bandwidth structure and generate slot identification information corresponding to the bandwidth and port number of the slot where the current device is located; otherwise, assign the slot identification information corresponding to the bandwidth and port number of the slot where the current device is located to a default value; record the slot identification information of each device in the silk-screen structure according to the device arrangement order negotiated with the logic control device; after the initialization of each device is completed, write the slot identification information of each device in the silk-screen structure into the configuration space corresponding to each device.
[0036] In a third aspect, the present application provides an electronic device, including:
[0037] Memory for storing computer programs;
[0038] The processor is used to execute the computer program to implement the fault handling method disclosed above.
[0039] In a fourth aspect, the present application provides a non-volatile storage medium for storing a computer program, wherein the computer program implements the aforementioned disclosed fault handling method when executed by a processor.
[0040] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which implements the steps of the aforementioned disclosed fault handling method when executed by a processor.
[0041] It can be seen from the above scheme that the present application provides a fault handling method, which is applied to the basic input and output system of a server, including: if a target device in the server fails, calling a target function to obtain the device function number of the target device; querying the corresponding slot identification information in the configuration space corresponding to the target device according to the device function number; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located; sending the slot identification information and the fault information of the target device to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
[0042] It can be seen that the present application confirms the device function number of the faulty device through the basic input and output system of the server, and confirms the slot identification information of the faulty device according to the one-to-one correspondence between the device function number and the slot identification information of the slot where the device is located; since the slot identification information is printed as silk-screen information on the chassis position where the slot is located; then when the operation and maintenance personnel discover the fault information and slot identification information of the corresponding device from the operation and maintenance end, they can quickly find the corresponding device in the computer room according to the slot identification information, and perform maintenance according to the fault information without shutting down the server and disassembling the casing to view the motherboard, thereby realizing rapid processing of equipment failures in the server, reducing the risk of equipment maintenance, and also facilitating stable operation of the server.
[0043] Correspondingly, a fault handling device, equipment and medium provided by the present application also have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0045] Figure 1 A flow chart of a fault handling method disclosed in this application;
[0046] Figure 2 This is a flow chart of another fault handling method disclosed in this application;
[0047] Figure 3 A schematic diagram of server production and fault handling disclosed in this application;
[0048] Figure 4 A schematic diagram of a fault handling device disclosed in this application;
[0049] Figure 5 A schematic diagram of an electronic device disclosed in this application;
[0050] Figure 6 A server structure diagram provided for this application;
[0051] Figure 7 A terminal structure diagram provided for this application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other examples obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] At present, servers are usually equipped with a variety of devices, such as memory, network card, and disk, etc. These devices are the key to the stable operation of the server, so it is necessary to monitor the operating status of these devices. Generally, devices such as memory, network card, and disk have corresponding device numbers. After a device failure occurs, the operation and maintenance personnel can find the corresponding device in the server according to its device number for maintenance, but the server needs to be shut down and the casing needs to be disassembled to check the motherboard, which increases the maintenance risk and is not conducive to the stable operation of the server, affecting the front-end business. To this end, the present application provides a fault handling solution that can quickly handle the failure of each device in the server without shutting down the server and disassembling the casing to check the motherboard, thereby achieving rapid handling of device failures in the server, reducing the risk of equipment maintenance, and is also conducive to the stable operation of the server.
[0054] See also Figure 1 As shown, the embodiment of the present application discloses a fault handling method, which is applied to the basic input and output system of the server, including:
[0055] S101. If a target device in a server fails, a target function is called to obtain a device function number of the target device.
[0056] In this embodiment, the target device may be various PCIE (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) devices in the server, such as a network card, a disk, etc. In one example, calling the target function to obtain the device function number of the target device includes: using the PCIE RAS function to obtain the device function number of the target device.
[0057] S102. Query corresponding slot identification information in the configuration space corresponding to the target device according to the device function number; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located.
[0058] In one embodiment, the process of generating slot identification information includes: receiving the bandwidth, port number and status identification information of the target slot sent by the logic control device in the server; if it is confirmed based on the status identification information that the target device connected to the target slot is in place, then generating slot identification information corresponding to the bandwidth and port number of the target slot.
[0059] Accordingly, after the server is powered on, the logic control device collects the bandwidth, port number and status identification information of the slot where each device in the server is located; then the logic control device sends the collected bandwidth, port number and status identification information of the slot where each device is located to the basic input and output system of the server, so that the basic input and output system of the server receives the bandwidth, port number and status identification information of the slot where each device in the server is located sent by the logic control device in the server; records the bandwidth and port number of the slot where each device is located in the bandwidth structure according to the device arrangement order negotiated with the logic control device; and records the bandwidth and port number of the slot where each device is located in the bandwidth structure according to the device arrangement order negotiated with the logic control device. Device arrangement order, record the status identification information and port number of the slot where each device is located in the status structure; traverse the status structure; if any device is confirmed to be in place, traverse the bandwidth structure and generate the slot identification information corresponding to the bandwidth and port number of the slot where the current device is located; otherwise, assign the slot identification information corresponding to the bandwidth and port number of the slot where the current device is located to the default value; according to the device arrangement order negotiated with the logic control device, record the slot identification information of each device in the silk-screen structure; after the initialization of each device is completed, write the slot identification information of each device in the silk-screen structure into the configuration space corresponding to each device. In one embodiment, the device arrangement order negotiated with the logic control device is: the initialization order of each device in the server.
[0060] In one implementation, if it is confirmed based on the status identification information that the target slot is faulty or the target device connected to the target slot is not in place, a corresponding fault prompt message or device not in place prompt message is generated.
[0061] S103, sending the slot identification information and the fault information of the target device to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
[0062] In one embodiment, the baseboard management controller sends the slot identification information and fault information to the operation and maintenance end for display, including: the baseboard management controller generates a fault log according to the slot identification information and fault information, and sends the fault log to the operation and maintenance end for display in the fault monitoring system of the operation and maintenance end.
[0063] It can be seen that this embodiment confirms the device function number of the faulty device through the basic input and output system of the server, and confirms the slot identification information of the faulty device according to the one-to-one correspondence between the device function number and the slot identification information of the slot where the device is located; because the slot identification information is printed as silk-screen information on the chassis position where the slot is located; then when the operation and maintenance personnel find the fault information and slot identification information of the corresponding device from the operation and maintenance end, they can quickly find the corresponding device in the computer room according to the slot identification information, and perform maintenance according to the fault information without shutting down the server and disassembling the casing to view the motherboard, thereby realizing rapid processing of equipment failures in the server, reducing the risk of equipment maintenance, and also facilitating stable operation of the server.
[0064] To implement this application, CPLD (Complex Programmable Logic Device), BMC (Baseboard Management Controller) and BIOS (Basic Input Output System) each implement the following functions:
[0065] See also Figure 2 , CPLD and BIOS negotiate the bandwidth information of the PCIE ports under each CPU in the server, the device existence status bit, the Raiser ID value of the corresponding PCIE port, etc., and send them to the BIOS through the I2C protocol for the BIOS to initialize the device.
[0066] During the PCIE device initialization process, the BIOS constructs a SLOT ID structure (i.e., a silkscreen structure) in the initialization order, and writes the information in the SLOT ID structure into the PCIE SLOT ID configuration space of the corresponding device. Specifically, the SLOT ID structure is initialized first: in the pre-startup phase, the BIOS defines the SLOT ID structure and defaults to a set of initial values; defines the bandwidth information structure of each port to record the bandwidth of each port; defines the existence status structure to record whether the device connected to the port is in place or not, and confirms the traversal order of each device, which is generally the device initialization order. Among them, one device corresponds to one register, and the register records the bandwidth information of the corresponding device, the device existence status bit and other information. After that, a loop function is constructed to traverse the bandwidth information, device existence status bit and other information of all PCIE ports, that is, to traverse the aforementioned registers. The constructor matches the device bandwidth information obtained by the traversal with the existence status of the corresponding port device. If the device exists, the bandwidth and port number of the corresponding device port are obtained, and the corresponding SLOTID (i.e., slot identification information) is generated according to the bandwidth size and port number, and updated to the SLOT ID structure.
[0067] For example: when the bandwidth information of PE0 under CPU0 is read as x4x4x4x4 (a x16 port is split into 4 x4), and at least one device is in place under the port, the SLOT ID of the port is set to 11, 13, 15, 17; when the bandwidth information of PE0 under CPU0 is read as x8x8 (a x16 port is split into 2 x8), and at least one device is in place under the port, the SLOT ID of the port is set to 11, 15. Another example: for a x16 port, the SLOT ID of the port is set to 11, and the value 11 corresponds to the silkscreen of the specified physical position on the chassis structure.
[0068] This embodiment is designed for the EE / structure as a whole, and the raiser card to be connected to each PCIE PE port under the CPU corresponds to the specified position outside the chassis; the silk screen number fixed at the position is the SLOT ID number. Among them, the corresponding raiser ID (bandwidth information) is defined according to the requirements of different bandwidth information. The structure is molded, and the relevant silk screen is fixed and printed on the chassis.
[0069] BIOS and BMC communicate the device fault parameter transmission protocol including SLOT ID, such as IPMI protocol. When a device fails, the BIOS RAS process is triggered, the PCIE RAS function obtains the BDF number of the faulty device, and obtains the SLOT ID number in its configuration space, and passes the SLOT ID value together with other fault parameters to BMC via IPMI protocol; BMC obtains the fault information transmitted by BIOS, forms a log, and provides it to the monitoring system for query; the fault monitoring system obtains the faulty device information from the BMC log, determines its fault type, and if it needs to be replaced or repaired, the SLOT ID of the device is notified to the operation and maintenance personnel; the operation and maintenance personnel find the corresponding silk screen on the chassis based on the SLOT ID of the faulty device and replace the faulty device.
[0070] In this embodiment, BIOS constructs the SLOT ID in the PCIE device configuration space, combines the structural design, hardware design, CPLD and BMC design, and matches the device SLOT ID with the chassis silk screen one by one; in the process of initializing the PCIE device, the SLOT ID in the constructed SLOT ID structure is filled into the configuration space of the corresponding initialized PCIE device. When a fault occurs, the RAS processing function obtains the corresponding device error type, bus number, device function number, SLOT ID number and other information, and notifies the BMC of the fault information through the communication protocol with the BMC; the BMC obtains the device fault information and generates a corresponding log.
[0071] According to this embodiment, it is not only helpful to realize equipment fault detection, but also helpful to the production line maintenance of the server. Figure 3 The production and operation process of the server includes: first, set up a package and place an order according to the server configuration to be produced. If there is an existing package, directly select the existing server and put it online; if not, send the demand to the tester and BIOS; after receiving the demand, the tester borrows the materials required for the package (CPU, memory, disk, etc.) from the laboratory to assemble the machine. After the assembly is completed, after the machine is turned on, notify the BIOS engineer to collect the bus device function number (BDF) required by the device; make the BDF number corresponding to each device into an Excel table and provide it to the project manager; the project manager will give the relevant information to the production and make a label (specifically, the aforementioned SLOT ID); when production starts, stick the label in the specified position of the chassis; the package is produced and delivered for operation. During online operation, when a device fails, the BIOS RAS process is triggered, and the PCIERAS function obtains the BDF number of the faulty device, obtains the SLOT ID number in its configuration space, and passes the SLOT ID value together with other fault parameters to the BMC via the IPMI protocol; the BMC obtains the fault information transmitted by the BIOS, forms a log, and provides it to the monitoring system for query; the fault monitoring system obtains the faulty device information from the BMC log, determines the fault type, and if replacement or repair is required, the SLOT ID of the device is notified to the operation and maintenance personnel; the operation and maintenance personnel find the corresponding silk screen on the chassis based on the SLOT ID of the faulty device and replace the faulty device.
[0072] A fault handling device provided in an embodiment of the present application is introduced below. The fault handling device described below can be referenced to other embodiments described in this document.
[0073] See also Figure 4 As shown, the embodiment of the present application discloses a fault handling device, which is applied to a basic input and output system of a server, including:
[0074] The acquisition module 401 is used to call the target function to obtain the device function number of the target device if the target device in the server fails;
[0075] The query module 402 is used to query the corresponding slot identification information in the configuration space corresponding to the target device according to the device function number; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located;
[0076] Processing module 403 is used to send the slot identification information and the fault information of the target device to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
[0077] In one implementation, the process of generating the slot identification information includes:
[0078] receiving bandwidth, port number and status identification information of the target slot sent by the logic control device in the server;
[0079] If it is confirmed based on the status identification information that the target device connected to the target slot is in place, slot identification information corresponding to the bandwidth and port number of the target slot is generated.
[0080] In one implementation, if it is confirmed based on the status identification information that the target slot is faulty or the target device connected to the target slot is not in place, a corresponding fault prompt message or device not in place prompt message is generated.
[0081] In one implementation, the baseboard management controller generates a fault log according to the slot identification information and the fault information, and sends the fault log to the operation and maintenance end so as to be displayed in the fault monitoring system of the operation and maintenance end.
[0082] In one embodiment, it further includes:
[0083] A generation module is used to receive the bandwidth, port number and status identification information of the slot where each device in the server is located, which is sent by the logic control device in the server; record the bandwidth and port number of the slot where each device is located in the bandwidth structure according to the device arrangement order negotiated with the logic control device; record the status identification information and port number of the slot where each device is located in the status structure according to the device arrangement order negotiated with the logic control device; traverse the status structure; if it is confirmed that any device is in place, traverse the bandwidth structure and generate slot identification information corresponding to the bandwidth and port number of the slot where the current device is located; otherwise, assign the slot identification information corresponding to the bandwidth and port number of the slot where the current device is located to a default value; record the slot identification information of each device in the silk-screen structure according to the device arrangement order negotiated with the logic control device; after the initialization of each device is completed, write the slot identification information of each device in the silk-screen structure into the configuration space corresponding to each device.
[0084] Among them, for more specific working processes of each module and unit in this embodiment, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0085] It can be seen that this embodiment provides a fault handling device that can quickly handle faults of various devices in the server without shutting down the server and disassembling the casing to check the mainboard. This achieves rapid handling of device faults in the server, reduces the risk of equipment maintenance, and is also conducive to stable operation of the server.
[0086] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below can be referenced to other embodiments described in this document.
[0087] See also Figure 5 As shown, the embodiment of the present application discloses an electronic device, including:
[0088] Memory 501, used for storing computer programs;
[0089] The processor 502 is used to execute the computer program to implement the method disclosed in any of the above embodiments.
[0090] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: if a target device in the server fails, the target function is called to obtain the device function number of the target device; the corresponding slot identification information is queried in the configuration space corresponding to the target device according to the device function number; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located; the slot identification information and the fault information of the target device are sent to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
[0091] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: receiving the bandwidth, port number and status identification information of the target slot sent by the logic control device in the server; if it is confirmed based on the status identification information that the target device connected to the target slot is in place, then generating slot identification information corresponding to the bandwidth and port number of the target slot.
[0092] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: if it is confirmed based on the status identification information that the target slot is faulty or the target device connected to the target slot is not in place, a corresponding fault prompt message or device not in place prompt message is generated.
[0093] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: generating a fault log according to the slot identification information and the fault information, and sending the fault log to the operation and maintenance end for display in the fault monitoring system of the operation and maintenance end.
[0094] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: receiving the bandwidth, port number and status identification information of the slot where each device in the server is located, which is sent by the logic control device in the server; recording the bandwidth and port number of the slot where each device is located in the bandwidth structure according to the device arrangement order negotiated with the logic control device; recording the status identification information and port number of the slot where each device is located in the state structure according to the device arrangement order negotiated with the logic control device; traversing the state structure; if it is confirmed that any device is in place, traversing the bandwidth structure, and generating slot identification information corresponding to the bandwidth and port number of the slot where the current device is located; otherwise, assigning the slot identification information corresponding to the bandwidth and port number of the slot where the current device is located to a default value; recording the slot identification information of each device in the silk-screen structure according to the device arrangement order negotiated with the logic control device; after the initialization of each device is completed, writing the slot identification information of each device in the silk-screen structure into the configuration space corresponding to each device.
[0095] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: after the server is powered on, the bandwidth, port number and status identification information of the slot where each device in the server is located are collected.
[0096] Furthermore, the present application also provides an electronic device. The electronic device can be Figure 6 The server shown can also be Figure 7 Terminal shown. Figure 6 and Figure 7 All of them are structural diagrams of electronic devices according to an exemplary embodiment, and the contents in the diagrams cannot be regarded as any limitation on the scope of use of the present application.
[0097] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present application. The server may specifically include: at least one processor, at least one memory, a power supply, a communication interface, an input / output interface, and a communication bus. The memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the relevant steps in the fault handling disclosed in any of the aforementioned embodiments.
[0098] In this embodiment, the power supply is used to provide working voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0099] In addition, the memory as a carrier for resource storage can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include operating system, computer programs and data, etc. The storage method can be temporary storage or permanent storage.
[0100] The operating system is used to manage and control the hardware devices and computer programs on the server to realize the operation and processing of the data in the memory by the processor, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the fault handling method disclosed in any of the above embodiments, the computer program can further include computer programs that can be used to complete other specific tasks. In addition to data such as application update information, the data can also include data such as application developer information.
[0101] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, the terminal may specifically include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer, etc.
[0102] Generally, the terminal in this embodiment includes: a processor and a memory.
[0103] Among them, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0104] The memory may include one or more computer non-volatile storage media, which may be non-transitory. The memory may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor, it can implement the relevant steps in the fault handling method performed by the terminal side disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, update information of the application.
[0105] In some embodiments, the terminal may also include a display screen, an input and output interface, a communication interface, a sensor, a power supply, and a communication bus.
[0106] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than those shown in the figure.
[0107] A non-volatile storage medium provided in an embodiment of the present application is introduced below. The non-volatile storage medium described below can be cross-referenced with other embodiments described herein.
[0108] A non-volatile storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the fault handling method disclosed in the above embodiment. The non-volatile storage medium is a computer-readable non-volatile storage medium, which, as a carrier for resource storage, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system, a computer program and data, etc., and the storage method may be temporary storage or permanent storage.
[0109] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: if a target device in the server fails, the target function is called to obtain the device function number of the target device; the corresponding slot identification information is queried in the configuration space corresponding to the target device according to the device function number; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located; the slot identification information and the fault information of the target device are sent to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
[0110] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: receiving the bandwidth, port number and status identification information of the target slot sent by the logic control device in the server; if it is confirmed based on the status identification information that the target device connected to the target slot is in place, then generating slot identification information corresponding to the bandwidth and port number of the target slot.
[0111] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: if it is confirmed based on the status identification information that the target slot is faulty or the target device connected to the target slot is not in place, a corresponding fault prompt message or a device not in place prompt message is generated.
[0112] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: generating a fault log according to the slot identification information and the fault information, and sending the fault log to the operation and maintenance end for display in the fault monitoring system of the operation and maintenance end.
[0113] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps can be specifically implemented: receiving the bandwidth, port number and status identification information of the slot where each device in the server is located, which is sent by the logic control device in the server; recording the bandwidth and port number of the slot where each device is located in the bandwidth structure according to the device arrangement order negotiated with the logic control device; recording the status identification information and port number of the slot where each device is located in the state structure according to the device arrangement order negotiated with the logic control device; traversing the state structure; if it is confirmed that any device is in place, traversing the bandwidth structure, and generating slot identification information corresponding to the bandwidth and port number of the slot where the current device is located; otherwise, assigning the slot identification information corresponding to the bandwidth and port number of the slot where the current device is located to a default value; recording the slot identification information of each device in the silk-screen structure according to the device arrangement order negotiated with the logic control device; after the initialization of each device is completed, writing the slot identification information of each device in the silk-screen structure into the configuration space corresponding to each device.
[0114] In this embodiment, when the processor executes the computer program stored in the non-volatile storage medium, the following steps may be specifically implemented: after the server is powered on, the bandwidth, port number and status identification information of the slot where each device in the server is located are collected.
[0115] A computer program product provided in an embodiment of the present application is introduced below. The computer program product described below can be cross-referenced with other embodiments described in this document.
[0116] A computer program product includes a computer program / instruction, which implements the steps of the aforementioned disclosed fault handling method when executed by a processor.
[0117] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0118] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of non-volatile storage medium known in the art.
[0119] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A fault handling method, characterized in that: Basic input and output systems for servers, including: If a target device in the server fails, calling a target function to obtain a device function number of the target device; According to the device function number, corresponding slot identification information is queried in the configuration space corresponding to the target device; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located; The slot identification information and the fault information of the target device are sent to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
2. The method according to claim 1, characterized in that The process of generating the slot identification information includes: Receiving bandwidth, port number and status identification information of the target slot sent by the logic control device in the server; If it is confirmed based on the status identification information that the target device connected to the target slot is in place, the slot identification information corresponding to the bandwidth and port number of the target slot is generated.
3. The method according to claim 2, characterized in that If it is confirmed based on the status identification information that the target slot is faulty or the target device connected to the target slot is not in place, a corresponding fault prompt message or device not in place prompt message is generated.
4. The method according to claim 1, characterized in that The baseboard management controller sends the slot identification information and the fault information to the operation and maintenance end for display, including: The baseboard management controller generates a fault log according to the slot identification information and the fault information, and sends the fault log to the operation and maintenance end so as to be displayed in a fault monitoring system of the operation and maintenance end.
5. The method according to any one of claims 1 to 4, characterized in that: Also includes: Receiving bandwidth, port number and status identification information of the slot where each device in the server is located, sent by the logic control device in the server; According to the device arrangement order negotiated with the logic control device, the bandwidth and port number of the slot where each device is located are recorded in the bandwidth structure; According to the device arrangement sequence negotiated with the logic control device, the state identification information and port number of the slot where each device is located are recorded in the state structure; Traversing the state structure; If it is confirmed that any device is in place, the bandwidth structure is traversed, and slot identification information corresponding to the bandwidth and port number of the slot where the current device is located is generated; otherwise, the slot identification information corresponding to the bandwidth and port number of the slot where the current device is located is assigned a default value; Recording slot identification information of each device in the silk-screen structure according to the device arrangement sequence negotiated with the logic control device; After the initialization of each device is completed, the slot identification information of each device in the silk-screen structure is written into the configuration space corresponding to each device.
6. The method according to claim 5, characterized in that After the server is powered on, the logic control device collects bandwidth, port number and status identification information of the slot where each device in the server is located.
7. The method according to claim 5, characterized in that The arrangement order of the devices negotiated with the logic control device is: the initialization order of the devices in the server.
8. A fault handling device, characterized in that: Basic input and output systems for servers, including: An acquisition module, used for calling a target function to acquire a device function number of the target device if a target device in the server fails; A query module, used to query corresponding slot identification information in the configuration space corresponding to the target device according to the device function number; the slot identification information is generated based on the bandwidth, port number and status identification information of the target slot where the target device is located, and is printed as silk-screen information on the chassis position where the target slot is located; A processing module is used to send the slot identification information and the fault information of the target device to the baseboard management controller in the server, so that when the baseboard management controller confirms that the target device needs to be repaired based on the fault information, the slot identification information and the fault information are sent to the operation and maintenance end for display.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the method according to any one of claims 1 to 7.
10. A non-volatile storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Data processing method and device, electronic equipment, storage medium and program product
CN120743611A
