CN111290802B - Information analysis method and device for BMC internal device and readable storage medium - Google Patents

Information analysis method and device for BMC internal device and readable storage medium Download PDF

Info

Publication number
CN111290802B
CN111290802B CN202010090748.0A CN202010090748A CN111290802B CN 111290802 B CN111290802 B CN 111290802B CN 202010090748 A CN202010090748 A CN 202010090748A CN 111290802 B CN111290802 B CN 111290802B
Authority
CN
China
Prior art keywords
information
configuration file
bmc
equipment
information configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010090748.0A
Other languages
Chinese (zh)
Other versions
CN111290802A (en
Inventor
王相宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010090748.0A priority Critical patent/CN111290802B/en
Publication of CN111290802A publication Critical patent/CN111290802A/en
Application granted granted Critical
Publication of CN111290802B publication Critical patent/CN111290802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for analyzing information of BMC internal equipment and a computer readable storage medium. The method comprises the steps that a modification interface of a device information configuration file is arranged on the BMC in advance, and when a device information analysis instruction is received, the device information configuration file is read to obtain plaintext information of the device to be analyzed; when detecting that the configuration file to be updated exists, updating the equipment information configuration file through the modification interface; the device information configuration file is based on keyword values and comprises first-level data information and second-level data information, the keywords and the values of the first-level data information are respectively equipment manufacturer ID and corresponding plaintext analysis information, the keywords and the values of the second-level data information are respectively equipment ID and corresponding plaintext analysis information, the problem that in the related technology, the defect that BMC firmware needs to be updated every time new equipment is adapted is solved, and the fact that the BMC can analyze the latest equipment information can be guaranteed on the basis that the BMC firmware does not need to be updated.

Description

Information analysis method and device for BMC internal device and readable storage medium
Technical Field
The present application relates to the field of BMC firmware information updating technologies, and in particular, to an information analysis method and apparatus for BMC internal devices, and a computer-readable storage medium.
Background
BMC (Baseboard Management Controller) is widely used as a remote Management Controller for executing a server, and is widely applied to large-scale integrated Management of a server and monitoring inventory of asset information of the server. The important part of the asset information inventory is that the BMC analyzes the information of its internal devices, that is, the BMC converts its internal 16-system device ID into a readable character string for outputting, for example, 8086h represents intel, and 12d4 represents an I350 network card of a dual-port.
In the related art, a device information analysis correspondence table is usually stored and fixed in advance in the BMC firmware. When the BMC analyzes the equipment information, the BMC analyzes the corresponding table based on the equipment information, and specifically analyzes the equipment of which model of which manufacturer is according to the manufacturer ID and the equipment ID of the equipment which are monitored at present.
However, since the content in the device information correspondence table in the BMC image is fixed, the addition operation and the modification operation cannot be performed. The existing BMC cannot analyze the manufacturer ID and the device ID of the new device to obtain corresponding plaintext manufacturer information and device information, can only provide an unreadable device ID of 16 systems for a client, needs to update BMC firmware if correct device information is analyzed, has large operation task amount and is easy to cause problems, and not only has low information analysis efficiency and is easy to make mistakes, but also brings great inconvenience to the user.
Disclosure of Invention
The application provides an information analysis method and device for BMC internal equipment and a computer readable storage medium, which solve the problem that in the related art, the BMC firmware needs to be updated every time a new device is adapted.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides an information analysis method for BMC internal devices, where a modification interface of a device information configuration file is set on a BMC in advance, and the method includes:
when an equipment information analysis instruction is received, reading the equipment information configuration file to acquire plaintext information of equipment to be analyzed;
when detecting that the configuration file to be updated exists, updating the equipment information configuration file through the modification interface;
the device information configuration file is based on keyword values and comprises first-level data information and second-level data information, the keywords and the values of the first-level data information are respectively equipment manufacturer ID and corresponding plaintext analysis information, and the keywords and the values of the second-level data information are respectively equipment ID and corresponding plaintext analysis information.
Optionally, when it is detected that the configuration file to be updated exists, updating the device information configuration file through the modification interface includes:
pre-configuring a webpage address for downloading the equipment information configuration file;
and when detecting that the equipment information configuration file in the BMC is changed, automatically downloading the updated equipment information configuration file from the webpage corresponding to the webpage address, and replacing the equipment information configuration file in the BMC.
Optionally, the automatically downloading the updated device information configuration file from the webpage corresponding to the webpage address includes:
and remotely downloading the equipment information configuration file from the webpage corresponding to the webpage address based on an ftp file transfer protocol or an sftp file transfer protocol.
Optionally, the pre-configuring the web page address for downloading the device information configuration file includes:
and configuring a uniform resource locator through a redfish interface or an ipmitool interface or a restful interface for the BMC to remotely download the device information configuration file.
Optionally, the detecting of the change of the device information configuration file inside the BMC includes:
and detecting whether the equipment information configuration file in the BMC is updated and changed or not at regular time according to a preset query frequency.
Optionally, the device information configuration file is a json format file, and when it is detected that a configuration file to be updated exists, updating the device information configuration file through the modification interface includes:
converting the updated equipment information configuration file into a binary form file in advance, and receiving the binary form file uploaded through an ipmitool interface;
and converting the binary file into the json format file, and replacing the device information configuration file in the BMC.
Optionally, the device information configuration file is a json format file, and when it is detected that a configuration file to be updated exists, updating the device information configuration file through the modification interface includes:
and uploading the updated device information configuration file through a redfish interface or a restful interface to replace the device information configuration file inside the BMC.
Another aspect of the embodiments of the present invention provides an information analyzing apparatus for BMC internal devices, including:
the interface configuration module is used for setting a modification interface of the equipment information configuration file on the BMC in advance;
the information analysis module is used for reading the equipment information configuration file to acquire plaintext information of the equipment to be analyzed when an equipment information analysis instruction is received; the device information configuration file is based on keyword values and comprises first-level data information and second-level data information, the keywords and the values of the first-level data information are respectively equipment manufacturer ID and corresponding plaintext analysis information, and the keywords and the values of the second-level data information are respectively equipment ID and corresponding plaintext analysis information;
and the information updating module is used for updating the equipment information configuration file through the modification interface when the configuration file to be updated is detected to exist.
The embodiment of the present invention further provides an information parsing apparatus for BMC internal devices, which includes a processor, where the processor is configured to implement the steps of the information parsing method for BMC internal devices as described in any previous item when executing a computer program stored in a memory.
Finally, an embodiment of the present invention provides a computer-readable storage medium, where an information analysis program of the BMC internal device is stored in the computer-readable storage medium, and when the information analysis program of the BMC internal device is executed by a processor, the step of implementing the information analysis method of the BMC internal device is implemented as any one of the foregoing.
The technical scheme provided by the application has the advantages that the mode of writing the device analysis list in the related technology is changed into the mode of reading the configuration file, the BMC can update the device information of the internal device through the external interface in real time, so that the device corresponding table in the BMC can be updated in real time, the device information can be correctly analyzed without refreshing the whole BMC firmware after the BMC device is updated, namely, the application can ensure that the BMC can analyze the latest device information on the basis of not updating the BMC firmware, the BMC updating probability is reduced, and the possibility of problems caused by BMC updating is reduced.
In addition, the embodiment of the invention also provides a corresponding implementation device and a computer readable storage medium for the information analysis method of the BMC internal device, so that the method has higher practicability, and the device and the computer readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an information analysis method for BMC internal devices according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another method for analyzing information of an internal device of a BMC according to an embodiment of the present invention;
fig. 3 is a structural diagram of an embodiment of an information analysis apparatus for BMC internal devices according to an embodiment of the present invention;
fig. 4 is a structural diagram of another specific embodiment of an information analysis apparatus for BMC internal devices according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of an information analysis method for BMC internal devices according to an embodiment of the present invention, where an execution subject may be a BMC, and the embodiment of the present invention may include the following:
s101: and setting a modification interface of the equipment information configuration file on the BMC in advance.
It is understood that one or more interfaces may be defined in the BMC in advance, for example, a redfish interface or/and an ipmitool interface or/and a restful interface. The interface is used for reading the device information configuration file of the device from the inside of the BMC or transferring the device information configuration file from the outside to the inside of the BMC. The device information configuration file is used for recording and storing the manufacturer ID of the device, the device ID and the corresponding plaintext information of the device.
S102: and when an equipment information analysis instruction is received, reading the equipment information configuration file to acquire the plaintext information of the equipment to be analyzed.
In the present application, the device information configuration file may be based on a keyword value, and includes first-level data information and second-level data information. The key word of the first-level data information is equipment manufacturer ID, and the value is plaintext analysis information corresponding to the equipment manufacturer ID; the key word of the second-level data information is the equipment ID, and the value is the plaintext analysis information corresponding to the equipment ID. When the BMC internally analyzes the internal device, the device information configuration file can be read to obtain a table of plaintext device description corresponding to the 16-system device ID, namely, a device information analysis corresponding table in the related art, and the device ID is correspondingly analyzed according to the table according to a table information reading method in the related art.
As an alternative implementation, the method for the BMC to parse the mapping table by the device may be changed from the method of code deadlock in the related art to a method of reading the mapping table from the json configuration file by using C language. That is, the device information configuration file may follow a json format and may be divided into two stages, a key (keyword) value of the json data of the first stage is a manufacturer ID, a value (value) includes a plain text analysis of the manufacturer ID and a second stage json having a device ID as a key value and a device plain text analysis as a value, and the BMC reads the json file to obtain a table of plain text device descriptions corresponding to 16-system device IDs, and analyzes the device IDs correspondingly according to the table.
S103: and when detecting that the configuration file to be updated exists, updating the equipment information configuration file through the modification interface.
It can be understood that when some new components are added to the BMC or some information of the original components is changed, the device information configuration file inside the BMC needs to be updated, otherwise the latest device information cannot be accurately analyzed. When the device information configuration file is updated, the user may send a configuration file update instruction to the BMC, and may also detect whether the device information configuration file in the BMC is updated or updated in real time, that is, if it is detected that the device information configuration file to be updated exists, the device information configuration file may be subjected to information increase or information modification through the modification interface set in S101, so as to update the device information configuration file. The device information configuration file can be directly transmitted through the modification interface to replace the original internal device information configuration file, and the internal device information configuration file can be read for modification, which does not affect the implementation of the application.
For example, a server BMC at a client updates a batch of new components of a manufacturer, the BMC cannot analyze device information of the new BMC, all displayed unreadable 16-system IDs are configured, an ftp path of a device information configuration file can be configured in advance by using a restful interface, a user only needs to maintain the device information configuration file on the ftp server, and the device information configuration file inside the BMC is updated in real time, so that the BMC can analyze information of the latest device when the device information configuration file inside the BMC is up to date.
In the technical scheme provided by the embodiment of the invention, the mode of writing the device analysis list in the related technology is changed into the mode of reading the configuration file, the BMC can update the device information of the internal device in real time through the external interface, so that the device corresponding table in the BMC can be updated in real time, and the device information can be correctly analyzed without refreshing the whole BMC firmware after the BMC device is updated, namely, the application can ensure that the BMC can analyze the latest device information on the basis of not updating the BMC firmware, the upgrading probability of the BMC is reduced, and the possibility of problems caused by upgrading of the BMC is reduced.
In the above embodiment, how to perform step S103 is not limited, but in this embodiment, a method for remotely updating a device information configuration file is provided, please refer to fig. 2, where step S103 may include the following steps:
s1031: the web page address for downloading the device information configuration file is pre-configured.
In the embodiment of the present invention, the web page address corresponds to an address for storing the updated device information configuration file, and optionally, a uniform resource locator may be configured through a redfish interface, an ipmitool interface, or a restful interface, so as to be used for the BMC to remotely download the device information configuration file. For example, the device information configuration file is stored in the ftp server, and when a new device needs to be added, the user only needs to modify the information configuration file on the ftp server, so that the web page address is a file path for downloading the information configuration file from the ftp server.
S1032: and when detecting that the equipment information configuration file in the BMC is changed, automatically downloading the updated equipment information configuration file from the webpage corresponding to the webpage address, and replacing the equipment information configuration file in the BMC.
Whether the equipment information configuration file in the BMC is updated or not can be detected regularly or in real time or randomly according to the preset query frequency, and if the equipment information configuration file is updated or not, subsequent file updating operation is executed. The new device information configuration file may be remotely downloaded from a web page corresponding to the web page address based on an ftp file transfer protocol or an sftp file transfer protocol, or may be based on other file transfer protocols, which is not limited in this application.
The present application further provides another method for configuring a device information profile, which is parallel to the foregoing method, and therefore, as another optional implementation, please refer to fig. 2, in this embodiment of the present invention, the device information profile may be a json format file, and S103 includes:
s1033: the type of the modified interface is obtained.
S1034: if the current modification interface is an ipmitool interface, converting the updated equipment information configuration file into a binary form file, and receiving the binary form file uploaded through the ipmitool interface; and converting the binary format file into a json format file, and replacing a device information configuration file in the BMC.
S1035: if the current modification interface is a redfish interface or a restful interface, the updated device information configuration file can be uploaded through the modification interface to replace the device information configuration file in the BMC.
As can be seen from the above, the BMC provides two modes, including remote configuration and direct file uploading, for modifying the device information configuration file through the redfish interface, the ipmitool interface or the restful interface, the device information configuration file flow for transmitting the analysis device to the BMC through the outside can update the device information analysis corresponding table inside the BMC in real time, and the device information can be correctly analyzed without refreshing the whole BMC firmware after the device is updated.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as a logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 to fig. 2 are only schematic manners, and do not represent only such an execution order.
The embodiment of the invention also provides a corresponding device for the information analysis method of the BMC internal equipment, so that the method has higher practicability. Wherein the means may be described separately from a functional block point of view and a hardware point of view. In the following, the information analysis apparatus of the BMC internal device according to the embodiment of the present invention is introduced, and the information analysis apparatus of the BMC internal device described below and the information analysis method of the BMC internal device described above may be referred to in correspondence with each other.
Based on the angle of the functional module, referring to fig. 3, fig. 3 is a structural diagram of an information analysis apparatus for BMC internal devices according to an embodiment of the present invention, in a specific implementation manner, where the apparatus may include:
the interface configuration module 301 is configured to set a modification interface of the device information configuration file on the BMC in advance.
The information analysis module 302 is configured to, when receiving an apparatus information analysis instruction, read an apparatus information configuration file to obtain plaintext information of an apparatus to be analyzed; the device information configuration file is based on keyword values and comprises first-level data information and second-level data information, the keywords and the values of the first-level data information are respectively equipment manufacturer ID and corresponding plaintext analysis information, and the keywords and the values of the second-level data information are respectively equipment ID and corresponding plaintext analysis information.
And the information updating module 303 is configured to update the device information configuration file through the modification interface when it is detected that the configuration file to be updated exists.
Optionally, in some implementations of this embodiment, the information updating module 303 may include:
the webpage configuration submodule is used for pre-configuring a webpage address for downloading the equipment information configuration file;
and the file updating sub-module automatically downloads the updated device information configuration file from the webpage corresponding to the webpage address and replaces the device information configuration file in the BMC when detecting that the device information configuration file in the BMC is changed.
In some implementations of this embodiment, the file update sub-module may be further configured to remotely download the device information configuration file from the webpage corresponding to the webpage address based on an ftp file transfer protocol or an sftp file transfer protocol.
In other embodiments of this embodiment, the web page configuration sub-module may be further configured to configure a uniform resource locator through a redfish interface, an ipmitool interface, or a restful interface, so as to be used for the BMC to remotely download the device information configuration file.
In other embodiments of the embodiment of the present invention, the information parsing module 302 is configured to detect whether the device information configuration file inside the BMC is updated or not at regular time according to a preset query frequency.
As an optional implementation manner, the information updating module 303 may further include:
the file format conversion submodule is used for converting the updated equipment information configuration file into a binary form file in advance;
the file receiving submodule is used for receiving the binary file uploaded through the ipmitool interface;
the file format retransformation submodule is used for converting the binary file into a json file;
and the file replacement submodule is used for replacing the device information configuration file in the BMC.
As an optional implementation manner, the information updating module 303 may be further configured to upload the updated device information configuration file through a redfish interface or a restful interface, for example, to replace the device information configuration file inside the BMC.
The functions of the functional modules of the information analysis device of the BMC internal device according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the description related to the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention solves the problem that the BMC firmware needs to be updated every time the new device is adapted in the related art, and can ensure that the BMC can analyze the latest device information on the basis of not updating the BMC firmware.
The above mentioned information parsing apparatus for BMC internal device is described from the perspective of functional modules, and further, the present application also provides an information parsing apparatus for BMC internal device, which is described from the perspective of hardware. Fig. 4 is a structural diagram of another information analysis apparatus for BMC internal devices according to an embodiment of the present disclosure. As shown in fig. 4, the apparatus comprises a memory 40 for storing a computer program;
a processor 41, configured to implement the steps of the information parsing method for the BMC internal device as mentioned in the above embodiments when executing the computer program.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 41 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 41 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 41 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used for storing the computer program 401, wherein after being loaded and executed by the processor 41, the computer program can implement the relevant steps of the information analysis method for the BMC internal device disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 40 may also include an operating system 402, data 403, and the like, and the storage manner may be a transient storage or a permanent storage. Operating system 402 may include, among other things, Windows, Unix, Linux, and the like. Data 403 may include, but is not limited to, data corresponding to test results, and the like.
In some embodiments, the information parsing means of the BMC internal device may further include a display 42, an input/output interface 43, a communication interface 44, a power supply 45, and a communication bus 46.
Those skilled in the art will appreciate that the configuration shown in fig. 4 does not constitute a limitation of the information resolution means of the BMC internal device and may include more or fewer components than those shown, such as sensor 47.
The functions of the functional modules of the information analysis device of the BMC internal device according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the description related to the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention solves the problem that the BMC firmware needs to be updated every time when new equipment is adapted in the related technology, and can ensure that the BMC can analyze the latest equipment information on the basis of not upgrading the BMC firmware.
It is understood that, if the information parsing method of the BMC internal device in the above embodiment is implemented in the form of a software functional unit and sold or used as a separate product, it may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, in which an information analysis program of a BMC internal device is stored, and the steps of the information analysis method of the BMC internal device according to any one of the above embodiments are executed by a processor.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention solves the problem that the BMC firmware needs to be updated every time when new equipment is adapted in the related technology, and can ensure that the BMC can analyze the latest equipment information on the basis of not upgrading the BMC firmware.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The detailed description is given above of an information analysis method, an information analysis device, and a computer-readable storage medium for BMC internal devices provided by the present application. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (9)

1. An information analysis method for BMC internal devices is characterized in that a modification interface of a device information configuration file is set on a BMC in advance, and the method comprises the following steps:
when an equipment information analysis instruction is received, reading the equipment information configuration file to acquire plaintext information of equipment to be analyzed;
when detecting that the configuration file to be updated exists, updating the equipment information configuration file through the modification interface;
the device information configuration file is based on keyword values and comprises first-level data information and second-level data information, the keywords and the values of the first-level data information are respectively equipment manufacturer ID and corresponding plaintext analysis information, and the keywords and the values of the second-level data information are respectively equipment ID and corresponding plaintext analysis information;
wherein, when it is detected that the configuration file to be updated exists, updating the device information configuration file through the modification interface includes:
pre-configuring a webpage address for downloading the equipment information configuration file;
and when detecting that the device information configuration file in the BMC is changed, automatically downloading the updated device information configuration file from the webpage corresponding to the webpage address, and replacing the device information configuration file in the BMC.
2. The method of claim 1, wherein the automatically downloading the updated device information configuration file from the web page corresponding to the web page address comprises:
and remotely downloading the equipment information configuration file from the webpage corresponding to the webpage address based on an ftp file transfer protocol or an sftp file transfer protocol.
3. The method of claim 1, wherein the pre-configuring the web page address for downloading the device information configuration file comprises:
and configuring a uniform resource locator through a redfish interface or an ipmitool interface or a restful interface so as to be used for the BMC to remotely download the equipment information configuration file.
4. The method of claim 3, wherein the detecting of the change of the device information profile within the BMC comprises:
and detecting whether the equipment information configuration file in the BMC is upgraded and changed at regular time according to a preset query frequency.
5. The method of claim 1, wherein the device information configuration file is a json format file, and the updating the device information configuration file through the modification interface when it is detected that the configuration file to be updated exists comprises:
converting the updated equipment information configuration file into a binary form file in advance, and receiving the binary form file uploaded through an ipmitool interface;
and converting the binary file into the json format file, and replacing the device information configuration file in the BMC.
6. The method of claim 1, wherein the device information configuration file is a json format file, and the updating the device information configuration file through the modification interface when it is detected that the configuration file to be updated exists comprises:
and uploading the updated device information configuration file through a redfish interface or a restful interface to replace the device information configuration file inside the BMC.
7. An information analysis device for a BMC internal device, comprising:
the interface configuration module is used for setting a modification interface of the equipment information configuration file on the BMC in advance;
the information analysis module is used for reading the equipment information configuration file to acquire plaintext information of the equipment to be analyzed when an equipment information analysis instruction is received; the device information configuration file is based on keyword values and comprises first-level data information and second-level data information, the keywords and the values of the first-level data information are respectively equipment manufacturer ID and corresponding plaintext analysis information, and the keywords and the values of the second-level data information are respectively equipment ID and corresponding plaintext analysis information;
the information updating module is used for updating the equipment information configuration file through the modification interface when the configuration file to be updated is detected to exist;
wherein the information update module is further configured to: pre-configuring a webpage address for downloading the equipment information configuration file; and when detecting that the equipment information configuration file in the BMC is changed, automatically downloading the updated equipment information configuration file from the webpage corresponding to the webpage address, and replacing the equipment information configuration file in the BMC.
8. An information parsing apparatus for a BMC internal device, comprising a processor for implementing the steps of the information parsing method for a BMC internal device according to any one of claims 1 to 6 when executing a computer program stored in a memory.
9. A computer-readable storage medium, wherein an information resolution program of a BMC internal device is stored on the computer-readable storage medium, and when executed by a processor, the information resolution program of the BMC internal device implements the steps of the information resolution method of the BMC internal device according to any one of claims 1 to 6.
CN202010090748.0A 2020-02-13 2020-02-13 Information analysis method and device for BMC internal device and readable storage medium Active CN111290802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010090748.0A CN111290802B (en) 2020-02-13 2020-02-13 Information analysis method and device for BMC internal device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010090748.0A CN111290802B (en) 2020-02-13 2020-02-13 Information analysis method and device for BMC internal device and readable storage medium

Publications (2)

Publication Number Publication Date
CN111290802A CN111290802A (en) 2020-06-16
CN111290802B true CN111290802B (en) 2022-07-08

Family

ID=71023593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010090748.0A Active CN111290802B (en) 2020-02-13 2020-02-13 Information analysis method and device for BMC internal device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111290802B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463499A (en) * 2020-12-11 2021-03-09 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for adapting external equipment
CN113064788A (en) * 2021-03-10 2021-07-02 山东英信计算机技术有限公司 BMC signal analysis method, system, terminal and storage medium
CN114302427A (en) * 2021-12-23 2022-04-08 锐凌无线通讯科技(深圳)有限公司 Configuration parameter updating method and device and related equipment
CN114968386B (en) * 2022-05-30 2024-09-17 联想(北京)信息技术有限公司 Device information management method, device and equipment of electronic device
CN115967618A (en) * 2022-11-07 2023-04-14 苏州浪潮智能科技有限公司 Multi-project BMC (baseboard management controller) sensor configuration management method and device
CN117148801B (en) * 2023-10-27 2024-02-02 浙江禾川科技股份有限公司 Controller adaptation method, device, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562470A (en) * 2017-08-21 2018-01-09 联想(北京)有限公司 The optimization method and device that a kind of electronic equipment starts
CN109274777A (en) * 2018-12-06 2019-01-25 浪潮电子信息产业股份有限公司 Method, device and equipment for exporting configuration file and readable storage medium
CN110134447A (en) * 2019-04-24 2019-08-16 深圳市国鑫恒宇科技有限公司 The system and method for BMC immediate updating hard disk information based on operating system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562470A (en) * 2017-08-21 2018-01-09 联想(北京)有限公司 The optimization method and device that a kind of electronic equipment starts
CN109274777A (en) * 2018-12-06 2019-01-25 浪潮电子信息产业股份有限公司 Method, device and equipment for exporting configuration file and readable storage medium
CN110134447A (en) * 2019-04-24 2019-08-16 深圳市国鑫恒宇科技有限公司 The system and method for BMC immediate updating hard disk information based on operating system

Also Published As

Publication number Publication date
CN111290802A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN111290802B (en) Information analysis method and device for BMC internal device and readable storage medium
JP6922538B2 (en) API learning
EP3065010B1 (en) Field device commissioning system and method
CA2991150C (en) Multi-stage network discovery
CN113703781B (en) Storage system interface generation method and device, electronic equipment and readable storage medium
CN112729868A (en) Vehicle diagnosis method, device, equipment and medium
CN114866424B (en) Server management method, device, system, electronic equipment and readable storage medium
WO2020123692A2 (en) Internet of things system topology generation
CN114036113A (en) Device management method, device, electronic device and storage medium
CN111694677A (en) Message queue management method, device, terminal and computer-readable storage medium
CN113703792A (en) Firmware remote upgrade test method, device, server and medium
CN114153477A (en) Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card
CN114064079A (en) Packing method and device of algorithm application element, equipment and storage medium
CN111124730B (en) Error positioning method and device of server and computer storage medium
US11501033B2 (en) Model-based systems engineering model conversion with text requirements
CN111475186A (en) Firmware upgrading method, device, equipment and medium based on BMC
KR101728786B1 (en) Component-based dynamic image display system and method using the svg file format
US11574090B2 (en) System and method for simulating field device in industrial plant
CN113849229A (en) Server starting method and device, electronic equipment and readable storage medium
CN111831539B (en) Test method and related product
CN101185062B (en) Automatic updating of variables in a data language
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN104780148A (en) Server, terminal, system and method for document online operation
CN117148801B (en) Controller adaptation method, device, electronic equipment and medium
CN115473803A (en) Network configuration method, device, system and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant