Equipment information processing method and electronic equipment

By mounting the mirror system file to a second electronic device that supports loading the mirror system operation and changing the device information through the application program in the mirror system, the problem of low success rate of equipment information processing in the prior art is solved, and efficient batch equipment information processing and white card operation are achieved.

CN119806660AActive Publication Date: 2025-04-11XFUSION DIGITAL TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202412000078.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-11
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

When performing equipment information processing of batch computing devices, the prior art is limited by the instability of the IPMI protocol, resulting in a low success rate of equipment information processing and the inability to realize batch white card operation.

Method used

By obtaining the mirror system file, mounting it to a second electronic device that supports loading the mirror system to run, and changing the device information through the application program in the mirror system to achieve the processing of the device information.

Benefits of technology

It improves the success rate of equipment information processing of electronic equipment, realizes batch equipment information processing and white card operation, and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806660A_ABST
    Figure CN119806660A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an equipment information processing method and electronic equipment, belongs to the technical field of computers, and is used for improving the equipment information processing efficiency of the electronic equipment. The method is executed by first electronic equipment and comprises the following steps: acquiring a mirror image system file; mounting the mirror image system file to a second electronic device; wherein the second electronic equipment supports loading of a mirror image system file to run a mirror image system, and an application program used for changing equipment information runs in the mirror image system; sending a processing instruction to the second electronic equipment; the processing instruction is used for indicating to change the equipment information, and the second electronic equipment changes the equipment information by running the application program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method for processing device information and an electronic device. Background Art

[0002] In the process of equipment production, sales, and reuse, it is necessary to process the equipment information in the computing equipment, such as modifying, deleting, and adding equipment information in a brand-new computing device. For example, with the continuous development of business needs and the accelerating speed of product upgrades, the market demand for independent modular computing equipment is increasing. Therefore, the demand for white-label equipment is also increasing. At the same time, enterprises also need to perform white-label operations on equipment in scenarios such as sales, reuse, or inventory recovery. Therefore, the current need for white-label operations on computing equipment is increasing. Currently, management tools are commonly used to perform white-label operations on computing devices one by one through scripts or commands, and batch white-label operations cannot be performed.

[0003] In the related art, the intelligent platform management interface (IPMI) is usually relied on to implement device information processing for batch computing devices.

[0004] However, IPMI is based on the User Datagram Protocol (UDP), which has poor stability, resulting in a low success rate in device information processing. IPMI is even frequently unavailable, and batch device information processing cannot be performed at this time, resulting in low efficiency in processing device information of electronic devices. Summary of the invention

[0005] The embodiment of the present application provides a method for processing device information and an electronic device, which are used to improve the processing efficiency of device information of the electronic device. The technical solution is as follows:

[0006] In a first aspect, a method for processing device information is provided, which is executed by a first electronic device, and the method includes: obtaining a mirror system file; mounting the mirror system file to a second electronic device; wherein the second electronic device supports loading the mirror system file to run the mirror system, and an application for changing device information runs in the mirror system; sending a processing instruction to the second electronic device; the processing instruction is used to instruct to change the device information, and the second electronic device changes the device information by running the application.

[0007] From the above, it can be seen that by mounting the mirror system file to the second electronic device and using the application in the mirror system to change the device information, the device information can be processed in an in-band manner, which can improve the success rate of the first electronic device processing the device information of the second electronic device, thereby improving the processing efficiency of the device information of the electronic device.

[0008] In a possible implementation, a query instruction is sent to the second electronic device; the query instruction is used to instruct to obtain processing information from the mirroring system; the processing information includes a processing result and / or a processing progress; and the processing information is received.

[0009] From the above, it can be seen that by sending a query instruction to the second electronic device, processing information can be obtained through the mirroring system of the second electronic device, and the execution of the processing instruction can be monitored, thereby improving the processing efficiency of the device information of the electronic device.

[0010] In a possible implementation, when the first electronic device communicates abnormally with the second electronic device through the IPMI interface, the mirror system file is obtained.

[0011] As can be seen from the above, by mounting the mirror system file to the second electronic device, the influence of the IPMI interface is avoided, and the device information is changed in an in-band manner, thereby improving the processing efficiency of the device information of the electronic device.

[0012] In one possible implementation, when the electronic device communicates normally with the second electronic device through the IPMI interface and the device information is stored in the BMC of the second electronic device, the method also includes sending an IPMI processing script to the second electronic device through the IPMI interface; the IPMI processing script supports running through the BMC of the second electronic device and changing the device information.

[0013] From the above, it can be seen that when the first electronic device communicates normally with the second electronic device through the IPMI interface and the device information is stored in the BMC of the second electronic device, the electronic device completes the device information processing through the IPMI processing script, which can save the computing power overhead of the electronic device and thus improve the processing efficiency of the device information of the electronic device.

[0014] In a possible implementation, a Hypertext Transfer Protocol (HTTP) service is started, and a processing instruction is sent to the BMCs of the at least two second electronic devices through a redfish interface.

[0015] From the above, it can be seen that the electronic device enables HTTP service and batch sending of processing instructions through HTTP instructions, so that the first electronic device processes device information of a batch of second electronic devices, thereby improving the processing efficiency of device information of the electronic device.

[0016] In a possible implementation manner, architecture information of the second electronic device is obtained; and the mirror system file is determined according to the architecture information.

[0017] From the above, it can be known that it is possible to be compatible with second electronic devices of different architectures at the same time to implement device information processing, thereby improving the processing efficiency of device information of the electronic device.

[0018] In one possible implementation, the second electronic device includes an ARM architecture computing device and / or an X86 architecture computing device.

[0019] In a possible implementation manner, the device information includes an electronic label stored in the BMC and / or a BIOS system identifier BIOS Logo stored in a BIOS chip.

[0020] In a second aspect, a method for processing device information is provided, which is executed by a second electronic device, and the method includes: loading a mirror system file to run the mirror system; wherein the mirror system file is obtained by a first electronic device; the first electronic device is used to mount the mirror system file to the second electronic device; an application for changing device information is run in the mirror system; a processing instruction sent by the first electronic device is received; the processing instruction is used to instruct to change the device information; and the device information is changed by running the application.

[0021] In one possible implementation, a query instruction sent by an electronic device is received; the query instruction is used to instruct to obtain processing information from the mirroring system; the processing information includes a processing result and / or a processing progress; and the processing information is sent to the electronic device.

[0022] In a possible implementation, when the first electronic device communicates abnormally with the second electronic device through the IPMI interface, the mirror system file is loaded to run the mirror system.

[0023] In one possible implementation, when the first electronic device communicates normally with the second electronic device through the IPMI interface and the device information is stored in the BMC of the second electronic device, the method further includes: receiving an IPMI processing script sent by the first electronic device through the IPMI interface; the IPMI processing script supports running through the BMC of the second electronic device and changing the device information.

[0024] In one possible implementation, architecture information is sent to a first electronic device; the architecture information is used by the first electronic computing device to determine a mirror system file.

[0025] In a third aspect, a device information processing device is provided, and the device information processing device is applied to an electronic device. The embodiment of the present application can divide the functional modules of the device information processing device according to the method provided in the first aspect above. For example, each functional module can be divided according to each function, or two or more functions can be inherited in one processing module. Exemplarily, the embodiment of the present application can divide the device information processing device into a connection module and a sending module according to the function. The description of the possible technical solutions and beneficial effects executed by each of the divided functional modules can refer to the technical solutions provided by the first aspect above or its corresponding possible implementation method, which will not be repeated here.

[0026] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores computer instructions, and the computer instructions are loaded and executed by the processor to enable the electronic device to implement the device information processing method provided in the first or second aspect above.

[0027] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one computer program is stored. The computer program is loaded and executed by a processor to implement the method for device information processing provided in the first aspect above.

[0028] In a sixth aspect, an embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computing device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computing device executes the method for device information processing provided in the various optional implementations provided in the first aspect above.

[0029] For the specific description of the third to sixth aspects and their various implementations in the embodiments of the present application, reference can be made to the detailed description in the first aspect and its various implementations; and for the beneficial effects of the second to sixth aspects and their various implementations, reference can be made to the analysis of the beneficial effects in the first aspect and its various implementations, which will not be repeated here.

[0030] These and other aspects of the embodiments of the present application will be more clearly understood in the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of the hardware architecture of a device information processing system 100 provided in an embodiment of the present application is shown;

[0032] Figure 2 A hardware structure diagram of a first electronic device 110 provided in an embodiment of the present application is shown;

[0033] Figure 3 A schematic diagram showing a flow chart of a method for processing device information provided by an embodiment of the present application;

[0034] Figure 4 A schematic diagram of a first interface 001 of a device information processing system 100 provided in an embodiment of the present application is shown;

[0035] Figure 5 A schematic diagram of a second interface 002 of a device information processing system 100 provided in an embodiment of the present application is shown;

[0036] Figure 6 A schematic diagram of an interactive process of a method for processing device information provided by an embodiment of the present application is shown;

[0037] Figure 7 A logic schematic diagram of a method for performing white-card operation on at least two second electronic devices provided by an embodiment of the present application is shown;

[0038] Figure 8 A schematic diagram showing the structure of a device information processing apparatus 400 provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same functions and effects.

[0040] Those skilled in the art will appreciate that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference. At the same time, in some embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0041] In addition, the device architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the device architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0042] First, the application scenarios of the embodiments of the present application are exemplarily introduced.

[0043] In order to adapt to the rapidly developing market demand and corporate changes, equipment manufacturers need to process the equipment information of the completed computing equipment, including modifying, deleting or updating the equipment information of the computing equipment. For example, with the development of business and market upgrades, and in order to expand sales channels and more refined inventory management, enterprises have an increasing demand for white-label equipment. Therefore, more and more scenarios require the implementation of white-label operations for computing equipment.

[0044] White-brand devices refer to computing devices that are not authorized by a brand or do not contain brand-related information. Such computing devices do not carry any brand logos and usually have some basic specifications and functions. White-brand operations are used to instruct the erasure of basic input output system (BIOS) settings or electronic labels in baseboard management controllers (BMCs) that may contain original brand information.

[0045] An embodiment of the present application provides a method for processing device information, the method comprising: a first electronic device obtains a mirror system file, and mounts the mirror system file to a second electronic device. The second electronic device supports loading the mirror system file to run the mirror system, and an application for changing device information runs in the mirror system. The first electronic device sends a processing instruction to the second electronic device, and the second electronic device processes the device information by running the application in the mirror system. The processing instruction is used to instruct to change the device information.

[0046] The above method can avoid being affected by the instability of the IMPI interface, and solves the problem that when IPMI is unavailable or the operation indicated by the processing instruction is for the related operation in the band of the second electronic device, the device information processing can be realized for the second electronic device. Among them, the device information processing includes performing a white card operation on the second electronic device, that is, the processing instruction includes a white card instruction. Thereby, the efficiency of the device information processing of the electronic device is improved.

[0047] Secondly, the system architecture of the embodiment of the present application is exemplarily introduced.

[0048] Figure 1 FIG. 1 is a schematic diagram showing the hardware architecture of a device information processing system 100 provided in an embodiment of the present application. Figure 1 As shown, the device information processing system 100 includes a first electronic device 110 and a second electronic device 120. The first electronic device 110 and the second electronic device 120 can be connected and communicated with each other through the IPMI interface protocol and / or the redfish management protocol.

[0049] The first electronic device 110 may include a mobile phone, a smart watch, a tablet computer, a foldable electronic device, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook, a cellular phone, a personal digital assistant (Personal Digital Assistant, PDA), an augmented reality (Augmented Reality, AR) device, a virtual reality (Virtual Reality, VR) device, an artificial intelligence (Artificial Intelligence, AI) device, a wearable device, an in-vehicle device, and other electronic devices with communication capabilities. The embodiments of the present application do not impose any special restrictions on the specific types of electronic devices.

[0050] The second electronic device 120 includes a BMC 130. The second electronic device 120 can be a standard general server, specifically a blade server, a high-density server, a rack server or a high-performance server. BMC 130 is an independent management unit of the second electronic device 120. BMC 130 includes a microprocessor, a memory, a BMC firmware and an interface. Among them, the microprocessor is used to execute various instructions and run the BMC firmware. The memory is used to store the data and programs generated by the operation of the BMC firmware, and to perform read and / or write operations during the operation of the BMC firmware. The BMC firmware is a set of software programs that provide the basic functions of the BMC. The interface is used for the BMC to communicate and exchange information with external devices. BMC 130 can specifically be an intelligent baseboard management controller (iBMC).

[0051] After the first electronic device 110 obtains the mirror system file, the mirror system file is mounted to the second electronic device 120. Among them, the second electronic device 120 supports loading the mirror system file to run the mirror system. An application for changing device information runs in the mirror system. The mirror system file is a file containing a complete operating system. The mirror system 140 can specifically be a Linux system.

[0052] The first electronic device 110 is further configured to send a processing instruction to the second electronic device 120, wherein the processing instruction is used to instruct to change the device information. The second electronic device 120 executes the processing and runs the application in the mirroring system to change the device information.

[0053] For example, Figure 2 FIG. 1 shows a hardware structure diagram of a first electronic device 110 provided in an embodiment of the present application. Figure 2 As shown, the first electronic device 110 includes a processor 210, a memory 220, an electronic screen 230 and a bus 240. The processor 210, the memory 220 and the electronic screen 230 communicate with each other via the bus 240. It should be understood that the present application does not limit the number of processors and memories in the electronic device.

[0054] The processor 210 is used to obtain the mirror system file and mount the mirror system file to the second electronic device 120. The processor 210 is also used to send a processing instruction to the second electronic device 120. Specifically, the processor 210 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0055] The memory 220 stores executable program codes, and the processor 220 executes the executable program codes to implement the above-mentioned device information processing method.

[0056] The electronic screen 230 is used to display the interface of the device information processing system 100 .

[0057] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0058] For ease of understanding, the following is an exemplary introduction to the device information processing method provided by the present application in conjunction with the accompanying drawings. The device information processing method is as follows: Figure 1 The first electronic device 110 is shown to execute.

[0059] Figure 3 FIG. 1 is a flow chart showing a method for processing device information provided by an embodiment of the present application. Figure 3 As shown, the device information processing method is executed by a first electronic device and includes the following steps:

[0060] S101: A first electronic device obtains a mirroring system file.

[0061] The second electronic device supports loading the mirror system file to run the mirror system. The mirror system runs an application for changing device information.

[0062] In the embodiment of the present application, the image system file is a file containing a complete operating system, and specifically may be an image file of a Linux system.

[0063] Optionally, when the first electronic device communicates abnormally with the second electronic device via the IPMI interface, the mirror system file is obtained. The abnormal communication between the first electronic device and the second electronic device via the IPMI interface specifically includes hardware failure, connection line failure, switch not supporting IPMI, network configuration error or IPMI management software incompatibility, etc.

[0064] In a possible implementation manner, the first electronic device obtains architecture information of the second electronic device; and determines the mirror system file according to the architecture information.

[0065] Exemplarily, the second electronic device includes an ARM architecture computing device and / or an X86 architecture computing device.

[0066] For example, the first electronic device can query the architecture information of the second electronic device through the redfish interface, and the first electronic device determines the mirror system file based on the returned architecture information. If the second electronic device is a computing device of ARM architecture, the first electronic device determines that the mirror system file is the first mirror system file loaded by the electronic device supporting ARM architecture. The first mirror system file contains the operating system core files and drivers under the ARM architecture. If the second electronic device is a computing device based on Intel 8086 and backward compatible central processing unit instruction set architecture (X86 architecture), the first electronic device determines that the mirror system file is the second mirror system file loaded by the electronic device supporting X86 architecture. The second mirror system file contains the operating system core files and drivers under the X86 architecture. Specifically, the first mirror system file or the second mirror system file can be a windows mirror system file or a Linux mirror system file.

[0067] Optionally, the architecture information of the second electronic device can be obtained by relevant technicians through hardware manuals, product documents, etc., and the relevant technicians upload the mirror system file to the first electronic device based on the architecture information. The manner in which the first electronic device obtains the architecture information of the second electronic device is not specifically limited.

[0068] S102: The first electronic device mounts the mirror system file to the second electronic device.

[0069] In an embodiment of the present application, the first electronic device can send a mirror system file to the second electronic device through a redfish interface, the second electronic device receives the mirror system file through the BMC, and stores the mirror system file in the memory of the second electronic device, so that the central processing unit (CPU) of the second electronic device starts the mirror system through the driver in the mirror system file.

[0070] S103: The first electronic device sends a processing instruction to the second electronic device.

[0071] The processing instruction is used to instruct to change the device information, and the second electronic device changes the device information by running the application.

[0072] In addition, the second electronic device starts the mirroring system, and the mirroring system obtains the redfish token of the BMC through IPMI, so that the BMC of the second electronic device can interact with the mirroring system, so that the mirroring system obtains the processing instruction. Among them, the redfish token is a token mechanism used for identity authentication in the redfish protocol.

[0073] Exemplarily, the first electronic device sends a processing instruction to the BMC of the second electronic device through the redfish interface, and the second electronic device sends the processing instruction to the mirroring system through the BMC, so that the second electronic device changes the device information by running an application.

[0074] In a possible implementation manner, the device information includes an electronic label stored in the BMC and / or a BIOS system identifier BIOS Logo stored in a BIOS chip.

[0075] Exemplarily, if the first electronic device communicates abnormally with the second electronic device through the IPMI interface, the first electronic device sends a processing instruction to the BMC of the second electronic device through the redfish interface, and the processing instruction includes a white card instruction. The white card instruction is used to instruct the mirroring system to delete the electronic label and / or BIOS Logo in the second electronic device. Among them, the white card instruction includes white card content, and the white card content indicates the electronic label and / or BIOS system identification BIOS Logo that needs to be deleted.

[0076] for example, Figure 4 FIG. 1 is a schematic diagram of a first interface 001 of a device information processing system 100 provided in an embodiment of the present application. Figure 4 As shown, the first interface 001 runs on the first electronic device. The first interface 001 includes an input bar for the task name, an input bar for the mirror system file, an input bar for the second electronic device, and a selection control for the execution policy, including executing later and executing immediately. And a preview control is included after each input bar to display the uploaded information or files. Create controls and cancel controls are also included below the first interface 001. The first interface 001 is used to implement interaction between the device information processing system 100 and the user, and the user can implement information processing of the second electronic device through the first interface 001.

[0077] Taking the example of a user performing a white card operation on a second electronic device through the first interface 001 displayed on the electronic device, the user creates a task name through the input bar of the task name. The user determines the mirror system file based on the architecture information of the second electronic device and uploads it through the input bar of the mirror system file. Alternatively, the user can first upload the identification code, serial number, model, etc. of the second electronic device through the input bar of the second electronic device, and the first electronic device will automatically fill in the mirror system file. No specific limitation is made here. After the user selects the execution mode through the selection control of the execution policy, clicks the create control to create a task for the electronic device to perform a white card operation on the second electronic device.

[0078] During the white card operation of the first electronic device, the first electronic device sends a white card instruction to the second electronic device through the redfish interface. The mirroring system of the second electronic device obtains the white card instruction through the BMC, and parses the white card instruction to obtain the location information of the white card content as follows:

[0079] / home / Project / tools / BatchIsoTools / oem / config.json

[0080] The mirror system obtains the white card content according to the location information. The mirror system will run the application and perform the white card operation according to the white card content included in the white card instruction. The white card content is as follows:

[0081] "Fw Upgrade Version Require": "1.0.1",

[0082] "Product Name": "KL 2280V2",

[0083] "Custom Manufacturer": "KL",

[0084] "Custom Board Manufacturer": "KL",

[0085] "Board Product Name": "KL 2280V2",

[0086] "Machine Name": "KL 2280V2",

[0087] "BIOS Logo": ".. / oem / bios / Logo.bmp",

[0088] "BMC Hpm File": ".. / oem / bmc / hpm / bmc_arm_V3.hpm",

[0089] "Redfish Oem": "HW"

[0090] "IPMIOem": "0xdb 0x07 0x00",

[0091] "SNMP Oem": "a",

[0092] "BMC oft Name": "iBMC",

[0093] "Custom Alarm Name": "iBMC",

[0094] "Custom Log Ibma Name": "iBMC",

[0095] "Custom Log Ibma Name": "iBMC",

[0096] "Clp Command": "iBMC",

[0097] "QR code State": "0x01"

[0098] Among them, "Fw Upgrade Version Require" indicates the firmware upgrade version requirement of the management tool used by the first electronic device; "Product Name" indicates the product name of the second electronic device; "Custom Manufacturer" indicates the custom manufacturer of the second electronic device; "Custom Board Manufacturer" indicates the custom mainboard manufacturer of the second electronic device; "Board Product Name" indicates the motherboard product name of the second electronic device; "Machine Name" indicates the machine name of the second electronic device; "BIOS Logo" indicates the boot pattern of the second electronic device; "BMC HpmFile" indicates the BMC upgrade file of the second electronic device; "Redfish Oem" indicates the Redfish manufacturer-specific extension; "IPMIOem" indicates the IPMI manufacturer-specific extension; "SNMP Oem" indicates the network protocol manufacturer extension; "BMC oftName" indicates the BMC software name; "Custom Alarm Name" indicates the custom alarm name; "Custom Log IbmaName" indicates the custom log name; "Clp Command" indicates the command line processor; "QR code State" indicates the QR code state of the BMC in the second electronic device.

[0099] It should be understood that the above white-label content is only an example and does not constitute a limitation. The fields and content included in the specific white-label content are related to the second electronic device and the first electronic device where the device information processed in the actual application scenario is located.

[0100] It can be seen from the field "BIOS Logo" and the address information ".. / oem / bios / Logo.bmp" in the above white card content that the white card operation specifically deletes the BIOS Logo stored in ".. / oem / bios / Logo.bmp" in the second electronic device. The mirror system reads the white card content and determines the corresponding deletion tool based on the device model of the first device read, such as the "Product Name" in the above white card content: "KL 2280V2". If the device model is V3, during the white card operation, use the V3 deletion tool to perform the white card operation and delete the BIOS Logo. If the device model is V2, during the white card operation, use the V2 deletion tool to perform the white card operation and delete the BIOS Logo. If the white card content is empty, the mirror system does not perform the white card operation.

[0101] Optionally, before the first electronic device sends a white card instruction to the BMC of the second electronic device through the redfish interface, the first electronic device verifies the white card content in the white card instruction to determine the legitimacy of the white card content. Taking the above white card content as an example, the white card field is "BIOS Logo": ".. / oem / bios / Logo.bmp", and the electronic device verifies whether the content of the field complies with the field rules. If the white card content is the BIOS Logo, then the data of the field content is in picture format. If it is in string format, the white card content is not legal.

[0102] As can be seen from the above, the first electronic device providing the first interface 001 can increase the interactivity and convenience between the user and the device information processing system 100, thereby improving the efficiency of device information processing and further improving the efficiency of white-label operation of the first electronic device.

[0103] In a possible implementation, the first electronic device starts a Hypertext Transfer Protocol (HTTP) service and sends a processing instruction to the BMCs of the at least two second electronic devices through a redfish interface.

[0104] Exemplarily, the redfish management protocol is built on a hypertext transfer protocol (HTTP) service, and the first electronic device sends processing instructions to the BMCs of at least two second electronic devices through HTTP requests in accordance with the instruction format requirements supported by the second electronic device.

[0105] For example, when a first electronic device performs a batch white-card operation on at least two second electronic devices, the first electronic device can share the image file with at least two second electronic devices through the redfish interface using the network file system (NFS). After the various corresponding image systems of at least two second electronic devices are started, the first electronic device sends a white-card instruction to the BMC of each of the at least two second electronic devices through an HTTP request. This enables the image systems of the at least two second electronic devices to run applications and perform white-card operations according to the white-card content included in the white-card instruction, thereby enabling the first electronic device to perform batch white-card operations on at least two second electronic devices.

[0106] In one possible implementation, the first electronic device sends a query instruction to the second electronic device; the query instruction is used to instruct to obtain processing information from the mirroring system; the processing information includes a processing result and / or a processing progress; and the first electronic device receives the processing information.

[0107] Exemplarily, the first electronic device forwards the query instruction through the BMC of the second electronic device, so that the mirror system executes the query instruction and obtains the execution information of the processing instruction executed in the mirror system. The first electronic device obtains the execution information through the forwarding of the BMC in the second electronic device, and can monitor the execution of the processing instruction.

[0108] for example, Figure 5 FIG. 1 is a schematic diagram of a second interface 002 of a device information processing system 100 provided in an embodiment of the present application. Figure 5 As shown, the second interface 002 is used to display processing information, which may specifically include task name, execution status, creation time, completion time, and time consumption. Among them, the execution status may include execution completed or in progress.

[0109] The second interface 002 also includes a second electronic device list. The main fields of the second electronic device list may include identification code, status, serial number, model, start time, end time, and failure reason. Figure 5 Taking the second electronic device with the identification code 12.24.567, the serial number 123467T, and the model V2 as an example, the execution completion corresponding to the status field is used to indicate that the mirroring system file execution processing instruction of the second electronic device is completed. The characters in the failure reason field are used to indicate that the second electronic device mirroring system file execution processing instruction is successful. If the second electronic device mirroring system file execution processing instruction fails, the failure reason field corresponds to the specific description of the failure reason.

[0110] As can be seen from the above, the second interface 002 provided by the first electronic device can effectively display the result of device information processing, increase the interactivity of the device information processing system 100, thereby improving the efficiency of device information processing and further improving the efficiency of white-label operation of the electronic device.

[0111] In one possible implementation, when the first electronic device communicates normally with the second electronic device through the IPMI interface and the device information is stored in the BMC of the second electronic device, the method also includes sending an IPMI processing script to the second electronic device through the IPMI interface; the IPMI processing script supports running through the BMC of the second electronic device and changing the device information.

[0112] The IPMI processing script includes connection information and processing instructions. The connection information usually includes the IP address of the second electronic device and / or the user name and password of the BMC.

[0113] Exemplarily, when the first electronic device communicates normally with the second electronic device through the IPMI interface, if the first electronic device determines that the device information in the processing instruction is stored in the BMC, the first electronic device sends an IPMI processing script to the second electronic device, and the second electronic device receives the IPMI processing script through the BMC and executes the processing instruction in the IPMI processing script to change the target device information of the second electronic device stored in the BMC. The IPMI processing script may include an IPMI white-label script.

[0114] From the above, it can be seen that when the first electronic device communicates normally with the second electronic device through the IPMI interface and the target device information is stored in the BMC, the first device completes the device information processing through the IPMI processing script, and there is no need to mount the mirror system on the second electronic device, which can save the computing power overhead of the first electronic device, thereby improving the processing efficiency of the device information of the electronic device, and specifically improving the efficiency of the white-label operation of the electronic device.

[0115] The method for processing device information is described below from the perspective of interaction between the BMC 130 and the mirroring system 140 in the first electronic device 110 and the second electronic device 120 . Figure 6 A schematic diagram of an interactive process of a method for processing device information provided by an embodiment of the present application is shown. Figure 6 As shown, the mirroring system 140 is mounted in the second electronic device 120, and the method includes:

[0116] In the case where the first electronic device 110 communicates abnormally with the second electronic device 120 through the IPMI interface, the first electronic device 110 sends the mirror system file to the BMC 130 through the redfish interface (S201). The BMC 130 stores the mirror system file in the memory of the second electronic device, so that the CPU of the second electronic device starts the mirror system 140 through the driver in the mirror system file (S202). After the mirror system 140 is started, the mirror system 140 obtains the redfish token of the BMC 130 through the IPMI, so that the BMC 130 can interact with the mirror system 140. The first electronic device 110 sends a processing instruction to the BMC 130 through the redfish interface (S203). Among them, the processing instruction is used to instruct to update the device information, and the device information is stored in the BMC or the basic input and output system BIOS chip of the second electronic device.

[0117] BMC 130 sends the processing instruction to the mirror system 140 (S204). The mirror system 140 runs the application to change the device information (S205). The first electronic device sends a query instruction to BMC 130 through the redfish interface (S206), wherein the query instruction is used to instruct BMC to obtain processing information from the mirror system; the processing information includes processing results and / or processing progress. BMC 130 sends the query instruction to the mirror system 140 (S207). BMC 130 obtains the processing information in the mirror system (S208). BMC 130 sends the processing information to the first electronic device through the redfish interface (S209). The above method can not only process the device information stored in the basic input and output system BIOS chip in the second electronic device, but also realize that the first electronic device processes the device information of the second electronic device when the first electronic device 110 communicates abnormally with the second electronic device 120 through the IPMI interface.

[0118] Figure 7 The following is a logic diagram of a method for performing white-card operation on at least two second electronic devices provided by an embodiment of the present application. The method is executed by a first electronic device, such as Figure 7As shown, the first electronic device obtains white-card content (S301), and the white-card content indicates the electronic label and / or BIOS Logo that needs to be deleted. The first electronic device determines whether the white-card content includes the BIOS Logo (S302). If so, the first electronic device determines the mirror system file (S304). Specifically, the first electronic device can determine the mirror system file based on the architecture information of at least two second electronic devices. If the second electronic device is an ARM architecture computing device, the first electronic device determines that the mirror system file is the first mirror system file loaded by the electronic device that supports the ARM architecture. The first mirror system file includes the operating system core files and drivers under the ARM architecture. If the second electronic device is an X86 architecture computing device, the first electronic device determines that the mirror system file is the second mirror system file loaded by the electronic device that supports the X86 architecture.

[0119] If not, the first electronic device determines whether IPMI is available (S303); specifically, the first electronic device can try to connect to at least two second electronic devices through the IPMI management tool. If they can successfully connect and obtain the temperature and / or fan speed of the second electronic device, it means that IPMI is available. If IPMI is available, the first electronic device sends an IPMI white card script to at least two second electronic devices through IPMI (S305). The IPMI white card script includes connection information, white card instructions and white card content. At least two second electronic devices receive the IPMI processing script through their respective BMCs, and execute the white card instructions in the IPMI processing script to delete the white card content that needs to be white carded in each second electronic device. The first electronic device receives the execution result of the IPMI white card script (S306), and the process ends (S311). If IPMI is not available, the first electronic device determines the mirror system file (S304).

[0120] The first electronic device sends a mirror system file to at least two second electronic devices through the redfish interface (S307), and each second electronic device receives the mirror system file through its own BMC and stores the mirror system file in the memory of the BMC, thereby starting the mirror system through the driver in the mirror system file. After each second electronic device starts the mirror system, the first electronic device sends a white card processing instruction to the BMC of at least two second electronic devices through the redfish interface (S308). Specifically, the first electronic device starts the Hypertext Transfer Protocol HTTP service, and sends a white card instruction to the BMC of at least two second electronic devices through an HTTP request. The mirror system corresponding to each second electronic device obtains the white card instruction from the BMC, and the mirror system runs the application according to the white card content and executes the white card instruction. The first electronic device sends a query instruction to the BMC of at least two second electronic devices through the redfish interface (S309), and the BMC of each second electronic device forwards the query instruction to its own mirror system, executes the query instruction, and obtains processing information, and the processing information includes processing results and / or processing progress. The first electronic device obtains the processing information sent by the BMC of each second electronic device (S310). After the mirror system in the second electronic device successfully executes the white card instruction, the first electronic device can delete the mirror system files in each second electronic device through the redfish interface, and the process ends (S311).

[0121] As can be seen from the above, the first electronic device adaptively selects the white card operation channel according to the white card content, which can not only realize batch white card operation of the first electronic device, but also improve the success rate of white card operation, thereby improving the efficiency of white card operation of the electronic device.

[0122] In summary, an embodiment of the present application provides a method for device information processing, which is used to improve the processing efficiency of device information of a first electronic device, and specifically can improve the efficiency of white-label operation of an electronic device. The method is executed by a first electronic device, and includes the first electronic device obtaining a mirror system file and mounting the mirror system file to a second electronic device. Among them, the second electronic device supports loading a mirror system file to run a mirror system, and an application for changing device information runs in the mirror system. The first electronic device sends a processing instruction to the second electronic device, and the second electronic device processes the device information by running the application in the mirror system. Among them, the processing instruction is used to instruct to change the device information. The above method mounts the mirror system file to the second electronic device, and implements the processing operation of the device information of the second electronic device by running the application in the mirror file, thereby improving the success rate of device information processing and thus improving the efficiency of device information processing.

[0123] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the method. It is understandable that in order to realize the above functions, the device information processing device includes at least one of the hardware structure and software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0124] The embodiment of the present application can divide the functional units of the device information processing device according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0125] For example, Figure 8 FIG. 4 is a schematic diagram showing the structure of a device information processing apparatus 400 provided in an embodiment of the present application. Figure 8 As shown, the device information processing apparatus 400 can be applied to manage computing equipment, and the device information processing apparatus 400 includes:

[0126] The connection module 410 is used to obtain the mirror system file; mount the mirror system file to the second electronic device; wherein the second electronic device supports loading the mirror system file to run the mirror system, and an application for changing device information runs in the mirror system.

[0127] The sending module 420 is used to send a processing instruction to the second electronic device; the processing instruction is used to instruct to change the device information, and the second electronic device changes the device information by running an application.

[0128] In a possible implementation, the connection module 410 is further configured to obtain architecture information of the second electronic device; and determine the mirror system file according to the architecture information.

[0129] In a possible implementation, the connection module 410 is further configured to obtain the mirror system file when the first electronic device communicates abnormally with the second electronic device via the IPMI interface.

[0130] In a possible implementation, the sending module 420 is further used to send a query instruction to the second electronic device; the query instruction is used to instruct to obtain processing information from the mirroring system; the processing information includes a processing result and / or a processing progress.

[0131] In a possible implementation, the sending module 420 is further configured to, when the first electronic device communicates normally with the second electronic device through the IPMI interface and the device information is stored in the BMC of the second electronic device, the method further includes:

[0132] An IPMI processing script is sent to the second electronic device through an IPMI interface; the IPMI processing script supports running through the BMC of the second electronic device and changing the device information.

[0133] In a possible implementation, the sending module 420 is further configured to start a hypertext transfer protocol HTTP service and send a processing instruction to the BMCs of the at least two second electronic devices through a redfish interface.

[0134] In a possible implementation, the device information processing apparatus 400 further includes a receiving module for receiving processing information.

[0135] Optionally, the device information processing apparatus 400 may be applied to Figure 1 In the first electronic device 110 shown in the figure, the above Figure 3 The method for processing device information described in .

[0136] The connection module 410 and the sending module 420 may be implemented by software or hardware.

[0137] For example, the following takes the connection module 410 as an example to introduce the implementation of the connection module 410. Similarly, the implementation of the connection module 410 and the sending module 420 can refer to the implementation of the connection module 410.

[0138] As an example of a software functional unit, the connection module 410 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the connection module 410 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with similar geographical locations. Generally, a region may include multiple AZs.

[0139] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0140] The connection module 410 is taken as an example of a hardware functional unit, and the connection module 410 may include at least one computing device, such as a server, etc. Alternatively, the connection module 410 may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), etc. The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0141] The multiple computing devices included in the connection module 410 can be distributed in the same region or in different regions. The multiple computing devices included in the connection module 410 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the judgment module 410 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0142] It should be noted that, in other embodiments, the connection module 410 can be used to execute any step in the method of device information processing, and the sending module 420 can be used to execute any step in the method of device information processing. The steps that the connection module 410 and the sending module 420 are responsible for implementing can be specified as needed. The full functions of the device information processing apparatus 400 are realized by respectively implementing different steps in the method of device information processing through the connection module 410 and the sending module 420.

[0143] For a detailed description of the above optional methods, please refer to the above method embodiments, which will not be repeated here. Figure 3 The corresponding method embodiments will not be described in detail.

[0144] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on a computing device, the computing device executes operations corresponding to any one implementation scheme and various feasible implementation schemes of the method for device information processing.

[0145] The embodiment of the present application also provides a computer program product containing instructions, which, when executed on a computing device, enables the computing device to execute operations corresponding to any one implementation scheme and various feasible implementation schemes of the method for device information processing.

[0146] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0148] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.

[0149] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0150] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.

[0151] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0152] The electronic device, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0153] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0154] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0155] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, which may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0158] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for processing device information, characterized in that: The method is performed by a first electronic device, and includes: Get the image system file; Mounting the mirror system file to a second electronic device; wherein the second electronic device supports loading the mirror system file to run a mirror system, and an application for changing device information is running in the mirror system; A processing instruction is sent to the second electronic device; the processing instruction is used to instruct to change the device information, and the second electronic device changes the device information by running the application.

2. The method according to claim 1, characterized in that The method further comprises: Sending a query instruction to the second electronic device; the query instruction is used to instruct to obtain processing information from the mirroring system; the processing information includes a processing result and / or a processing progress; The processing information is received.

3. The method according to claim 1 or 2, characterized in that: The obtaining of the image system file includes: When the first electronic device communicates abnormally with the second electronic device through the IPMI interface, the mirror system file is obtained.

4. The method according to claim 3, characterized in that In the case where the first electronic device communicates normally with the second electronic device through the IPMI interface, and the device information is stored in the BMC of the second electronic device, the method further includes: An IPMI processing script is sent to the second electronic device through an IPMI interface; the IPMI processing script supports running through the BMC of the second electronic device and changing the device information.

5. The method according to any one of claims 1 to 4, characterized in that The sending a processing instruction to the second electronic device includes: A Hypertext Transfer Protocol (HTTP) service is started, and the processing instruction is sent to the BMCs of at least two of the second electronic devices through a redfish interface.

6. A method for processing device information, characterized in that: The method is performed by a second electronic device, and includes: Loading the mirror system file to run the mirror system; wherein the mirror system file is obtained by the first electronic device; the first electronic device is used to mount the mirror system file to the second electronic device; an application for changing device information is run in the mirror system; receiving a processing instruction sent by the first electronic device; the processing instruction is used to instruct to change the device information; Changes to the device information are made by running the application.

7. The method according to claim 6, characterized in that The method further comprises: receiving a query instruction sent by the first electronic device; the query instruction is used to instruct the second electronic device to obtain processing information from the mirroring system; the processing information includes a processing result and / or a processing progress; The processing information is sent to the first electronic device.

8. The method according to claim 6 or 7, characterized in that: The loading of the image system file to run the image system includes: When the first electronic device communicates abnormally with the second electronic device through the IPMI interface, the mirror system file is loaded to run the mirror system.

9. The method according to claim 8, characterized in that In the case where the first electronic device communicates normally with the second electronic device through the IPMI interface, and the device information is stored in the BMC of the second electronic device, the method further includes: An IPMI processing script sent by the first electronic device is received through an IPMI interface; the IPMI processing script supports running through the BMC of the second electronic device and changing the device information.

10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory for storing instructions executable by the processor; The processor is configured to execute the instruction so that the electronic device performs the device information processing method as described in any one of claims 1-5 or 6-9.

Citation Information

Patent Citations

  • External card parameter configuration method, equipment and system

    CN103412769A

  • Interface Logo customization method, system and equipment and computer readable storage medium

    CN108170504A

  • Equipment information updating method and device, equipment and medium

    CN111414178A

  • Management method, device and system of baseboard management controller (BMC)

    CN118034714A

  • Method for preventing reproduction of NFC tag and system thereof

    KR101143729B1