Server maintenance processing method, apparatus, device, medium, and program product

CN120066840BActive Publication Date: 2026-07-03ZIGUANG HENGYUE TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZIGUANG HENGYUE TECH CO LTD
Filing Date
2025-04-27
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

The server deployment and maintenance process suffers from low information transparency, complex operations, and is time-consuming and labor-intensive. Existing tools require access to the operating system to run, which increases the cost and difficulty of operation and maintenance.

Method used

A plug-and-play maintenance card device is provided, which detects the operating status by receiving a server connection signal and automatically performs settings and maintenance operations, including fault detection, information reading, encryption, backup and update. It supports multiple operating systems and features automation and convenience.

Benefits of technology

It improves the efficiency of server deployment and maintenance, reduces operational difficulty and cost, achieves full-process automation and security, and reduces reliance on professional skills.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066840B_ABST
    Figure CN120066840B_ABST
Patent Text Reader

Abstract

This application provides a server maintenance processing method, apparatus, device, medium, and program product, relating to the field of server operation and maintenance technology, and applied to a maintenance card device connected to a server. The method includes: receiving a server connection signal and detecting the server's operating status; if the server's operating status is normal, performing automatic setup operations on the server; if the server's operating status is faulty, detecting the cause of the fault; wherein the cause of the fault includes firmware fault, software fault, and driver fault; according to the cause of the fault, calling the corresponding preset maintenance program to perform automatic maintenance operations on the server; detecting that the server's operating status changes from faulty to normal, and performing automatic setup operations on the server; performing automatic setup and automatic maintenance operations on the server through a plug-and-play maintenance card device improves the efficiency of server deployment and maintenance, reduces operational difficulty and cost, and is convenient to use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server operation and maintenance technology, and more specifically, to a server maintenance processing method, apparatus, equipment, medium, and program product. Background Technology

[0002] In the daily operation and maintenance of server rooms, server deployment and repair face numerous challenges. On the one hand, the transparency of internal server information is low, making it difficult for maintenance personnel to quickly obtain critical information. On the other hand, the operation process is cumbersome and complex. Traditionally, maintenance personnel need to use various tools and perform a series of complex operations to obtain and configure the server's initial state, as well as repair fault errors. This not only requires maintenance engineers to have rich experience and professional skills, but the entire operation process is also time-consuming.

[0003] While some vendors have developed software tools that run on operating systems in an attempt to simplify maintenance processes, these methods have significant limitations. First, they require the server to be in operating system mode to function; if the server fails to boot into the system, these tools become ineffective. Second, engineers need to spend time learning how to use the scripting software, increasing maintenance costs and operational complexity. Summary of the Invention

[0004] The purpose of this application is to provide a server maintenance processing method, apparatus, device, medium, and program product to solve the problems of high operational difficulty, time and labor costs in existing server deployment and maintenance.

[0005] In a first aspect, embodiments of this application provide a server maintenance processing method, applied to a maintenance card device connected externally to a server, the method comprising:

[0006] Upon receiving a server connection signal, the server's operating status is checked.

[0007] If the server is running normally, perform automatic configuration operations on the server;

[0008] If the server is in a fault state, detect the cause of the fault; the causes of the fault include firmware faults, software faults, and driver faults.

[0009] Based on the cause of the fault, the corresponding preset maintenance program is invoked to perform automatic maintenance on the server.

[0010] The server's operating status has been detected to have changed from a fault state to a normal state, and automatic configuration operations are performed on the server.

[0011] In the above implementation process, a server connection signal is received, and the server's operating status is detected. If the server's operating status is normal, automatic configuration operations are performed on the server. If the server's operating status is faulty, the cause of the fault is detected. The causes of the fault include firmware faults, software faults, and driver faults. Based on the cause of the fault, the corresponding preset maintenance program is invoked to perform automatic maintenance operations on the server. When the server's operating status changes from a faulty state to a normal state, automatic configuration operations are performed on the server. Automatic configuration and automatic maintenance operations on the server are performed through a plug-and-play maintenance card device, which improves the efficiency of server deployment and maintenance, reduces the difficulty and cost of operation, and is convenient to use.

[0012] Furthermore, after receiving the server connection signal, the process also includes:

[0013] Protocol parsing technology is used to read server information through an interface with set permissions; this server information includes network information, user information, overall system configuration, FRU field replaceable unit information, and fault log record information.

[0014] Determine whether the server information is confidential. If the server information is confidential, encrypt the server information.

[0015] In the above implementation process, server information is automatically read and confidential information is encrypted, making the whole process automated and enhancing efficiency and security.

[0016] Furthermore, if the server is operating normally, the automatic configuration of the server includes:

[0017] If the server is running normally, it will be automatically configured based on the server information. The automatic configuration operations include remote management parameters, resetting user passwords, creating new users, and setting new network addresses.

[0018] In the above implementation process, the server configuration is automated, improving the efficiency of server operation and maintenance.

[0019] Furthermore, it also includes:

[0020] Real-time backup of the server's firmware status;

[0021] When an abnormality is detected in the server firmware, the abnormal firmware is restored based on the status of the backup firmware.

[0022] In the above implementation process, the server is automatically backed up and restored, improving the server's operational efficiency.

[0023] Furthermore, it also includes:

[0024] Perform real-time updates on the server; these updates include updating all firmware, updating the CPLD complex programmable logic device program, and updating the software driver.

[0025] During the above implementation process, the server is automatically updated in real time to ensure its efficient and normal operation.

[0026] Furthermore, before receiving the server connection signal, the process also includes:

[0027] Write low-level drivers, information reading programs, server setup programs, server maintenance programs, firmware initialization programs, and backup programs.

[0028] In the above implementation process, a program is pre-programmed to automatically start the device after it is plugged into the server and powered on, ensuring that the device can enter the working state in the shortest possible time.

[0029] Furthermore, it also includes:

[0030] The results of operations on the server are displayed through the display module;

[0031] Upon receiving a button trigger signal or touch screen control signal, execute the corresponding trigger function on the server.

[0032] In the above implementation process, the display module can quickly show the results of the operation on the server, and the required function can be quickly selected by pressing the corresponding button, which is convenient for operation.

[0033] Secondly, embodiments of this application also provide a server maintenance processing device, integrated into a maintenance card device connected externally to the server, the device comprising:

[0034] The connection detection module is used to detect the server's operating status upon receiving a server connection signal.

[0035] The configuration module is used to perform configuration operations on the server if the server is in a normal running state.

[0036] The fault detection module is used to detect the cause of the fault if the server is in a faulty state; the causes of the fault include firmware faults, software faults, and driver faults.

[0037] The maintenance operation module is used to call preset maintenance programs to perform maintenance operations on the server based on the cause of the fault.

[0038] The normal operation detection module is used to detect when the server's operating status changes from a fault state to a normal state, and to perform configuration operations on the server.

[0039] Thirdly, embodiments of this application provide an electronic device, including:

[0040] The system includes a processor, a memory, and a bus. The processor is connected to the memory via the bus. The memory stores computer-readable instructions, which, when executed by the processor, are used to implement the server maintenance processing method described above.

[0041] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a server, implements the server maintenance processing method described above.

[0042] Fifthly, embodiments of this application provide a computer program product, the computer program product including instructions, which, when executed by a computer, cause the computer to perform the server maintenance processing method as described above. Attached Figure Description

[0043] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 A flowchart illustrating a server maintenance method provided in an embodiment of this application;

[0045] Figure 2 This is a flowchart illustrating a server maintenance processing device provided in an embodiment of this application.

[0046] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0047] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0048] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0049] FRU (Field Replaceable Unit) refers to a component or module that can be easily replaced on-site by a user or technician when equipment malfunctions or requires maintenance.

[0050] The BIOS (Basic Input / Output System) is the bridge between computer hardware and the operating system. It is responsible for initializing the hardware, loading the operating system, and providing low-level services when the computer starts up.

[0051] A CPLD (Complex Programmable Logic Device) is a type of digital logic circuit that combines the high flexibility of programmable logic technology with the high performance of an ASIC (Application Specific Integrated Circuit).

[0052] IPMI (Intelligent Platform Management Interface): Intelligent Platform Management Interface.

[0053] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a server maintenance method provided in an embodiment of this application. The server maintenance method is applied to a maintenance card device connected externally to the server, and the method includes:

[0054] 100. Upon receiving a server connection signal, check the server's operating status.

[0055] It should be noted that the server maintenance method in this embodiment is implemented using a maintenance card capable of running maintenance programs. This maintenance card has the function of storing and running fixed programs. The maintenance card can connect to the server via a USB or Type-C interface, supporting plug-and-play functionality. Optionally, the server can be a general-purpose server or a storage server; this embodiment uses a storage server.

[0056] Optionally, the maintenance card uses a high-performance, low-power chip as its core processor to ensure stable and efficient handling of various maintenance tasks during operation. It also features a large-capacity storage chip for storing maintenance programs and related data. The storage chip employs high-speed flash memory technology to guarantee data read / write speed and stability.

[0057] Optionally, the maintenance card uses standard USB and Type-C interfaces to ensure compatibility with various servers. The interface circuit design employs advanced electrostatic discharge (ESD) and overcurrent protection technologies to effectively prevent damage to the device and server interfaces due to electrostatic discharge or excessive current. Simultaneously, the electrical performance of the interface is optimized to ensure the accuracy and stability of data transmission.

[0058] Optionally, the maintenance card incorporates a high-efficiency power management circuit to optimize power consumption under different operating conditions. When the device is plugged into the server and in standby mode, it automatically enters a low-power mode to reduce energy consumption. During maintenance tasks, the power supply is dynamically adjusted based on the task load to ensure the device is always in optimal operating condition. It should be noted that developing a high-efficiency power management circuit can be achieved by employing key technologies such as low-power design, high-precision power conversion, intelligent power management, thermal management, and electromagnetic compatibility, resulting in a power management circuit with high efficiency, low power consumption, and high reliability.

[0059] Understandably, the maintenance card device has built-in customized software functions that support direct access to read network and user information via USB and Type-C interfaces, setting relevant management functions through the in-band IPMI intelligent platform management interface, restarting and initializing critical firmware information, and automatically saving operation logs and backing up firmware status.

[0060] Development of the underlying driver for the maintenance card device: Developing a dedicated low-level driver to enable efficient communication between the device and the server. The driver supports multiple operating systems, including mainstream Windows Server and Linux, ensuring the device functions correctly in different server environments. Simultaneously, driver performance is optimized to reduce data transmission latency and resource consumption.

[0061] Specifically, when the maintenance card device establishes a connection with the server, that is, when the maintenance card device receives the server connection signal, it detects the server's operating status and then performs specific operations on the server based on the server's operating status.

[0062] 200. If the server is running normally, perform automatic configuration operations on the server.

[0063] It should be noted that the maintenance card device in this embodiment supports power-on self-start and automatic operation functions. After being inserted into the server, it can automatically execute preset maintenance and repair tasks without manual intervention. By optimizing the configuration of the device's BIOS or bootloader, the device can automatically start after being inserted into the server and powered on. During the startup process, the device's operating system and maintenance programs are quickly loaded, ensuring that the device can enter the working state in the shortest possible time.

[0064] For example, if the server is operating normally, automatic configuration operations are performed on the server. The maintenance card device includes a common settings module: a settings module developed using in-band IPMI technology enables convenient configuration of server management functions. This module provides an intuitive user interface, allowing easy configuration of remote management parameters, password resets, user creation, and network address settings via the maintenance card device, thereby improving server management efficiency.

[0065] 300. If the server is in a fault state, detect the cause of the fault; the causes of the fault include firmware fault, software fault and driver fault.

[0066] Optionally, the cause of the failure can be detected by analyzing server logs, using tools to perform performance tests on the server, employing diagnostic tools to diagnose firmware, and investigating the operating system, drivers, and applications.

[0067] 400. Based on the cause of the fault, invoke the corresponding preset maintenance program to perform automatic maintenance on the server.

[0068] Specifically, the maintenance card device stores preset repair programs for different fault causes, such as repair programs for component faults, software faults, and driver faults. When the server fails, the cause of the fault is obtained, and the corresponding repair program is retrieved to perform automatic repair operations on the server based on the cause of the fault.

[0069] For example, an automatic repair module can be set up in the maintenance card device: a firmware initialization and backup program is written to automatically complete the initialization of critical firmware information when the server restarts. Simultaneously, the firmware state is backed up periodically, and the backup data is stored in the device's secure area to prevent data loss. In the event of firmware anomalies, it can quickly restore to the most recent normal state. The repair card also supports factory reset of server firmware, updates to all firmware, updates to the CPLD program, and updates to software drivers. Furthermore, repair programs can be pre-defined, enabling plug-and-play repair by customizing the maintenance program, directly restoring the machine to normal operation according to the customized method.

[0070] 500. The server's operating status has been detected to change from a fault state to a normal state, and automatic configuration operations are performed on the server.

[0071] As described above, this embodiment of the application receives a server connection signal and detects the server's operating status. If the server's operating status is normal, it performs automatic setup operations on the server. If the server's operating status is faulty, it detects the cause of the fault. The causes of the fault include firmware faults, software faults, and driver faults. Based on the cause of the fault, it calls the corresponding preset maintenance program to perform automatic maintenance operations on the server. When it detects that the server's operating status has changed from a faulty state to a normal state, it performs automatic setup operations on the server. By using a plug-and-play maintenance card device to perform automatic setup and automatic maintenance operations on the server, the efficiency of server deployment and maintenance is improved, the difficulty and cost of operation are reduced, and it is convenient to use.

[0072] Furthermore, after receiving the server connection signal, the process also includes:

[0073] The protocol parsing technology is used to read server information through the interface with set permissions. The server information includes network information, user information, overall configuration, FRU field replaceable unit information, and fault log record information. It is determined whether the server information is confidential. If the server information is confidential, it is encrypted.

[0074] Specifically, when the maintenance card device establishes a connection with the server, i.e., when the maintenance card device receives the server connection signal, it uses protocol parsing technology to directly read server information with administrator privileges through the interface. This server information includes network information, user information, overall device configuration, FRU field replaceable unit information, and fault log records. Thus, the server information is automatically read without manual operation, achieving full automation and enhanced efficiency. For example, this embodiment of the application incorporates an information reading module within the maintenance card device, enabling direct reading of server information with administrator privileges via USB and Type-C interfaces.

[0075] Specifically, the information reading module uses advanced protocol parsing technology to quickly and accurately obtain information such as the server's network configuration, user accounts, and passwords, and encrypts and stores confidential information to ensure data security.

[0076] It is understandable that the information stored and transmitted on the server may contain confidential information, such as user privacy, trade secrets, and security information. To ensure the security of this information, embodiments of this application detect whether the server information is confidential and encrypt the confidential information, thereby effectively preventing information leakage. Specifically, the detection of confidential information can be achieved by pre-setting rules for identifying confidential information and employing information recognition technologies to identify confidential information in the server information, such as keyword matching, regular expressions, machine learning, and contextual analysis.

[0077] It should be noted that there are various existing methods for encrypting information data, and the embodiments of this application do not limit this method.

[0078] Based on the above embodiments, the server maintenance method can be further specified as follows: if the server's operating status is normal, automatically configuring the server includes:

[0079] If the server is running normally, it will be automatically configured based on the server information. The automatic configuration operations include remote management parameters, resetting user passwords, creating new users, and setting new network addresses.

[0080] Understandably, when the maintenance card device is connected to an external server, it detects that the server is operating normally, obtains server information, and automatically configures the server based on the server information. For example, it can use the server's user password information to automatically configure the server. Optionally, during the automatic maintenance phase, the server information can also be called to perform the automatic maintenance process.

[0081] Based on the above embodiments, the server maintenance method can be further specified as follows: It also includes:

[0082] Real-time backup of the server's firmware status; when an abnormality is detected in the server's firmware, restore the abnormal firmware based on the backed-up firmware status.

[0083] For example, the automatic maintenance module of the maintenance card automatically completes the initialization of critical firmware information when the server restarts. At the same time, it regularly backs up the firmware status, stores the backup data in the secure area of ​​the device to prevent data loss, and can quickly restore to the most recent normal backup state when the firmware malfunctions.

[0084] Based on the above embodiments, the server maintenance method can be further specified as follows: It also includes:

[0085] Perform real-time updates on the server; these updates include updating all firmware, updating the CPLD complex programmable logic device program, and updating the software driver.

[0086] For example, the automatic repair module of the repair card also supports factory reset of server firmware, updates to all firmware, updates to the CPLD program, and updates to software drivers. Furthermore, repair programs can be pre-defined, enabling plug-and-play repair via custom maintenance programs, directly restoring the machine to normal operation according to the customized method.

[0087] Based on the above embodiments, the server maintenance processing method can be further specified as follows: before receiving the server connection signal, it further includes:

[0088] Write low-level drivers, information reading programs, server setup programs, server maintenance programs, firmware initialization programs, and backup programs.

[0089] For example, a dedicated low-level driver is written to enable efficient communication between the device and the server. The driver supports multiple operating systems, including Windows Server and Linux, ensuring the device functions correctly in different server environments. Simultaneously, the driver's performance is optimized to reduce data transmission latency and resource consumption.

[0090] Therefore, by pre-programming the device to automatically start after it is plugged into the server and powered on, the device can be put into working condition in the shortest possible time.

[0091] Based on the above embodiments, the server maintenance method can be further specified as follows: It also includes:

[0092] The display module shows the results of operations on the server; upon receiving a button trigger signal or touch screen control signal, it executes the corresponding trigger function on the server.

[0093] For example, a display module can be set up in the maintenance card device: a well-designed visualization module that supports simple operation buttons, operation visualization, simple indicator lights, and feedback results; it can also support an enhanced display screen to visualize the information that the card needs to display; or it can support the collection and packaging of maintenance operation records, which can be exported to a mobile computer device via USB and Type-C interfaces for visualization and analysis.

[0094] For example, the maintenance card device supports pre-setting or embedding new maintenance functions through programming, and allows selection of different function modes via simple buttons, facilitating operation according to actual needs. For instance, in terms of programming interface development: an open programming interface is provided for easy function expansion; the programming interface supports multiple programming languages, such as C and Python, lowering the development threshold; new maintenance functions can be developed using the programming interface according to actual needs and integrated into the maintenance card. For example, in terms of button function design: a simple and easy-to-use button function selection interface is designed, with a reasonable button layout and clear labeling; each button corresponds to a specific function mode, allowing quick selection of the desired function by pressing the corresponding button; simultaneously, the currently selected function mode and operation prompts are displayed on the device's screen in real time, facilitating operation.

[0095] Furthermore, in this embodiment of the maintenance card device, during task execution, the device monitors the progress and status of its own tasks in real time. If any abnormal situation is encountered, it automatically performs its own error handling and task retry. For example, in a data acquisition task, if a network failure causes data reading to fail, the device will automatically attempt to reconnect to the network and reread the data to ensure the integrity of the task.

[0096] Meanwhile, multiple security mechanisms are integrated into the software to ensure the security of servers and devices. Data encryption technology is used to encrypt transmitted and stored data to prevent data leakage. Access control is implemented, allowing only authorized personnel to use advanced device functions, preventing accidental and malicious operations. Furthermore, the software is regularly checked for security vulnerabilities and updated to ensure its security and stability.

[0097] The plug-and-play USB hardware device solution adopted in this application embodiment features multiple editing methods, is easy to carry, and has pre-stored commonly used operation and maintenance programs. Upon insertion into the server, it automatically starts and runs preset functions without requiring additional complex operations. Automated operation and maintenance: The device supports power-on self-start and automatic operation. During operation, it can automatically complete server settings, data collection (including network information, user information, etc.), IPMI settings, restart and initialize key firmware information, and automatically save operation logs and back up firmware status, achieving fully automated operation and maintenance. Flexibility and reusability: The device supports a programming mode, allowing for the pre-setting or embedding of new maintenance functions. It also features simple button function selection, allowing easy selection of appropriate functions according to actual needs. This significantly reduces the requirement for professional technical skills, and the device is reusable and highly flexible.

[0098] The steps described above are not strictly performed in the order of their numbers; they should be understood as a whole.

[0099] Secondly, based on the above embodiments, this application also provides a server maintenance processing device, integrated into a maintenance card device connected to the server, as shown in the reference. Figure 2 The server maintenance processing device provided in this embodiment specifically includes: a connection detection module 201, a setting operation module 202, a fault detection module 203, a maintenance operation module 204, and a normal detection module 205.

[0100] The connection detection module 201 is used to receive server connection signals and detect the server's operating status; the setting operation module 202 is used to perform setting operations on the server if the server's operating status is normal; the fault detection module 203 is used to detect the cause of the fault if the server's operating status is faulty, including firmware faults, software faults, and driver faults; the maintenance operation module 204 is used to call a preset maintenance program to perform maintenance operations on the server according to the cause of the fault; and the normal operation detection module 205 is used to perform setting operations on the server if the server's operating status changes from a faulty state to a normal state.

[0101] As described above, this embodiment of the application receives a server connection signal and detects the server's operating status. If the server's operating status is normal, it performs automatic setup operations on the server. If the server's operating status is faulty, it detects the cause of the fault. The causes of the fault include firmware faults, software faults, and driver faults. Based on the cause of the fault, it calls the corresponding preset maintenance program to perform automatic maintenance operations on the server. When it detects that the server's operating status has changed from a faulty state to a normal state, it performs automatic setup operations on the server. By using a plug-and-play maintenance card device to perform automatic setup and automatic maintenance operations on the server, the efficiency of server deployment and maintenance is improved, the difficulty and cost of operation are reduced, and it is convenient to use.

[0102] Thirdly, embodiments of this application also provide an electronic device that can integrate the server maintenance processing device with the user-mode polling mechanism provided in embodiments of this application. Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. (Reference) Figure 3 The electronic device includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; the memory 42 is used to store one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 implement the server maintenance processing method with a user-mode polling mechanism as provided in the above embodiments. The input device 43, output device 44, memory 42, and processor 41 can be connected via a bus or other means. Figure 3 Taking the example of a connection between China and Israel via a bus.

[0103] The processor 41 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 42, that is, the server maintenance processing method that implements the above-mentioned user-mode polling mechanism.

[0104] The electronic device provided above can be used to execute the server maintenance processing method of the user-mode polling mechanism provided in the above embodiments, and has corresponding functions and beneficial effects.

[0105] Fourthly, embodiments of this application also provide a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the server maintenance processing method described above, and can achieve the same beneficial effects.

[0106] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the server maintenance processing method described above, but can also perform related operations in the server maintenance processing method provided in any embodiment of this application.

[0107] Fifthly, embodiments of this application also provide a computer program product. The methods described in the various embodiments of this application can be implemented entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the various embodiments of this application are executed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, network equipment, user equipment, core network equipment, OAM (Open Application Model), or other programmable devices.

[0108] The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; or an optical medium, such as a digital video optical disc; or a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0109] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0110] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0111] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0112] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0113] The above description is merely a specific embodiment of this application, but the scope of protection of this application 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 application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0114] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A server maintenance method, characterized in that, A plug-and-play maintenance card device is applied to a server. The maintenance card device connects to the server via a USB or Type-C interface. When the maintenance card device is inserted into the server and in standby mode, it automatically enters a low-power mode to reduce energy consumption. During maintenance tasks, the power supply is dynamically adjusted according to the task load to ensure the maintenance card device is always in optimal working condition. The driver for the maintenance card device supports multiple operating systems. The maintenance card device includes a core processor, a memory chip, a USB interface, a Type-C interface, a power management circuit, and a display module. The BIOS or bootloader of the maintenance card device is configured so that the maintenance card device automatically starts and loads the operating system and preset maintenance programs after being inserted into the server and powered on. The maintenance card device also includes a programming interface for integrating developed maintenance functions into the maintenance card device. The method includes: Upon receiving a server connection signal, the server's operating status is checked. If the server is running normally, perform automatic configuration operations on the server, including developing a configuration module using in-band IPMI intelligent platform management interface technology to enable convenient configuration of server management functions. The automatic configuration operations include remote management parameters, resetting user passwords, creating new users, and setting new network addresses. If the server is in a faulty state, detect the cause of the fault. The causes of the fault include firmware faults, software faults, and driver faults. The detection methods include analyzing server logs, using tools to perform performance tests on the server, using diagnostic tools to diagnose the firmware, and checking the operating system, drivers, and applications. Based on the cause of the fault, the corresponding preset maintenance program is invoked to perform automatic maintenance on the server. The preset maintenance program includes a firmware fault maintenance program, a software fault maintenance program, and a driver fault maintenance program. The preset maintenance program is stored in the storage chip, and the maintenance card device invokes the preset maintenance program locally based on the cause of the fault. The server's operating status has been detected to have changed from a fault state to a normal state, and automatic configuration operations are performed on the server.

2. The server maintenance method according to claim 1, characterized in that, After receiving the server connection signal, the process also includes: Protocol parsing technology is used to read server information through an interface with set permissions; this server information includes network information, user information, overall system configuration, FRU field replaceable unit information, and fault log record information. Determine whether the server information is confidential. If the server information is confidential, encrypt the server information.

3. The server maintenance method according to claim 2, characterized in that, If the server is running normally, the server will be automatically configured, including: If the server is running normally, the server will be automatically configured based on the server information.

4. The server maintenance method according to claim 1, characterized in that, Also includes: Real-time backup of the server's firmware status; When an abnormality is detected in the server firmware, the abnormal firmware is restored based on the status of the backup firmware.

5. The server maintenance method according to claim 1, characterized in that, Also includes: Perform real-time updates on the server; these updates include updating all firmware, updating the CPLD complex programmable logic device program, and updating the software driver.

6. The server maintenance method according to claim 1, characterized in that, Before receiving the server connection signal, the process also includes: Write low-level drivers, information reading programs, server setup programs, server maintenance programs, firmware initialization programs, and backup programs.

7. The server maintenance method according to claim 1, characterized in that, Also includes: The results of operations on the server are displayed through the display module; Upon receiving a button trigger signal or touch screen control signal, execute the corresponding trigger function on the server.

8. A server maintenance processing device, characterized in that, A plug-and-play maintenance card device is integrated with an external server. The maintenance card device connects to the server via a USB or Type-C interface. When the maintenance card device is inserted into the server and in standby mode, it automatically enters a low-power mode to reduce energy consumption. During maintenance tasks, the power supply is dynamically adjusted according to the task load to ensure the maintenance card device is always in optimal working condition. The driver for the maintenance card device supports multiple operating systems. The maintenance card device includes a core processor, a memory chip, a USB interface, a Type-C interface, a power management circuit, and a display module. The BIOS or bootloader of the maintenance card device is configured so that the maintenance card device automatically starts and loads the operating system and preset maintenance programs after being inserted into the server and powered on. The maintenance card device also includes a programming interface for integrating developed maintenance functions into the maintenance card device. The device includes: The connection detection module is used to detect the server's operating status upon receiving a server connection signal. The configuration module is used to automatically configure the server if the server is in a normal operating state. This includes developing a configuration module using in-band IPMI intelligent platform management interface technology to enable convenient configuration of server management functions. The automatic configuration operations include remote management parameters, resetting user passwords, creating new users, and setting new network addresses. The fault detection module is used to detect the cause of a fault if the server is in a faulty state. The causes of the fault include firmware faults, software faults, and driver faults. The detection methods include analyzing server logs, using tools to perform performance tests on the server, using diagnostic tools to diagnose firmware, and checking the operating system, drivers, and applications. The maintenance operation module is used to call preset maintenance programs to perform maintenance operations on the server according to the cause of the fault. The preset maintenance programs include firmware fault maintenance programs, software fault maintenance programs, and driver fault maintenance programs. The preset maintenance programs are stored in the storage chip, and the maintenance card device calls the preset maintenance programs locally according to the cause of the fault. The normal operation detection module is used to detect when the server's operating status changes from a fault state to a normal state, and to perform configuration operations on the server.

9. An electronic device, characterized in that, include: The processor, memory, and bus are provided, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions that, when executed by the processor, are used to implement the server maintenance processing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by the server, implements the server maintenance processing method as described in any one of claims 1-7.