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 PDFInfo
- 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
- query
- device information
- server
- information
- management controller
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3024—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3093—Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
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
本申请实施例提供了一种获取设备信息的方法及装置、计算机可读存储介质,其中,该方法包括:服务器端的基板管理控制器按照第一查询方式查询设备端的设备信息;在按照第一查询方式查询设备信息失败的情况下,服务器端的基板管理控制器按照第二查询方式查询设备端的设备信息;在按照第一查询方式查询设备信息成功或者按照第二查询方式查询设备信息成功的情况下,在服务器端存储查询到的设备信息。通过本申请,解决了相关技术中需要分开监控和管理服务器和GPU BOX内各部件的信息,导致人力成本、时间成本较高的问题,进而达到了服务器和GPU BOX信息的一体化管理,减少了人力、时间成本的投入,具有客观的经济效益的效果。
Embodiments of the present application provide a method and device for obtaining device information, and a computer-readable storage medium, wherein the method includes: the baseboard management controller at the server side queries the device information at the device side according to the first query method; In the case of failing to query the device information in the first query method, the baseboard management controller on the server side queries the device information on the device side according to the second query method; Store the queried device information on the server side. This application solves the problem of separate monitoring and management of the information of each component in the server and GPU BOX in related technologies, resulting in high labor and time costs, and then achieves the integrated management of server and GPU BOX information, reducing The investment of manpower and time cost has objective economic benefits.
Description
技术领域technical field
本申请实施例涉及计算机领域,具体而言,涉及一种获取设备信息的方法及装置、计算机可读存储介质。The embodiments of the present application relate to the computer field, and in particular, relate to a method and device for acquiring device information, and a computer-readable storage medium.
背景技术Background technique
随着大数据和AI等领域的兴起,市场对具有高计算性能服务器的需求也越来越大。这种类型的服务器有强大的计算能力,此计算能力通常是由搭载的图形处理器(Graphic Processing Unit,GPU)模组提供,在结构设计上,为了更好地解决模组散热、供电问题,一般会将GPU置于GPU BOX内,作为计算资源池单独管理。GPU BOX内除了GPU模组,还有独立的基板管理控制器(Baseboard Management Controller,BMC)、电源、风扇以及高速串行计算机扩展总线(Peripheral Component Interconnect Express,PCIe)设备,这些部件都需要进行实时监控、管理,以确保计算性能的稳定。对于服务器运维人员来说,如何方便地获取BOX内各部件的实时信息以供生产以及用户查看,十分重要。With the rise of fields such as big data and AI, the market demand for servers with high computing performance is also increasing. This type of server has powerful computing power, which is usually provided by a graphics processing unit (Graphic Processing Unit, GPU) module. In terms of structural design, in order to better solve the problem of heat dissipation and power supply of the module, Generally, the GPU is placed in the GPU BOX and managed separately as a computing resource pool. In addition to the GPU module, the GPU BOX also has an independent Baseboard Management Controller (BMC), power supply, fan, and high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIe) devices, all of which need real-time Monitoring and management to ensure the stability of computing performance. For server operation and maintenance personnel, how to conveniently obtain real-time information of each component in the BOX for production and user viewing is very important.
相关技术中,通过BOX内独立的BMC监控、管理BOX内各部件,但是这种管理方式有一个明显的缺点,对于服务器和BOX信息需要分开进行管理维护,无疑增加了运维人员的工作量。In the related technology, each component in the BOX is monitored and managed through an independent BMC in the BOX, but this management method has an obvious disadvantage. The server and BOX information need to be managed and maintained separately, which undoubtedly increases the workload of the operation and maintenance personnel.
发明内容Contents of the invention
本申请实施例提供了一种获取设备信息的方法及装置,以至少解决相关技术中需要分开监控和管理服务器和GPU BOX内各部件的信息,导致人力成本、时间成本较高的技术问题。The embodiment of the present application provides a method and device for obtaining device information, so as to at least solve the technical problem in the related art that the information of each component in the server and the GPU BOX needs to be monitored and managed separately, resulting in high labor and time costs.
根据本申请的一个实施例,提供了一种获取设备信息的方法,包括:服务器端的基板管理控制器按照第一查询方式查询设备端的设备信息;在按照第一查询方式查询设备信息失败的情况下,服务器端的基板管理控制器按照第二查询方式查询设备端的设备信息;在按照第一查询方式查询设备信息成功或者按照第二查询方式查询设备信息成功的情况下,在服务器端存储查询到的设备信息。According to an embodiment of the present application, a method for obtaining device information is provided, including: the baseboard management controller at the server side queries the device information at the device side according to the first query method; in the case of failing to query the device information according to the first query method , the baseboard management controller on the server side queries the device information on the device side according to the second query method; if 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, the queried device is stored on the server side information.
可选地,服务器端的基板管理控制器按照第一查询方式查询设备端的设备信息,包括:服务器端的基板管理控制器按照第一查询方式每隔预设时间间隔向设备端的基板管理控制器发送第一查询指令;利用第一查询指令查询设备信息。Optionally, the baseboard management controller on the server side queries the device information on the device side according to the first query method, including: the baseboard management controller on the server side sends the first Inquiry instruction: Use the first inquiry instruction to inquire about the device information.
可选地,第一查询方式为通过网络进行查询,第二查询方式为通过智能平台管理总线进行查询。Optionally, the first query method is to query through the network, and the second query method is to query through the intelligent platform management bus.
可选地,在服务器端存储查询到的设备信息,包括:将查询到的设备信息存储至设备端的基板管理控制器的共享内存中。Optionally, storing the queried device information on the server side includes: storing the queried device information in a shared memory of a baseboard management controller on the device side.
可选地,在服务器端存储查询到的设备信息之后,上述方法还包括:在服务器端的基板管理控制器中生成第二查询指令;利用第二查询指令将在服务器端存储的设备信息发送至终端设备。Optionally, after the server end stores the queried device information, the method further includes: generating a second query instruction in the baseboard management controller at the server end; using the second query instruction to send the device information stored at the server end to the terminal equipment.
可选地,第一查询指令和第二查询指令为智能平台管理接口命令。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 at the server side, and after the server side stores the queried device information, the above method further includes: using the preset application program interface to store the device information stored on the server side The front-end interface of the baseboard management controller sent to the server side for display.
根据本申请的另一个实施例,还提供了一种获取设备信息的装置,包括:第一查询模块,用于按照第一查询方式查询设备端的设备信息;第二查询模块,用于在按照第一查询方式查询设备信息失败的情况下,按照第二查询方式查询设备端的设备信息;存储模块,用于在按照第一查询方式查询设备信息成功或者按照第二查询方式查询设备信息成功的情况下,在服务器端存储查询到的设备信息。According to another embodiment of the present application, there is also provided an apparatus for obtaining device information, including: a first query module, configured to query device information at the device end according to the first query method; a second query module, configured to query device information according to the first query method In the case of failure to query the device information in the first query method, query the device information of the device terminal according to the second query method; the storage module is used to query the device information successfully in accordance with the first query method or in the case of success in querying the device information in the second query method , and store the queried device information on the server side.
根据本申请的又一个实施例,还提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,其中,计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is set to execute any one of the above-mentioned method embodiments when running. step.
根据本申请的又一个实施例,还提供了一种电子设备,包括存储器和处理器,存储器中存储有计算机程序,处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, there is also provided an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments .
通过本申请,由于可以将GPU BOX内各部件的信息实时同步至服务器端BMC,因此,可以解决相关技术中需要分开监控和管理服务器和GPU BOX内各部件的信息,导致人力成本、时间成本较高的问题,达到了服务器和GPU BOX信息的一体化管理,减少了人力、时间成本的投入,具有客观的经济效益的效果。Through this application, since the information of each component in the GPU BOX can be synchronized to the server-side BMC in real time, it can solve the need to monitor and manage the information of each component in the server and the GPU BOX separately in related technologies, resulting in relatively high labor costs and time costs. The high problem achieves the integrated management of server and GPU BOX information, reduces the investment of manpower and time costs, and has the effect of objective economic benefits.
附图说明Description of drawings
图1是本申请实施例的一种获取设备信息的方法的移动终端的硬件结构框图;FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for obtaining device information according to an embodiment of the present application;
图2是根据本申请实施例的一种获取设备信息的方法的流程图;FIG. 2 is a flowchart of a method for acquiring device information according to an embodiment of the present application;
图3是根据本申请实施例的一种获取设备信息的装置的结构框图。Fig. 3 is a structural block diagram of an apparatus for acquiring device information according to an embodiment of the present application.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本申请的实施例。Embodiments of the present application will be described in detail below with reference to the drawings and in combination with the embodiments.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
在相关技术中,通过BOX内独立的BMC监控、管理BOX内各部件,对于服务器和BOX信息需要分开进行管理维护,存在工作量较大的问题。为了解决该问题,本申请实施例中提供了相关的解决方案将GPU BOX内各部件的信息实时同步至服务器端BMC,可以解决相关技术中需要分开监控和管理服务器和GPU BOX内各部件的信息,导致人力成本、时间成本较高的问题,达到了服务器和GPU BOX信息的一体化管理,减少了人力、时间成本的投入,具有客观的经济效益的效果,以下详细说明。In the related technology, each component in the BOX is monitored and managed through an independent BMC in the BOX, and the information of the server and the BOX needs to be managed and maintained separately, and there is a problem of a large workload. In order to solve this problem, the embodiment of this application provides a related solution to synchronize the information of each component in the GPU BOX to the server-side BMC in real time, which can solve the need to monitor and manage the information of each component in the server and the GPU BOX separately in related technologies , leading to the problem of high labor cost and time cost, the integrated management of server and GPU BOX information has been achieved, the investment of manpower and time cost has been reduced, and the effect of objective economic benefits has been achieved, which will be described in detail below.
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本申请实施例的一种获取设备信息的方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in the embodiments of the present application may be executed in mobile terminals, computer terminals or similar computing devices. Taking running on a mobile terminal as an example, FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a method for obtaining device information according to an embodiment of the present application. As shown in Figure 1, the mobile terminal may include one or more (only one is shown in Figure 1) processors 102 (processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的获取设备信息的方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
传输设备106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
在本实施例中提供了一种运行于上述移动终端的获取设备信息的方法,图2是根据本申请实施例的一种获取设备信息的方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a method for obtaining device information running on the above-mentioned mobile terminal is provided. FIG. 2 is a flow chart of a method for obtaining device information according to an embodiment of the present application. As shown in FIG. 2 , the process includes Follow the steps below:
步骤S202,服务器端的基板管理控制器按照第一查询方式查询设备端的设备信息。In step S202, the baseboard management controller at the server side queries device information at the device side in a first query manner.
基板管理控制器,即BMC,英文全称为Baseboard Management Controller,可以在机器未开机的状态下,对机器进行固件升级、查看机器设备等一些操作。在BMC中完全实现IPMI功能需要一个功能强大的16位或32位元微控制器以及用于数据存储的RAM、用于非挥发性数据存储的快闪记忆体。Baseboard Management Controller, or BMC, is called Baseboard Management Controller in English. It can upgrade the firmware of the machine, check the machine equipment and other operations when the machine is not powered on. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller with RAM for data storage and flash memory for non-volatile data storage.
作为本申请的一个可选的实施例,上述设备端是GPU BOX内的GPU,也可以是智能网卡等其他设备。As an optional embodiment of the present application, the above-mentioned device end is a GPU in the GPU BOX, and may also be other devices such as an intelligent network card.
GPU,即图形处理器,又称为显示核心、视觉处理器、显示芯片,是一种专门在个人电脑、工作站、游戏机和一些移动设备(如平板电脑、智能手机等)上做图像和图形相关运算工作的微处理器。GPU, that is, a graphics processor, also known as a display core, a visual processor, or a display chip, is a kind of image and graphics processing technology specially designed for personal computers, workstations, game consoles, and some mobile devices (such as tablets, smartphones, etc.). Microprocessor for related computing work.
在执行步骤S202时,服务器端的基板管理控制器按照第一查询方式向设备端发送一个查询指令,设备端接收到该查询指令后,响应于该查询指令,将该查询指令需要查询的信息返回给服务器端的基板管理控制器,即完成了一次查询。例如,服务器端的基板管理控制器想要查询GPU的运行参数,通过上述方法,GPU接收到查询指令后,将相关的运行参数封装到数据包中,返回给服务器端的基板管理控制器。When executing step S202, the baseboard management controller at the server side sends a query command to the device side according to the first query method, and after receiving the query command, the device side responds to the query command and returns the information that needs to be queried by the query command to the The baseboard management controller at the server end completes a query. For example, the baseboard management controller on the server side wants to query the operating parameters of the GPU. Through the above method, after the GPU receives the query command, it encapsulates the relevant operating parameters into a data packet and returns it to the baseboard management controller on the server side.
步骤S204,在按照第一查询方式查询设备信息失败的情况下,服务器端的基板管理控制器按照第二查询方式查询设备端的设备信息。Step S204, in the case of failing to query the device information according to the first query method, the baseboard management controller at the server side queries the device information of the device side according to the second query method.
需要说明的是,第二查询方式与第一查询方式为两种不同的查询方式。It should be noted that the second query mode and the first query mode are two different query modes.
在本步骤中,服务器端基板管理控制器如果超过预设时长没有接收到设备端返回的设备信息,表明查询设备端信息失败。在查询设备端失败的情况下,服务端基板管理控制器继续采用与第一查询方式不同的另一种查询方式查询设备端的设备信息。In this step, if the baseboard management controller at the server side does not receive the device information returned from the device side within a preset period of time, it indicates that the query of the device side information fails. In the case of failure to query the device side, the server-side baseboard management controller continues to use another query method different from the first query method to query the device information of the device side.
步骤S206,在按照第一查询方式查询设备信息成功或者按照第二查询方式查询设备信息成功的情况下,在服务器端存储查询到的设备信息。Step S206, if 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, the queried device information is stored on the server side.
通过上述步骤,由于可以将GPU BOX内各部件的信息实时同步至服务器端BMC,因此,可以解决相关技术中需要分开监控和管理服务器和GPU BOX内各部件的信息,导致人力成本、时间成本较高问题,达到服务器和GPU BOX信息的一体化管理,减少了人力、时间成本的投入,具有客观的经济效益的效果。Through the above steps, since the information of each component in the GPU BOX can be synchronized to the server-side BMC in real time, it can solve the need to monitor and manage the information of the server and each component in the GPU BOX separately in related technologies, resulting in relatively high labor costs and time costs. High problem, achieve the integrated management of server and GPU BOX information, reduce the investment of manpower and time cost, and have the effect of objective economic benefit.
其中,上述步骤的执行主体可以为服务器,但不限于此。Wherein, the execution subject of the above steps may be a server, but is not limited thereto.
根据本申请的一个可选的实施例,执行步骤S202时,服务器端的基板管理控制器按照第一查询方式查询设备端的设备信息,通过以下方法实现:服务器端的基板管理控制器按照第一查询方式每隔预设时间间隔向设备端的基板管理控制器发送第一查询指令;利用第一查询指令查询设备信息。According to an optional embodiment of the present application, when step S202 is executed, the baseboard management controller on the server side queries the device information on the device side according to the first query method, which is realized by the following method: the baseboard management controller on the server side uses the first query method every Sending a first query instruction to the baseboard management controller at the equipment end at preset time intervals; using the first query instruction to query equipment information.
作为本申请的一个可选的实施例,第一查询方式为通过网络进行查询,第二查询方式为通过智能平台管理总线进行查询。As an optional embodiment of the present application, the first query mode is query through the network, and the second query mode is query through the intelligent platform management bus.
上述第一查询指令为IPMI命令。IPMI,英文全称为Intelligent PlatformManagement Interface,为智能平台管理接口,能够横跨不同的操作系统,固件和硬件平台,可以智能的监视、控制和自动回报大量服务器的运作状况,以降低服务器系统成本。The above-mentioned first query command is an IPMI command. IPMI, the English full name is Intelligent Platform Management Interface, which is an intelligent platform management interface, which can span different operating systems, firmware and hardware platforms, and can intelligently monitor, control and automatically report the operation status of a large number of servers to reduce server system costs.
作为一个可选的实施例,上述第一查询方式可以通过有线网络进行查询,例如,通过网线连接的以太网;也可以通过无线网络的方式进行查询,例如,WIFI、4G、5G网络等。As an optional embodiment, the above-mentioned first query method can be queried through a wired network, for example, Ethernet connected through a network cable; it can also be queried through a wireless network, such as WIFI, 4G, 5G network, etc.
平台管理总线IPMB,英文全称为Intelligent Platform Management,是基于I2C的总线,可以提供机箱内不同板子的标准化互联。IPMB是用于BMC与外围组织管理控制器的通信,这些外围组织管理器一般控制特定设备,其上传递的是IPMI命令。Platform management bus IPMB, the English full name is Intelligent Platform Management, is an I2C-based bus that can provide standardized interconnection of different boards in the chassis. IPMB is used for communication between BMC and peripheral organization management controllers. These peripheral organization managers generally control specific devices, and IPMI commands are passed on them.
在本步骤中,服务器端的基板管理控制器BMC通过轮询的方式查询设备端的设备信息。In this step, the baseboard management controller BMC at the server side queries the device information at the device side through polling.
在一个可选的实施例中,在服务器端BMC代码的轮询里,每隔3秒(也可以按照实际情况设定其他时长)通过网络的方式向GPU BOX端BMC发送一次IPMI命令,通过该IPMI命令获取GPU BOX端部件信息或者传感器信息。在通过网络方式访问GPU BOX端BMC失败的情况下,服务器端BMC通过智能平台管理总线(Intelligent Platform Management Bus,IPMB)的方式向GPU BOX端BMC发送IPMI命令,以获取GPU BOX端部件信息或者传感器信息。In an optional embodiment, in the polling of the server-side BMC code, an IPMI command is sent to the GPU BOX side BMC every 3 seconds (other durations can also be set according to actual conditions) through the network, through which The IPMI command obtains the component information or sensor information on the GPU BOX side. In the case of failure to access the BMC on the GPU BOX side through the network, the BMC on the server side sends an IPMI command to the BMC on the GPU BOX side through the Intelligent Platform Management Bus (IPMB) to obtain component information or sensors on the GPU BOX side information.
服务器端基板管理控制器BMC通过间隔预设时长轮询的方式访问GPU BOX端BMC,以尽可能实现GPU BOX端信息的实时同步。The server-side baseboard management controller BMC accesses the GPU BOX-side BMC by polling at intervals of a preset time interval, so as to realize real-time synchronization of GPU BOX-side information as much as possible.
服务器端基板管理控制器BMC通过网络方式访问GPU BOX端基板管理控制器BMC,在访问失败的情况下再以智能平台管理总线IPMB的方式进行访问。通过这种方式可以有效降低GPU BOX端信息实时获取失败的概率。The server-side baseboard management controller BMC accesses the GPU BOX-side baseboard management controller BMC through the network, and then accesses it through the intelligent platform management bus IPMB in the case of an access failure. In this way, the probability of failing to obtain information on the GPU BOX side in real time can be effectively reduced.
在本申请的一些可选的实施例中,在服务器端存储查询到的设备信息,通过以下方法实现:将查询到的设备信息存储至设备端的基板管理控制器的共享内存中。In some optional embodiments of the present application, storing the queried device information on the server side is implemented by the following method: storing the queried device information in the shared memory of the baseboard management controller at the device side.
通过IPMI命令成功获取到GPU BOX端BMC管理的部件信息后,将其存入服务器端基板管理控制器BMC的共享内存中。After successfully obtaining the component information managed by the BMC on the GPU BOX side through the IPMI command, store it in the shared memory of the BMC on the server side.
共享内存(shared memory)在多处理器的计算机系统中,可以被不同中央处理器访问的大容量内存。共享内存是Unix下的多进程之间的通信方法,这种方法通常用于一个程序的多进程间通信,实际上多个程序间也可以通过共享内存来传递信息。Shared memory (shared memory) In a multiprocessor computer system, a large-capacity memory that can be accessed by different central processing units. Shared memory is a communication method between multiple processes under Unix. This method is usually used for multi-process communication of a program. In fact, multiple programs can also pass information through shared memory.
需要说明的是,通过上述两种查询方式均没有成功获取到GPU BOX端BMC管理的部件信息的情况下,记录告警日志,将告警日志发送至上位机或者终端设备,以进行相关提醒。并重新按照上文中的第一查询方式查询获取GPU BOX端部件信息或者传感器信息。It should be noted that if the above two query methods fail to obtain the component information managed by the BMC on the GPU BOX side, record the alarm log and send the alarm log to the host computer or terminal device for relevant reminders. And re-acquire the GPU BOX terminal component information or sensor information according to the first query method above.
在本申请的另一些可选的实施例中,在服务器端存储查询到的设备信息之后,还可以在服务器端的基板管理控制器中生成第二查询指令;利用第二查询指令将在服务器端存储的设备信息发送至终端设备。In other optional embodiments of the present application, after storing the queried device information at the server end, a second query instruction may also be generated in the baseboard management controller at the server end; The device information is sent to the terminal device.
在本步骤中,服务器端基板管理控制器BMC添加获取共享内存中GPU BOX端部件信息的IPMI命令,实现远程管理。In this step, the server-side baseboard management controller BMC adds an IPMI command to obtain the information of the GPU BOX-side components in the shared memory to realize remote management.
在一个可选的实施例中,可以通IPMI命令从服务器端基板管理控制器BMC的共享内存中查询GPU BOX端部件信息或者传感器信息,然后将查询到的部件信息或传感器信息发送至终端设备。In an optional embodiment, the GPU BOX side component information or sensor information can be queried from the shared memory of the server-side baseboard management controller BMC through an IPMI command, and then the queried component information or sensor information is sent to the terminal device.
根据本申请的一个可选的实施例,上述第一查询指令和第二查询指令为智能平台管理接口命令。According to an optional embodiment of the present application, the above-mentioned 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 on the server side, and after storing the queried device information on the server side, using the preset application program interface will The stored device information is sent to the front-end interface of the baseboard management controller on the server side for display.
对于关键传感器信息,还可以通过在服务器端的BMC中添加Restful接口,将其展示到服务器端基板管理控制器BMC的WEB网页上。For key sensor information, it can also be displayed on the WEB page of the server-side baseboard management controller BMC by adding a Restful interface to the server-side BMC.
Restful是一种网络应用程序的设计风格和开发方式,基于HTTP,可以使用XML格式定义或JSON格式定义。Restful适用于移动互联网厂商作为业务接口的场景,实现第三方OTT调用移动网络资源的功能,动作类型为新增、变更、删除所调用资源。Restful is a web application design style and development method, based on HTTP, which can be defined in XML format or JSON format. Restful is suitable for scenarios where mobile Internet manufacturers serve as business interfaces, and realizes the function of third-party OTT calling mobile network resources. The action types are adding, changing, and deleting the called resources.
将获取到的GPU BOX端信息存入共享内存,利用IPMI命令和WEB再从共享内存获取数据呈现给用户,可以将获取的数据直观地展示给用户,从而实现了数据获取与调用的解耦。Store the obtained GPU BOX terminal information into the shared memory, and use IPMI commands and WEB to obtain data from the shared memory and present it to the user. The obtained data can be displayed intuitively to the user, thus realizing the decoupling of data acquisition and calling.
本申请提出的GPU BOX信息实时获取的方法,通过服务器端BMC基于网络/IPMB方式实时访问获取BOX端BMC管理的部件信息,并将这些信息存入共享内存,进一步可以通过IPMI命令或者WEB直观展现出这些信息。这种方式实现了服务器和GPU BOX信息的一体化管理,减少了人力、时间成本的投入,具有客观的经济效益。The method for real-time acquisition of GPU BOX information proposed in this application uses the server-side BMC to access and obtain the component information managed by the BMC of the BOX-side BMC in real-time based on the network/IPMB method, and store the information in the shared memory, which can be further visually displayed through IPMI commands or WEB out this information. This method realizes the integrated management of server and GPU BOX information, reduces the investment of manpower and time costs, and has objective economic benefits.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
在本实施例中还提供了一种获取设备信息的装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an apparatus for acquiring device information is also provided, and the apparatus is used to realize the above-mentioned embodiments and preferred implementation manners, and what has been explained will not be repeated here. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
图3是根据本申请实施例的一种获取设备信息的装置的结构框图,如图3所示,该装置包括:Fig. 3 is a structural block diagram of an apparatus for obtaining device information according to an embodiment of the present application. As shown in Fig. 3, the apparatus includes:
第一查询模块30,用于按照第一查询方式查询设备端的设备信息。The
基板管理控制器,即BMC,英文全称为Baseboard Management Controller,可以在机器未开机的状态下,对机器进行固件升级、查看机器设备等一些操作。在BMC中完全实现IPMI功能需要一个功能强大的16位或32位元微控制器以及用于数据存储的RAM、用于非挥发性数据存储的快闪记忆体。Baseboard Management Controller, or BMC, is called Baseboard Management Controller in English. It can upgrade the firmware of the machine, check the machine equipment and other operations when the machine is not powered on. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller with RAM for data storage and flash memory for non-volatile data storage.
作为本申请的一个可选的实施例,上述设备端是GPU BOX内的GPU,也可以是智能网卡等其他设备。As an optional embodiment of the present application, the above-mentioned device end is a GPU in the GPU BOX, and may also be other devices such as an intelligent network card.
GPU,即图形处理器,又称为显示核心、视觉处理器、显示芯片,是一种专门在个人电脑、工作站、游戏机和一些移动设备(如平板电脑、智能手机等)上做图像和图形相关运算工作的微处理器。GPU, that is, a graphics processor, also known as a display core, a visual processor, or a display chip, is a kind of image and graphics processing technology specially designed for personal computers, workstations, game consoles, and some mobile devices (such as tablets, smartphones, etc.). Microprocessor for related computing work.
作为一个可选的实施例,服务器端的基板管理控制器按照第一查询方式向设备端发送一个查询指令,设备端接收到该查询指令后,响应于该查询指令,将该查询指令需要查询的信息返回给服务器端的基板管理控制器,即完成了一次查询。例如,服务器端的基板管理控制器想要查询GPU的运行参数,通过上述方法,GPU接收到查询指令后,将相关的运行参数封装到数据包中,返回给服务器端的基板管理控制器。As an optional embodiment, the baseboard management controller at the server side sends a query command to the device side according to the first query method, and after receiving the query command, the device side responds to the query command and sends the query command the information that needs to be queried Returning to the baseboard management controller at the server end means that a query is completed. For example, the baseboard management controller on the server side wants to query the operating parameters of the GPU. Through the above method, after the GPU receives the query command, it encapsulates the relevant operating parameters into a data packet and returns it to the baseboard management controller on the server side.
第二查询模块32,用于在按照第一查询方式查询设备信息失败的情况下,按照第二查询方式查询设备端的设备信息。The
需要说明的是,第二查询方式与第一查询方式为两种不同的查询方式。It should be noted that the second query mode and the first query mode are two different query modes.
在一个可选的实施例中,服务器端基板管理控制器如果超过预设时长没有接收到设备端返回的设备信息,表明查询设备端信息失败。在查询设备端失败的情况下,服务端基板管理控制器继续采用与第一查询方式不同的另一种查询方式查询设备端的设备信息。In an optional embodiment, if the baseboard management controller at the server end does not receive the device information returned from the device end within a preset period of time, it indicates that querying the device end information fails. In the case of failure to query the device side, the server-side baseboard management controller continues to use another query method different from the first query method to query the device information of the device side.
存储模块34,用于在按照第一查询方式查询设备信息成功或者按照第二查询方式查询设备信息成功的情况下,在服务器端存储查询到的设备信息。The
通过上述装置,由于可以将GPU BOX内各部件的信息实时同步至服务器端BMC,因此,可以解决相关技术中需要分开监控和管理服务器和GPU BOX内各部件的信息,导致人力成本、时间成本较高问题,达到服务器和GPU BOX信息的一体化管理,减少了人力、时间成本的投入,具有客观的经济效益的效果。Through the above device, since the information of each component in the GPU BOX can be synchronized to the server-side BMC in real time, it can solve the need to monitor and manage the information of the server and each component in the GPU BOX separately in related technologies, resulting in relatively high labor costs and time costs. High problem, achieve the integrated management of server and GPU BOX information, reduce the investment of manpower and time cost, and have the effect of objective economic benefit.
根据本申请的一个可选的实施例,第一查询模块30,包括:发送单元,用于按照第一查询方式每隔预设时间间隔向设备端的基板管理控制器发送第一查询指令;查询单元,用于利用第一查询指令查询设备信息。According to an optional embodiment of the present application, the
作为本申请的一个可选的实施例,第一查询方式为通过网络进行查询,第二查询方式为通过智能平台管理总线进行查询。As an optional embodiment of the present application, the first query mode is query through the network, and the second query mode is query through the intelligent platform management bus.
上述第一查询指令为IPMI命令。IPMI,英文全称为Intelligent PlatformManagement Interface,为智能平台管理接口,能够横跨不同的操作系统,固件和硬件平台,可以智能的监视、控制和自动回报大量服务器的运作状况,以降低服务器系统成本。The above-mentioned first query command is an IPMI command. IPMI, the English full name is Intelligent Platform Management Interface, which is an intelligent platform management interface, which can span different operating systems, firmware and hardware platforms, and can intelligently monitor, control and automatically report the operation status of a large number of servers to reduce server system costs.
作为一个可选的实施例,上述第一查询方式可以通过有线网络进行查询,例如,通过网线连接的以太网;也可以通过无线网络的方式进行查询,例如,WIFI、4G、5G网络等。As an optional embodiment, the above-mentioned first query method can be queried through a wired network, for example, Ethernet connected through a network cable; it can also be queried through a wireless network, such as WIFI, 4G, 5G network, etc.
平台管理总线IPMB,英文全称为Intelligent Platform Management,是基于I2C的总线,可以提供机箱内不同板子的标准化互联。IPMB是用于BMC与外围组织管理控制器的通信,这些外围组织管理器一般控制特定设备,其上传递的是IPMI命令。Platform management bus IPMB, the English full name is Intelligent Platform Management, is an I2C-based bus that can provide standardized interconnection of different boards in the chassis. IPMB is used for communication between BMC and peripheral organization management controllers. These peripheral organization managers generally control specific devices, and IPMI commands are passed on them.
在本步骤中,服务器端的基板管理控制器BMC通过轮询的方式查询设备端的设备信息。In this step, the baseboard management controller BMC at the server side queries the device information at the device side through polling.
在一个可选的实施例中,在服务器端BMC代码的轮询里,每隔3秒(也可以按照实际情况设定其他时长)通过网络的方式向GPU BOX端BMC发送一次IPMI命令,通过该IPMI命令获取GPU BOX端部件信息或者传感器信息。在通过网络方式访问GPU BOX端BMC失败的情况下,服务器端BMC通过智能平台管理总线(Intelligent Platform Management Bus,IPMB)的方式向GPU BOX端BMC发送IPMI命令,以获取GPU BOX端部件信息或者传感器信息。In an optional embodiment, in the polling of the server-side BMC code, an IPMI command is sent to the GPU BOX side BMC every 3 seconds (other durations can also be set according to actual conditions) through the network, through which The IPMI command obtains the component information or sensor information on the GPU BOX side. In the case of failure to access the BMC on the GPU BOX side through the network, the BMC on the server side sends an IPMI command to the BMC on the GPU BOX side through the Intelligent Platform Management Bus (IPMB) to obtain component information or sensors on the GPU BOX side information.
服务器端基板管理控制器BMC通过间隔预设时长轮询的方式访问GPU BOX端BMC,以尽可能实现GPU BOX端信息的实时同步。The server-side baseboard management controller BMC accesses the GPU BOX-side BMC by polling at intervals of a preset time interval, so as to realize real-time synchronization of GPU BOX-side information as much as possible.
服务器端基板管理控制器BMC通过网络方式访问GPU BOX端基板管理控制器BMC,在访问失败的情况下再以IPMB的方式进行访问。通过这种方式有效降低了GPU BOX端信息实时获取失败的概率。The server-side baseboard management controller BMC accesses the GPU BOX-side baseboard management controller BMC through the network, and then accesses through the IPMB in the case of an access failure. In this way, the probability of failure to obtain real-time information on the GPU BOX side is effectively reduced.
在本申请的一些可选的实施例中,存储模块34,用于将查询到的设备信息存储至设备端的基板管理控制器的共享内存中。In some optional embodiments of the present application, the
通过IPMI命令成功获取到GPU BOX端BMC管理的部件信息后,将其存入服务器端基板管理控制器BMC的共享内存中。After successfully obtaining the component information managed by the BMC on the GPU BOX side through the IPMI command, store it in the shared memory of the BMC on the server side.
共享内存(shared memory)在多处理器的计算机系统中,可以被不同中央处理器访问的大容量内存。共享内存是Unix下的多进程之间的通信方法,这种方法通常用于一个程序的多进程间通信,实际上多个程序间也可以通过共享内存来传递信息。Shared memory (shared memory) In a multiprocessor computer system, a large-capacity memory that can be accessed by different central processing units. Shared memory is a communication method between multiple processes under Unix. This method is usually used for multi-process communication of a program. In fact, multiple programs can also pass information through shared memory.
需要说明的是,通过上述两种查询方式均没有成功获取到GPU BOX端BMC管理的部件信息的情况下,记录告警日志,将告警日志发送至上位机或者终端设备,以进行相关提醒。并重新按照上文中的第一查询方式查询获取GPU BOX端部件信息或者传感器信息。It should be noted that if the above two query methods fail to obtain the component information managed by the BMC on the GPU BOX side, record the alarm log and send the alarm log to the host computer or terminal device for relevant reminders. And re-acquire the GPU BOX terminal component information or sensor information according to the first query method above.
在本申请的另一些可选的实施例中,上述装置还包括:第一处理模块,用于在服务器端存储查询到的设备信息之后,在服务器端的基板管理控制器中生成第二查询指令;利用第二查询指令将在服务器端存储的设备信息发送至终端设备。In some other optional embodiments of the present application, the above apparatus further includes: a first processing module, configured to generate a second query instruction in the baseboard management controller at the server end after storing the queried device information at the server end; The device information stored on the server side is sent to the terminal device by using the second query instruction.
服务器端基板管理控制器BMC添加获取共享内存中GPU BOX端部件信息的IPMI命令,实现远程管理。The server-side baseboard management controller BMC adds an IPMI command to obtain the information of the GPU BOX-side components in the shared memory to realize remote management.
在一个可选的实施例中,可以通IPMI命令从服务器端基板管理控制器BMC的共享内存中查询GPU BOX端部件信息或者传感器信息,然后将查询到的部件信息或传感器信息发送至终端设备。In an optional embodiment, the GPU BOX side component information or sensor information can be queried from the shared memory of the server-side baseboard management controller BMC through an IPMI command, and then the queried component information or sensor information is sent 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 optional embodiment of the present application, the above-mentioned device further includes: a second processing module, configured to use a preset application program interface to send the device information stored on the server side after storing the queried device information on the server side The front-end interface of the baseboard management controller at the server side is displayed, wherein the default application program interface is set in the baseboard management controller at the server side.
对于关键传感器信息,还可以通过在服务器端的BMC中添加Restful接口,将其展示到服务器端基板管理控制器BMC的WEB网页上。For key sensor information, it can also be displayed on the WEB page of the server-side baseboard management controller BMC by adding a Restful interface to the server-side BMC.
Restful是一种网络应用程序的设计风格和开发方式,基于HTTP,可以使用XML格式定义或JSON格式定义。Restful适用于移动互联网厂商作为业务接口的场景,实现第三方OTT调用移动网络资源的功能,动作类型为新增、变更、删除所调用资源。Restful is a web application design style and development method, based on HTTP, which can be defined in XML format or JSON format. Restful is suitable for scenarios where mobile Internet manufacturers serve as business interfaces, and realizes the function of third-party OTT calling mobile network resources. The action types are adding, changing, and deleting the called resources.
将获取到的GPU BOX端信息存入共享内存,利用IPMI命令和WEB再从共享内存获取数据呈现给用户,可以将获取的数据直观地展示给用户,从而实现了数据获取与调用的解耦。Store the obtained GPU BOX terminal information into the shared memory, and use IPMI commands and WEB to obtain data from the shared memory and present it to the user. The obtained data can be displayed intuitively to the user, thus realizing the decoupling of data acquisition and calling.
本申请提出的GPU BOX信息实时获取的方法,通过服务器端BMC基于网络/IPMB方式实时访问获取BOX端BMC管理的部件信息,并将这些信息存入共享内存,进一步可以通过IPMI命令或者WEB直观展现出这些信息。这种方式实现了服务器和GPU BOX信息的一体化管理,减少了人力、时间成本的投入,具有客观的经济效益。The method for real-time acquisition of GPU BOX information proposed in this application uses the server-side BMC to access and obtain the component information managed by the BMC of the BOX-side BMC in real-time based on the network/IPMB method, and store the information in the shared memory, which can be further visually displayed through IPMI commands or WEB out this information. This method realizes the integrated management of server and GPU BOX information, reduces the investment of manpower and time costs, and has objective economic benefits.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
本申请的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any one of the above method embodiments when running.
上述计算机可读存储介质用于存储执行以下功能的程序:服务器端的基板管理控制器按照第一查询方式查询设备端的设备信息;在按照第一查询方式查询设备信息失败的情况下,服务器端的基板管理控制器按照第二查询方式查询设备端的设备信息;在按照第一查询方式查询设备信息成功或者按照第二查询方式查询设备信息成功的情况下,在服务器端存储查询到的设备信息。The above-mentioned computer-readable storage medium is used to store a program for performing the following functions: the baseboard management controller at the server side queries the device information at the device side according to the first query method; The controller queries the device information of the device according to the second query method; if 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, the queried device information is stored on the server side.
可选地,在本实施例中,上述计算机可读存储介质还用于存储执行以下功能的程序:服务器端的基板管理控制器按照第一查询方式每隔预设时间间隔向设备端的基板管理控制器发送第一查询指令;利用第一查询指令查询设备信息。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is further used to store a program for performing the following functions: the baseboard management controller at the server end sends the baseboard management controller at the device end every preset time interval according to the first query method sending a first query instruction; using the first query instruction to query device information.
可选地,在本实施例中,上述计算机可读存储介质还用于存储执行以下功能的程序:将查询到的设备信息存储至设备端的基板管理控制器的共享内存中。Optionally, in this embodiment, the computer-readable storage medium is further used to store a program for performing the following function: storing the queried device information in a shared memory of the baseboard management controller at the device end.
可选地,在本实施例中,上述计算机可读存储介质还用于存储执行以下功能的程序:在服务器端的基板管理控制器中生成第二查询指令;利用第二查询指令将在服务器端存储的设备信息发送至终端设备。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is also used to store a program that performs the following functions: generate a second query instruction in the baseboard management controller at the server end; use the second query instruction to store the The device information is sent to the terminal device.
可选地,在本实施例中,上述计算机可读存储介质还用于存储执行以下功能的程序:在服务器端的基板管理控制器中设置有预设应用程序接口,在服务器端存储查询到的设备信息之后,利用预设应用程序接口将在服务器端存储的设备信息发送至服务器端的基板管理控制器的前端界面进行展示。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is also used to store a program that performs the following functions: a preset application program interface is set in the baseboard management controller at the server end, and the queried device is stored at the server end After receiving the information, the device information stored on the server side is sent to the front-end interface of the baseboard management controller on the server side for display by using a preset application program interface.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
本申请的实施例还提供了一种电子设备,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
上述处理器用于运行执行以下功能的程序:服务器端的基板管理控制器按照第一查询方式查询设备端的设备信息;在按照第一查询方式查询设备信息失败的情况下,服务器端的基板管理控制器按照第二查询方式查询设备端的设备信息;在按照第一查询方式查询设备信息成功或者按照第二查询方式查询设备信息成功的情况下,在服务器端存储查询到的设备信息。The above-mentioned processor is used to run a program that performs the following functions: the baseboard management controller on the server side queries the device information on the device side according to the first query method; The second query method queries the device information on the device 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, the queried device information is stored on the server side.
可选地,在本实施例中,上述处理器还用于运行执行以下功能的程序:服务器端的基板管理控制器按照第一查询方式每隔预设时间间隔向设备端的基板管理控制器发送第一查询指令;利用第一查询指令查询设备信息。Optionally, in this embodiment, the above-mentioned processor is further configured to run a program that performs the following functions: the baseboard management controller at the server side sends the first Inquiry instruction: Use the first inquiry instruction to inquire about the device information.
可选地,在本实施例中,上述处理器还用于运行执行以下功能的程序:将查询到的设备信息存储至设备端的基板管理控制器的共享内存中。Optionally, in this embodiment, the above-mentioned processor is further configured to run a program that performs the following function: storing the queried device information in the shared memory of the baseboard management controller at the device end.
可选地,在本实施例中,上述处理器还用于运行执行以下功能的程序:在服务器端的基板管理控制器中生成第二查询指令;利用第二查询指令将在服务器端存储的设备信息发送至终端设备。Optionally, in this embodiment, the above-mentioned processor is also configured to run a program that performs the following functions: generate a second query instruction in the baseboard management controller at the server end; use the second query instruction to query the device information stored at the server sent to the terminal device.
可选地,在本实施例中,上述处理器还用于运行执行以下功能的程序:在服务器端的基板管理控制器中设置有预设应用程序接口,在服务器端存储查询到的设备信息之后,利用预设应用程序接口将在服务器端存储的设备信息发送至服务器端的基板管理控制器的前端界面进行展示。Optionally, in this embodiment, the above-mentioned processor is also configured to run a program that performs the following functions: a preset application program interface is set in the baseboard management controller at the server end, and after the server end stores the queried device information, The device information stored on the server side is sent to the front-end interface of the baseboard management controller on the server side for display by using a preset application program interface.
在一个示例性实施例中,上述电子设备还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details are not repeated in this embodiment.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present application is not limited to any specific combination of hardware and software.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of this application shall be included within the scope of protection of this application.
Claims (10)
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)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117992314A (en) * | 2024-03-29 | 2024-05-07 | 苏州元脑智能科技有限公司 | Cabinet fan speed management method, device, storage medium and electronic equipment |
-
2022
- 2022-09-30 CN CN202211214715.8A patent/CN115629936A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117992314A (en) * | 2024-03-29 | 2024-05-07 | 苏州元脑智能科技有限公司 | Cabinet fan speed management method, device, storage medium and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10333771B2 (en) | Diagnostic monitoring techniques for server systems | |
| CN107302465A (en) | A kind of PCIe Switch servers complete machine management method | |
| CN105573955A (en) | Multi-protocol system management method and system and computer readable medium | |
| CN114003445B (en) | BMC I2C monitoring function test method, system, terminal and storage medium | |
| TW201944272A (en) | System and method for gathering data based on internet of things, readable storage medium | |
| WO2025077279A1 (en) | Server management method, device and apparatus, non-volatile readable storage medium, and electronic device | |
| CN109684038B (en) | Docker service container log processing method and device and electronic equipment | |
| CN111625419A (en) | Log acquisition method, system, equipment and computer readable storage medium | |
| CN115543746A (en) | Graphics processor monitoring method, system and device and electronic equipment | |
| CN108090000A (en) | A kind of method and system for obtaining CPU register informations | |
| CN106961361A (en) | From detection/processing method, apparatus and system | |
| CN115543872A (en) | Equipment management method and device and computer storage medium | |
| CN115629936A (en) | Method and device for acquiring equipment information and computer readable storage medium | |
| CN109788251B (en) | Video processing method, device and storage medium | |
| CN107181606B (en) | Method and apparatus for controlling network nodes | |
| CN111092774A (en) | Configuration method and equipment of acquisition gateway | |
| WO2025138561A1 (en) | Processing method and apparatus for processor information, non-volatile readable storage medium, and electronic device | |
| CN110532150B (en) | Case management method and device, storage medium and processor | |
| CN118033369A (en) | Board card testing method and device, computer equipment and storage medium | |
| CN117251319A (en) | Power failure analysis method and device, electronic equipment and readable storage medium | |
| CN116107836A (en) | Hardware equipment operation monitoring system and method | |
| CN113656378A (en) | A server management method, device and medium | |
| CN118733388A (en) | Server operation monitoring method and device | |
| CN115454776B (en) | A method, device, electronic device and storage medium for acquiring equipment asset information | |
| CN109120422B (en) | Remote server system capable of obtaining hardware information and management method thereof |
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 | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: Building 9, No. 1, Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province, 215000 Applicant after: Suzhou Yuannao Intelligent Technology Co.,Ltd. Address before: Building 9, No. 1, Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province, 215000 Applicant before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |