CN103885865B - A kind of Method of Sensor Management and device - Google Patents

A kind of Method of Sensor Management and device Download PDF

Info

Publication number
CN103885865B
CN103885865B CN201410099428.6A CN201410099428A CN103885865B CN 103885865 B CN103885865 B CN 103885865B CN 201410099428 A CN201410099428 A CN 201410099428A CN 103885865 B CN103885865 B CN 103885865B
Authority
CN
China
Prior art keywords
sensor
state
data record
sensor identification
preferred
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410099428.6A
Other languages
Chinese (zh)
Other versions
CN103885865A (en
Inventor
张蔚
李娟�
张羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410099428.6A priority Critical patent/CN103885865B/en
Publication of CN103885865A publication Critical patent/CN103885865A/en
Application granted granted Critical
Publication of CN103885865B publication Critical patent/CN103885865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种传感器管理方法及装置,方法为,BMC中包含的各个状态的存储列表中存储有相应状态的传感器标识,当用户访问BMC中存储的传感器标识时,若所访问传感器标识对应的状态为激活态,则将包含所访问传感器标识所在页表由激活态切换至首选态。采用本发明技术方案,根据传感器对应的状态对传感器进行类别划分,令不同状态的传感器标识保存至不同的存储列表中,由于在存储列表中每一个页表能保存不大于255个传感器标识,因此,无须对BMC所管辖的传感器数目进行限制,可以针对每一个待监测组件配置相应的传感器,保证了传感器的管理粒度,有效提高了故障定位精度。

The invention discloses a sensor management method and device. The method is that the storage list of each state contained in the BMC stores the sensor identification of the corresponding state, and when the user accesses the sensor identification stored in the BMC, if the accessed sensor identification corresponds to If the state of the sensor is active, switch the page table containing the identifier of the accessed sensor from the active state to the preferred state. By adopting the technical solution of the present invention, the sensors are classified according to the corresponding states of the sensors, so that the sensor identifications of different states are stored in different storage lists, since each page table in the storage list can store no more than 255 sensor identifications, therefore , there is no need to limit the number of sensors under the jurisdiction of the BMC, and corresponding sensors can be configured for each component to be monitored, which ensures the granularity of sensor management and effectively improves the accuracy of fault location.

Description

一种传感器管理方法及装置A sensor management method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种传感器管理方法及装置。The invention relates to the field of communication technology, in particular to a sensor management method and device.

背景技术Background technique

在服务器内部,BMC(Baseboard Management Controller;基板管理控制器)用于根据传感器上报的各个组件状态信息生成数据记录,并对该数据记录进行管理。Inside the server, the BMC (Baseboard Management Controller; baseboard management controller) is used to generate data records based on the status information of each component reported by the sensor, and manage the data records.

在服务器的智能管理架构中,传感器为BMC管理服务器中各个组件状态信息的最小单元。随着服务器功能的日益强大,服务器中的组件数目越来越庞大,从而使得BMC需要管理的传感器数目越来越庞大。但是,在IPMI(Intelligent Platform ManagementInterface;智能平台管理接口)2.0规范中规定,用户可访问一个BMC所管辖的传感器编号的有效范围为0~254,从而限制了一个BMC所能管辖的传感器的数目为门限数目(即255)。In the intelligent management architecture of the server, the sensor is the smallest unit of status information of each component in the BMC management server. As the functions of the server become more and more powerful, the number of components in the server becomes larger and larger, so that the number of sensors that the BMC needs to manage becomes larger and larger. However, in the IPMI (Intelligent Platform Management Interface; Intelligent Platform Management Interface) 2.0 specification, users can access the valid range of sensor numbers under the jurisdiction of a BMC from 0 to 254, thus limiting the number of sensors under the jurisdiction of a BMC to Threshold number (ie 255).

目前,当一个BMC管辖下的传感器数目超过门限数目时,通常采用减少传感器数目的方法解决BMC可管辖传感器数目存在上限值的问题。例如,通过删除非必要传感器的方法减少传感器的数目,采用该技术方案,存在无法获取特定传感器上报的组件状态信息的问题。此外,还可以通过将多个传感器合并为一个传感器的方法减少传感器的数目,如传感器A~H分别监控八条内存的状态,即一个传感器监控一条内存的状态,当存在任意一内存出现故障时,该任意一内存对应的传感器向BMC发送故障警告;此时,将上述八个传感器合并为一个传感器,使用传感器A监控八条内存的状态,若八条内存中的任意一内存出现故障时,传感器A即向BMC发送故障警告。采用该技术方案,由于一个传感器管理多条内存,传感器管理粒度较大,因此,BMC无法根据传感器发送的故障警告精确定位发生故障的内存。At present, when the number of sensors under the jurisdiction of a BMC exceeds the threshold number, the method of reducing the number of sensors is usually used to solve the problem that the number of sensors under the jurisdiction of the BMC has an upper limit. For example, the number of sensors is reduced by deleting unnecessary sensors. With this technical solution, there is a problem that component status information reported by a specific sensor cannot be obtained. In addition, the number of sensors can be reduced by combining multiple sensors into one sensor. For example, sensors A to H monitor the status of eight memories respectively, that is, one sensor monitors the status of one memory. When any memory fails, The sensor corresponding to any one memory sends a failure warning to the BMC; at this time, the above eight sensors are combined into one sensor, and sensor A is used to monitor the status of the eight memories. If any one of the eight memories fails, sensor A will immediately Send fault warning to BMC. With this technical solution, since one sensor manages multiple memories and the sensor management granularity is relatively large, the BMC cannot accurately locate the failed memory according to the fault warning sent by the sensor.

由此可见,现有技术中,传感器管理粒度较大,BMC无法根据传感器发送的故障警告精确定位发生故障的内存的问题。It can be seen that, in the prior art, the sensor management granularity is relatively large, and the BMC cannot accurately locate the faulty memory problem according to the fault warning sent by the sensor.

发明内容Contents of the invention

本发明实施例提供一种传感器管理方法及装置,用以解决传感器管理粒度较大,BMC无法根据传感器发送的故障警告精确定位发生故障的内存的问题。Embodiments of the present invention provide a sensor management method and device to solve the problem that the sensor management granularity is relatively large, and the BMC cannot accurately locate the faulty memory according to the fault warning sent by the sensor.

第一方面,提供一种传感器管理方法,应用于基板管理控制器BMC的传感器管理中,所述BMC存储有首选态表以及激活态表,首选态表中记录有状态为首选态的传感器标识,该方法包括:In the first aspect, a sensor management method is provided, which is applied to the sensor management of the baseboard management controller BMC, and the BMC stores a preferred state table and an activated state table, and the preferred state table records the sensor identification whose state is the preferred state, The method includes:

接收访问指令,根据访问指令中携带的传感器标识,从本地保存的存储列表中,查找所述传感器标识对应的状态;Receiving an access instruction, searching for a state corresponding to the sensor identifier from a locally stored storage list according to the sensor identifier carried in the access instruction;

当所述传感器标识对应的状态为激活态时,将所述存储列表中包含所述传感器标识的页表切换至所述首选态;其中,任意一所述页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目;When the state corresponding to the sensor identification is the active state, switch the page table containing the sensor identification in the storage list to the preferred state; wherein, the number of sensor identifications contained in any one of the page tables is not greater than the smart The number of thresholds stipulated in the platform management interface specification;

输出包含所述传感器标识的页表。Output a page table containing the sensor ID.

结合第一方面,在第一种可能的实现方式中,所述BMC中还包括与所述首选态表中的各个传感器标识以及激活态表中的各个传感器标识分别对应的数据记录;所述首选态表中的任意一传感器标识或者激活态表中的任意一传感器标识对应的数据记录的生成方法,包括:获取所述状态为激活态或者首选态的任意一传感器标识,以及所述状态为激活态或者首选态的任意一传感器标识对应的事件记录;将所述状态为激活态或者首选态的任意一传感器标识及其对应的事件记录作为一条数据记录,存储至本地数据库中。With reference to the first aspect, in a first possible implementation manner, the BMC further includes data records corresponding to each sensor identifier in the preferred state table and each sensor identifier in the activated state table; A method for generating a data record corresponding to any sensor identifier in the state table or any sensor identifier in the active state table, comprising: obtaining any sensor identifier whose state is an active state or a preferred state, and the state is an active state. An event record corresponding to any sensor identification in the active state or the preferred state; store any sensor identification in the active state or the preferred state and its corresponding event record as a data record in the local database.

结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,在所述数据记录存储至本地数据库后,当接收到用户输入的数据记录查询指令后,获取所述数据记录查询指令中携带的事件记录的标识,并根据所述事件记录的标识,获取所述数据库中保存的所述事件记录的标识对应的数据记录;或者,获取所述数据记录查询指令中携带的传感器标识,并根据所述传感器标识,获取所述数据库中保存的所述传感器标识对应的数据记录。With reference to the first possible implementation of the first aspect, in the second possible implementation, after the data record is stored in the local database, after receiving a data record query instruction input by the user, the data is acquired record the identifier of the event record carried in the query instruction, and obtain the data record corresponding to the identifier of the event record stored in the database according to the identifier of the event record; or, obtain the identifier of the event record carried in the query instruction of the data record A sensor identifier, and according to the sensor identifier, obtain a data record corresponding to the sensor identifier stored in the database.

结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中,在所述数据记录存储至本地数据库后,当接收到用户输入的传感器管理指令后,获取所述数据记录管理指令中携带的传感器标识以及数据记录管理信息;当所述数据记录管理信息为删除数据记录信息时,删除所述传感器标识所在页表中的所述传感器标识,以及删除所述数据库中保存的所述传感器标识对应的数据记录;当所述数据记录管理信息为添加数据记录信息时,获取待添加传感器标识,将所述待添加传感器标识添加至所述首选态表或所述激活态表中;当所述数据记录管理信息为更改传感器标识对应的状态时,获取待更改传感器标识及其状态更改信息,根据所述状态更改信息,将所述待更改传感器标识存储至相应的页表中,以及更新所述存储列表中待更改传感器标识和所述数据库中保存的待更改传感器标识对应的数据记录。With reference to the first possible implementation of the first aspect, in a third possible implementation, after the data record is stored in the local database and after receiving a sensor management instruction input by the user, the data record is acquired The sensor identification and data record management information carried in the management instruction; when the data record management information is delete data record information, delete the sensor identification in the page table where the sensor identification is located, and delete the The data record corresponding to the sensor identifier; when the data record management information is added data record information, obtain the sensor identifier to be added, and add the sensor identifier to be added to the preferred state table or the activated state table ; when the data record management information is to change the state corresponding to the sensor identity, obtain the sensor identity to be changed and its state change information, and store the sensor identity to be changed in the corresponding page table according to the state change information, And updating the data record corresponding to the sensor ID to be changed in the storage list and the sensor ID to be changed stored in the database.

结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,若所述状态更改信息为将待更改传感器标识对应的状态由首选态更改为激活态,则将所述待更改传感器标识所在的首选态表配置为激活态表;若所述状态更改信息为将待更改传感器标识对应的状态由激活态更改为首选态,则将所述待更改传感器标识所在的激活态表配置为首选态表。In combination with the third possible implementation of the first aspect, in the fourth possible implementation, if the state change information is to change the state corresponding to the sensor identity to be changed from the preferred state to the active state, then the The preferred state table where the sensor identity to be changed is configured as an active state table; if the state change information is to change the state corresponding to the sensor identity to be changed from the active state to the preferred state, then the active state where the sensor identity to be changed is changed The table is configured as a preferred state table.

第二方面,提供一种传感器管理装置,应用于基板管理控制器BMC的传感器管理中,所述传感器管理装置存储有首选态表以及激活态表,首选态表中记录有状态为首选态的传感器标识,该装置包括:In the second aspect, a sensor management device is provided, which is applied to the sensor management of the baseboard management controller BMC. The sensor management device stores a preferred state table and an activated state table, and the preferred state table records sensors whose state is the preferred state. logo, the device includes:

接收单元,用于接收访问指令,并将所述访问指令发送至查找单元;a receiving unit, configured to receive an access instruction, and send the access instruction to a search unit;

查找单元,用于接收所述接收单元发送的访问指令,并根据所述访问指令中携带的传感器标识,从本地保存的存储列表中,查找所述传感器标识对应的状态,以及将所述传感器标识对应的状态发送至切换单元;The search unit is configured to receive the access instruction sent by the receiving unit, and according to the sensor identification carried in the access instruction, search for the state corresponding to the sensor identification from the locally stored storage list, and store the sensor identification The corresponding state is sent to the switching unit;

切换单元,用于接收所述查找单元发送的所述传感器标识对应的状态,当所述传感器标识对应的状态为激活态时,将所述存储列表中包含所述传感器标识的页表切换至所述首选态,并将所述包含传感器标识的页表发送至输出单元;其中,任意一所述页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目;A switching unit, configured to receive the state corresponding to the sensor identification sent by the search unit, and switch the page table containing the sensor identification in the storage list to the The first state is described, and the page table containing the sensor identification is sent to the output unit; wherein, the number of sensor identifications contained in any one of the page tables is not greater than the threshold number specified in the intelligent platform management interface specification;

输出单元,用于接收所述切换单元发送的包含传感器标识的页表后,输出包含所述传感器标识的页表。The output unit is configured to output the page table containing the sensor identification after receiving the page table containing the sensor identification sent by the switching unit.

结合第二方面,在第一种可能的实现方式中,所述装置还包括存储单元,用于:获取所述状态为激活态或者首选态的任意一传感器标识,以及所述状态为激活态或者首选态的任意一传感器标识对应的事件记录;将所述状态为激活态或者首选态的任意一传感器标识及其对应的事件记录作为一条数据记录,存储至本地数据库中。With reference to the second aspect, in a first possible implementation manner, the device further includes a storage unit, configured to: acquire the identification of any sensor whose state is the active state or the preferred state, and the state is the active state or the preferred state. An event record corresponding to any sensor identification in the preferred state; store any sensor identification in the active state or the preferred state and its corresponding event record as a data record in the local database.

结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述装置还包括数据记录获取单元,用于:在所述数据记录存储至本地数据库后,当接收到用户输入的数据记录查询指令后,获取所述数据记录查询指令中携带的事件记录的标识,并根据所述事件记录的标识,获取所述数据库中保存的所述事件记录的标识对应的数据记录;或者,获取所述数据记录查询指令中携带的传感器标识,并根据所述传感器标识,获取所述数据库中保存的所述传感器标识对应的数据记录。With reference to the first possible implementation of the second aspect, in a second possible implementation, the device further includes a data record acquisition unit, configured to: after the data record is stored in the local database, when receiving After the data record query instruction input by the user, the identifier of the event record carried in the data record query instruction is obtained, and according to the identifier of the event record, the data record corresponding to the identifier of the event record stored in the database is obtained ; Or, acquire the sensor identification carried in the data record query instruction, and obtain the data record corresponding to the sensor identification stored in the database according to the sensor identification.

结合第二方面的第一种可能的实现方式,在第三种可能的实现方式中,所述装置还包括处理单元,用于:在所述数据记录存储至本地数据库后,当接收到用户输入的传感器管理指令后,获取所述数据记录管理指令中携带的传感器标识以及数据记录管理信息;当所述数据记录管理信息为删除数据记录信息时,删除所述传感器标识所在页表中的所述传感器标识,以及删除所述数据库中保存的所述传感器标识对应的数据记录;当所述数据记录管理信息为添加数据记录信息时,获取待添加传感器标识,将所述待添加传感器标识添加至所述首选态表或所述激活态表中;当所述数据记录管理信息为更改传感器标识对应的状态时,获取待更改传感器标识及其状态更改信息,根据所述状态更改信息,将所述待更改传感器标识存储至相应的页表中,以及更新所述存储列表中待更改传感器标识和所述数据库中保存的待更改传感器标识对应的数据记录。With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner, the device further includes a processing unit configured to: after the data record is stored in the local database, when a user input is received After the sensor management instruction, obtain the sensor ID and data record management information carried in the data record management instruction; when the data record management information is delete data record information, delete the sensor identification, and delete the data record corresponding to the sensor identification stored in the database; when the data record management information is adding data record information, obtain the sensor identification to be added, and add the sensor identification to be added to the In the preferred state table or the activated state table; when the data record management information is to change the state corresponding to the sensor identity, obtain the sensor identity to be changed and its state change information, and according to the state change information, change the state to be changed The modified sensor identification is stored in the corresponding page table, and the data record corresponding to the sensor identification to be changed in the storage list and the sensor identification to be modified stored in the database is updated.

结合第二方面的第三种可能的实现方式,在第四种可能的实现方式中,所述处理单元,具体用于:若所述状态更改信息为将待更改传感器标识对应的状态由首选态更改为激活态,则将所述待更改传感器标识所在的首选态表配置为激活态表;若所述状态更改信息为将待更改传感器标识对应的状态由激活态更改为首选态,则将所述待更改传感器标识所在的激活态表配置为首选态表。With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the processing unit is specifically configured to: if the state change information is to change the state corresponding to the sensor identification to be changed from the preferred state Change to the active state, then configure the preferred state table where the sensor identification to be changed is the active state table; if the state change information is to change the state corresponding to the sensor identification to be changed from the active state to the preferred state, then configure all The active state table where the sensor identification to be changed is configured as the preferred state table.

第三方面,提供一种传感器管理方法,应用于基板管理控制器BMC的传感器管理中,所述BMC存储有首选态表、激活态表以及初始态表,首选态表中记录有状态为首选态的传感器标识,激活态表中记录有状态为激活态的传感器标识,该方法包括:In the third aspect, a sensor management method is provided, which is applied to the sensor management of the baseboard management controller BMC. The BMC stores a preferred state table, an activated state table, and an initial state table, and the state recorded in the preferred state table is the preferred state The sensor identification of the activated state table records the sensor identification whose state is the active state, and the method includes:

接收配置指令,获取所述配置指令中携带的状态为初始态的传感器标识以及配置后的状态;Receiving a configuration instruction, obtaining the sensor identification carried in the configuration instruction as the initial state and the configured state;

当所述配置后的状态为首选态时,将所述传感器标识存储至所述首选态表的页表中;When the configured state is the preferred state, storing the sensor identification in the page table of the preferred state table;

当所述配置后的状态为激活态时,将所述传感器标识存储至所述激活态表的页表中;其中,任意一所述页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目。When the configured state is the active state, store the sensor identification in the page table of the active state table; wherein, the number of sensor identifications contained in any one of the page tables is not greater than the intelligent platform management interface specification the number of thresholds.

本发明实施例中,BMC中包含的各个状态的存储列表中存储有相应状态的传感器标识,当用户访问BMC中存储的传感器标识时,若所访问传感器标识对应的状态为激活态,则将包含所访问传感器标识所在页表由激活态切换至首选态。采用本发明技术方案,根据传感器对应的状态对传感器进行类别划分,令不同状态的传感器标识保存至不同的存储列表中,由于在存储列表中每一个页表均能保存传感器标识的数目为门限值,因此,可以针对每一个待监测组件配置相应的传感器,无须对BMC所管辖的传感器数目进行限制,从而保证了传感器的管理粒度,有效提高了故障定位精度。In the embodiment of the present invention, the sensor identification of the corresponding state is stored in the storage list of each state contained in the BMC. When the user accesses the sensor identification stored in the BMC, if the state corresponding to the accessed sensor identification is active, it will contain The page table where the accessed sensor ID is located is switched from the active state to the preferred state. Adopting the technical scheme of the present invention, the sensors are classified according to the corresponding states of the sensors, so that the sensor identifications of different states are stored in different storage lists, because the number of sensor identifications that can be stored in each page table in the storage list is the threshold Therefore, corresponding sensors can be configured for each component to be monitored, and there is no need to limit the number of sensors under the jurisdiction of the BMC, thereby ensuring the granularity of sensor management and effectively improving the accuracy of fault location.

附图说明Description of drawings

图1为本发明实施例中系统结构图;Fig. 1 is a system structure diagram in the embodiment of the present invention;

图2为本发明实施例中传感器管理流程图一;Fig. 2 is the first flow chart of sensor management in the embodiment of the present invention;

图3为本发明实施例中存储列表示意图;FIG. 3 is a schematic diagram of a storage list in an embodiment of the present invention;

图4为本发明实施例中传感器的状态变换过程示意图;Fig. 4 is a schematic diagram of the state change process of the sensor in the embodiment of the present invention;

图5为本发明实施例中用户访问传感器的信令交互图;FIG. 5 is a signaling interaction diagram of a user accessing a sensor in an embodiment of the present invention;

图6为本发明实施例中用户查询数据记录的详细流程图;Fig. 6 is the detailed flowchart of user query data record in the embodiment of the present invention;

图7为本发明实施例中传感器管理流程图二;Fig. 7 is the second flow chart of sensor management in the embodiment of the present invention;

图8为本发明实施例中传感器管理装置结构示意图一;Fig. 8 is a schematic diagram of the first structure of the sensor management device in the embodiment of the present invention;

图9为本发明实施例中BMC设备示意图;Fig. 9 is a schematic diagram of BMC equipment in an embodiment of the present invention;

图10为本发明实施例中传感器管理装置结构示意图二。Fig. 10 is a second schematic diagram of the structure of the sensor management device in the embodiment of the present invention.

具体实施方式detailed description

为了解决对服务器中各个传感器的管理过程中存在故障定位不准确的问题。本发明实施例中,BMC中包含的各个状态的存储列表中存储有相应状态的传感器标识,当用户访问BMC中存储的传感器标识时,若所访问传感器标识对应的状态为激活态,则将包含所访问传感器标识所在页表由激活态切换至首选态。采用本发明技术方案,根据传感器对应的状态对传感器进行类别划分,令不同状态的传感器标识保存至不同的存储列表中,由于在存储列表中每一个页表均能保存传感器标识的数目为门限值,因此,可以针对每一个待监测组件配置相应的传感器,无须对BMC所管辖的传感器数目进行限制,从而保证了传感器的管理粒度,有效提高了故障定位精度。In order to solve the problem of inaccurate fault location in the process of managing each sensor in the server. In the embodiment of the present invention, the sensor identification of the corresponding state is stored in the storage list of each state contained in the BMC. When the user accesses the sensor identification stored in the BMC, if the state corresponding to the accessed sensor identification is active, it will contain The page table where the accessed sensor ID is located is switched from the active state to the preferred state. Adopting the technical scheme of the present invention, the sensors are classified according to the corresponding states of the sensors, so that the sensor identifications of different states are stored in different storage lists, because the number of sensor identifications that can be stored in each page table in the storage list is the threshold Therefore, corresponding sensors can be configured for each component to be monitored, and there is no need to limit the number of sensors under the jurisdiction of the BMC, thereby ensuring the granularity of sensor management and effectively improving the accuracy of fault location.

参阅图1所示为本发明实施例中系统架构图,其中,BMC位于服务器中,通过硬件接口与服务器建立连接,根据服务器中各个传感器上报的待监测组件状态生成数据记录,而BMC中的数据库用于存储上述数据记录。下面结合附图对本发明优选的实施方式进行详细说明。Referring to Fig. 1, it is a system architecture diagram in the embodiment of the present invention, wherein the BMC is located in the server, establishes a connection with the server through a hardware interface, and generates data records according to the status of the components to be monitored reported by each sensor in the server, and the database in the BMC Used to store the above data records. Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

参阅图2所示,本发明实施例中,管理传感器的详细流程为:Referring to Figure 2, in the embodiment of the present invention, the detailed process of managing sensors is as follows:

步骤200:接收访问指令,根据该访问指令中携带的传感器标识,从本地保存的存储列表中,查找上述传感器标识对应的状态。Step 200: Receive an access instruction, and search for the state corresponding to the above sensor identifier from the locally stored storage list according to the sensor identifier carried in the access instruction.

本发明实施例中,当BMC上电并启动完毕后,分别为本地管辖的每一个传感器配置相应的状态,即将传感器对应的状态配置为初始态(Inactive),或者将传感器对应的状态配置为激活态(Active),或者将传感器对应的状态配置为首选态(Selected)。其中,当BMC启动时,BMC本地管辖的所有传感器对应的状态均为初始态,当传感器对应的状态为初始态时,BMC不对其进行扫描,且该初始态的传感器不产生事件记录,用户也无法访问初始态的传感器对应的传感器值;当BMC将本地管辖的传感器对应的状态配置为激活态时,BMC对激活态的传感器进行持续扫描,以获取该激活态的传感器产生事件记录,但用户无法访问激活态的传感器对应的传感器值;当BMC为本地管辖的传感器对应的状态配置为首选态时,BMC对该首选态的传感器进行持续扫描,以获取该首选态的传感器产生事件记录,用户能够访问首选态的传感器对应的传感器值。在上述过程中,传感器对应的事件记录即为所监测组件对应的状态信息,如故障告警信息、热插拔事件信息等;传感器对应的传感器值为该传感器所记录的示数,如温度传感器记录的温度值等。In the embodiment of the present invention, after the BMC is powered on and started, the corresponding state is configured for each sensor under local jurisdiction, that is, the state corresponding to the sensor is configured as the initial state (Inactive), or the state corresponding to the sensor is configured as active state (Active), or configure the corresponding state of the sensor as the preferred state (Selected). Among them, when the BMC is started, the state corresponding to all the sensors under the local jurisdiction of the BMC is the initial state. When the state corresponding to the sensor is the initial state, the BMC does not scan it, and the sensor in the initial state does not generate event records. The sensor value corresponding to the sensor in the initial state cannot be accessed; when the BMC configures the state corresponding to the sensor in the local jurisdiction as the active state, the BMC continuously scans the sensor in the active state to obtain the event records generated by the sensor in the active state, but the user The sensor value corresponding to the sensor in the active state cannot be accessed; when the BMC configures the state corresponding to the sensor under the local jurisdiction as the preferred state, the BMC continuously scans the sensor in the preferred state to obtain the event records generated by the sensor in the preferred state. Provides access to sensor values corresponding to sensors in the preferred state. In the above process, the event record corresponding to the sensor is the status information corresponding to the monitored component, such as fault alarm information, hot plug event information, etc.; the sensor value corresponding to the sensor is the indication recorded by the sensor, such as the temperature sensor record temperature value etc.

可选的,BMC分别为本地管辖的每一个传感器配置相应的状态的方法为:根据本地保存的预设配置策略,分别为本地管辖的每一个传感器配置相应的状态;或者,接收用户输入的配置指令,并获取该配置指令中携带的配置信息,根据上述配置信息分别为本地管辖的每一个传感器配置相应的状态,其中,用户可以通过终端输入的配置指令,由终端将配置指令发送至服务器,用户可以通过服务器对应的操作界面输入配置指令。Optionally, the BMC configures the corresponding state for each sensor under local jurisdiction respectively: according to the locally saved preset configuration policy, respectively configures the corresponding state for each sensor under local jurisdiction; or, receives the configuration input by the user command, and obtain the configuration information carried in the configuration command, and configure the corresponding status for each sensor under the local jurisdiction according to the above configuration information, wherein the user can input the configuration command through the terminal, and the terminal will send the configuration command to the server. The user can input configuration instructions through the operation interface corresponding to the server.

采用上述技术方案,根据BMC本地预设配置策略或者用户输入的指令配置调整传感器对应的状态,提高了通过BMC管理服务器的灵活性;并且,根据用户需求,不扫描非必要传感器,减少了系统的非必要开销,提高了系统工作效率。By adopting the above technical solution, the state corresponding to the sensor is adjusted according to the local preset configuration strategy of the BMC or the command configuration input by the user, which improves the flexibility of managing the server through the BMC; and, according to the user's needs, unnecessary sensors are not scanned, which reduces the system load. Non-essential overhead improves system work efficiency.

可选的,BMC中存储有三个存储列表,即初始态表,激活态表,以及首选态表,不同的存储列表中存储相应状态的传感器标识。其中,当传感器对应的状态为初始态时,将该传感器标识存储至本地保存的初始态表中;当传感器对应的状态为激活态时,将该传感器标识存储至本地保存的激活态表中;当传感器对应的状态为初始态时,将该传感器标识存储至本地保存的激活态表中。Optionally, there are three storage lists stored in the BMC, that is, an initial state table, an activated state table, and a preferred state table, and different storage lists store sensor identifiers of corresponding states. Wherein, when the state corresponding to the sensor is the initial state, the sensor identification is stored in the locally saved initial state table; when the corresponding state of the sensor is the active state, the sensor identification is stored in the locally saved active state table; When the state corresponding to the sensor is the initial state, the sensor identifier is stored in the locally saved activation state table.

步骤210:当上述传感器标识对应的状态为激活态时,将存储列表中包含上述传感器标识的页表切换至首选态。Step 210: When the state corresponding to the above-mentioned sensor ID is the active state, switch the page table containing the above-mentioned sensor ID in the storage list to the preferred state.

本发明实施例中,当用户所访问的传感器标识对应的状态不是首选态,而是激活态时,将该用户所访问的传感器标识所在页表由激活态切换至首选态。其中,在存储列表中任意一页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目,即任意一页表包含的传感器标识不大于255个。In the embodiment of the present invention, when the state corresponding to the sensor identifier accessed by the user is not the preferred state but the activated state, the page table where the sensor identifier accessed by the user is located is switched from the activated state to the preferred state. Wherein, the number of sensor identifications contained in any page table in the storage list is not greater than the threshold number specified in the intelligent platform management interface specification, that is, the number of sensor identifications contained in any page table is not greater than 255.

可选的,参阅图3所示,为本发明实施例中存储列表示意图,在该存储列表中,初始态表包含多个页表,每一个页表均可以保存小于等于255个传感器标识,则初始态表中可保存状态为初始态的传感器标识的上限值为n*255,该n即为初始态表中包含的页表数目;与上述初始态表相同,激活态表包含多个页表,每一个页表均可以保存小于等于255个传感器标识,则激活态表中可保存状态为激活态的传感器标识的上限值为n*255,该n即为激活态表中包含的页表数目;特殊的,首选态表包含一个页表,该页表可以保存小于等于255个传感器标识,则首选态表中可保存状态为首选态的传感器标识的上限值为255,从而满足IPMI2.0规范规定的一个BMC管辖的传感器中用户可访问传感器数目的上限值为255。其中,上述存储列表中的每一个页表均对应一个页表号;每一个页表中所保存的传感器标识可以为相关传感器标识,例如,在同一个页表中所保存的传感器标识对应的传感器功能相同;每一个页表中所保存的传感器标识也可以是不相关传感器标识。Optionally, refer to FIG. 3 , which is a schematic diagram of the storage list in the embodiment of the present invention. In the storage list, the initial state table includes multiple page tables, and each page table can store less than or equal to 255 sensor identifiers, then The upper limit value of the initial state sensor identification that can be saved in the initial state table is n*255, where n is the number of page tables contained in the initial state table; the same as the above initial state table, the active state table contains multiple pages table, each page table can save less than or equal to 255 sensor IDs, then the upper limit value of the sensor IDs that can be stored in the active state in the active state table is n*255, and the n is the page contained in the active state table The number of tables; in particular, the preferred state table contains a page table, which can store less than or equal to 255 sensor identifications, then the upper limit value of the sensor identifications that can be saved in the preferred state table is 255, so as to meet IPMI2 The upper limit of the number of user-accessible sensors in a BMC-administered sensor specified in the .0 specification is 255. Wherein, each page table in the above-mentioned storage list corresponds to a page table number; the sensor ID stored in each page table may be a related sensor ID, for example, the sensor ID corresponding to the sensor ID stored in the same page table The functions are the same; the sensor ID stored in each page table can also be an irrelevant sensor ID.

采用上述技术方案,将不同状态的传感器标识存储至不同的存储列表中,即将不同状态的传感器标识通过不同的存储列表进行管理,每一种存储列表均能管理至少255个传感器,三种存储列表可管理的传感器的数目将远远大于IPMI2.0规范所规定的一个BMC可管辖的传感器的门限数目,从而避免了BMC可管理传感器数目的瓶颈问题;并且,将不同状态的传感器标识存储至不同的存储列表中,从而使传感器的管理工作更加便捷。本发明技术方案可应用于RAS(Reliability,Availability,and Serviceability;可靠性、可用性、可服务性)应用场景以及大型服务器应用场景。Using the above technical solution, the sensor identifications of different states are stored in different storage lists, that is, the sensor identifications of different states are managed through different storage lists, each storage list can manage at least 255 sensors, three storage lists The number of manageable sensors will be far greater than the threshold number of sensors that can be managed by a BMC specified in the IPMI2.0 specification, thus avoiding the bottleneck problem of the number of sensors that can be managed by the BMC; and store the sensor identifications of different states in different In the storage list of the sensor, the management of the sensor is more convenient. The technical solution of the present invention can be applied to RAS (Reliability, Availability, and Serviceability; reliability, availability, and serviceability) application scenarios and large-scale server application scenarios.

步骤220:输出包含所述传感器标识的页表。Step 220: Output the page table including the sensor identification.

本发明实施例中,BMC将上述获取的包含传感器标识的页表输出至终端,或者将上述获取的包含传感器标识的页表输出至服务器的操作界面。In the embodiment of the present invention, the BMC outputs the obtained page table including the sensor identification to the terminal, or outputs the obtained page table including the sensor identification to the operation interface of the server.

进一步的,由于BMC仅扫描属性为激活态或者首选态的传感器,因此,BMC获取状态为激活态或者首选态的传感器标识对应的事件记录,以及上述传感器标识;将传感器标识以及传感器标识对应的事件记录进行绑定,将上述绑定后的传感器标识以及该传感器标识对应的事件记录作为一条数据记录,存储至本地数据库中。Further, since the BMC only scans the sensor whose attribute is the active state or the preferred state, the BMC obtains the event record corresponding to the sensor identification whose state is the active state or the preferred state, and the above-mentioned sensor identification; the sensor identification and the event corresponding to the sensor identification The records are bound, and the bound sensor ID and the event record corresponding to the sensor ID are stored as a data record in the local database.

本发明实施例中,由于一个BMC所管辖的传感器数目远远大于255个,且不同状态的传感器标识所存储的存储列表不同。因此,若采用现有技术中仅使用传感器序号作为传感器标识进行保存时,则可能出现不同存储列表中传感器序号相同,而导致传感器标识重复的问题。由此可见,可选的,将传感器标识存储至相应的存储列表之后,更新传感器标识,即将传感器标识对应的存储列表标识以及传感器序号添加至传感器标识中;其中,存储列表标识包括存储列表对应的状态以及传感器标识所在的页表号。例如,传感器标识中包含的传感器序号为36,以及存储列表标识为激活态表中页表17,则表示传感器36的标识被保存在激活态表的页表17中。可选的,采用四个字节保存上述传感器标识。In the embodiment of the present invention, since the number of sensors under the jurisdiction of one BMC is far greater than 255, and the storage lists stored by the sensor identifiers in different states are different. Therefore, if only the serial number of the sensor is used as the sensor ID for storage in the prior art, the sensor serial number in different storage lists may be the same, resulting in the problem of duplication of sensor IDs. It can be seen that, optionally, after the sensor identification is stored in the corresponding storage list, the sensor identification is updated, that is, the storage list identification corresponding to the sensor identification and the sensor serial number are added to the sensor identification; wherein, the storage list identification includes the storage list corresponding to Status and the page table number where the sensor ID resides. For example, the sensor serial number included in the sensor identifier is 36, and the storage list identifier is the page table 17 in the active state table, which means that the identifier of the sensor 36 is stored in the page table 17 of the active state table. Optionally, four bytes are used to save the above sensor identification.

进一步的,在上述BMC中,当用户需要获取数据记录时,即可以通过IPMI指令在BMC的UI界面进行查询。具体的,当BMC接收到用户输入的数据记录查询指令时,获取该数据记录查询指令中携带的事件记录的标识,并根据该事件记录的标识,获取BMC本地数据库中保存的上述事件记录的标识对应的数据记录,其中,事件记录的标识包括事件记录对应的时间属性,以及事件记录的类型属性(如故障告警事件,热插拔事件,传感器输出值超阈值事件等);或者,获取数据记录查询指令中携带的传感器标识,并根据该传感器标识,获取BMC本地数据库中保存的上述传感器标识对应的数据记录,其中,该传感器标识为传感器序号以及传感器标识对应的存储列表标识。可选的,当用户通过IPMI指令查询数据记录时,该IPMI指令为SQL(Structure Query Language;结构化查询语言)格式的数据记录查询指令,BMC对该SQL格式的数据记录查询指令进行解析,获取该SQL格式的数据记录查询指令中携带的事件记录的标识或者传感器标识。Further, in the above-mentioned BMC, when the user needs to obtain the data record, the user can query it on the UI interface of the BMC through the IPMI command. Specifically, when the BMC receives the data record query instruction input by the user, it obtains the identification of the event record carried in the data record query instruction, and according to the identification of the event record, obtains the identification of the above-mentioned event record stored in the BMC local database Corresponding data record, wherein, the identification of the event record includes the time attribute corresponding to the event record, and the type attribute of the event record (such as fault alarm event, hot plug event, sensor output value exceeding threshold event, etc.); or, obtain the data record Query the sensor ID carried in the instruction, and according to the sensor ID, obtain the data record corresponding to the above sensor ID stored in the BMC local database, wherein the sensor ID is the sensor serial number and the storage list ID corresponding to the sensor ID. Optionally, when the user queries data records through an IPMI command, the IPMI command is a data record query command in SQL (Structure Query Language) format, and the BMC parses the data record query command in SQL format to obtain The identifier of the event record or the identifier of the sensor carried in the data record query instruction in the SQL format.

采用上述技术方案,将存储列表中的传感器标识与事件记录进行绑定,生成数据记录存储至BMC的数据库中,从而避免了存储列表与事件记录之间不同步造成的数据记录混乱的问题,保证了BMC中存储列表中传感器标识与事件记录的同步性,提高了基于该存储列表以及事件记录生成的数据记录的准确性。Using the above technical solution, the sensor identification in the storage list is bound to the event record, and the generated data record is stored in the BMC database, thereby avoiding the problem of data record confusion caused by the asynchronous storage list and event record, ensuring The synchronization of sensor identification and event records in the storage list in the BMC is improved, and the accuracy of data records generated based on the storage list and event records is improved.

基于上述BMC,当用户需要对存储列表中的数据记录进行管理时,即向BMC发送IPMI指令对存储列表中的数据记录进行管理。具体为,当BMC接收到用户输入的数据记录管理指令时,获取该数据记录管理指令中携带的传感器标识;根据上述数据记录管理指令中携带的数据记录管理信息,对上述传感器标识对应的数据记录进行调整。Based on the above BMC, when the user needs to manage the data records in the storage list, the user sends an IPMI command to the BMC to manage the data records in the storage list. Specifically, when the BMC receives the data record management instruction input by the user, it acquires the sensor identifier carried in the data record management instruction; according to the data record management information carried in the above data record management instruction, the data record corresponding to the above sensor identifier Make adjustments.

可选的,BMC对传感器标识对应的数据记录进行调整,包括对传感器标识对应的数据记录进行删除,对数据记录进行添加,以及对传感器标识对应的状态及其对应的数据记录进行更改。Optionally, the BMC adjusts the data record corresponding to the sensor identifier, including deleting the data record corresponding to the sensor identifier, adding the data record, and changing the state corresponding to the sensor identifier and the corresponding data record.

BMC对传感器标识对应的数据记录进行调整的过程,具体为:当上述数据记录管理信息为删除数据记录信息时,删除数据库中保存的传感器标识对应的数据记录,以及删除存储列表中传感器标识,即释放传感器标识以及事件记录组成的数据记录所占用的存储空间;当上述数据记录管理信息为添加数据记录信息时,获取待添加传感器标识,并将该待添加传感器标识添加至首选态表或者激活态表中,即在首选态表或者激活态表中创建存储空间,将待添加传感器标识添加至该创建的存储空间后,根据该存储空间标识(即存储列表标识)更新传感器标识;当上述数据记录管理信息为更改传感器标识对应的状态时,获取待更改传感器标识及状态更改信息,并根据上述状态更改信息,将待更改传感器标识存储至相应的存储列表中,以及更新待更改传感器标识对应的数据记录。The process of BMC adjusting the data record corresponding to the sensor ID is specifically: when the above data record management information is delete data record information, delete the data record corresponding to the sensor ID saved in the database, and delete the sensor ID in the storage list, that is Release the storage space occupied by the data records composed of sensor identification and event records; when the above-mentioned data record management information is adding data record information, obtain the sensor identification to be added, and add the sensor identification to be added to the preferred state table or active state In the table, the storage space is created in the preferred state table or the active state table, after the sensor ID to be added is added to the created storage space, the sensor ID is updated according to the storage space ID (that is, the storage list ID); when the above data record When the management information is to change the status corresponding to the sensor ID, obtain the sensor ID to be changed and the status change information, and store the sensor ID to be changed in the corresponding storage list according to the above status change information, and update the data corresponding to the sensor ID to be changed Record.

可选的,更改传感器标识对应的状态即为将传感器标识对应的状态由首选态更改为激活态;或者,将传感器标识对应的状态由激活态更改为首选态。Optionally, changing the state corresponding to the sensor identification means changing the state corresponding to the sensor identification from the preferred state to the active state; or changing the state corresponding to the sensor identification from the active state to the preferred state.

参阅图4所示,根据上述状态更改信息,将待更改传感器标识及其对应的数据记录的过程,具体包括:Referring to Figure 4, according to the above state change information, the process of recording the sensor identification to be changed and its corresponding data includes:

第一种情况:若状态更改信息为将传感器标识对应的状态由首选态更改为激活态,则将传感器标识对应的存储列表由首选态切换为激活态,并更新传感器标识和数据库中保存的上述传感器对应的数据记录。The first case: if the state change information is to change the state corresponding to the sensor identification from the preferred state to the active state, then switch the storage list corresponding to the sensor identification from the preferred state to the active state, and update the sensor identification and the above-mentioned data saved in the database The data record corresponding to the sensor.

第二种情况:若状态更改信息为将传感器标识对应的状态由激活态更改为首选态,则将传感器标识对应的存储列表由激活态切换为首选态,更新传感器标识,以及数据库中保存的上述传感器标识对应的数据记录。The second case: if the state change information is to change the state corresponding to the sensor identification from the active state to the preferred state, then switch the storage list corresponding to the sensor identification from the active state to the preferred state, update the sensor identification, and the above-mentioned information stored in the database The data record corresponding to the sensor ID.

采用上述技术方案,通过将不同状态的传感器标识存储至不同的存储列表中,用户可以通过IPMI指令对存储列表中传感器标识对应的状态进行调整,以及对数据库中的数据记录进行调整,从而有效提高了数据记录管理的灵活性。By adopting the above technical solution, by storing the sensor identifications of different states in different storage lists, the user can adjust the corresponding states of the sensor identifications in the storage list through IPMI instructions, and adjust the data records in the database, thereby effectively improving This increases the flexibility of data record management.

基于上述技术方案,参阅图5所示,本发明实施例中,用户通过IPMI指令访问传感器标识的过程为:Based on the above technical solution, as shown in FIG. 5, in the embodiment of the present invention, the process for the user to access the sensor identification through the IPMI command is:

步骤500:BMC接收用户输入的第一IPMI指令,并获取该IPMI指令中携带的存储列表标识。Step 500: The BMC receives the first IPMI command input by the user, and acquires the storage list identifier carried in the IPMI command.

本发明实施例中,上述IPMI命令可以为OEM(Original Equipment Manufacturer;原厂委托制造)命令,即自定义格式的IPMI命令。例如,若需要访问激活态表的页表0,则BMC接收用户输入的第一IPMI指令(set sensor page id=0)。In the embodiment of the present invention, the aforementioned IPMI command may be an OEM (Original Equipment Manufacturer; original factory entrusted manufacturing) command, that is, an IPMI command in a custom format. For example, if it is necessary to access page table 0 of the active state table, the BMC receives the first IPMI command (set sensor page id=0) input by the user.

步骤510:BMC将上述存储列表标识对应的页表配置为首选态,并向终端发送配置成功指令。Step 510: The BMC configures the page table corresponding to the above storage list identifier as the preferred state, and sends a configuration success instruction to the terminal.

本发明实施例中,BMC将上述存储列表标识对应的页表配置为首选态,即切换至上述存储列表标识对应的页表界面。例如,BMC接收用户通过终端输入的第一IPMI指令(setsensor page id=0)后,将切换至页表0,并向终端发送配置成功指令(set sensor page id=0ok)。In the embodiment of the present invention, the BMC configures the page table corresponding to the storage list identifier as the preferred state, that is, switches to the page table interface corresponding to the storage list identifier. For example, after receiving the first IPMI command (setsensor page id=0) input by the user through the terminal, the BMC will switch to page table 0 and send a configuration success command (set sensor page id=0ok) to the terminal.

步骤520:BMC接收用户发送的第二IPMI指令,并获取该第二IPMI命令中携带的传感器序号。Step 520: The BMC receives the second IPMI command sent by the user, and obtains the serial number of the sensor carried in the second IPMI command.

本发明实施例中,若需要访问激活态存储列表中页表0中的传感器20,则BMC接收用户通过终端发送的第二IPMI指令(get sdr sensornum=0)。In the embodiment of the present invention, if it is necessary to access the sensor 20 in the page table 0 in the active storage list, the BMC receives the second IPMI command (get sdr sensornum=0) sent by the user through the terminal.

步骤530:BMC从上述首选态表中调用上述传感器序号,并终端发送至调用成功指令。Step 530: The BMC calls the above-mentioned sensor serial number from the above-mentioned preferred state table, and the terminal sends a calling success instruction.

本发明实施例中,若需要访问激活态表的页表0中传感器20,则BMC调用激活态表的页表0中传感器20,并向终端发送调用成功指令(sdr sensornum=0)。用户可以通过终端呈现的传感器标识,更改该传感器标识对应的状态。In the embodiment of the present invention, if it is necessary to access the sensor 20 in the page table 0 of the active state table, the BMC calls the sensor 20 in the page table 0 of the active state table, and sends a calling success instruction (sdr sensornum=0) to the terminal. The user can change the status corresponding to the sensor ID through the sensor ID presented by the terminal.

本发明实施例中,用户可以向BMC发送第一IPMI指令以及第二IPMI指令访问传感器标识,可选的,用户还可以向BMC仅发送一条IPMI指令,该IPMI指令中包含存储列表标识以及传感器序号。In the embodiment of the present invention, the user can send the first IPMI instruction and the second IPMI instruction to access the sensor identification to the BMC. Optionally, the user can also send only one IPMI instruction to the BMC, which includes the storage list identification and the sensor serial number .

基于上述技术方案,参阅图6所示,本发明实施例中,用户通过IPMI指令获取数据记录的过程为:Based on the above technical solution, see FIG. 6, in the embodiment of the present invention, the process for the user to obtain the data record through the IPMI command is:

步骤600:BMC接收用户通过终端输入的数据记录查询指令,并获取该数据记录查询指令中携带的事件记录的标识。Step 600: The BMC receives the data record query instruction input by the user through the terminal, and acquires the identifier of the event record carried in the data record query instruction.

本发明实施例中,上述数据记录查询指令为IPMI指令。例如,上述数据记录查询指令可以为如下形式:get sel info(sel id=XX),其中,sel表示时间记录,sel id标识事件记录的标识。In the embodiment of the present invention, the above data record query command is an IPMI command. For example, the above data record query instruction may be in the following form: get sel info (sel id=XX), wherein, sel represents a time record, and sel id identifies the identifier of the event record.

步骤610:BMC通过该事件记录的标识,从数据库中调用该事件记录的标识对应的数据记录。Step 610: The BMC uses the identifier of the event record to call the data record corresponding to the identifier of the event record from the database.

步骤620:BMC将上述数据记录发送至终端。Step 620: the BMC sends the above data record to the terminal.

本发明实施例中,BMC获取上述事件记录的标识对应的数据记录后,可以采用如下形式将数据记录发送至终端:return get sel info。In the embodiment of the present invention, after the BMC obtains the data record corresponding to the identifier of the above event record, it may send the data record to the terminal in the following form: return get sel info.

进一步的,参阅图7所示,本发明实施例中,BMC根据用户输入的配置指令,对处于初始态的传感器进行配置的过程为:Further, referring to FIG. 7, in the embodiment of the present invention, the BMC configures the sensor in the initial state according to the configuration instruction input by the user as follows:

步骤700:接收配置指令,获取该配置指令中携带的状态为初始态的传感器标识以及配置后的状态。Step 700: Receive a configuration instruction, and obtain the initial state sensor identification carried in the configuration instruction and the configured state.

本发明实施例中,配置后的状态包括激活态和首选态。In the embodiment of the present invention, the configured state includes an active state and a preferred state.

步骤710:当上述配置后的状态为首选态时,将传感器标识存储至首选态表的页表中;当上述配置后的状态为首选态时,将传感器标识存储至激活态表的页表中。Step 710: When the above configured state is the preferred state, store the sensor identification in the page table of the preferred state table; when the above configured state is the preferred state, store the sensor identification in the page table of the active state table .

本发明实施例中,参阅图4所示,当根据配置指令将上述传感器标识对应的状态配置为激活态时,在激活态表中创建存储空间,并将该传感器标识存储至上述存储空间中,相应的,若需要将传感器标识从激活态配置为初始态,则将传感器标识从上述激活态表中删除;当根据配置指令将上述传感器标识对应的状态配置为首选态时,在首选态表中创建存储空间,并将该传感器标识存储至上述存储空间中,相应的,若需要将传感器标识从首选态配置为初始态,则将传感器标识从上述首选态表中删除。其中,上述存储空间即为存储列表的页表中的一个存储位置,该任意一页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目,即每一个页表中可保存传感器标识数目不大于255个。In the embodiment of the present invention, as shown in FIG. 4, when the state corresponding to the above-mentioned sensor identification is configured as the active state according to the configuration instruction, a storage space is created in the activation state table, and the sensor identification is stored in the above-mentioned storage space, Correspondingly, if it is necessary to configure the sensor identification from the active state to the initial state, delete the sensor identification from the above-mentioned active state table; when the state corresponding to the above-mentioned sensor identification is configured as the preferred state according to the configuration instruction, the Create a storage space and store the sensor ID in the above storage space. Correspondingly, if the sensor ID needs to be configured from the preferred state to the initial state, delete the sensor ID from the above preferred state table. Wherein, the above-mentioned storage space is a storage location in the page table of the storage list, and the number of sensor identifications contained in any page table is not greater than the threshold number specified in the intelligent platform management interface specification, that is, each page table can store sensor identifications The number is not more than 255.

基于上述技术方案,参阅图8所示,本发明实施例中提供一种传感器管理装置,应用于BMC的传感器管理中,包括接收单元80,查找单元81,切换单元82,以及输出单元83,其中:Based on the above technical solution, referring to FIG. 8 , a sensor management device is provided in an embodiment of the present invention, which is applied in the sensor management of BMC, including a receiving unit 80, a search unit 81, a switching unit 82, and an output unit 83, wherein :

接收单元80,用于接收访问指令,并将所述访问指令发送至查找单元81;a receiving unit 80, configured to receive an access instruction, and send the access instruction to a search unit 81;

查找单元81,用于接收所述接收单元80发送的访问指令,并根据所述访问指令中携带的传感器标识,从本地保存的存储列表中,查找所述传感器标识对应的状态,以及将所述传感器标识对应的状态发送至切换单元82;The search unit 81 is configured to receive the access instruction sent by the receiving unit 80, and according to the sensor identification carried in the access instruction, search for the state corresponding to the sensor identification from the locally stored storage list, and store the The state corresponding to the sensor identification is sent to the switching unit 82;

切换单元82,用于接收所述查找单元81发送的所述传感器标识对应的状态,当所述传感器标识对应的状态为激活态时,将所述存储列表中包含所述传感器标识的页表切换至所述首选态,并将所述包含传感器标识的页表发送至输出单元83;其中,任意一所述页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目;The switching unit 82 is configured to receive the state corresponding to the sensor identification sent by the search unit 81, and switch the page table containing the sensor identification in the storage list when the state corresponding to the sensor identification is an active state Go to the preferred state, and send the page table containing the sensor identification to the output unit 83; wherein, the number of sensor identification contained in any one of the page tables is not greater than the threshold number specified by the intelligent platform management interface specification;

输出单元83,用于接收所述切换单元82发送的包含传感器标识的页表后,输出包含所述传感器标识的页表。The output unit 83 is configured to output the page table including the sensor identifier after receiving the page table including the sensor identifier sent by the switching unit 82 .

参阅图8所示,本发明还提供一种传感器管理设备,应用于BMC的传感器管理中,包括硬件接口90,存储器91,处理器92:As shown in FIG. 8, the present invention also provides a sensor management device, which is applied in the sensor management of BMC, including a hardware interface 90, a memory 91, and a processor 92:

硬件接口90,用于接收访问指令,并将所述访问指令发送至处理器92;a hardware interface 90, configured to receive an access instruction, and send the access instruction to a processor 92;

存储器91,用于存储存储列表,并将所述存储列表发送至处理器92;a memory 91, configured to store a storage list, and send the storage list to a processor 92;

处理器92,用于接收所述硬件接口90发送的访问指令,并根据所述访问指令中携带的传感器标识,从存储器91发送的存储列表中,查找所述传感器标识对应的状态,当所述传感器标识对应的状态为激活态时,将所述存储列表中包含所述传感器标识的页表切换至所述首选态,并将所述包含传感器标识的页表发送至硬件接口90;The processor 92 is configured to receive the access instruction sent by the hardware interface 90, and search the state corresponding to the sensor identifier from the storage list sent by the memory 91 according to the sensor identifier carried in the access instruction, when the When the state corresponding to the sensor identification is an active state, switch the page table containing the sensor identification in the storage list to the preferred state, and send the page table containing the sensor identification to the hardware interface 90;

所述硬件接口90,还用于接收所述处理器92发送的包含传感器标识的页表,并将所述包含传感器标识的页表输出。The hardware interface 90 is further configured to receive the page table containing the sensor identification sent by the processor 92, and output the page table containing the sensor identification.

可选的,所述处理器92,还用于获取所述状态为激活态或者首选态的任意一传感器标识,以及所述状态为激活态或者首选态的任意一传感器标识对应的事件记录;将所述状态为激活态或者首选态的任意一传感器标识以及所述状态为激活态或者首选态的任意一传感器标识对应的事件记录作为一条数据记录发送至所述存储器91;Optionally, the processor 92 is further configured to obtain any sensor identification whose state is an active state or a preferred state, and an event record corresponding to any sensor identification whose state is an active state or a preferred state; The state is any sensor identification of the active state or the preferred state and the event record corresponding to any sensor identification whose state is the active state or the preferred state is sent to the memory 91 as a data record;

可选的,所述存储器91,还用于接收所述处理器92发送的数据记录进行存储。Optionally, the memory 91 is further configured to receive and store data records sent by the processor 92 .

进一步的,所述硬件接口90,还用于接收用户输入的数据记录查询指令,并将所述数据记录查询指令发送至处理器92;Further, the hardware interface 90 is also used to receive a data record query instruction input by the user, and send the data record query instruction to the processor 92;

进一步的,所述处理器92,还用于接收所述硬件接口90发送的所述数据记录查询指令,获取所述数据记录查询指令中携带的事件记录的标识,并根据所述事件记录的标识,获取所述数据库中保存的所述事件记录的标识对应的数据记录;或者,获取所述数据记录查询指令中携带的传感器标识,并根据所述传感器标识,获取所述存储器91中保存的所述传感器标识对应的数据记录。Further, the processor 92 is also configured to receive the data record query instruction sent by the hardware interface 90, obtain the identifier of the event record carried in the data record query instruction, and Obtain the data record corresponding to the identifier of the event record saved in the database; or obtain the sensor identifier carried in the data record query instruction, and obtain all the stored in the memory 91 according to the sensor identifier. The data record corresponding to the above sensor ID.

进一步的,所述硬件接口90,还用于接收用户输入的传感器管理指令,并将所述传感器管理指令发送至所述处理器92;Further, the hardware interface 90 is also configured to receive a sensor management instruction input by a user, and send the sensor management instruction to the processor 92;

进一步的,所述处理器92,还用于接收所述硬件接口90发送的传感器管理指令,获取所述数据记录管理指令中携带的传感器标识以及数据记录管理信息;当所述数据记录管理信息为删除数据记录信息时,删除所述传感器标识所在页表中所述传感器标识,以及删除所述存储器91中保存的所述传感器标识对应的数据记录;当所述数据记录管理信息为添加数据记录信息时,获取待添加传感器标识,将所述待添加传感器标识添加至所述首选态表或者激活态表中;当所述数据记录管理信息为更改传感器标识对应的状态时,获取待更改传感器标识及其状态更改信息,根据所述状态更改信息,将所述待更改传感器标识存储至相应的页表中,以及更新所述存储列表中待更改传感器标识和所述存储器91中保存的待更改传感器标识对应的数据记录。Further, the processor 92 is also configured to receive the sensor management instruction sent by the hardware interface 90, and obtain the sensor identification and data record management information carried in the data record management instruction; when the data record management information is When deleting data record information, delete the sensor identifier in the page table where the sensor identifier is located, and delete the data record corresponding to the sensor identifier stored in the memory 91; when the data record management information is to add data record information When the sensor identification to be added is obtained, the sensor identification to be added is added to the preferred state table or the active state table; when the data record management information is to change the state corresponding to the sensor identification, the sensor identification to be changed and Its state change information, according to the state change information, store the sensor identification to be changed in the corresponding page table, and update the sensor identification to be changed in the storage list and the sensor identification to be changed stored in the memory 91 corresponding data records.

进一步的,所述处理器92,还用于若所述状态更改信息为将待更改传感器标识对应的状态由首选态更改为激活态,则将所述待更改传感器标识所在的首选态表配置为激活态表;若所述状态更改信息为将待更改传感器标识对应的状态由激活态更改为首选态,则将所述待更改传感器标识对应的激活态表配置为首选态表。Further, the processor 92 is further configured to configure the preferred state table in which the sensor identifier to be changed is located if the state change information is to change the state corresponding to the sensor identifier to be changed from the preferred state to the activated state as An active state table; if the state change information is to change the state corresponding to the sensor identity to be changed from the active state to the preferred state, then configure the active state table corresponding to the sensor identity to be changed as the preferred state table.

基于上述技术方案,参阅图10所示,本发明提供一种传感器管理装置,包括接收单元100,获取单元101,以及存储单元102,其中:Based on the above technical solution, as shown in FIG. 10, the present invention provides a sensor management device, including a receiving unit 100, an acquiring unit 101, and a storage unit 102, wherein:

接收单元100,用于接收配置指令,并将配置指令发送至获取单元101;The receiving unit 100 is configured to receive the configuration instruction, and send the configuration instruction to the acquisition unit 101;

获取单元101,用于接收所述接收单元100发送的配置指令,获取所述配置指令中携带的状态为初始态的传感器标识以及配置后的状态,并将所述状态为初始态的传感器标识以及配置后的状态发送至存储单元102;The obtaining unit 101 is configured to receive the configuration instruction sent by the receiving unit 100, obtain the sensor identification in the initial state and the configured state carried in the configuration instruction, and store the sensor identification in the initial state and the configured state in the configuration instruction. The configured state is sent to the storage unit 102;

存储单元102,用于接收所述获取单元101发送的状态为初始态的传感器标识以及配置后的状态,当所述配置后的状态为首选态时,将所述传感器标识存储至所述首选态表的页表中;当所述配置后的状态为激活态时,将所述传感器标识存储至所述激活态表的页表中;其中,任意一所述页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目。The storage unit 102 is configured to receive the sensor identification sent by the acquisition unit 101 as the initial state and the configured state, and when the configured state is the preferred state, store the sensor identification in the preferred state In the page table of the table; when the state after the configuration is an active state, store the sensor identification in the page table of the active state table; wherein, the number of sensor identifications contained in any one of the page tables is not greater than The threshold number specified in the Intelligent Platform Management Interface Specification.

综上所述,本发明实施例中,接收访问指令,根据该访问指令中携带的传感器标识,从本地保存的存储列表中,查找上述传感器标识对应的状态;当上述传感器标识对应的状态为激活态时,将存储列表中包含上述传感器标识的页表切换至首选态;输出包含所述传感器标识的页表。采用本发明技术方案,采用本发明技术方案,根据传感器对应的状态对传感器进行类别划分,令不同状态的传感器标识保存至不同的存储列表中,由于在存储列表中每一个页表均能保存传感器标识的数目为门限值,因此,可以针对每一个待监测组件配置相应的传感器,无须对BMC所管辖的传感器数目进行限制,从而保证了传感器的管理粒度,有效提高了故障定位精度,以及降低了数据记录管理的复杂度。To sum up, in the embodiment of the present invention, after receiving an access instruction, according to the sensor identifier carried in the access instruction, the state corresponding to the above sensor identifier is searched from the locally stored storage list; when the state corresponding to the above sensor identifier is active When in the state, switch the page table containing the above sensor identification in the storage list to the preferred state; output the page table containing the sensor identification. Adopting the technical scheme of the present invention, adopting the technical scheme of the present invention, classify the sensors according to the corresponding state of the sensor, so that the sensor identifications of different states are stored in different storage lists, because each page table in the storage list can save the sensor The number of identifications is the threshold value. Therefore, corresponding sensors can be configured for each component to be monitored, and there is no need to limit the number of sensors under the jurisdiction of the BMC, thereby ensuring the granularity of sensor management, effectively improving the accuracy of fault location, and reducing Increased the complexity of data record management.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and combinations of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart flow or flows and/or block diagram block or blocks.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Apparently, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. In this way, if the modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (11)

1.一种传感器管理方法,应用于基板管理控制器BMC的传感器管理中,其特征在于,所述BMC存储有首选态表以及激活态表,首选态表中记录有状态为首选态的传感器标识,激活态表中记录有状态为激活态的传感器标识,该方法包括:1. A sensor management method, applied in the sensor management of the baseboard management controller BMC, is characterized in that, the BMC stores a preferred state table and an activated state table, and the state is recorded in the preferred state table as the sensor identification of the preferred state , the active state table records the sensor identification whose state is the active state, and the method includes: 接收访问指令,根据访问指令中携带的传感器标识,从本地保存的存储列表中,查找所述传感器标识对应的状态;Receiving an access instruction, searching for a state corresponding to the sensor identifier from a locally stored storage list according to the sensor identifier carried in the access instruction; 当所述传感器标识对应的状态为激活态时,将所述存储列表中包含所述传感器标识的页表切换至所述首选态;其中,任意一所述页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目;When the state corresponding to the sensor identification is the active state, switch the page table containing the sensor identification in the storage list to the preferred state; wherein, the number of sensor identifications contained in any one of the page tables is not greater than the smart The number of thresholds stipulated in the platform management interface specification; 输出包含所述传感器标识的页表。Output a page table containing the sensor ID. 2.如权利要求1所述的方法,其特征在于,所述BMC中还包括与所述首选态表中的各个传感器标识以及激活态表中的各个传感器标识分别对应的数据记录;2. The method according to claim 1, wherein the BMC also includes data records corresponding to each sensor identification in the preferred state table and each sensor identification in the activation state table; 所述首选态表中的任意一传感器标识或者激活态表中的任意一传感器标识对应的数据记录的生成方法,包括:The method for generating data records corresponding to any sensor identifier in the preferred state table or any sensor identifier in the active state table includes: 获取所述状态为激活态或者首选态的任意一传感器标识,以及所述状态为激活态或者首选态的任意一传感器标识对应的事件记录;Obtain any sensor identification whose state is the active state or the preferred state, and an event record corresponding to any sensor identification whose state is the active state or the preferred state; 将所述状态为激活态或者首选态的任意一传感器标识及其对应的事件记录作为一条数据记录,存储至本地数据库中。Store any sensor identification whose state is active or preferred and its corresponding event record as a data record in the local database. 3.如权利要求2所述的方法,其特征在于,在所述数据记录存储至本地数据库后,当接收到用户输入的数据记录查询指令后,进一步包括:3. The method according to claim 2, characterized in that, after the data record is stored in the local database, after receiving the data record query instruction input by the user, further comprising: 获取所述数据记录查询指令中携带的事件记录的标识,并根据所述事件记录的标识,获取所述数据库中保存的所述事件记录的标识对应的数据记录;或者,Obtain the identifier of the event record carried in the data record query instruction, and obtain the data record corresponding to the identifier of the event record stored in the database according to the identifier of the event record; or, 获取所述数据记录查询指令中携带的传感器标识,并根据所述传感器标识,获取所述数据库中保存的所述传感器标识对应的数据记录。Acquiring the sensor identification carried in the data record query instruction, and obtaining the data record corresponding to the sensor identification stored in the database according to the sensor identification. 4.如权利要求2所述的方法,其特征在于,在所述数据记录存储至本地数据库后,当接收到用户输入的数据记录管理指令后,进一步包括:4. The method according to claim 2, characterized in that, after the data record is stored in the local database, after receiving the data record management instruction input by the user, further comprising: 获取所述数据记录管理指令中携带的传感器标识以及数据记录管理信息;Obtain the sensor identification and data record management information carried in the data record management instruction; 当所述数据记录管理信息为删除数据记录信息时,删除所述传感器标识所在页表中的所述传感器标识,以及删除所述数据库中保存的所述传感器标识对应的数据记录;When the data record management information is delete data record information, delete the sensor identifier in the page table where the sensor identifier is located, and delete the data record corresponding to the sensor identifier stored in the database; 当所述数据记录管理信息为添加数据记录信息时,获取待添加传感器标识,将所述待添加传感器标识添加至所述首选态表或所述激活态表中;When the data record management information is added data record information, acquire the sensor identification to be added, and add the sensor identification to be added to the preferred state table or the activated state table; 当所述数据记录管理信息为更改传感器标识对应的状态时,获取待更改传感器标识及其状态更改信息,根据所述状态更改信息,将所述待更改传感器标识存储至相应的页表中,以及更新所述存储列表中待更改传感器标识和所述数据库中保存的待更改传感器标识对应的数据记录。When the data record management information is to change the state corresponding to the sensor identity, acquire the sensor identity to be changed and its state change information, store the sensor identity to be changed in a corresponding page table according to the state change information, and Updating the data record corresponding to the sensor ID to be changed in the storage list and the sensor ID to be changed stored in the database. 5.如权利要求4所述的方法,其特征在于,根据所述状态更改信息,将所述待更改传感器标识存储至相应的页表中,具体包括:5. The method according to claim 4, wherein, according to the state change information, the sensor identification to be changed is stored in a corresponding page table, specifically comprising: 若所述状态更改信息为将待更改传感器标识对应的状态由首选态更改为激活态,则将所述待更改传感器标识所在的首选态表配置为激活态表;If the state change information is to change the state corresponding to the sensor identity to be changed from the preferred state to the active state, then configure the preferred state table where the sensor identity to be changed is located as the active state table; 若所述状态更改信息为将待更改传感器标识对应的状态由激活态更改为首选态,则将所述待更改传感器标识所在的激活态表配置为首选态表。If the state change information is to change the state corresponding to the sensor ID to be changed from the active state to the preferred state, the active state table where the sensor ID to be changed is configured as the preferred state table. 6.一种传感器管理装置,应用于基板管理控制器BMC的传感器管理中,其特征在于,所述传感器管理装置存储有首选态表以及激活态表,首选态表中记录有状态为首选态的传感器标识,激活态表中记录有状态为激活态的传感器标识,该装置包括:6. A sensor management device, which is applied in the sensor management of the baseboard management controller BMC, is characterized in that, the sensor management device stores a preferred state table and an activated state table, and the preferred state table records that the state is the preferred state Sensor identification, the activation status table records the sensor identification status as the activation status, and the device includes: 接收单元,用于接收访问指令,并将所述访问指令发送至查找单元;a receiving unit, configured to receive an access instruction, and send the access instruction to a search unit; 查找单元,用于接收所述接收单元发送的访问指令,并根据所述访问指令中携带的传感器标识,从本地保存的存储列表中,查找所述传感器标识对应的状态,以及将所述传感器标识对应的状态发送至切换单元;The search unit is configured to receive the access instruction sent by the receiving unit, and according to the sensor identification carried in the access instruction, search for the state corresponding to the sensor identification from the locally stored storage list, and store the sensor identification The corresponding state is sent to the switching unit; 切换单元,用于接收所述查找单元发送的所述传感器标识对应的状态,当所述传感器标识对应的状态为激活态时,将所述存储列表中包含所述传感器标识的页表切换至所述首选态,并将所述包含传感器标识的页表发送至输出单元;其中,任意一所述页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目;A switching unit, configured to receive the state corresponding to the sensor identification sent by the search unit, and switch the page table containing the sensor identification in the storage list to the The first state is described, and the page table containing the sensor identification is sent to the output unit; wherein, the number of sensor identifications contained in any one of the page tables is not greater than the threshold number specified in the intelligent platform management interface specification; 输出单元,用于接收所述切换单元发送的包含传感器标识的页表后,输出包含所述传感器标识的页表。The output unit is configured to output the page table containing the sensor identification after receiving the page table containing the sensor identification sent by the switching unit. 7.如权利要求6所述的装置,其特征在于,还包括存储单元,用于:7. The device according to claim 6, further comprising a storage unit for: 获取所述状态为激活态或者首选态的任意一传感器标识,以及所述状态为激活态或者首选态的任意一传感器标识对应的事件记录;将所述状态为激活态或者首选态的任意一传感器标识及其对应的事件记录作为一条数据记录,存储至本地数据库中。Obtain any sensor identification whose status is active or preferred, and the event record corresponding to any sensor identification whose status is active or preferred; set any sensor whose status is active or preferred The identifier and its corresponding event record are stored in the local database as a data record. 8.如权利要求7所述的装置,其特征在于,还包括数据记录获取单元,用于:8. The device according to claim 7, further comprising a data record acquisition unit configured to: 在所述数据记录存储至本地数据库后,当接收到用户输入的数据记录查询指令后,获取所述数据记录查询指令中携带的事件记录的标识,并根据所述事件记录的标识,获取所述数据库中保存的所述事件记录的标识对应的数据记录;或者,获取所述数据记录查询指令中携带的传感器标识,并根据所述传感器标识,获取所述数据库中保存的所述传感器标识对应的数据记录。After the data record is stored in the local database, after receiving the data record query instruction input by the user, the identifier of the event record carried in the data record query instruction is obtained, and according to the identifier of the event record, the The data record corresponding to the identifier of the event record stored in the database; or, acquiring the sensor identifier carried in the data record query instruction, and according to the sensor identifier, obtaining the corresponding event record stored in the database data record. 9.如权利要求7所述的装置,其特征在于,还包括处理单元,用于:9. The device according to claim 7, further comprising a processing unit configured to: 在所述数据记录存储至本地数据库后,当接收到用户输入的传感器管理指令后,获取所述数据记录管理指令中携带的传感器标识以及数据记录管理信息;当所述数据记录管理信息为删除数据记录信息时,删除所述传感器标识所在页表中的所述传感器标识,以及删除所述数据库中保存的所述传感器标识对应的数据记录;当所述数据记录管理信息为添加数据记录信息时,获取待添加传感器标识,将所述待添加传感器标识添加至所述首选态表或激活态表中;当所述数据记录管理信息为更改传感器标识对应的状态时,获取待更改传感器标识及其状态更改信息,根据所述状态更改信息,将所述待更改传感器标识存储至相应的页表中,以及更新所述存储列表中待更改传感器标识和所述数据库中保存的待更改传感器标识对应的数据记录。After the data record is stored in the local database, after receiving the sensor management instruction input by the user, acquire the sensor identification and data record management information carried in the data record management instruction; when the data record management information is delete data When recording information, delete the sensor ID in the page table where the sensor ID is located, and delete the data record corresponding to the sensor ID stored in the database; when the data record management information is adding data record information, Obtain the sensor identification to be added, and add the sensor identification to be added to the preferred state table or the active state table; when the data record management information is to change the state corresponding to the sensor identification, obtain the sensor identification to be changed and its state modifying information, storing the sensor identification to be changed in a corresponding page table according to the state change information, and updating the data corresponding to the sensor identification to be modified in the storage list and the sensor identification to be modified stored in the database Record. 10.如权利要求9所述的装置,其特征在于,所述处理单元,具体用于:10. The device according to claim 9, wherein the processing unit is specifically configured to: 若所述状态更改信息为将待更改传感器标识对应的状态由首选态更改为激活态,则将所述待更改传感器标识所在的首选态表配置为激活态表;若所述状态更改信息为将待更改传感器标识对应的状态由激活态更改为首选态,则将所述待更改传感器标识所在的激活态表配置为首选态表。If the state change information is to change the state corresponding to the sensor identification to be changed from the preferred state to the active state, the preferred state table where the sensor identification to be changed is configured as an active state table; When the state corresponding to the sensor ID to be changed is changed from the active state to the preferred state, the active state table where the sensor ID to be changed is located is configured as the preferred state table. 11.一种传感器管理方法,应用于基板管理控制器BMC的传感器管理中,其特征在于,所述BMC存储有首选态表、激活态表以及初始态表,首选态表中记录有状态为首选态的传感器标识,激活态表中记录有状态为激活态的传感器标识,该方法包括:11. A sensor management method, applied in the sensor management of the baseboard management controller BMC, characterized in that, the BMC stores a preferred state table, an activated state table and an initial state table, and the state recorded in the preferred state table is preferred The sensor identification of the active state, the sensor identification of the active state is recorded in the active state table, and the method includes: 接收配置指令,获取所述配置指令中携带的状态为初始态的传感器标识以及配置后的状态;Receiving a configuration instruction, obtaining the sensor identification carried in the configuration instruction as the initial state and the configured state; 当所述配置后的状态为首选态时,将所述传感器标识存储至所述首选态表的页表中;When the configured state is the preferred state, storing the sensor identification in the page table of the preferred state table; 当所述配置后的状态为激活态时,将所述传感器标识存储至所述激活态表的页表中;其中,任意一所述页表包含的传感器标识数目不大于智能平台管理接口规范规定的门限数目。When the configured state is the active state, store the sensor identification in the page table of the active state table; wherein, the number of sensor identifications contained in any one of the page tables is not greater than the intelligent platform management interface specification the number of thresholds.
CN201410099428.6A 2014-03-17 2014-03-17 A kind of Method of Sensor Management and device Active CN103885865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410099428.6A CN103885865B (en) 2014-03-17 2014-03-17 A kind of Method of Sensor Management and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410099428.6A CN103885865B (en) 2014-03-17 2014-03-17 A kind of Method of Sensor Management and device

Publications (2)

Publication Number Publication Date
CN103885865A CN103885865A (en) 2014-06-25
CN103885865B true CN103885865B (en) 2017-03-15

Family

ID=50954773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410099428.6A Active CN103885865B (en) 2014-03-17 2014-03-17 A kind of Method of Sensor Management and device

Country Status (1)

Country Link
CN (1) CN103885865B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9916270B2 (en) * 2015-03-27 2018-03-13 Intel Corporation Virtual intelligent platform management interface (IPMI) satellite controller and method
US10659479B2 (en) * 2015-03-27 2020-05-19 Mcafee, Llc Determination of sensor usage
CN108228426A (en) * 2018-01-19 2018-06-29 郑州云海信息技术有限公司 A kind of method and apparatus for recording SDR information
CN108182278A (en) * 2018-01-26 2018-06-19 郑州云海信息技术有限公司 A kind of FRU information maintenance methods and relevant apparatus
US11443036B2 (en) * 2019-07-30 2022-09-13 Hewlett Packard Enterprise Development Lp Facial recognition based security by a management controller
CN111006704B (en) * 2019-11-29 2021-11-23 江苏智冷物联技术有限公司 Sensor data processing method, management platform and sensor header
CN112988859A (en) * 2019-12-17 2021-06-18 中国移动通信集团浙江有限公司 Data processing method and device, computing equipment and computer storage medium
CN112486578B (en) * 2020-11-13 2022-07-08 苏州浪潮智能科技有限公司 A method, system, terminal and storage medium for dynamically loading sensors by BMC

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6226760B1 (en) * 1997-09-26 2001-05-01 Daimlerchrysler Ag Method and apparatus for detecting faults
CN101149688A (en) * 2006-09-19 2008-03-26 株式会社理光 Virtualization system, internal memory managing method and controlling program
CN101339515A (en) * 2007-07-06 2009-01-07 宏正自动科技股份有限公司 Sensor program management method and system
CN101576842A (en) * 2008-05-07 2009-11-11 英业达股份有限公司 Monitoring system and method for baseboard management controller
CN102073574A (en) * 2009-11-23 2011-05-25 英业达股份有限公司 Server management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6516399B2 (en) * 2001-03-30 2003-02-04 Koninklijke Philips Electronics N.V. Dynamically configurable page table

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6226760B1 (en) * 1997-09-26 2001-05-01 Daimlerchrysler Ag Method and apparatus for detecting faults
CN101149688A (en) * 2006-09-19 2008-03-26 株式会社理光 Virtualization system, internal memory managing method and controlling program
CN101339515A (en) * 2007-07-06 2009-01-07 宏正自动科技股份有限公司 Sensor program management method and system
CN101576842A (en) * 2008-05-07 2009-11-11 英业达股份有限公司 Monitoring system and method for baseboard management controller
CN102073574A (en) * 2009-11-23 2011-05-25 英业达股份有限公司 Server management system

Also Published As

Publication number Publication date
CN103885865A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN103885865B (en) A kind of Method of Sensor Management and device
US12260102B2 (en) Distributed storage method and device
CN107911249B (en) Method, device and equipment for sending command line of network equipment
CA2960982C (en) Method for processing acquire lock request and server
CN103500191B (en) Flow table configuration, query and table item deleting method and device
US9281992B2 (en) Method and system for identifying storage device
CN106059825A (en) Distributed system and configuration method
KR20190006988A (en) IDENTIFICATION INFORMATION GENERATION METHOD, DEVICE, FACILITY,
CN106878084B (en) Authority control method and device
KR20170066503A (en) Multi-screen sharing based application management method and device, and storage medium
CN106909568A (en) A kind of changing method and device of data-base cluster MDL
US11283689B2 (en) Method for managing multiple servers and device employing method
CN106034112A (en) Access control, policy acquisition, attribute acquisition method and related devices
US10051552B2 (en) Method for realizing resource attribute notification, and common service entity
US10693731B2 (en) Flow entry management method and device
US20180302404A1 (en) Method for processing data request and system therefor, access device, and storage device
US20140365445A1 (en) Server with file managing function and file managing method
CN110278101A (en) Resource management method and device
US20200081597A1 (en) Application program management method and apparatus
CN107872336B (en) Mounting point identification method and system and identification management equipment
CN109656610B (en) Distributed data hot updating method and device for online game
CN104717258B (en) A kind of data transmission method for uplink and system
CN107547382B (en) Neighbor relation discovery method and device
CN108259214B (en) Configuration command management method, device and machine-readable storage medium
US10649793B2 (en) Application synchronization method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211222

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.