WO2025200703A1 - Method and apparatus for managing rotational speed of cabinet fan, system, storage medium, and electronic device - Google Patents
Method and apparatus for managing rotational speed of cabinet fan, system, storage medium, and electronic deviceInfo
- Publication number
- WO2025200703A1 WO2025200703A1 PCT/CN2025/070338 CN2025070338W WO2025200703A1 WO 2025200703 A1 WO2025200703 A1 WO 2025200703A1 CN 2025070338 W CN2025070338 W CN 2025070338W WO 2025200703 A1 WO2025200703 A1 WO 2025200703A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information acquisition
- acquisition request
- fan
- information
- target
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/323—Visualisation of programs or trace data
-
- 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
Definitions
- rack-mounted servers offer significant advantages in node integration and management.
- a single computer room contains many rack-mounted servers that require unified management.
- a cabinet fan speed management method, device, system, storage medium, and electronic device are provided.
- the present application provides a cabinet fan speed management method, which is applied to a chassis management controller.
- the method includes: receiving a first information acquisition request sent by a target device, parsing the first information acquisition request, and determining at least one fan identifier indicated by the first information acquisition request; based on the intelligent platform management interface protocol specification, encapsulating the at least one fan identifier into instructions to obtain a second information acquisition request corresponding to the first information acquisition request; and based on the second information acquisition request, acquiring first target information, and feeding back the first target information to the target device through a second information acquisition response; wherein the first information acquisition request is sent by the target device through the representational state transfer interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device through the representational state transfer interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols.
- the present application also provides a cabinet fan speed management device, which is applied to a chassis management controller.
- the device includes: a data transmission module for receiving a first information acquisition request sent by a target device; a data processing module for parsing the first information acquisition request and determining at least one fan identifier indicated by the first information acquisition request; a request processing module for encapsulating at least one fan identifier into instructions based on the intelligent platform management interface protocol specification to obtain a second information acquisition request corresponding to the first information acquisition request; an information acquisition module for obtaining first target information based on the second information acquisition request; and a data transmission module for feeding back the first target information to the target device through a second information acquisition response; wherein the first information acquisition request is sent by the target device through the representational state transfer interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device through the representational state transfer interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and
- the present application also provides a cabinet fan speed management system, which includes a chassis management controller, at least one baseboard management controller connected to the chassis management controller via Ethernet communication, and multiple fans installed on the cabinet; the chassis management controller is used to execute the steps of any of the above-mentioned cabinet fan speed management methods.
- PSoC Programmable System-on-Chip
- MCU microcontroller unit
- PSoC devices allow developers to customize hardware configuration and behavior based on specific application requirements through programming. This allows multiple functions to be implemented on a single chip, reducing the need for external components, simplifying design, and lowering costs.
- the first target information includes: a fan speed corresponding to each fan identifier in at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols.
- the first information acquisition request is a request of the HTTP protocol
- the second information acquisition request is a request of the IPMI protocol.
- the second information acquisition response is: an original equipment manufacturer intelligent platform management interface response (OEM IPMI Response).
- OEM IPMI Response original equipment manufacturer intelligent platform management interface response
- the speed information of multiple fans installed in the cabinet is stored in the shared storage space.
- Step 203b2 Send the OEM IPMI Response to the first process, and convert the OEM IPMI Response into a first information acquisition response through the first process.
- Step 203b3 Send the first information acquisition response to the target device through the Rest interface.
- the first information acquisition response is a Representational State Transfer Hypertext Transfer Protocol response (hereinafter referred to as a Rest Http Response).
- a Rest Http Response Representational State Transfer Hypertext Transfer Protocol response
- the step of converting the OEM IPMI Response into the first information acquisition response through the first process may further include the following step 203b21:
- Step 203b21 parse the OEM IPMI Response to obtain the first target information, and based on the Rest protocol specification, encapsulate the first target information into instructions through the first process to obtain a Rest Http Response corresponding to the OEM IPMI Response.
- the first process is used to convert the response of the IPMI protocol into a response of the HTTP protocol; and the first information acquisition response carries the first target information.
- the first process is further configured to convert the second data acquisition response of the IPMI protocol into a first data acquisition response of the HTTP protocol.
- the chassis management controller (CMC) then sends the first target information to the target device via the first data acquisition response, thereby enabling the target device to query the fan speed information via the REST interface of the chassis management controller (CMC).
- the chassis management controller CMC After receiving the Rest Http Request sent by the target device through the Rest interface, the chassis management controller CMC adds the OEM IPMI Request required by the Rest interface according to the IPMI protocol specification through the first process (i.e., the Rest Over IPMI process).
- the Request value is the fan identifier
- the Response value is the corresponding speed, which is represented by pulse-width modulation (PWM).
- the chassis management controller CMC generates an OEM IPMI command (i.e., the above-mentioned OEM IPMI Request) that encapsulates the Rest HTTP request based on the Rest process module of IPMI, so that the command complies with both the Rest specification and the IPMI specification.
- the second process i.e., the IPMI process
- the second process will obtain the OEM IPMI Request and respond to the required data according to the fan identifier, that is, obtain the PSOC fan data from the shared memory module (i.e., the above-mentioned shared storage space).
- the chassis management controller CMC in order to obtain the fan speed information required by the user, can also adjust the speed of the fan installed on the chassis and store the adjusted speed information in a shared storage space so that the user can query the latest speed information.
- the cabinet fan speed management method provided by one or more embodiments of the present application may further include the following steps 204 and 205:
- Step 204 Obtain the required fan speed calculated by each baseboard management controller BMC from at least one baseboard management controller BMC in communication with the chassis management controller through a second process.
- step 204 may further include the following step 204a:
- Step 204a Send an IPMI data acquisition request to at least one baseboard management controller (BMC) in sequence through the second process, and receive an IPMI data acquisition response fed back by each baseboard management controller (BMC).
- BMC baseboard management controller
- the IPMI data acquisition response includes the required fan speed calculated by the baseboard management controller BMC.
- the PWM speed of each fan is obtained by the chassis management controller (CMC) actively polling the IPMI data of all baseboard management controllers (BMCs).
- the CMC internally establishes an IPMI over LAN session, communicates with each BMC via Ethernet, and obtains BMC node information through IPMI over LAN Request and IPMI over LAN Response.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2024年03月29日提交中国专利局,申请号为202410375499.8,申请名称为“机柜风扇转速管理方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on March 29, 2024, with application number 202410375499.8, and application name “Cabinet fan speed management method, device, storage medium and electronic device”, all contents of which are incorporated by reference into this application.
本申请涉及计算机技术领域,尤其涉及一种机柜风扇转速管理方法、装置、系统、存储介质及电子设备。The present application relates to the field of computer technology, and in particular to a cabinet fan speed management method, device, system, storage medium, and electronic device.
随着用户对服务器性能需求的提高,用户对服务器计算节点的需求数量也越来越多。整体机柜服务器在对节点的集成和管理上,与传统服务器相比具有很大的优势,通常在一个机房中,有很多机柜服务器需要进行统一管理。As users' demands for server performance increase, the number of server computing nodes they need is also increasing. Compared to traditional servers, rack-mounted servers offer significant advantages in node integration and management. Typically, a single computer room contains many rack-mounted servers that require unified management.
在相关技术中,机柜通过机箱管理控制器(Chassis Management Controller,CMC)对机柜上安装的风扇的转速进行控制。但由于机箱管理控制器CMC使用的表述性状态转移(Representational State Transfer,Rest)接口的限制,用户无法通过机柜的Web页面直观的查询到风扇信息。In the prior art, a cabinet uses a chassis management controller (CMC) to control the speed of its fans. However, due to limitations in the Representational State Transfer (REST) interface used by the CMC, users cannot directly query fan information through the cabinet's web interface.
基于此,急需一种机柜风扇转速管理方法,使得用户能够通过机箱管理控制器CMC的Rest接口实时查询机柜上安装的风扇的转速信息。Based on this, a cabinet fan speed management method is urgently needed, which enables users to query the speed information of the fans installed on the cabinet in real time through the Rest interface of the chassis management controller CMC.
根据本申请公开的各种实施例,提供一种机柜风扇转速管理方法、装置、系统、存储介质及电子设备。According to various embodiments disclosed in the present application, a cabinet fan speed management method, device, system, storage medium, and electronic device are provided.
本申请提供一种机柜风扇转速管理方法,应用于机箱管理控制器,该方法包括:接收目标设备发送的第一信息获取请求,并对第一信息获取请求进行解析,确定第一信息获取请求指示的至少一个风扇标识;基于智能平台管理接口协议规范,将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的第二信息获取请求;以及基于第二信息获取请求,获取第一目标信息,并通过第二信息获取响应将第一目标信息反馈至目标设备;其中,第一信息获取请求为目标设备通过机箱管理控制器的表述性状态转移接口发送的;第二信息获取响应为机箱管理控制器通过表述性状态转移接口发送至目标设备的;第一目标信息包括:至少一个风扇标识中每个风扇标识对应的风扇转速;第一信息获取请求与第二信息获取请求为不同协议的请求。The present application provides a cabinet fan speed management method, which is applied to a chassis management controller. The method includes: receiving a first information acquisition request sent by a target device, parsing the first information acquisition request, and determining at least one fan identifier indicated by the first information acquisition request; based on the intelligent platform management interface protocol specification, encapsulating the at least one fan identifier into instructions to obtain a second information acquisition request corresponding to the first information acquisition request; and based on the second information acquisition request, acquiring first target information, and feeding back the first target information to the target device through a second information acquisition response; wherein the first information acquisition request is sent by the target device through the representational state transfer interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device through the representational state transfer interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols.
本申请还提供一种机柜风扇转速管理装置,应用于机箱管理控制器,该装置包括:据传输模块,用于接收目标设备发送的第一信息获取请求;数据处理模块,用于对第一信息获取请求进行解析,确定第一信息获取请求指示的至少一个风扇标识;请求处理模块,用于基于智能平台管理接口智能平台管理接口协议规范,将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的第二信息获取请求;信息获取模块,用于基于第二信息获取请求,获取第一目标信息;以及数据传输模块,还用于通过第二信息获取响应将第一目标信息反馈至目标设备;其中,第一信息获取请求为目标设备通过机箱管理控制器的表述性状态转移接口发送的;第二信息获取响应为机箱管理控制器通过表述性状态转移接口发送至目标设备的;第一目标信息包括:至少一个风扇标识中每个风扇标识对应的风扇转速;第一信息获取请求与第二信息获取请求为不同协议的请求。The present application also provides a cabinet fan speed management device, which is applied to a chassis management controller. The device includes: a data transmission module for receiving a first information acquisition request sent by a target device; a data processing module for parsing the first information acquisition request and determining at least one fan identifier indicated by the first information acquisition request; a request processing module for encapsulating at least one fan identifier into instructions based on the intelligent platform management interface protocol specification to obtain a second information acquisition request corresponding to the first information acquisition request; an information acquisition module for obtaining first target information based on the second information acquisition request; and a data transmission module for feeding back the first target information to the target device through a second information acquisition response; wherein the first information acquisition request is sent by the target device through the representational state transfer interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device through the representational state transfer interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols.
本申请还提供一种机柜风扇转速管理系统,该系统包括机箱管理控制器、与机箱管理控制器通过以太网通讯连接的至少一个基板管理控制器以及机柜上安装的多个风扇;机箱管理控制器用于执行上述任一种机柜风扇转速管理方法的步骤。The present application also provides a cabinet fan speed management system, which includes a chassis management controller, at least one baseboard management controller connected to the chassis management controller via Ethernet communication, and multiple fans installed on the cabinet; the chassis management controller is used to execute the steps of any of the above-mentioned cabinet fan speed management methods.
本申请还提供一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现如上述任一种机柜风扇转速管理方法的步骤。The present application also provides a computer program product, including a computer program/instruction, which, when executed by a processor, implements the steps of any of the above-mentioned cabinet fan speed management methods.
本申请还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行程序时实现如上述任一种机柜风扇转速管理方法的步骤。The present application also provides an electronic device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the program, the steps of any of the above-mentioned cabinet fan speed management methods are implemented.
本申请还提供一种非易失性计算机可读存储介质,其上存储有计算机可读指令,该计算机可读指令被处理器执行时实现如上述任一种机柜风扇转速管理方法的步骤。The present application also provides a non-volatile computer-readable storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are executed by a processor, the steps of any of the above-mentioned cabinet fan speed management methods are implemented.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features and advantages of the present application will become apparent from the description, drawings, and claims.
为了更清楚地说明本申请或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
图1是本申请一个或多个实施例中提供的机柜风扇转速管理系统的结构图;FIG1 is a structural diagram of a cabinet fan speed management system provided in one or more embodiments of the present application;
图2是本申请一个或多个实施例中提供的机柜风扇转速管理方法的流程示意图之一;FIG2 is a flow chart of a cabinet fan speed management method according to one or more embodiments of the present application;
图3是本申请一个或多个实施例中提供的机柜风扇转速管理方法的流程示意图之二;FIG3 is a second flow chart of a cabinet fan speed management method provided in one or more embodiments of the present application;
图4是本申请一个或多个实施例中提供的CMC/BMC网络拓扑图;FIG4 is a CMC/BMC network topology diagram provided in one or more embodiments of the present application;
图5是本申请一个或多个实施例中提供的机柜上计算节点的安装示意图;FIG5 is a schematic diagram of the installation of a computing node on a cabinet provided in one or more embodiments of the present application;
图6是本申请一个或多个实施例中提供的机柜上风扇的安装示意图;FIG6 is a schematic diagram of installing a fan on a cabinet provided in one or more embodiments of the present application;
图7是本申请一个或多个实施例中提供的多机柜网络拓扑图;FIG7 is a multi-cabinet network topology diagram provided in one or more embodiments of the present application;
图8是本申请一个或多个实施例中提供的机柜风扇转速管理方法的流程示意图之三;FIG8 is a third flow chart of a cabinet fan speed management method provided in one or more embodiments of the present application;
图9是本申请一个或多个实施例中提供的机柜风扇转速管理装置的结构示意图;FIG9 is a schematic diagram of the structure of a cabinet fan speed management device provided in one or more embodiments of the present application;
图10是本申请一个或多个实施例中提供的电子设备的结构示意图。FIG10 is a schematic structural diagram of an electronic device provided in one or more embodiments of the present application.
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and/or" in the specification and claims refers to at least one of the connected objects, and the character "/" generally indicates that the objects connected are in an "or" relationship.
以下针对本申请实施例所涉及的专业术语进行详细的描述:The following is a detailed description of the professional terms involved in the embodiments of this application:
机箱管理控制器(Chassis Management Controller,CMC):是用于监控和管理服务器机箱的硬件和软件解决方案,它提供了一个基于浏览器的界面,允许管理员进行资源清点、配置、监控任务、远程开关服务器,并支持对机箱中的服务器和组件事件发出警报。Chassis Management Controller (CMC): is a hardware and software solution for monitoring and managing server chassis. It provides a browser-based interface that allows administrators to perform resource inventory, configuration, monitoring tasks, remotely power on and off servers, and support alerts for server and component events in the chassis.
基板管理控制器(Baseboard Management Controller,BMC):是服务器硬件的一个重要组成部分,负责监控和管理服务器的硬件状态和操作系统。它是一个独立的小型操作系统,集成在主板上的芯片,通过IPMI(智能平台管理接口)协议提供远程管理功能。BMC可以在系统关机时依然工作,支持服务器的远程管理、监控、安装、重启等操作。它还负责记录硬件信息和日志,帮助用户监测服务器的物理健康特征,如温度、电压、风扇工作状态和电源状态等Baseboard Management Controller (BMC): It is an important component of server hardware, responsible for monitoring and managing the server's hardware status and operating system. It is an independent small operating system, a chip integrated on the motherboard, and provides remote management functions through the IPMI (Intelligent Platform Management Interface) protocol. BMC can still work when the system is shut down, supporting remote management, monitoring, installation, restart and other operations of the server. It is also responsible for recording hardware information and logs to help users monitor the physical health characteristics of the server, such as temperature, voltage, fan working status and power status.
智能平台管理接口(Intelligent Platform Management Interface,IPMI):是一种开放标准的硬件管理接口规范。它允许远程监控和管理服务器系统,独立于主操作系统运行。IPMI在服务器的基板管理控制器(BMC)上运行,可以监控服务器的物理健康特征,如温度、电压、风扇工作状态和电源状态等。Intelligent Platform Management Interface (IPMI): An open-standard hardware management interface specification. It allows remote monitoring and management of server systems, independent of the main operating system. IPMI runs on the server's baseboard management controller (BMC) and can monitor the server's physical health characteristics, such as temperature, voltage, fan status, and power supply status.
可编程化系统单芯片(Programmable System-on-Chip,PSoC):它是一种集成了微控制器单元(MCU)和可配置的模拟及数字电路的单片系统。PSoC设备允许开发者根据特定应用需求,通过编程来自定义硬件配置和行为,这样可以在一个芯片上实现多种功能,从而减少外部组件的需求,简化设计并降低成本。Programmable System-on-Chip (PSoC): A single-chip system that integrates a microcontroller unit (MCU) with configurable analog and digital circuits. PSoC devices allow developers to customize hardware configuration and behavior based on specific application requirements through programming. This allows multiple functions to be implemented on a single chip, reducing the need for external components, simplifying design, and lowering costs.
表述性状态转移(Representational State Transfer,Rest)接口:是一种基于超文本传输协议(Hypertext Transfer Protocol,HTTP)的网络架构风格。它定义了一组规则,使得Web服务能够通过标准的HTTP方法(如GET、POST、PUT、DELETE)来处理资源的状态转换。REST接口的核心概念包括资源(通过URI标识)、统一接口(HTTP方法)和无状态交互。Representational State Transfer (REST) is a network architecture style based on the Hypertext Transfer Protocol (HTTP). It defines a set of rules that enable web services to handle resource state transitions using standard HTTP methods (such as GET, POST, PUT, and DELETE). The core concepts of REST include resources (identified by URIs), a uniform interface (HTTP methods), and stateless interactions.
针对相关技术中,用户无法通过机箱管理控制器CMC的Rest接口对机柜上安装的风扇的转速进行实时监控的技术问题,本申请一个或多个实施例提供了一种机柜风扇转速管理系统的系统架构,以及对应的机柜风扇转速管理方法,如图1所示,该系统包括:用于通过机箱管理控制器CMC的Web页面对对机柜上安装的风扇的转速进行实时监控的目标设备,该目标设备通过机箱管理控制器CMC的表述性状态转移接口(以下称为Rest接口)与机箱管理控制器CMC通讯连接;以及与机箱管理控制器CMC通过以太网通讯连接的至少一个基板管理控制器BMC;以及机柜上安装的多个风扇。In response to the technical problem in the related art that users cannot monitor the rotation speed of fans installed on the cabinet in real time through the Rest interface of the chassis management controller CMC, one or more embodiments of the present application provide a system architecture of a cabinet fan speed management system, and a corresponding cabinet fan speed management method. As shown in Figure 1, the system includes: a target device for monitoring the rotation speed of fans installed on the cabinet in real time through the web page of the chassis management controller CMC, the target device being communicated with the chassis management controller CMC through the representational state transfer interface (hereinafter referred to as the Rest interface) of the chassis management controller CMC; and at least one baseboard management controller BMC connected to the chassis management controller CMC through Ethernet communication; and multiple fans installed on the cabinet.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的机柜风扇转速管理方法进行详细地说明。The cabinet fan speed management method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
如图2所示,本申请实施例提供的一种机柜风扇转速管理方法,该方法应用于机箱管理控制器,可以包括下述步骤201至步骤203:As shown in FIG2 , an embodiment of the present application provides a cabinet fan speed management method, which is applied to a chassis management controller and may include the following steps 201 to 203:
步骤201、接收目标设备发送的第一信息获取请求,并对第一信息获取请求进行解析,确定第一信息获取请求指示的至少一个风扇标识。Step 201: Receive a first information acquisition request sent by a target device, parse the first information acquisition request, and determine at least one fan identifier indicated by the first information acquisition request.
其中,第一信息获取请求为目标设备通过机箱管理控制器的Rest接口发送的。The first information acquisition request is sent by the target device through the Rest interface of the chassis management controller.
示例性地,当使用目标设备的用户想要查询机柜上安装的多个风扇中一个或者多个风扇的转速信息时,目标设备可以向机箱管理控制器CMC发送第一信息获取请求。由于目标设备与机箱管理控制器CMC通过机箱管理控制器CMC的Rest接口进行通讯连接,因此,该第一信息获取请求为表述性状态转移超文本传输协议请求(以下称为Rest Http Request)。For example, when a user of a target device wants to query the speed information of one or more fans installed in a cabinet, the target device may send a first information acquisition request to the chassis management controller (CMC). Because the target device and the chassis management controller (CMC) communicate via the CMC's REST interface, the first information acquisition request is a Representational State Transfer Hypertext Transfer Protocol (REST Http Request).
示例性地,由于机箱管理控制器CMC通过基于IPMI协议创建的IPMI进程与基板管理控制器BMC进行通讯,该IPMI进程不兼容Rest协议。因此,为了能够使得IPMI进程正确的识别出目标设备的所要查询的信息类型,需要对第一信息获取请求进行协议转换。For example, since the chassis management controller (CMC) communicates with the baseboard management controller (BMC) via an IPMI process created based on the IPMI protocol, which is not compatible with the REST protocol, protocol conversion is required for the first information acquisition request in order to enable the IPMI process to correctly identify the type of information to be queried by the target device.
具体地,上述步骤201,还可以包括以下步骤201a1和步骤201a2:Specifically, the above step 201 may further include the following steps 201a1 and 201a2:
步骤201a1、接收目标设备通过Rest接口发送的Rest Http Request,并对Rest Http Request进行解析,得到目标参数信息。Step 201a1: Receive the Rest Http Request sent by the target device through the Rest interface, and parse the Rest Http Request to obtain the target parameter information.
步骤201a2、基于目标参数信息,确定至少一个风扇标识。Step 201a2: Determine at least one fan identifier based on the target parameter information.
示例性地,在本申请实施例中,机箱管理控制器CMC的前端为Rest接口,无法直接访问到底层的硬件数据。Rest是一种开放的行业标准规范和架构,利用JAVASCRIPT对象表示法(“JSON”)和开放数据协议(“OData”)将管理解决方案集成到现有工具链中。Rest HTTP请求中的管理数据可以使用基于OData的JSON格式表示。For example, in an embodiment of the present application, the front end of the chassis management controller (CMC) is a REST interface that cannot directly access the underlying hardware data. REST is an open industry standard specification and architecture that uses JavaScript Object Notation (JSON) and the Open Data Protocol (OData) to integrate management solutions into existing tool chains. Management data in a REST HTTP request can be represented using the OData-based JSON format.
需要说明的是,本申请实施例中,可以通过JSON格式的数据进行风扇数据的发送和获取。例如,以JSON数组FanInfo:[fan1,pwm1;fan2,pwm2…fan10,pwm10]为例,表示风扇fan1的转速为pwm1,风扇fan2的转速为pwm2,以此类推,风扇fan10的转速为pwm10。It should be noted that in the embodiments of the present application, fan data can be sent and retrieved using JSON formatted data. For example, taking the JSON array FanInfo:[fan1,pwm1;fan2,pwm2…fan10,pwm10] as an example, it indicates that the speed of fan 1 is pwm1, the speed of fan 2 is pwm2, and so on, the speed of fan 10 is pwm10.
步骤202、基于智能平台管理接口IPMI协议规范,将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的第二信息获取请求。Step 202: Based on the Intelligent Platform Management Interface (IPMI) protocol specification, encapsulate at least one fan identifier into a command to obtain a second information acquisition request corresponding to the first information acquisition request.
示例性地,由于协议的不同,需要将HTTP协议的第一信息获取请求转换为IPMI协议的第二信息获取请求。该第二信息获取请求为:原始设备制造商智能平台管理接口请求OEM IPMI Request。For example, due to differences in protocols, it is necessary to convert the first information acquisition request of the HTTP protocol into a second information acquisition request of the IPMI protocol. The second information acquisition request is: Original Equipment Manufacturer Intelligent Platform Management Interface Request OEM IPMI Request.
具体地,上述步骤202,可以包括以下步骤202a:Specifically, the above step 202 may include the following steps 202a:
步骤202a、基于智能平台管理接口协议(以下称为IPMI协议)规范,通过第一进程将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的原始设备制造商智能平台管理接口请求(以下称为OEM IPMI Request)。Step 202a: Based on the Intelligent Platform Management Interface Protocol (hereinafter referred to as IPMI protocol) specification, at least one fan identifier is encapsulated into an instruction through a first process to obtain an original equipment manufacturer intelligent platform management interface request (hereinafter referred to as OEM IPMI Request) corresponding to the first information acquisition request.
其中,第一进程用于将HTTP协议的请求转换为IPMI协议的请求;第二信息获取请求中携带有至少一个风扇标识。The first process is used to convert an HTTP protocol request into an IPMI protocol request; and the second information acquisition request carries at least one fan identifier.
示例性地,本申请实施例中,可以在机箱管理控制器CMC中设置一个第一进程,用于不同协议的请求之间的转换,以便将HTTP协议的第一信息获取请求转换为IPMI协议的第二信息获取请求。之后,IPMI进程便可以基于该第二信息获取请求进行风扇转速的查询。For example, in an embodiment of the present application, a first process can be set up in the chassis management controller (CMC) to convert requests of different protocols, so as to convert a first information acquisition request of the HTTP protocol into a second information acquisition request of the IPMI protocol. The IPMI process can then query the fan speed based on the second information acquisition request.
步骤203、基于第二信息获取请求,获取第一目标信息,并通过第二信息获取响应将第一目标信息反馈至目标设备。Step 203: Based on the second information acquisition request, the first target information is acquired, and the first target information is fed back to the target device through a second information acquisition response.
其中,第二信息获取响应为机箱管理控制器通过Rest接口发送至目标设备的。The second information acquisition response is sent by the chassis management controller to the target device through the Rest interface.
其中,第一目标信息包括:至少一个风扇标识中每个风扇标识对应的风扇转速;第一信息获取请求与第二信息获取请求为不同协议的请求。第一信息获取请求为HTTP协议的请求,第二信息获取请求为IPMI协议的请求。The first target information includes: a fan speed corresponding to each fan identifier in at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols. The first information acquisition request is a request of the HTTP protocol, and the second information acquisition request is a request of the IPMI protocol.
具体地,上述步骤203中基于第二信息获取请求,获取第一目标信息的步骤,还可以包括以下步骤203a:Specifically, the step of acquiring the first target information based on the second information acquisition request in the above step 203 may further include the following step 203a:
步骤203a、将第二信息获取请求转发至第二进程,通过第二进程基于第二信息获取请求从共享存储空间中获取第一目标信息。Step 203a: forward the second information acquisition request to the second process, and obtain the first target information from the shared storage space based on the second information acquisition request through the second process.
其中,共享存储空间中存储有机箱管理控制器所管理的多个风扇的当前转速信息;第二进程为智能平台管理接口IPMI进程。The shared storage space stores current rotation speed information of multiple fans managed by the chassis management controller; and the second process is an intelligent platform management interface IPMI process.
示例性地,第二信息获取响应为:原始设备制造商智能平台管理接口响应(OEM IPMI Response)。机柜上安装的多个风扇的转速信息存储在共享存储空间中。Exemplarily, the second information acquisition response is: an original equipment manufacturer intelligent platform management interface response (OEM IPMI Response). The speed information of multiple fans installed in the cabinet is stored in the shared storage space.
具体地,上述步骤203中,通过第二信息获取响应将第一目标信息反馈至目标设备的步骤,还可以包括以下步骤203b1至步骤203b3:Specifically, in the above step 203, the step of feeding back the first target information to the target device through the second information acquisition response may further include the following steps 203b1 to 203b3:
步骤203b1、基于智能平台管理接口协议规范,将第一目标信息进行指令封装,得到与OEM IPMI Request对应的原始设备制造商智能平台管理接口响应(以下称为OEM IPMI Response)。Step 203b1: Based on the intelligent platform management interface protocol specification, the first target information is encapsulated into instructions to obtain the original equipment manufacturer intelligent platform management interface response corresponding to the OEM IPMI Request (hereinafter referred to as OEM IPMI Response).
步骤203b2、将OEM IPMI Response发送至第一进程,并通过第一进程将OEM IPMI Response转换为第一信息获取响应。Step 203b2: Send the OEM IPMI Response to the first process, and convert the OEM IPMI Response into a first information acquisition response through the first process.
步骤203b3、将第一信息获取响应通过Rest接口发送至目标设备。Step 203b3: Send the first information acquisition response to the target device through the Rest interface.
示例性地,上述第一信息获取响应为:表述性状态转移超文本传输协议响应(以下称为Rest Http Response)。IPMI进程基于OEM IPMI Request进程相关风扇的转速信息查询后,便可以将查询到的转速信息通过Rest Http Response反馈至目标设备。Exemplarily, the first information acquisition response is a Representational State Transfer Hypertext Transfer Protocol response (hereinafter referred to as a Rest Http Response). After the IPMI process queries the fan speed information related to the OEM IPMI Request process, it can feed the queried speed information back to the target device via a Rest Http Response.
具体地,上述步骤203b2中,通过第一进程将OEM IPMI Response转换为第一信息获取响应的步骤,还可以包括以下步骤203b21:Specifically, in the above step 203b2, the step of converting the OEM IPMI Response into the first information acquisition response through the first process may further include the following step 203b21:
步骤203b21、对OEM IPMI Response进行解析,得到第一目标信息,并基于Rest协议规范,通过第一进程将第一目标信息进行指令封装,得到与OEM IPMI Response对应的Rest Http Response。Step 203b21: parse the OEM IPMI Response to obtain the first target information, and based on the Rest protocol specification, encapsulate the first target information into instructions through the first process to obtain a Rest Http Response corresponding to the OEM IPMI Response.
其中,第一进程用于将IPMI协议的响应转换为HTTP协议的响应;第一信息获取响应中携带有第一目标信息。The first process is used to convert the response of the IPMI protocol into a response of the HTTP protocol; and the first information acquisition response carries the first target information.
示例性地,上述第一进程还用于将IPMI协议的第二数据获取响应转换为HTTP协议的第一数据获取响应。之后,机箱管理控制器CMC通过该第一数据获取响应将第一目标信息发送至目标设备,从而实现目标设备通过机箱管理控制器CMC的Rest接口查询风扇转速信息的技术效果。Exemplarily, the first process is further configured to convert the second data acquisition response of the IPMI protocol into a first data acquisition response of the HTTP protocol. The chassis management controller (CMC) then sends the first target information to the target device via the first data acquisition response, thereby enabling the target device to query the fan speed information via the REST interface of the chassis management controller (CMC).
举例说明,如图3所示,为本申请一个或多个实施例提供的机柜风扇转速管理方法的详细流程示意图。机箱管理控制器CMC在接收到目标设备通过Rest接口发送的Rest Http Request,之后,通过第一进程(即Rest Over IPMI进程)根据IPMI协议规范新增Rest接口所需的OEM IPMI Request。其中,Request值为风扇标识,Response值为对应的转速,通过脉冲宽度调制(Pulse-width modulation,pwm)来表示。机箱管理控制器CMC基于IPMI的Rest进程模块生成封装Rest HTTP请求的OEM IPMI命令(即上述OEM IPMI Request),使得该命令既符合Rest的规范亦符合IPMI规范。之后,第二进程(即IPMI进程)将获取到OEM IPMI Request,根据风扇标识响应所需数据,即从共享内存模块(即上述共享存储空间)中获取PSOC风扇数据。For example, as shown in FIG3 , a detailed flow chart of the cabinet fan speed management method provided by one or more embodiments of the present application is provided. After receiving the Rest Http Request sent by the target device through the Rest interface, the chassis management controller CMC adds the OEM IPMI Request required by the Rest interface according to the IPMI protocol specification through the first process (i.e., the Rest Over IPMI process). Among them, the Request value is the fan identifier, and the Response value is the corresponding speed, which is represented by pulse-width modulation (PWM). The chassis management controller CMC generates an OEM IPMI command (i.e., the above-mentioned OEM IPMI Request) that encapsulates the Rest HTTP request based on the Rest process module of IPMI, so that the command complies with both the Rest specification and the IPMI specification. Afterwards, the second process (i.e., the IPMI process) will obtain the OEM IPMI Request and respond to the required data according to the fan identifier, that is, obtain the PSOC fan data from the shared memory module (i.e., the above-mentioned shared storage space).
可选地,在本申请一个或多个实施例中,为了能够获取到用户所需的风扇转速信息,机箱管理控制器CMC还可以对机箱上安装的风扇进行转速调整,并将调整后的转速信息存储到共享存储空间中,以便用户能够查询到最新的转速信息。Optionally, in one or more embodiments of the present application, in order to obtain the fan speed information required by the user, the chassis management controller CMC can also adjust the speed of the fan installed on the chassis and store the adjusted speed information in a shared storage space so that the user can query the latest speed information.
示例性地,上述步骤203之前,本申请一个或多个实施例提供的机柜风扇转速管理方法,还可以包括以下步骤204和步骤205:For example, before step 203, the cabinet fan speed management method provided by one or more embodiments of the present application may further include the following steps 204 and 205:
步骤204、通过第二进程从与机箱管理控制器通讯连接的至少一个基板管理控制器BMC中获取每个基板管理控制器BMC所计算出的所需风扇转速。Step 204 : Obtain the required fan speed calculated by each baseboard management controller BMC from at least one baseboard management controller BMC in communication with the chassis management controller through a second process.
具体地,上述步骤204,还可以包括以下步骤204a:Specifically, the above step 204 may further include the following step 204a:
步骤204a、通过第二进程依次向至少一个基板管理控制器BMC发送IPMI数据获取请求,并接收每个基板管理控制器BMC反馈的IPMI数据获取响应。Step 204a: Send an IPMI data acquisition request to at least one baseboard management controller (BMC) in sequence through the second process, and receive an IPMI data acquisition response fed back by each baseboard management controller (BMC).
其中,IPMI数据获取响应中包含基板管理控制器BMC计算出的所需风扇转速。The IPMI data acquisition response includes the required fan speed calculated by the baseboard management controller BMC.
举例说明,如图3所示,每个风扇的转速(pwm)是机箱管理控制器CMC主动轮询所有基板管理控制器BMC的IPMI数据获取到的。机箱管理控制器CMC内部创建IPMI over Lan的对话session,通过以太网和每个基板管理控制器BMC通信,通过IPMI over Lan Request以及IPMI over Lan Response获取基板管理控制器BMC的节点信息。For example, as shown in Figure 3, the PWM speed of each fan is obtained by the chassis management controller (CMC) actively polling the IPMI data of all baseboard management controllers (BMCs). The CMC internally establishes an IPMI over LAN session, communicates with each BMC via Ethernet, and obtains BMC node information through IPMI over LAN Request and IPMI over LAN Response.
步骤205、将风扇转速最大值确定为机柜中所安装的多个风扇中每个风扇的转速。Step 205: Determine the maximum fan speed as the speed of each fan among the multiple fans installed in the cabinet.
其中,风扇转速最大值为:至少一个基板管理控制器BMC所计算出的多个所需风扇转速中所需风扇转速最大值;机柜中所安装的风扇的数量大于或者等于预设最小风扇数量。The maximum fan speed is: the maximum required fan speed among multiple required fan speeds calculated by at least one baseboard management controller BMC; the number of fans installed in the cabinet is greater than or equal to the preset minimum number of fans.
步骤206、基于多个风扇中每个风扇的转速,通过可编程化系统单芯片PSOC控制每个风扇的转速,并将每个风扇的转速信息存储到共享存储空间中。Step 206 : Based on the rotation speed of each fan among the multiple fans, control the rotation speed of each fan through a programmable system on a chip (PSOC), and store the rotation speed information of each fan in a shared storage space.
基于图3,如图4所示,为本申请一个或多个实施例提供的CMC/BMC网络拓扑图。机箱管理控制器通过本地局域网(Local Area Network,Lan)与多个基板管理控制器BMC通信连接。基板管理控制器BMC内部根据散热策略通过传感器算出来当前基板管理控制器BMC所需的风扇转速(pwm),机箱管理控制器CMC汇总所有基板管理控制器BMC传来的pwm,根据风扇、节点在位情况计算出所需的每个风扇的pwm,将该数据存储在共享内存模块中(数据通信方式不限于共享内存、管道等等方式),并同时通过PSOC控制实际的风扇转速。对于单机柜本身整体实现:基板管理控制器BMC实时更新自身pwm,机箱管理控制器CMC实时更新整机柜风扇对应的pwm并存储在共享内存中。当用户打开WebUI来监控风扇信息时,通过web->rest->rest over ipmi->cmc ipmi->bmc ipmi的流程完整且准确的获取了风扇的信息。Based on Figure 3, Figure 4 shows a CMC/BMC network topology diagram for one or more embodiments of the present application. The chassis management controller communicates with multiple baseboard management controllers (BMCs) via a local area network (LAN). Based on the cooling strategy, the BMC uses sensors to calculate the fan speed (PWM) required by the current BMC. The CMC aggregates the PWMs sent from all BMCs and calculates the required PWM for each fan based on the fan and node availability. This data is stored in a shared memory module (data communication methods are not limited to shared memory, pipes, etc.), and the actual fan speed is simultaneously controlled by the PSOC. For the overall implementation of a single cabinet, the BMC updates its own PWM in real time, and the CMC updates the PWMs corresponding to the entire cabinet's fans in real time and stores them in shared memory. When a user opens the WebUI to monitor fan information, the fan information is fully and accurately obtained through the process of web->rest->rest over ipmi->cmc ipmi->bmc ipmi.
在一种可能的实现方式中,机柜上的计算节点可以按照如图5所示的安装方式进行安装,以达到最佳的散热效果。如图5所示,机柜支持全宽计算节点和半宽计算节点混插。混插的原则是先全宽后半宽,先下后上,先左后右。即,有全宽的情况,必须把全宽节点放下面,有部分半宽必须把左边一半放满再放右边。若全部放全宽节点,总共可以放8个。若全部放半宽节点,总共可以放16个。In one possible implementation, compute nodes on the cabinet can be installed as shown in Figure 5 to achieve optimal heat dissipation. As shown in Figure 5, the cabinet supports a mixed insertion of full-width and half-width compute nodes. The principle of mixed insertion is to insert full-width nodes first, then half-width nodes, bottom first, then top, and left first, then right. That is, if there are full-width nodes, the full-width nodes must be placed at the bottom; if there are half-width nodes, the left half must be filled first, then the right half. If all full-width nodes are placed, a total of 8 nodes can be placed. If all half-width nodes are placed, a total of 16 nodes can be placed.
在机箱的中背板有槽位空间位置的通用输入/输出(General Purpose Input Output,GPIO)信号,该信号正常是高电平,某个槽位插入节点后该GPIO变为低电平,机箱管理控制器CMC可知该节点是否在位,若在位Web的界面该节点会颜色不同且鼠标移至该处可显示“查看详情”,机箱管理控制器CMC通过IPMI协议与基板管理控制器BMC通信,监控每个节点的信息。节点类型信息储存在基板管理控制器BMC内,机箱管理控制器CMC通过节点上的基板管理控制器BMC获取节点类型。The chassis' midplane has a General Purpose Input/Output (GPIO) signal corresponding to the slot space. Normally, this signal is high. When a node is inserted into a slot, the GPIO signal goes low. The Chassis Management Controller (CMC) determines whether the node is present. If so, the node's color changes to a different color on the web interface, and "View Details" appears when you hover your mouse over it. The CMC communicates with the Baseboard Management Controller (BMC) via the IPMI protocol to monitor each node. Node type information is stored in the BMC, and the CMC obtains the node type from the BMC on the node.
如图6所示,本申请一个或多个实施例中的机柜可以支持10个风扇,风扇的顺序为从左到右,从下到上。在位信息同样有GPIO信号监控,机箱管理控制器CMC通过PSOC监控风扇转速信息,并需要将实时风扇信息显示在机箱管理控制器CMC的Web界面上。As shown in Figure 6, the cabinet in one or more embodiments of the present application can support 10 fans, with the fans arranged from left to right and from bottom to top. In-position information is also monitored by GPIO signals. The chassis management controller (CMC) monitors fan speed information through the PSOC and displays real-time fan information on the CMC's web interface.
示例性地,机柜中所安装的风扇的数量大于或者等于预设最小风扇数量;机柜包括多个全宽节点安装位;一个全宽节点安装位能够安装一个全宽计算节点,或者,两个半宽计算节点;机柜中计算节点的安装规则包括:先下后上,先左后右,且当存在半宽计算节点时,先安装全宽计算节点,后安装半宽计算节点;在机柜中安装的节点数量小于或者等于预设节点数量的情况下,机柜中所安装的风扇的数量等于预设最小风扇数量;在机柜中安装的节点数量大于预设节点数量的情况下,机柜中所安装的风扇的数量与安装节点数量正相关。Exemplarily, the number of fans installed in the cabinet is greater than or equal to the preset minimum number of fans; the cabinet includes multiple full-width node mounting positions; one full-width node mounting position can install one full-width computing node, or two half-width computing nodes; the installation rules of computing nodes in the cabinet include: first bottom then top, first left then right, and when there are half-width computing nodes, install the full-width computing nodes first and then the half-width computing nodes; when the number of nodes installed in the cabinet is less than or equal to the preset number of nodes, the number of fans installed in the cabinet is equal to the preset minimum number of fans; when the number of nodes installed in the cabinet is greater than the preset number of nodes, the number of fans installed in the cabinet is positively correlated with the number of installed nodes.
具体地,计算节点和风扇之间存在如以下表1所示的对应关系。插入了相应位置的节点,那对应的风扇必须插入,且本机的CMC会控制风扇按照后面散热策略执行。散热策略:至少有6个风扇,前1-5个节点无论是哪个节点需求的转速高,那对应的6个风扇都必须是最高转速;插入第6个节点时,插入8个风扇,总体风扇的转速是1-6个中最大的;插入7-8个节点时,共插入10个风扇,总体风扇的转速是所有中最大的。该策略不需要插入所有的风扇,有利于节约功耗且在不影响机箱整机性能的情况下减少风扇的噪音。Specifically, there is a correspondence between computing nodes and fans as shown in Table 1 below. When a node is inserted into the corresponding position, the corresponding fan must be inserted, and the local CMC will control the fan to execute according to the subsequent cooling strategy. Cooling strategy: There are at least 6 fans. No matter which of the first 1-5 nodes requires a higher speed, the corresponding 6 fans must have the highest speed; when the 6th node is inserted, 8 fans are inserted, and the overall fan speed is the highest among 1-6; when 7-8 nodes are inserted, a total of 10 fans are inserted, and the overall fan speed is the highest among all. This strategy does not require the insertion of all fans, which is beneficial to saving power consumption and reducing fan noise without affecting the performance of the entire chassis.
表1
Table 1
其中,在风扇的对应关系中,只要有半宽节点,均按全宽的策略计算。In the fan mapping relationship, as long as there is a half-width node, calculation is performed using the full-width strategy.
如此,可以通过合理的布局来减少风扇的安装,以及最大化散热效率。In this way, reasonable layout can be used to reduce the number of fans installed and maximize heat dissipation efficiency.
可选地,在本申请一个或多个实施例中,对于机房内的多台机柜,为了方便用户在任一台机柜上查询其他机柜上的风扇转速信息,可以将多个机柜进行联网。Optionally, in one or more embodiments of the present application, for multiple cabinets in a computer room, in order to facilitate users to query fan speed information on other cabinets on any cabinet, the multiple cabinets can be networked.
示例性地,本申请一个或多个实施例提供的机柜风扇转速管理方法,还可以包括以下步骤207和步骤208:For example, the cabinet fan speed management method provided in one or more embodiments of the present application may further include the following steps 207 and 208:
步骤207、接收目标设备发送的第三信息获取请求,并通过第一进程将第三信息获取请求转换为第四信息获取请求。Step 207: Receive the third information acquisition request sent by the target device, and convert the third information acquisition request into a fourth information acquisition request through the first process.
步骤208、基于第三信息获取请求中携带的控制器标识,将第四信息获取请求发送至与控制器标识相对应的目标控制器。Step 208: Based on the controller identifier carried in the third information acquisition request, send a fourth information acquisition request to a target controller corresponding to the controller identifier.
其中,第三信息获取请求为:Rest Http Request;第四信息获取请求为OEM IPMI Request;目标控制器为与机箱管理控制器通信连接的其他机箱上的机箱管理控制器。Among them, the third information acquisition request is: Rest Http Request; the fourth information acquisition request is OEM IPMI Request; the target controller is the chassis management controller on other chassis that is communicatively connected to the chassis management controller.
示例性地,在获取到用户想要查询的机柜的风扇转速信息后,本申请一个或多个实施例提供的机柜风扇转速管理方法,还可以包括以下步骤209和步骤210:For example, after obtaining the fan speed information of the cabinet that the user wants to query, the cabinet fan speed management method provided by one or more embodiments of the present application may further include the following steps 209 and 210:
步骤209、接收目标控制器反馈的包含第二目标信息的第四信息获取响应,并通过第一进程将第四信息获取响应转换为第三信息获取响应。Step 209: Receive a fourth information acquisition response including the second target information fed back by the target controller, and convert the fourth information acquisition response into a third information acquisition response through the first process.
步骤210、将包含有第二目标信息的第三信息获取响应发送至目标设备。Step 210: Send a third information acquisition response including the second target information to the target device.
其中,第二目标信息包括:目标控制器所管理的多个风扇的转速信息。The second target information includes: rotation speed information of multiple fans managed by the target controller.
示例性地,如图7所示,为本申请一个或多个实施例提供的多机柜网络拓扑图。在网络正常,基板管理控制器BMC监控正常的情况下,任意在某个机柜的机箱管理控制器CMC增加其他想要监控的机柜的CMC IP地址。配置完毕,该机箱管理控制器CMC会把所有关联CMC的IP均广播至其他机箱管理控制器CMC。即仅在任一台机柜的机箱管理控制器CMC配置,可在其他机箱管理控制器CMC的机箱模块一样看到所有添加到局域网内的机箱管理控制器CMC的信息。因此每次只用登陆某一台机器,可以不用切换CMC的IP,就能看到其他机箱管理控制器CMC的风扇转速信息。For example, as shown in FIG7 , a multi-cabinet network topology diagram is provided for one or more embodiments of the present application. When the network is normal and the baseboard management controller BMC is monitoring normally, the CMC IP addresses of other cabinets that you want to monitor can be added to the chassis management controller CMC of any cabinet. After the configuration is completed, the chassis management controller CMC will broadcast the IP addresses of all associated CMCs to other chassis management controllers CMC. That is, if the chassis management controller CMC is configured only in any one cabinet, the information of all chassis management controllers CMC added to the local area network can be seen in the chassis modules of other chassis management controllers CMC. Therefore, you only need to log in to a certain machine each time, and you can see the fan speed information of other chassis management controllers CMC without switching the CMC IP.
基于如图7所示的网络拓扑,需要新增各机箱管理控制器CMC之间Rest Over IPMI风扇监控进程模块,任意两个机箱管理控制器CMC之间新增Web端到底层流程如图8所示。任选某一个机箱管理控制器CMC为主机箱管理控制器,即CMC0,将其余需要监控的机柜加入局域网环境中(后续机箱管理控制器CMC命名为CMC1、CMC2……CMCn)后,主机箱管理控制器可在Web通过JSON文件进行机箱管理控制器CMC之间的风扇数据的发送和获取。主机箱管理控制器CMC的第一进程(即Rest Over IPMI进程)传输的JSON文件的格式为[CMCn,FanInfo],n为需要的某个CMC,n=0时为本机风扇信息;FanInfo是上述示例中提到的数组。根据IPMI规范新增CMC之间的Rest接口所需的OEM IPMI,Request值为CMC id,Response值为对应的风扇标识以及pwm。通过上述步骤可以实现跨机柜的风扇控制,只需要登陆主CMC的Web页面,根据选择的id不同,可以查询和控制不同的CMC机柜的风扇信息。Based on the network topology shown in Figure 7, a new REST Over IPMI fan monitoring process module is required between each CMC. The web-based process for adding a new interface between any two CMCs is shown in Figure 8. Select a CMC as the master CMC, CMC0, and add the remaining cabinets to be monitored to the LAN (subsequently named CMCs CMC1, CMC2, and so on, CMCn). The master CMC can then send and retrieve fan data between CMCs via a JSON file over the web. The format of the JSON file transmitted by the first CMC process (i.e., the REST Over IPMI process) is [CMCn, FanInfo], where n is the desired CMC, or local fan information when n=0; FanInfo is the array mentioned in the example above. According to the IPMI specification, the OEM IPMI interface required for the REST interface between CMCs is added. The Request value is the CMC ID, and the Response value is the corresponding fan ID and PWM. The above steps can be used to implement fan control across cabinets. You only need to log in to the web page of the main CMC. Based on the selected ID, you can query and control the fan information of different CMC cabinets.
本申请实施例提供的机柜风扇转速管理方法,首先,接收目标设备发送的第一信息获取请求,并对第一信息获取请求进行解析,确定第一信息获取请求指示的至少一个风扇标识;之后,基于智能平台管理接口IPMI协议规范,将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的第二信息获取请求;最后,基于第二信息获取请求,获取第一目标信息,并通过第二信息获取响应将第一目标信息反馈至目标设备;其中,第一信息获取请求为目标设备通过机箱管理控制器的Rest接口发送的;第二信息获取响应为机箱管理控制器通过Rest接口发送至目标设备的;第一目标信息包括:至少一个风扇标识中每个风扇标识对应的风扇转速;第一信息获取请求与第二信息获取请求为不同协议的请求。如此,可以使得用户能够通过机箱管理控制器CMC的Rest接口实时查询机柜上安装的风扇的转速信息。The cabinet fan speed management method provided by the embodiment of the present application first receives a first information acquisition request sent by a target device, parses the first information acquisition request, and determines at least one fan identifier indicated by the first information acquisition request; then, based on the Intelligent Platform Management Interface (IPMI) protocol specification, encapsulates the at least one fan identifier into a command to obtain a second information acquisition request corresponding to the first information acquisition request; finally, based on the second information acquisition request, obtains first target information and feeds the first target information back to the target device via a second information acquisition response; wherein the first information acquisition request is sent by the target device via the REST interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device via the REST interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols. In this way, a user can query the speed information of the fans installed on the cabinet in real time via the REST interface of the chassis management controller (CMC).
需要说明的是,本申请实施例提供的机柜风扇转速管理方法,执行主体可以为机柜风扇转速管理装置,或者该机柜风扇转速管理装置中的用于执行机柜风扇转速管理方法的控制模块。本申请实施例中以机柜风扇转速管理装置执行机柜风扇转速管理方法为例,说明本申请实施例提供的机柜风扇转速管理装置。It should be noted that the cabinet fan speed management method provided in the embodiments of the present application can be executed by a cabinet fan speed management device, or a control module in the cabinet fan speed management device for executing the cabinet fan speed management method. In the embodiments of the present application, the cabinet fan speed management device provided in the embodiments of the present application is described by taking the cabinet fan speed management device executing the cabinet fan speed management method as an example.
需要说明的是,本申请实施例中,上述各个方法附图所示的。机柜风扇转速管理方法均是以结合本申请实施例中的一个附图为例示例性的说明的。具体实现时,上述各个方法附图所示的机柜风扇转速管理方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that in the embodiments of the present application, the cabinet fan speed management method shown in the above-mentioned figures is described by way of example in conjunction with one figure in the embodiments of the present application. In specific implementation, the cabinet fan speed management method shown in the above-mentioned figures can also be implemented in conjunction with any other combinable figures shown in the above-mentioned embodiments, and will not be further described here.
下面对本申请提供的机柜风扇转速管理装置进行描述,下文描述的与上文描述的机柜风扇转速管理方法可相互对应参照。The cabinet fan speed management device provided in the present application is described below. The cabinet fan speed management method described below and the cabinet fan speed management method described above can be referenced to each other.
图9为本申请实施例提供的机柜风扇转速管理装置的结构示意图,如图9所示,具体包括:FIG9 is a schematic diagram of the structure of a cabinet fan speed management device provided in an embodiment of the present application, as shown in FIG9 , specifically comprising:
数据传输模块901,用于接收目标设备发送的第一信息获取请求;数据处理模块902,用于对第一信息获取请求进行解析,确定第一信息获取请求指示的至少一个风扇标识;请求处理模块903,用于基于智能平台管理接口IPMI协议规范,将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的第二信息获取请求;信息获取模块904,用于基于第二信息获取请求,获取第一目标信息;数据传输模块901,还用于通过第二信息获取响应将第一目标信息反馈至目标设备;其中,第一信息获取请求为目标设备通过机箱管理控制器的Rest接口发送的;第二信息获取响应为机箱管理控制器通过Rest接口发送至目标设备的;第一目标信息包括:至少一个风扇标识中每个风扇标识对应的风扇转速;第一信息获取请求与第二信息获取请求为不同协议的请求。The data transmission module 901 is used to receive a first information acquisition request sent by a target device; the data processing module 902 is used to parse the first information acquisition request and determine at least one fan identifier indicated by the first information acquisition request; the request processing module 903 is used to encapsulate the at least one fan identifier into instructions based on the intelligent platform management interface IPMI protocol specification to obtain a second information acquisition request corresponding to the first information acquisition request; the information acquisition module 904 is used to obtain the first target information based on the second information acquisition request; the data transmission module 901 is also used to feed back the first target information to the target device through the second information acquisition response; wherein, the first information acquisition request is sent by the target device through the Rest interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device through the Rest interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols.
可选地,第一信息获取请求为:表述性状态转移超文本传输协议请求Rest Http Request;数据传输模块901,具体用于接收目标设备通过Rest接口发送的Rest Http Request;数据处理模块902,具体用于对Rest Http Request进行解析,得到目标参数信息,并基于目标参数信息,确定至少一个风扇标识。Optionally, the first information acquisition request is: Representational State Transfer Hypertext Transfer Protocol Request Rest Http Request; the data transmission module 901 is specifically used to receive the Rest Http Request sent by the target device through the Rest interface; the data processing module 902 is specifically used to parse the Rest Http Request, obtain target parameter information, and determine at least one fan identifier based on the target parameter information.
可选地,第二信息获取请求为:原始设备制造商智能平台管理接口请求OEM IPMI Request;请求处理模块903,具体用于基于智能平台管理接口IPMI协议规范,通过第一进程将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的OEM IPMI Request;其中,第一进程用于将HTTP协议的请求转换为IPMI协议的请求;第二信息获取请求中携带有至少一个风扇标识。Optionally, the second information acquisition request is: Original Equipment Manufacturer Intelligent Platform Management Interface Request OEM IPMI Request; the request processing module 903 is specifically used to encapsulate at least one fan identifier into instructions through the first process based on the Intelligent Platform Management Interface IPMI protocol specification, and obtain the OEM IPMI Request corresponding to the first information acquisition request; wherein the first process is used to convert the HTTP protocol request into the IPMI protocol request; the second information acquisition request carries at least one fan identifier.
可选地,信息获取模块904,具体用于将第二信息获取请求转发至第二进程,通过第二进程基于第二信息获取请求从共享存储空间中获取第一目标信息;其中,共享存储空间中存储有机箱管理控制器所管理的多个风扇的当前转速信息;第二进程为智能平台管理接口IPMI进程。Optionally, the information acquisition module 904 is specifically used to forward the second information acquisition request to the second process, and obtain the first target information from the shared storage space based on the second information acquisition request through the second process; wherein the shared storage space stores the current speed information of multiple fans managed by the chassis management controller; the second process is the intelligent platform management interface IPMI process.
可选地,第二信息获取响应为:原始设备制造商智能平台管理接口响应OEM IPMI Response;请求处理模块903,还用于基于智能平台管理接口IPMI协议规范,将第一目标信息进行指令封装,得到与OEM IPMI Request对应的OEM IPMI Response;请求处理模块903,还用于将OEM IPMI Response发送至第一进程,并通过第一进程将OEM IPMI Response转换为第一信息获取响应;数据传输模块901,具体用于将第一信息获取响应通过Rest接口发送至目标设备。Optionally, the second information acquisition response is: original equipment manufacturer intelligent platform management interface response OEM IPMI Response; the request processing module 903 is also used to encapsulate the first target information into instructions based on the intelligent platform management interface IPMI protocol specification to obtain an OEM IPMI Response corresponding to the OEM IPMI Request; the request processing module 903 is also used to send the OEM IPMI Response to the first process, and convert the OEM IPMI Response into a first information acquisition response through the first process; the data transmission module 901 is specifically used to send the first information acquisition response to the target device through the Rest interface.
可选地,第一信息获取响应为:表述性状态转移超文本传输协议响应Rest Http Response;请求处理模块903,具体用于对OEM IPMI Response进行解析,得到第一目标信息,并基于Rest协议规范,通过第一进程将第一目标信息进行指令封装,得到与OEM IPMI Response对应的Rest Http Response;其中,第一进程用于将IPMI协议的响应转换为HTTP协议的响应;第一信息获取响应中携带有第一目标信息。Optionally, the first information acquisition response is: Representational State Transfer Hypertext Transfer Protocol response Rest Http Response; the request processing module 903 is specifically used to parse the OEM IPMI Response to obtain the first target information, and based on the Rest protocol specification, encapsulate the first target information through the first process to obtain a Rest Http Response corresponding to the OEM IPMI Response; wherein, the first process is used to convert the IPMI protocol response into the HTTP protocol response; the first information acquisition response carries the first target information.
可选地,装置还包括:计算模块;数据传输模块901,还用于通过第二进程从与机箱管理控制器通讯连接的至少一个基板管理控制器BMC中获取每个基板管理控制器BMC所计算出的所需风扇转速;计算模块,用于将风扇转速最大值确定为机柜中所安装的多个风扇中每个风扇的转速;其中,风扇转速最大值为:至少一个基板管理控制器BMC所计算出的多个所需风扇转速中所需风扇转速最大值;机柜中所安装的风扇的数量大于或者等于预设最小风扇数量。Optionally, the device also includes: a calculation module; a data transmission module 901, which is also used to obtain the required fan speed calculated by each baseboard management controller BMC from at least one baseboard management controller BMC that is communicatively connected to the chassis management controller through a second process; a calculation module, which is used to determine the maximum fan speed as the speed of each fan among the multiple fans installed in the cabinet; wherein the maximum fan speed is: the maximum required fan speed among the multiple required fan speeds calculated by at least one baseboard management controller BMC; the number of fans installed in the cabinet is greater than or equal to the preset minimum number of fans.
可选地,数据传输模块901,具体用于通过第二进程依次向至少一个基板管理控制器BMC发送IPMI数据获取请求,并接收每个基板管理控制器BMC反馈的IPMI数据获取响应;其中,IPMI数据获取响应中包含基板管理控制器BMC计算出的所需风扇转速。Optionally, the data transmission module 901 is specifically used to send an IPMI data acquisition request to at least one baseboard management controller BMC in sequence through a second process, and receive an IPMI data acquisition response fed back by each baseboard management controller BMC; wherein the IPMI data acquisition response includes the required fan speed calculated by the baseboard management controller BMC.
可选地,数据处理模块902,还用于基于多个风扇中每个风扇的转速,通过可编程化系统单芯片PSOC控制每个风扇的转速,并将每个风扇的转速信息存储到共享存储空间中。Optionally, the data processing module 902 is further configured to control the rotation speed of each fan through a programmable system on a chip (PSOC) based on the rotation speed of each fan among the multiple fans, and store the rotation speed information of each fan in a shared storage space.
可选地,机柜中所安装的风扇的数量大于或者等于预设最小风扇数量;机柜包括多个全宽节点安装位;一个全宽节点安装位能够安装一个全宽计算节点,或者,两个半宽计算节点;机柜中计算节点的安装规则包括:先下后上,先左后右,且当存在半宽计算节点时,先安装全宽计算节点,后安装半宽计算节点;在机柜中安装的节点数量小于或者等于预设节点数量的情况下,机柜中所安装的风扇的数量等于预设最小风扇数量;在机柜中安装的节点数量大于预设节点数量的情况下,机柜中所安装的风扇的数量与安装节点数量正相关。Optionally, the number of fans installed in the cabinet is greater than or equal to a preset minimum number of fans; the cabinet includes multiple full-width node installation positions; one full-width node installation position can install one full-width computing node, or two half-width computing nodes; the installation rules of computing nodes in the cabinet include: bottom first, top later, left first, right later, and when there are half-width computing nodes, full-width computing nodes are installed first, and half-width computing nodes are installed later; when the number of nodes installed in the cabinet is less than or equal to the preset number of nodes, the number of fans installed in the cabinet is equal to the preset minimum number of fans; when the number of nodes installed in the cabinet is greater than the preset number of nodes, the number of fans installed in the cabinet is positively correlated with the number of installed nodes.
可选地,数据传输模块901,还用于接收目标设备发送的第三信息获取请求;请求处理模块903,还用于通过第一进程将第三信息获取请求转换为第四信息获取请求;数据传输模块901,还用于基于第三信息获取请求中携带的控制器标识,将第四信息获取请求发送至与控制器标识相对应的目标控制器;其中,第三信息获取请求为:Rest Http Request;第四信息获取请求为OEM IPMI Request;目标控制器为与机箱管理控制器通信连接的其他机箱上的机箱管理控制器。Optionally, the data transmission module 901 is further used to receive a third information acquisition request sent by the target device; the request processing module 903 is further used to convert the third information acquisition request into a fourth information acquisition request through the first process; the data transmission module 901 is also used to send the fourth information acquisition request to the target controller corresponding to the controller identifier based on the controller identifier carried in the third information acquisition request; wherein, the third information acquisition request is: Rest Http Request; the fourth information acquisition request is OEM IPMI Request; the target controller is the chassis management controller on other chassis that is communicatively connected to the chassis management controller.
可选地,数据传输模块901,还用于接收目标控制器反馈的包含第二目标信息的第四信息获取响应,并通过第一进程将第四信息获取响应转换为第三信息获取响应;数据传输模块901,还用于将包含有第二目标信息的第三信息获取响应发送至目标设备;其中,第二目标信息包括:目标控制器所管理的多个风扇的转速信息。Optionally, the data transmission module 901 is also used to receive a fourth information acquisition response containing the second target information fed back by the target controller, and convert the fourth information acquisition response into a third information acquisition response through the first process; the data transmission module 901 is also used to send the third information acquisition response containing the second target information to the target device; wherein the second target information includes: the speed information of multiple fans managed by the target controller.
关于机柜风扇转速管理装置的具体限定可以参见上文中对于机柜风扇转速管理方法的限定,在此不再赘述。上述机柜风扇转速管理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备中的处理器中,也可以以软件形式存储于电子设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。The specific limitations of the cabinet fan speed management device can be found in the limitations of the cabinet fan speed management method described above and will not be further elaborated here. Each module in the aforementioned cabinet fan speed management device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the aforementioned modules can be embedded in or independent of a processor in an electronic device in hardware form, or can be stored in a memory in the electronic device in software form, so that the processor can call and execute the corresponding operations of each of the aforementioned modules.
图10示例了一种电子设备的实体结构示意图,如图10所示,该电子设备可以包括:处理器(processor)1010、通信接口(Communications Interface)1020、存储器(memory)1030和通信总线1040,其中,处理器1010,通信接口1020,存储器1030通过通信总线1040完成相互间的通信。处理器1010可以调用存储器1030中的逻辑指令,以执行机柜风扇转速管理方法,该方法包括:接收目标设备发送的第一信息获取请求,并对第一信息获取请求进行解析,确定第一信息获取请求指示的至少一个风扇标识;基于智能平台管理接口IPMI协议规范,将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的第二信息获取请求;基于第二信息获取请求,获取第一目标信息,并通过第二信息获取响应将第一目标信息反馈至目标设备;其中,第一信息获取请求为目标设备通过机箱管理控制器的Rest接口发送的;第二信息获取响应为机箱管理控制器通过Rest接口发送至目标设备的;第一目标信息包括:至少一个风扇标识中每个风扇标识对应的风扇转速;第一信息获取请求与第二信息获取请求为不同协议的请求。Figure 10 illustrates a schematic diagram of the physical structure of an electronic device. As shown in Figure 10, the electronic device may include: a processor (processor) 1010, a communication interface (Communications Interface) 1020, a memory (memory) 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 can call the logic instructions in the memory 1030 to execute the cabinet fan speed management method, which includes: receiving a first information acquisition request sent by the target device, and parsing the first information acquisition request to determine at least one fan identifier indicated by the first information acquisition request; based on the intelligent platform management interface IPMI protocol specification, encapsulating the at least one fan identifier into instructions to obtain a second information acquisition request corresponding to the first information acquisition request; based on the second information acquisition request, obtaining the first target information, and feeding back the first target information to the target device through the second information acquisition response; wherein, the first information acquisition request is sent by the target device through the Rest interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device through the Rest interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols.
此外,上述的存储器1030中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the logical instructions in the above-mentioned memory 1030 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
另一方面,本申请还提供一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当程序指令被计算机执行时,计算机能够执行上述各方法所提供的机柜风扇转速管理方法,该方法包括:接收目标设备发送的第一信息获取请求,并对第一信息获取请求进行解析,确定第一信息获取请求指示的至少一个风扇标识;基于智能平台管理接口IPMI协议规范,将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的第二信息获取请求;基于第二信息获取请求,获取第一目标信息,并通过第二信息获取响应将第一目标信息反馈至目标设备;其中,第一信息获取请求为目标设备通过机箱管理控制器的Rest接口发送的;第二信息获取响应为机箱管理控制器通过Rest接口发送至目标设备的;第一目标信息包括:至少一个风扇标识中每个风扇标识对应的风扇转速;第一信息获取请求与第二信息获取请求为不同协议的请求。On the other hand, the present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the cabinet fan speed management method provided by the above methods, the method including: receiving a first information acquisition request sent by a target device, parsing the first information acquisition request, and determining at least one fan identifier indicated by the first information acquisition request; based on the intelligent platform management interface IPMI protocol specification, encapsulating the at least one fan identifier into instructions to obtain a second information acquisition request corresponding to the first information acquisition request; based on the second information acquisition request, obtaining first target information, and feeding back the first target information to the target device through the second information acquisition response; wherein the first information acquisition request is sent by the target device through the Rest interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device through the Rest interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols.
又一方面,本申请还提供一种非易失性计算机可读存储介质,其上存储有计算机可读指令,该计算机可读指令被处理器执行时实现以执行上述各提供的机柜风扇转速管理方法,该方法包括:接收目标设备发送的第一信息获取请求,并对第一信息获取请求进行解析,确定第一信息获取请求指示的至少一个风扇标识;基于智能平台管理接口IPMI协议规范,将至少一个风扇标识进行指令封装,得到与第一信息获取请求对应的第二信息获取请求;基于第二信息获取请求,获取第一目标信息,并通过第二信息获取响应将第一目标信息反馈至目标设备;其中,第一信息获取请求为目标设备通过机箱管理控制器的Rest接口发送的;第二信息获取响应为机箱管理控制器通过Rest接口发送至目标设备的;第一目标信息包括:至少一个风扇标识中每个风扇标识对应的风扇转速;第一信息获取请求与第二信息获取请求为不同协议的请求。On the other hand, the present application also provides a non-volatile computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor, are implemented to execute the above-mentioned cabinet fan speed management methods, the method comprising: receiving a first information acquisition request sent by a target device, parsing the first information acquisition request, and determining at least one fan identifier indicated by the first information acquisition request; based on the intelligent platform management interface IPMI protocol specification, encapsulating the at least one fan identifier into instructions to obtain a second information acquisition request corresponding to the first information acquisition request; based on the second information acquisition request, obtaining first target information, and feeding back the first target information to the target device through a second information acquisition response; wherein, the first information acquisition request is sent by the target device through the Rest interface of the chassis management controller; the second information acquisition response is sent by the chassis management controller to the target device through the Rest interface; the first target information includes: the fan speed corresponding to each fan identifier in the at least one fan identifier; the first information acquisition request and the second information acquisition request are requests of different protocols.
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units. That is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus the necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or certain parts of the embodiment.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (20)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410375499.8A CN117992314B (en) | 2024-03-29 | 2024-03-29 | Cabinet fan rotating speed management method and device, storage medium and electronic equipment |
| CN202410375499.8 | 2024-03-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025200703A1 true WO2025200703A1 (en) | 2025-10-02 |
Family
ID=90900683
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2025/070338 Pending WO2025200703A1 (en) | 2024-03-29 | 2025-01-03 | Method and apparatus for managing rotational speed of cabinet fan, system, storage medium, and electronic device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN117992314B (en) |
| WO (1) | WO2025200703A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117992314B (en) * | 2024-03-29 | 2024-06-14 | 苏州元脑智能科技有限公司 | Cabinet fan rotating speed management method and device, storage medium and electronic equipment |
| CN118897743A (en) * | 2024-09-30 | 2024-11-05 | 苏州元脑智能科技有限公司 | Baseboard management controller communication method, device and server |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10409584B1 (en) * | 2018-02-09 | 2019-09-10 | American Megatrends International, Llc | Peripheral device firmware update using rest over IPMI interface firmware update module |
| US10416988B1 (en) * | 2018-02-09 | 2019-09-17 | American Megatrends International, Llc | Peripheral device firmware update using rest over IPMI interface firmware shell utility |
| CN110543399A (en) * | 2019-08-20 | 2019-12-06 | 苏州浪潮智能科技有限公司 | whole machine monitoring management method, system and equipment for RACK3.0 cabinet |
| US10572242B1 (en) * | 2018-02-09 | 2020-02-25 | American Megatrends International, Llc | Firmware update using rest over IPMI interface |
| CN117992314A (en) * | 2024-03-29 | 2024-05-07 | 苏州元脑智能科技有限公司 | Cabinet fan speed management method, device, storage medium and electronic equipment |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115629936A (en) * | 2022-09-30 | 2023-01-20 | 苏州浪潮智能科技有限公司 | Method and device for obtaining equipment information, and computer-readable storage medium |
| CN115826707A (en) * | 2022-11-03 | 2023-03-21 | 苏州浪潮智能科技有限公司 | Fan control method and device, storage medium and electronic equipment |
| CN115757505A (en) * | 2022-11-30 | 2023-03-07 | 超聚变数字技术有限公司 | A kind of information inquiry method and cabinet management node |
-
2024
- 2024-03-29 CN CN202410375499.8A patent/CN117992314B/en active Active
-
2025
- 2025-01-03 WO PCT/CN2025/070338 patent/WO2025200703A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10409584B1 (en) * | 2018-02-09 | 2019-09-10 | American Megatrends International, Llc | Peripheral device firmware update using rest over IPMI interface firmware update module |
| US10416988B1 (en) * | 2018-02-09 | 2019-09-17 | American Megatrends International, Llc | Peripheral device firmware update using rest over IPMI interface firmware shell utility |
| US10572242B1 (en) * | 2018-02-09 | 2020-02-25 | American Megatrends International, Llc | Firmware update using rest over IPMI interface |
| CN110543399A (en) * | 2019-08-20 | 2019-12-06 | 苏州浪潮智能科技有限公司 | whole machine monitoring management method, system and equipment for RACK3.0 cabinet |
| CN117992314A (en) * | 2024-03-29 | 2024-05-07 | 苏州元脑智能科技有限公司 | Cabinet fan speed management method, device, storage medium and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117992314A (en) | 2024-05-07 |
| CN117992314B (en) | 2024-06-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2025200703A1 (en) | Method and apparatus for managing rotational speed of cabinet fan, system, storage medium, and electronic device | |
| CN113381875B (en) | Method for acquiring configuration data | |
| CN110554943B (en) | Multi-node server CMC management system and method based on I3C | |
| US8930725B2 (en) | Server rack system for managing power supply | |
| CN101183972B (en) | A Method of Remotely Controlling Server Startup | |
| US8285828B2 (en) | Method and system for platform level data model for indications based event control and data transfer | |
| US20050038808A1 (en) | System and method for utilizing a modular operating system (OS) resident agent allowing an out-of-band server management | |
| CN105074596B (en) | Field apparatus, communication chip and the method for accessing field apparatus | |
| KR20090094259A (en) | Management method for server customer communication | |
| US20080178202A1 (en) | Interface For Supporting an Element Management System | |
| US20060294221A1 (en) | System for programmatically controlling measurements in monitoring sources | |
| US8799437B1 (en) | Dynamic optimization of device management command for bulk retrieval of configuration data | |
| US9575531B2 (en) | Multi-vendor power distribution unit support in rack management software | |
| CN111324503B (en) | Shelf management apparatus, method, and computer-readable storage medium | |
| CN114371944B (en) | A method, system, device, and storage medium for remote invocation of distributed services | |
| CN120196513B (en) | Server management method, computer program product and server cabinet | |
| KR20070120098A (en) | Method and device for setting home code of network system | |
| WO2025200403A1 (en) | Device management method and apparatus, device, and computer readable storage medium | |
| CN103176433B (en) | Power distribution unit and method of controlling multiple power distribution units using a single IP | |
| EP4576706A1 (en) | Intent graph model generation using difference information | |
| WO2025073258A1 (en) | Hardware management method based on virtualization technology, and hardware management platform | |
| WO2023005543A1 (en) | Query method and apparatus, and device | |
| KR100474358B1 (en) | Method and apparatus for implementation function of remote network monitoring in high speed router, and storage medium for recording program thereof | |
| WO2025026291A1 (en) | Interface management method and apparatus, and related device | |
| TW201104450A (en) | Method of remote controlling a server device and the server device |