CN115629936A - Method and device for acquiring equipment information and computer readable storage medium - Google Patents

Method and device for acquiring equipment information and computer readable storage medium Download PDF

Info

Publication number
CN115629936A
CN115629936A CN202211214715.8A CN202211214715A CN115629936A CN 115629936 A CN115629936 A CN 115629936A CN 202211214715 A CN202211214715 A CN 202211214715A CN 115629936 A CN115629936 A CN 115629936A
Authority
CN
China
Prior art keywords
information
query
equipment
equipment information
server
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.)
Pending
Application number
CN202211214715.8A
Other languages
Chinese (zh)
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 CN202211214715.8A priority Critical patent/CN115629936A/en
Publication of CN115629936A publication Critical patent/CN115629936A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application provides a method and a device for acquiring equipment information and a computer readable storage medium, wherein the method comprises the following steps: a substrate management controller of a server side inquires equipment information of an equipment side according to a first inquiry mode; under the condition that the equipment information is unsuccessfully inquired according to the first inquiry mode, a substrate management controller of the server side inquires the equipment information of the equipment side according to the second inquiry mode; and under the condition that the equipment information is successfully inquired according to the first inquiry mode or the equipment information is successfully inquired according to the second inquiry mode, the inquired equipment information is stored at the server side. Through the method and the device, the problem that information of each part in the server and the GPU BOX needs to be separately monitored and managed in the related technology, so that labor cost and time cost are high is solved, integrated management of the server and the GPU BOX information is achieved, investment of labor and time cost is reduced, and the effect of objective economic benefit is achieved.

Description

Method and device for acquiring equipment information and computer readable storage medium
Technical Field
The embodiment of the application relates to the field of computers, in particular to a method and a device for acquiring equipment information and a computer-readable storage medium.
Background
With the rise of fields such as big data and AI, the market demand for servers with high computing performance is increasing. This type of server has a strong computing power, which is usually provided by a mounted Graphics Processing Unit (GPU) module, and in terms of structural design, in order to better solve the problems of module heat dissipation and power supply, a GPU is generally placed in a GPU BOX and is individually managed as a computing resource pool. In addition to the GPU module, the GPU BOX includes an independent Baseboard Management Controller (BMC), a power supply, a fan, and a PCIe (Peripheral Component Interconnect Express) device, which all need to be monitored and managed in real time to ensure stable computing performance. For server operation and maintenance personnel, how to conveniently acquire real-time information of each component in the BOX for production and user viewing is very important.
In the related art, each component in the BOX is monitored and managed by an independent BMC in the BOX, but the management method has an obvious disadvantage that management and maintenance are required to be separately performed on the server and the BOX information, which undoubtedly increases the workload of operation and maintenance personnel.
Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring equipment information, and aims to at least solve the technical problems of high labor cost and time cost caused by the fact that information of each component in a server and a GPU BOX needs to be separately monitored and managed in the related technology.
According to an embodiment of the present application, there is provided a method of acquiring device information, including: a substrate management controller of a server side inquires equipment information of an equipment side according to a first inquiry mode; under the condition that the equipment information is unsuccessfully inquired according to the first inquiry mode, a substrate management controller of the server side inquires the equipment information of the equipment side according to the second inquiry mode; and under the condition that the equipment information is successfully inquired according to the first inquiry mode or the equipment information is successfully inquired according to the second inquiry mode, the inquired equipment information is stored at the server side.
Optionally, the querying, by the baseboard management controller of the server, the device information of the device end according to the first query manner includes: the method comprises the steps that a baseboard management controller of a server side sends a first query instruction to a baseboard management controller of an equipment side at intervals of preset time according to a first query mode; and querying the equipment information by using the first query instruction.
Optionally, the first query mode is to perform query through a network, and the second query mode is to perform query through an intelligent platform management bus.
Optionally, the step of storing the queried device information at the server includes: and storing the inquired equipment information into a shared memory of a baseboard management controller of the equipment end.
Optionally, after the server stores the queried device information, the method further includes: generating a second query instruction in a baseboard management controller of the server side; and sending the equipment information stored at the server side to the terminal equipment by using the second query instruction.
Optionally, the first query instruction and the second query instruction are intelligent platform management interface commands.
Optionally, a preset application program interface is set in the baseboard management controller of the server, and after the server stores the queried device information, the method further includes: and sending the equipment information stored in the server to a front-end interface of a substrate management controller of the server for displaying by using a preset application program interface.
According to another embodiment of the present application, there is also provided an apparatus for acquiring device information, including: the first query module is used for querying the equipment information of the equipment terminal according to a first query mode; the second query module is used for querying the equipment information of the equipment terminal according to the second query mode under the condition that the equipment information is unsuccessfully queried according to the first query mode; and the storage module is used for storing the inquired equipment information at the server side under the condition that the equipment information is successfully inquired according to the first inquiry mode or the equipment information is successfully inquired according to the second inquiry mode.
According to a further embodiment of the application, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
According to yet another embodiment of the present application, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the method embodiments described above.
Through the method and the device, the information of each component in the GPU BOX can be synchronized to the server-side BMC in real time, so that the problems of high labor cost and high time cost caused by the fact that the information of each component in the server and the GPU BOX needs to be separately monitored and managed in the related technology can be solved, the integrated management of the information of the server and the GPU BOX is achieved, the investment of labor and time cost is reduced, and the effect of objective economic benefit is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for acquiring device information in an embodiment of the present application;
fig. 2 is a flowchart of a method of obtaining device information according to an embodiment of the present application;
fig. 3 is a block diagram of an apparatus for acquiring device information according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In the related art, each component in the BOX is monitored and managed through an independent BMC in the BOX, management and maintenance are required to be separately carried out on information of the server and the BOX, and the problem of large workload exists. In order to solve the problem, a related solution is provided in the embodiment of the present application to synchronize information of each component in the GPU BOX to the server-side BMC in real time, so that the problem of high labor cost and time cost caused by the need of separately monitoring and managing information of each component in the server and the GPU BOX in the related art can be solved, the integrated management of information of the server and the GPU BOX is achieved, investment of labor and time cost is reduced, and an objective economic benefit effect is achieved, which is described in detail below.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the method running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a method for acquiring device information according to an embodiment of the present application. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the method for acquiring device information in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices via a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet via wireless.
In this embodiment, a method for obtaining device information, which is executed in the mobile terminal described above, is provided, and fig. 2 is a flowchart of a method for obtaining device information according to an embodiment of the present application, where as shown in fig. 2, the flowchart includes the following steps:
step S202, the baseboard management controller of the server side inquires the equipment information of the equipment side according to the first inquiry mode.
The BMC, which is called a Baseboard Management Controller in english, can perform operations such as firmware upgrade and checking of machine devices on a machine in a state where the machine is not powered on. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller as well as RAM for data storage, flash memory for non-volatile data storage.
As an optional embodiment of the present application, the device side is a GPU in a GPU BOX, and may also be other devices such as an intelligent network card.
A GPU, i.e. a graphics processor, also called a display core, a visual processor, and a display chip, is a microprocessor that is dedicated to image and graphics related operations on personal computers, workstations, game machines, and some mobile devices (e.g. tablet computers, smart phones, etc.).
When step S202 is executed, the bmc of the server sends an inquiry instruction to the device according to the first inquiry manner, and after receiving the inquiry instruction, the device returns information that the inquiry instruction needs to inquire to the bmc of the server in response to the inquiry instruction, that is, completes one inquiry. For example, the baseboard management controller at the server end wants to query the operating parameters of the GPU, and with the above method, after receiving the query instruction, the GPU encapsulates the relevant operating parameters into a data packet, and returns the data packet to the baseboard management controller at the server end.
And step S204, under the condition that the equipment information is unsuccessfully inquired according to the first inquiry mode, the baseboard management controller of the server side inquires the equipment information of the equipment side according to the second inquiry mode.
It should be noted that the second query method and the first query method are two different query methods.
In this step, if the server-side board management controller does not receive the device information returned by the device side after exceeding the preset time, it indicates that the query of the device-side information fails. And under the condition that the equipment end is failed to be inquired, the service end base plate management controller continuously adopts another inquiry mode different from the first inquiry mode to inquire the equipment information of the equipment end.
Step S206, under the condition that the equipment information is successfully inquired according to the first inquiry mode or the equipment information is successfully inquired according to the second inquiry mode, the inquired equipment information is stored at the server side.
Through the steps, the information of each component in the GPU BOX can be synchronized to the server-side BMC in real time, so that the problems of high labor cost and time cost caused by the fact that the information of each component in the server and the GPU BOX needs to be separately monitored and managed in the related technology can be solved, the integrated management of the server and the GPU BOX information is achieved, the investment of labor and time cost is reduced, and the effect of objective economic benefit is achieved.
The execution subject of the above steps may be a server, but is not limited thereto.
According to an optional embodiment of the present application, when step S202 is executed, the baseboard management controller at the server side queries the device information at the device side according to a first query manner, and the method is implemented by: the method comprises the steps that a baseboard management controller of a server side sends a first query instruction to a baseboard management controller of an equipment side at intervals of preset time according to a first query mode; and querying the equipment information by using the first query instruction.
As an optional embodiment of the present application, the first query mode is to perform query through a network, and the second query mode is to perform query through an intelligent platform management bus.
The first query command is an IPMI command. IPMI, also called Intelligent Platform Management Interface, is an Intelligent Platform Management Interface, can span different operating systems, firmware and hardware platforms, and can intelligently monitor, control and automatically report back the operating conditions of a large number of servers, so as to reduce the system cost of the servers.
As an optional embodiment, the first query manner may query through a wired network, for example, an ethernet network connected through a network cable; the query can also be performed by means of a wireless network, for example, a WIFI, 4G, 5G network, etc.
The Platform Management bus IPMB is an I2C-based bus, and is called Intelligent Platform Management in english, and can provide standardized interconnection of different boards in a chassis. IPMB is used for BMC communications with peripheral organization management controllers that typically control a particular device, on which IPMI commands are passed.
In this step, the BMC of the server queries the device information of the device side in a polling manner.
In an optional embodiment, in polling of the BMC code at the server side, an IPMI command is sent to the BMC at the GPU BOX side once every 3 seconds (other durations may also be set according to actual situations) in a network manner, and the information of the component of the GPU BOX or the sensor information is acquired through the IPMI command. Under the condition that access to the BMC at the GPU BOX end fails in a network mode, the BMC at the server end sends an IPMI command to the BMC at the GPU BOX end in an Intelligent Platform Management Bus (IPMB) mode so as to acquire information of a component of the GPU BOX end or sensor information.
And the server-side baseboard management controller BMC accesses the GPU BOX terminal BMC in a polling mode at intervals of preset duration so as to realize real-time synchronization of the GPU BOX terminal information as much as possible.
The server side baseboard management controller BMC accesses the GPU BOX side baseboard management controller BMC in a network mode, and accesses the server side baseboard management controller BMC in an intelligent platform management bus IPMB mode under the condition of access failure. By the method, the probability of failure in real-time acquisition of the GPU BOX terminal information can be effectively reduced.
In some optional embodiments of the present application, the queried device information is stored at the server side, and the method is implemented by: and storing the inquired equipment information into a shared memory of a baseboard management controller of the equipment end.
After successfully acquiring the component information managed by the BMC at the GPU BOX end through the IPMI command, storing the component information into a shared memory of a BMC at a server end.
Shared memory (shared memory) is a large memory that can be accessed by different central processing units in a multiprocessor computer system. Shared memory is a method for communication among multiple processes in Unix, and this method is usually used for communication among multiple processes of one program, and in fact, information may also be transferred among multiple programs through shared memory.
It should be noted that, in the case that the component information managed by the BMC at the GPU BOX end is not successfully obtained through the two query methods, the alarm log is recorded and sent to the host computer or the terminal device for related reminding. And inquiring and acquiring information of a GPU BOX end part or sensor information according to the first inquiry mode.
In other optional embodiments of the present application, after the server stores the queried device information, a second query instruction may be further generated in the baseboard management controller of the server; and sending the equipment information stored at the server side to the terminal equipment by using the second query instruction.
In this step, the server-side baseboard management controller BMC adds an IPMI command for acquiring information of the GPU BOX end component in the shared memory, thereby implementing remote management.
In an alternative embodiment, the IPMI command may be used to query the GPU BOX side component information or the sensor information from the shared memory of the server-side board management controller BMC, and then send the queried component information or sensor information to the terminal device.
According to an alternative embodiment of the present application, the first query instruction and the second query instruction are intelligent platform management interface commands.
In another optional embodiment of the present application, a preset application program interface is set in the baseboard management controller at the server side, and after the server side stores the queried device information, the device information stored at the server side is sent to a front-end interface of the baseboard management controller at the server side by using the preset application program interface for displaying.
For the key sensor information, a Restful interface can be added in the BMC of the server end to display the key sensor information on a WEB page of the BMC of the base board management controller of the server end.
Restful is a design style and development mode of network applications, and can use XML format definition or JSON format definition based on HTTP. Restful is suitable for a scene that a mobile internet manufacturer serves as a service interface, the function that a third party OTT calls mobile network resources is realized, and the action type is to add, change and delete the called resources.
The obtained GPU BOX terminal information is stored in the shared memory, the IPMI command and the WEB are used for obtaining data from the shared memory and displaying the data to a user, and the obtained data can be visually displayed to the user, so that the decoupling of data obtaining and calling is realized.
According to the method for acquiring the GPU BOX information in real time, the server-side BMC accesses and acquires the component information managed by the BOX-side BMC in real time based on a network/IPMB mode, and stores the information into the shared memory, and further the information can be visually displayed through an IPMI command or WEB. The method realizes the integrated management of the server and the GPU BOX information, reduces the investment of manpower and time cost, and has objective economic benefit.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
In this embodiment, a device for acquiring device information is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a structure of an apparatus for acquiring device information according to an embodiment of the present application, and as shown in fig. 3, the apparatus includes:
the first query module 30 is configured to query the device information of the device side according to the first query mode.
The BMC, which is called a Baseboard Management Controller in english, can perform operations such as firmware upgrade and checking of machine devices on a machine in a state where the machine is not powered on. Fully implementing IPMI functionality in BMC requires a powerful 16-bit or 32-bit microcontroller as well as RAM for data storage, flash memory for non-volatile data storage.
As an optional embodiment of the present application, the device side is a GPU in the GPU BOX, and may also be other devices such as a smart card.
A GPU, i.e. a graphics processor, also called a display core, a visual processor, and a display chip, is a microprocessor that is dedicated to image and graphics related operations on personal computers, workstations, game machines, and some mobile devices (e.g., tablet computers, smart phones, etc.).
As an optional embodiment, the baseboard management controller at the server sends an inquiry instruction to the device end according to the first inquiry mode, and after receiving the inquiry instruction, the device end returns information that the inquiry instruction needs to inquire to the baseboard management controller at the server end in response to the inquiry instruction, that is, completes one inquiry. For example, the baseboard management controller at the server end wants to query the operating parameters of the GPU, and with the above method, after receiving the query instruction, the GPU encapsulates the relevant operating parameters into a data packet, and returns the data packet to the baseboard management controller at the server end.
The second query module 32 is configured to query the device information of the device end according to the second query mode when the device information is failed to be queried according to the first query mode.
It should be noted that the second query method and the first query method are two different query methods.
In an optional embodiment, if the server-side board management controller does not receive the device information returned by the device side for more than a preset time, it indicates that querying the device-side information fails. And under the condition that the equipment end is failed to be queried, the service end base plate management controller continuously queries the equipment information of the equipment end by adopting another query mode different from the first query mode.
The storage module 34 is configured to store the queried device information at the server side when the device information is successfully queried according to the first query method or the device information is successfully queried according to the second query method.
By the device, the information of each component in the GPU BOX can be synchronized to the BMC at the server end in real time, so that the problems of high labor cost and time cost caused by the fact that the information of each component in the server and the GPU BOX needs to be separately monitored and managed in the related technology can be solved, the integrated management of the information of the server and the GPU BOX is achieved, the investment of labor and time cost is reduced, and the effect of objective economic benefit is achieved.
According to an alternative embodiment of the present application, the first query module 30 comprises: the sending unit is used for sending a first query instruction to a substrate management controller of the equipment end at intervals of preset time according to a first query mode; and the query unit is used for querying the equipment information by using the first query instruction.
As an optional embodiment of the present application, the first query mode is to perform query through a network, and the second query mode is to perform query through an intelligent platform management bus.
The first query command is an IPMI command. IPMI, also called Intelligent Platform Management Interface, is an Intelligent Platform Management Interface, can span different operating systems, firmware and hardware platforms, and can intelligently monitor, control and automatically report back the operating conditions of a large number of servers, so as to reduce the system cost of the servers.
As an optional embodiment, the first query manner may query through a wired network, for example, an ethernet network connected through a network cable; the inquiry can also be performed by means of a wireless network, for example, a WIFI, 4G, 5G network, etc.
The Platform Management bus IPMB is an I2C-based bus, and is called Intelligent Platform Management in english, and can provide standardized interconnection of different boards in a chassis. IPMB is used for BMC communications with peripheral organization management controllers that typically control a particular device, on which IPMI commands are passed.
In this step, the BMC of the server queries the device information of the device in a polling manner.
In an optional embodiment, in the polling of the BMC code at the server side, an IPMI command is sent to the BMC at the GPU BOX side once every 3 seconds (other time lengths may also be set according to actual conditions) in a network manner, and the information of the GPU BOX side component or the sensor information is acquired through the IPMI command. Under the condition that access to the BMC at the GPU BOX end fails in a network mode, the BMC at the server end sends an IPMI command to the BMC at the GPU BOX end in an Intelligent Platform Management Bus (IPMB) mode so as to obtain information of an end component of the GPU BOX or sensor information.
And the server-side baseboard management controller BMC accesses the GPU BOX terminal BMC in a polling mode at intervals of preset duration so as to realize real-time synchronization of the GPU BOX terminal information as much as possible.
And the server-side baseboard management controller BMC accesses the GPU BOX-side baseboard management controller BMC in a network mode, and accesses the server-side baseboard management controller BMC in an IPMB mode under the condition of access failure. By the method, the probability of failure in real-time acquisition of the GPU BOX terminal information is effectively reduced.
In some optional embodiments of the present application, the storage module 34 is configured to store the queried device information in a shared memory of a baseboard management controller on the device side.
After successfully acquiring the component information managed by the BMC at the GPU BOX end through the IPMI command, storing the component information into a shared memory of a BMC at a server end.
Shared memory (shared memory) is a large memory that can be accessed by different central processing units in a multiprocessor computer system. Shared memory is a method for communication among multiple processes in Unix, and this method is usually used for communication among multiple processes of one program, and in fact, information may also be transferred among multiple programs through shared memory.
It should be noted that, in the case that the component information managed by the BMC at the GPU BOX end is not successfully obtained through the two query methods, the alarm log is recorded and sent to the host computer or the terminal device for related reminding. And inquiring and acquiring the information of the terminal component of the GPU BOX or the information of the sensor according to the first inquiry mode.
In other alternative embodiments of the present application, the apparatus further comprises: the first processing module is used for generating a second query instruction in a substrate management controller of the server after the server stores the queried equipment information; and sending the equipment information stored at the server side to the terminal equipment by using the second query instruction.
And adding an IPMI command for acquiring the GPU BOX end part information in the shared memory by the BMC of the server side panel management controller to realize remote management.
In an alternative embodiment, the IPMI command may be used to query the GPU BOX end component information or the sensor information from the shared memory of the server-side baseboard management controller BMC, and then send the queried component information or sensor information to the terminal device.
As an optional embodiment of the present application, the first query instruction and the second query instruction are intelligent platform management interface commands.
According to yet another alternative embodiment of the present application, the above apparatus further comprises: and the second processing module is used for sending the equipment information stored in the server end to a front end interface of a substrate management controller of the server end for displaying by using a preset application program interface after the server end stores the inquired equipment information, wherein the preset application program interface is arranged in the substrate management controller of the server end.
For key sensor information, a Restful interface can be added in the BMC of the server side to display the key sensor information on a WEB page of the BMC of the base plate management controller of the server side.
Restful is a design style and development approach for web applications, and based on HTTP, XML format definition or JSON format definition can be used. Restful is suitable for a scene that a mobile internet manufacturer is used as a service interface, the function that a third party OTT calls mobile network resources is realized, and the action types are to add, change and delete the called resources.
The obtained GPU BOX terminal information is stored in the shared memory, the IPMI command and the WEB are used for obtaining data from the shared memory and displaying the data to a user, and the obtained data can be visually displayed to the user, so that the decoupling of data obtaining and calling is realized.
According to the method for acquiring the GPU BOX information in real time, the server-side BMC accesses and acquires the component information managed by the BOX-side BMC in real time based on a network/IPMB mode, and stores the information into the shared memory, and further the information can be visually displayed through an IPMI command or WEB. The method realizes the integrated management of the server and the GPU BOX information, reduces the investment of manpower and time cost, and has objective economic benefit.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present application further provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
The above-mentioned computer-readable storage medium is for storing a program for executing the functions of: a baseboard management controller of a server side inquires equipment information of an equipment side according to a first inquiry mode; under the condition that the equipment information is unsuccessfully inquired according to the first inquiry mode, a substrate management controller of the server side inquires the equipment information of the equipment side according to a second inquiry mode; and under the condition that the equipment information is successfully inquired according to the first inquiry mode or the equipment information is successfully inquired according to the second inquiry mode, the inquired equipment information is stored at the server side.
Optionally, in this embodiment, the computer-readable storage medium is further configured to store a program for executing the following functions: the method comprises the steps that a baseboard management controller of a server side sends a first query instruction to a baseboard management controller of an equipment side at intervals of preset time according to a first query mode; and querying the equipment information by using the first query instruction.
Optionally, in this embodiment, the computer-readable storage medium is further configured to store a program for executing the following functions: and storing the inquired equipment information into a shared memory of a baseboard management controller of the equipment end.
Optionally, in this embodiment, the computer-readable storage medium is further configured to store a program for executing the following functions: generating a second query instruction in a baseboard management controller of the server side; and sending the equipment information stored at the server side to the terminal equipment by using the second query instruction.
Optionally, in this embodiment, the computer-readable storage medium is further configured to store a program for executing the following functions: and after the server stores the inquired equipment information, the equipment information stored in the server is sent to a front-end interface of the baseboard management controller of the server by using the preset application program interface for displaying.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present application further provide an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any one of the method embodiments described above.
The processor is used for running a program for executing the following functions: a substrate management controller of a server side inquires equipment information of an equipment side according to a first inquiry mode; under the condition that the equipment information is unsuccessfully inquired according to the first inquiry mode, a substrate management controller of the server side inquires the equipment information of the equipment side according to the second inquiry mode; and under the condition that the equipment information is successfully inquired according to the first inquiry mode or the equipment information is successfully inquired according to the second inquiry mode, storing the inquired equipment information at the server side.
Optionally, in this embodiment, the processor is further configured to run a program that performs the following functions: the method comprises the steps that a baseboard management controller of a server side sends a first query instruction to a baseboard management controller of an equipment side at intervals of preset time according to a first query mode; and querying the equipment information by using the first query instruction.
Optionally, in this embodiment, the processor is further configured to run a program that performs the following functions: and storing the inquired equipment information into a shared memory of a baseboard management controller of the equipment end.
Optionally, in this embodiment, the processor is further configured to run a program that performs the following functions: generating a second query instruction in a baseboard management controller of the server side; and sending the equipment information stored at the server side to the terminal equipment by using the second query instruction.
Optionally, in this embodiment, the processor is further configured to run a program that performs the following functions: and after the server stores the inquired equipment information, the equipment information stored in the server is sent to a front end interface of the baseboard management controller of the server for display by using the preset application program interface.
In an exemplary embodiment, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the present application described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing devices, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into separate integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method of obtaining device information, comprising:
a baseboard management controller of a server side inquires equipment information of an equipment side according to a first inquiry mode;
under the condition that the equipment information is unsuccessfully inquired according to the first inquiry mode, the baseboard management controller of the server side inquires the equipment information of the equipment side according to a second inquiry mode;
and under the condition that the equipment information is successfully inquired according to the first inquiry mode or the equipment information is successfully inquired according to the second inquiry mode, storing the inquired equipment information at the server side.
2. The method according to claim 1, wherein the querying, by the baseboard management controller at the server side, the device information at the device side according to the first query manner includes:
the baseboard management controller of the server side sends a first query instruction to the baseboard management controller of the equipment side at intervals of preset time according to the first query mode;
and querying the equipment information by using the first query instruction.
3. The method according to claim 1 or 2,
the first query mode is to perform query through a network, and the second query mode is to perform query through an intelligent platform management bus.
4. The method according to claim 1, wherein storing the queried device information at the server side comprises:
and storing the inquired equipment information into a shared memory of a substrate management controller of the equipment terminal.
5. The method according to claim 2, wherein after the server side stores the queried device information, the method further comprises:
generating a second query instruction in a baseboard management controller of the server side;
and sending the equipment information stored at the server side to terminal equipment by using the second query instruction.
6. The method of claim 5, wherein the first query instruction and the second query instruction are intelligent platform management interface commands.
7. The method according to claim 1, wherein a preset application program interface is provided in the baseboard management controller of the server side, and after the server side stores the queried device information, the method further comprises:
and sending the equipment information stored in the server to a front-end interface of a substrate management controller of the server for displaying by using the preset application program interface.
8. An apparatus for acquiring device information, comprising:
the first query module is used for querying the equipment information of the equipment terminal according to a first query mode;
the second query module is used for querying the equipment information of the equipment terminal according to a second query mode under the condition that the equipment information is unsuccessfully queried according to the first query mode;
and the storage module is used for storing the inquired equipment information at a server side under the condition that the equipment information is successfully inquired according to the first inquiry mode or the equipment information is successfully inquired according to the second inquiry mode.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program when executed by a processor implements the method of acquiring device information of any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of acquiring device information as claimed in any one of claims 1 to 7 when executing the computer program.
CN202211214715.8A 2022-09-30 2022-09-30 Method and device for acquiring equipment information and computer readable storage medium Pending CN115629936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211214715.8A CN115629936A (en) 2022-09-30 2022-09-30 Method and device for acquiring equipment information and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211214715.8A CN115629936A (en) 2022-09-30 2022-09-30 Method and device for acquiring equipment information and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115629936A true CN115629936A (en) 2023-01-20

Family

ID=84905213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211214715.8A Pending CN115629936A (en) 2022-09-30 2022-09-30 Method and device for acquiring equipment information and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115629936A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117992314A (en) * 2024-03-29 2024-05-07 苏州元脑智能科技有限公司 Cabinet fan rotating speed management method and device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117992314A (en) * 2024-03-29 2024-05-07 苏州元脑智能科技有限公司 Cabinet fan rotating speed management method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10333771B2 (en) Diagnostic monitoring techniques for server systems
CN107547589B (en) Data acquisition processing method and device
CN108566290B (en) Service configuration management method, system, storage medium and server
US9619243B2 (en) Synchronous BMC configuration and operation within cluster of BMC
US8458329B2 (en) Data center inventory management using smart racks
CN109218133B (en) Network speed testing system, method, device and computer readable storage medium
CN203439860U (en) Elevator remote control system
CN102081567B (en) Server
CN114675983A (en) Business data processing method and device, storage medium and electronic equipment
CN115629936A (en) Method and device for acquiring equipment information and computer readable storage medium
CN109788251B (en) Video processing method, device and storage medium
CN115543872A (en) Equipment management method and device and computer storage medium
CN113076231A (en) Server application scene setting method, system, terminal and storage medium
CN111352662B (en) Server starting sequence control method, system, terminal and storage medium
CN112600842A (en) Cluster shell method and device, electronic equipment and computer readable storage medium
CN111092774A (en) Configuration method and equipment of acquisition gateway
CN115543746A (en) Graphics processor monitoring method, system and device and electronic equipment
CN105490846A (en) Server virtualization management system and method
US20150188747A1 (en) Cloud-based data center infrastructure management system and method
CN112003727A (en) Multi-node server power supply testing method, system, terminal and storage medium
CN104394023B (en) Failure collection method and system for network insertion terminal
CN113312174A (en) Information query method and device, electronic equipment and container management system
CN111131462A (en) Method for executing terminal instruction through protocol
CN114553870B (en) Data processing method and device based on distributed cluster
CN116015986B (en) Intelligent network card management method and related components

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