CN109344027A - A kind of method and device of monitoring device component states - Google Patents

A kind of method and device of monitoring device component states Download PDF

Info

Publication number
CN109344027A
CN109344027A CN201811028796.6A CN201811028796A CN109344027A CN 109344027 A CN109344027 A CN 109344027A CN 201811028796 A CN201811028796 A CN 201811028796A CN 109344027 A CN109344027 A CN 109344027A
Authority
CN
China
Prior art keywords
configuration
sdr
component
default
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811028796.6A
Other languages
Chinese (zh)
Inventor
郑驰
梁思谦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang High Hung Principal (zhejiang) Mdt Infotech Ltd
Original Assignee
Datang High Hung Principal (zhejiang) Mdt Infotech 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 Datang High Hung Principal (zhejiang) Mdt Infotech Ltd filed Critical Datang High Hung Principal (zhejiang) Mdt Infotech Ltd
Priority to CN201811028796.6A priority Critical patent/CN109344027A/en
Publication of CN109344027A publication Critical patent/CN109344027A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method and device of monitoring device component states, default SDR configuration file is preserved in the SDR Repository of BMC, method includes: to detect the change state of apparatus assembly;According to default SDR configuration file, the current configuration state of each component is detected, reads each component configuration item in default SDR configuration file one by one, for each component Configuration item, the current configuration state of detection components records corresponding label information according to testing result;The current configuration state for the component that will test out is compared with the default configuration state of the corresponding assembly in default SDR configuration file, if current configuration state and default configuration state consistency, record and do not change label, otherwise record variation is marked;If the random component in default SDR configuration file has recorded variation label, default SDR default document is deleted, according to the current configuration state of each component, generates dynamic SDR configuration file.Method and device under this invention is capable of the state of dynamic monitoring device component.

Description

A kind of method and device of monitoring device component states
Technical field
The present invention relates to a kind of method and devices of monitoring device component states, belong to computer equipment technical field.
Background technique
Currently, baseboard management controller (BMC, Baseboard Management Controller) monitors each equipment group The method of part state is realized by SDR configuration file (SDR, Sensor Data Record).SDR configuration file is stored in In SDR Repository, which is located in a storage chip of BMC firmware chip or mainboard, the equipment where BMC SDR Repository has been fixed after shipment.In SDR configuration file, using each apparatus assembly as sensor (Sensor) It being monitored and manages, i.e., the apparatus assembly that the equipment is monitored is used as sensor to be uniquely present in SDR configuration file, It include several bar assembly configuration items in SDR configuration file, each component configuration item includes sensor name, sensor type, sensing The various threshold values of device, the contents such as event for the sensor to be monitored.
Actual conditions are, no matter in the process of development or shipment to user after, mainboard, the cabinet (Chassis) of equipment Or the configuration of apparatus assembly is likely to change, and component Configuration is increased or decreased according to practical business scene, in order to supervise Control the apparatus assembly increased or decreased, it is necessary to BMC firmware is customized again, can additionally increase cost, it is also unrealistic.
Goal of the invention
In view of above-mentioned purpose, the purpose of the present invention is to provide a kind of method and device of monitoring device component states, energy The state of enough dynamic monitoring device components.
To achieve the above object, the invention adopts the following technical scheme:
A kind of method of monitoring device component states preserves default SDR configuration text in the SDR Repository of BMC Part, comprising:
S1: the change state of apparatus assembly is detected;
S2: according to the default SDR configuration file, the current configuration state of each component is detected;
S3: according to the current configuration state of each component, dynamic SDR configuration file is generated.
Optionally, in the step S2, according to the default SDR configuration file, the current configuration state of each component is detected Method be: read each component configuration item in the default SDR configuration file, for each component Configuration item, detection one by one The current configuration state of component records corresponding label information according to testing result.
Optionally, in the step S3, according to the current configuration state of each component, the side of dynamic SDR configuration file is generated Method is: the default configuration of the current configuration state for the component that will test out and the corresponding assembly in the default SDR configuration file State is compared, if the current configuration state and default configuration state consistency, record and do not change label, if described current Configuration status and default configuration state are inconsistent, then record variation label;If the random component in the default SDR configuration file The variation label is had recorded, then deletes the default SDR default document, it is raw according to the current configuration state of each component At the dynamic SDR configuration file.
Optionally, the component Configuration item is mainboard, reads the EEPROM storage chip integrated on front console, to obtain The configuration information of the mainboard.
Optionally, the component Configuration item is power supply, and the power supply is connected to BMC by GPIO signal, by detecting institute The existence of power supply described in GPIO signal detection is stated, the power supply passes through the reservation state sense command of power management bus, institute BMC is stated by sending the configuration information that the state-detection order obtains the power supply to the power supply.
Optionally, the component Configuration item is hard disk backboard, and BMC reads PSoC*'s by I2C bus or SMBUS bus Predetermined register is to obtain the configuration information of the hard disk backboard.
Optionally, the component Configuration item is fan, and the fan is connected to BMC by GPIO signal, by detecting institute State the existence of fan described in GPIO signal detection.
The present invention also provides a kind of device of monitoring device component states, preserved in the SDR Repository of BMC silent Recognize SDR configuration file, comprising:
State detection module, the change state for detection device component;
Default configuration detection module reads the default SDR configuration for obtaining the default SDR configuration file one by one Each component configuration item in file, for each component Configuration item, the current configuration state of detection components is remembered according to testing result Record corresponding label information;
Dynamic SDR configuration file generation module judges the default for the label information according to each component Configuration item It whether there is the changed component of configuration status in SDR configuration file, then delete the default SDR configuration file if it exists, Dynamic SDR configuration file is generated according to the current configuration state of each component.
The present invention has the advantages that
The method and device of monitoring device component states of the invention, by detecting the change state of apparatus assembly, root According to default SDR configuration file, the current configuration state of each component is detected, according to the current configuration state of each component, generates dynamic SDR configuration file, can dynamically monitor and update the state of apparatus assembly, and configuration flexibly, is not necessarily to customize BMC firmware again.
Detailed description of the invention
Fig. 1 is method flow schematic diagram of the invention.
Fig. 2 is the device of the invention structural schematic diagram.
Specific embodiment
Below in conjunction with drawings and examples, the present invention is described in further detail.
Fig. 1 is method flow schematic diagram of the invention.As shown, the side of monitoring device component states provided by the invention Method, comprising:
S1: the change state of apparatus assembly is detected;
Wherein, the change state of apparatus assembly is, for example, to increase or remove with lower component: fan, power supply, processor, storage Module, I/O module, hard disk backboard, front console etc..
In the embodiment of the present invention, the change of BMC detection device component depends on the design of mainboard.In the embodiment of the present invention, BMC can be detected by being connected to the general output signal output (GPIO, General Purpose Input Output) of BMC Whether each apparatus assembly whether there is or be pulled out.Wherein hard disk backboard can also pass through I2C except through GPIO signal detection Bus/System Management Bus (SMBUS, System Management Bus) is communicated with BMC.Method particularly includes: it is integrated on backboard PSoC* (Cypress Programmable System-on-Chip) programmable systemonchip, wherein " * " indicates PSoC Different model, BMC obtained by the predetermined register (such as register 0x90) that I2C bus or SMBUS bus read PSoC* The configuration information of hard disk backboard is taken, for example, judging that hard disk backboard is deposited if the return value for reading register 0x90 is 0x01 , and 2.5 cun of 4 disk position of the model SAS backboard of hard disk backboard, support 4 2.5 cun of SAS mechanical hard disks.
S2: according to default SDR configuration file, the current configuration state of each apparatus assembly is detected;
Wherein, default SDR configuration file is the fixed SDR configuration text being stored in SDR Repository after equipment factory Part.
Specific method is: obtaining default SDR configuration file, reads each component Configuration in default SDR configuration file one by one , for each component Configuration item, the current configuration state of detection components records corresponding label information according to testing result.
For example, the first bar assembly configuration item be mainboard, detect the current configuration state of mainboard, obtain mainboard there are shapes State, the configuration informations such as cabinet type that present motherboards system, product type, present motherboards system are supported.In the embodiment of the present invention, The method for detecting the current configuration state of mainboard is: EEPROM ((Electrically Erasable is integrated on front console Programmable read only memory) storage chip, main board system, product are preserved in the EEPROM storage chip The configuration informations such as the cabinet type that model, present motherboards system are supported, BMC are communicated by I2C bus with EEPROM storage chip, Obtain main board system, product type, the configuration informations such as cabinet type.
Article 2 component Configuration item is power supply, detects the existence of power supply, the configuration informations such as model of current power.Inspection The method for surveying the current configuration state of power supply is to send specific power management bus command (PMBUS, Power to power module Management Bus), to obtain the current configuration information of power supply.In the embodiment of the present invention, it can be connected to by power module The GPIO signal of BMC whether there is to detect power supply firmware.Power module is customized, power module passes through power management bus (PMBUS, Power Management Bus) reserves the configuration information that sense command (such as 07h) is used to detect power module, Subsequent BMC can obtain the current configuration information of power module, including electricity by sending PMUBS 07h order to power module Source model and version information.
Article 3 component Configuration item is hard disk backboard, detects the existence of hard disk backboard, the model etc. of present hard discs is matched Confidence breath;BMC reads the configuration information that PSoC* particular register obtains hard disk backboard by I2C bus or SMBUS bus.
Article 4 component Configuration item is fan, the existence of fan is detected, when configuration informations such as the models of forefan; BMC is by being connected to whether the GPIO signal monitoring fan of BMC is inserted into or extracts to the detection of fan.
S3: according to the current configuration state of each apparatus assembly, dynamic SDR configuration file is generated;
According to default SDR configuration file, the current configuration state of each component configuration item of one by onechecking, the component that will test out Current configuration state be compared with the default configuration state of corresponding assembly in default SDR configuration file, if being currently configured State and default configuration state consistency, then record and do not change label, if current configuration state and default configuration state are inconsistent, Record variation label.
If the random component in default SDR configuration file has recorded variation label, default SDR default document, root are deleted According to the current configuration state of each component, dynamic SDR configuration file is generated.
S4: dynamic SDR configuration file is stored in SDR Repository.
Fig. 2 is the device of the invention structural schematic diagram.As shown, the dress of monitoring device component states provided by the invention It sets, comprising:
State detection module, the change state for detection device component;
Default configuration detection module is read in default SDR configuration file one by one for obtaining default SDR configuration file Each component configuration item, for each component Configuration item, the current configuration state of detection components, record is corresponding according to testing result Label information;
Dynamic SDR configuration file generation module judges to default SDR for the label information according to each component Configuration item It whether there is the changed component of configuration status in configuration file, default SDR configuration file then deleted if it exists, according to each group The current configuration state of part generates dynamic SDR configuration file.
The method and device of monitoring device component states of the invention, passes through the current-configuration of each apparatus assembly of dynamic detection State, judges whether the state of apparatus assembly changes, if there is the variation of random component generating state, regenerates newest match Set the SDR configuration file of state.The present invention can be realized apparatus assembly state dynamic monitoring, apparatus assembly state in real time more Newly, without customizing BMC again, configuration is flexible, save the cost.
The above is presently preferred embodiments of the present invention and its technical principle used, for those skilled in the art For, without departing from the spirit and scope of the present invention, any equivalent change based on the basis of technical solution of the present invention Change, simple replacement etc. is obvious changes, all fall within the protection scope of the present invention.

Claims (8)

1. a kind of method of monitoring device component states, default SDR configuration file is preserved in the SDR Repository of BMC, It is characterised by comprising:
S1: the change state of apparatus assembly is detected;
S2: according to the default SDR configuration file, the current configuration state of each component is detected;
S3: according to the current configuration state of each component, dynamic SDR configuration file is generated.
2. the method according to claim 1, wherein configuring text according to the default SDR in the step S2 Part, the method for detecting the current configuration state of each component is: reading each component Configuration in the default SDR configuration file one by one , for each component Configuration item, the current configuration state of detection components records corresponding label information according to testing result.
3. according to the method described in claim 2, it is characterized in that, in the step S3, according to the current-configuration shape of each component State, the method for generating dynamic SDR configuration file is: the current configuration state for the component that will test out and the default SDR are configured The default configuration state of corresponding assembly in file is compared, if the current configuration state and default configuration state consistency, It then records and does not change label, if the current configuration state and default configuration state are inconsistent, record variation label;If described Random component in default SDR configuration file has recorded the variation label, then deletes the default SDR default document, according to The current configuration state of each component generates the dynamic SDR configuration file.
4. according to the method described in claim 2, it is characterized in that, the component Configuration item be mainboard, read front console on Integrated EEPROM storage chip, to obtain the configuration information of the mainboard.
5. according to the method described in claim 2, the power supply passes through it is characterized in that, the component Configuration item is power supply GPIO signal is connected to BMC, and by detecting the existence of power supply described in the GPIO signal detection, the power supply passes through power supply The sense command of bus reservation state is managed, the BMC obtains the electricity by sending the state-detection order to the power supply The configuration information in source.
6. according to the method described in claim 2, BMC passes through 12C it is characterized in that, the component Configuration item is hard disk backboard Bus or SMBUS bus read the predetermined register of PSoC* to obtain the configuration information of the hard disk backboard.
7. according to the method described in claim 2, the fan passes through it is characterized in that, the component Configuration item is fan GPIO signal is connected to BMC, by the existence for detecting fan described in the GPIO signal detection.
8. a kind of device of monitoring device component states, default SDR configuration file is preserved in the SDR Repository of BMC, It is characterised by comprising:
State detection module, the change state for detection device component;
Default configuration detection module reads the default SDR configuration file for obtaining the default SDR configuration file one by one In each component configuration item, for each component Configuration item, the current configuration state of detection components records phase according to testing result The label information answered;
Dynamic SDR configuration file generation module judges the default SDR for the label information according to each component Configuration item It whether there is the changed component of configuration status in configuration file, then delete the default SDR configuration file if it exists, according to The current configuration state of each component generates dynamic SDR configuration file.
CN201811028796.6A 2018-09-04 2018-09-04 A kind of method and device of monitoring device component states Pending CN109344027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811028796.6A CN109344027A (en) 2018-09-04 2018-09-04 A kind of method and device of monitoring device component states

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811028796.6A CN109344027A (en) 2018-09-04 2018-09-04 A kind of method and device of monitoring device component states

Publications (1)

Publication Number Publication Date
CN109344027A true CN109344027A (en) 2019-02-15

Family

ID=65296985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811028796.6A Pending CN109344027A (en) 2018-09-04 2018-09-04 A kind of method and device of monitoring device component states

Country Status (1)

Country Link
CN (1) CN109344027A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414178A (en) * 2020-03-12 2020-07-14 苏州浪潮智能科技有限公司 Equipment information updating method, device, equipment and medium
CN111724649A (en) * 2020-07-22 2020-09-29 湖南中昱智云物联科技有限公司 Automatic component identification system of Internet of things teaching and training platform and application thereof
CN112631878A (en) * 2020-12-24 2021-04-09 苏州浪潮智能科技有限公司 Method and equipment for dynamically generating SDR information

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060158325A1 (en) * 2005-01-04 2006-07-20 Samsung Electronics Co., Ltd. Management system and method using virtual SDR (sensor data record)
CN101576842A (en) * 2008-05-07 2009-11-11 英业达股份有限公司 System and method for monitoring baseboard management controller
US20120110308A1 (en) * 2010-11-03 2012-05-03 Inventec Corporation Method for controlling bmc having customized sdr
CN102467435A (en) * 2010-11-10 2012-05-23 英业达股份有限公司 Control method of baseboard management controller with customized sensor data records
CN103914323A (en) * 2013-01-08 2014-07-09 鸿富锦精密工业(深圳)有限公司 Baseboard management controller updating system and updating method
US20150052596A1 (en) * 2013-08-13 2015-02-19 American Megatrends, Inc. Network based firmware feature configuration and firmware image generation
US20150127814A1 (en) * 2013-11-07 2015-05-07 Inventec Corporation Monitoring Server Method
CN107645424A (en) * 2017-08-24 2018-01-30 郑州云海信息技术有限公司 A kind of method and system of BMC Sensor pressure test scripts

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060158325A1 (en) * 2005-01-04 2006-07-20 Samsung Electronics Co., Ltd. Management system and method using virtual SDR (sensor data record)
CN101576842A (en) * 2008-05-07 2009-11-11 英业达股份有限公司 System and method for monitoring baseboard management controller
US20120110308A1 (en) * 2010-11-03 2012-05-03 Inventec Corporation Method for controlling bmc having customized sdr
CN102467435A (en) * 2010-11-10 2012-05-23 英业达股份有限公司 Control method of baseboard management controller with customized sensor data records
CN103914323A (en) * 2013-01-08 2014-07-09 鸿富锦精密工业(深圳)有限公司 Baseboard management controller updating system and updating method
US20150052596A1 (en) * 2013-08-13 2015-02-19 American Megatrends, Inc. Network based firmware feature configuration and firmware image generation
US20150127814A1 (en) * 2013-11-07 2015-05-07 Inventec Corporation Monitoring Server Method
CN107645424A (en) * 2017-08-24 2018-01-30 郑州云海信息技术有限公司 A kind of method and system of BMC Sensor pressure test scripts

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈磊等: "基于IPMI的CPCI加固计算机BIT技术研究与设计", 《现代工业经济和信息化》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414178A (en) * 2020-03-12 2020-07-14 苏州浪潮智能科技有限公司 Equipment information updating method, device, equipment and medium
CN111724649A (en) * 2020-07-22 2020-09-29 湖南中昱智云物联科技有限公司 Automatic component identification system of Internet of things teaching and training platform and application thereof
CN112631878A (en) * 2020-12-24 2021-04-09 苏州浪潮智能科技有限公司 Method and equipment for dynamically generating SDR information

Similar Documents

Publication Publication Date Title
CN109344027A (en) A kind of method and device of monitoring device component states
CN107532884B (en) Determining curvature of a device in an intelligent bendable system
CN105938450A (en) Automatic debug information collection method and system
US20150379493A9 (en) Service data record system and pos system with the same
TW201227341A (en) Remote management systems and methods for servers, and computer program products thereof
US20130204562A1 (en) Electronic device and method for detecting voltage of the electronic device
CN206696840U (en) A kind of server storage system framework
CN104850421B (en) Computer system and detection method of universal sequence bus device thereof
CN104298583A (en) Mainboard management system and method based on baseboard management controller
US20140244203A1 (en) Testing system and method of inter-integrated circuit bus
CN107783788A (en) The method started shooting after detection means and detection before start
CN101441589A (en) Detection method of substrate management controller and server thereof
US20140359377A1 (en) Abnormal information output system for a computer system
CN113868042A (en) Intrusion detection circuit, method and device for server case and storage medium
CN102681928A (en) Abnormal information output system of computer system
US11537501B2 (en) Method and device for monitoring server based on recordings of data from sensors, and non-transitory storage medium
US8928393B1 (en) Temperature switch circuit having dynamic temperature thresholds
US20120278030A1 (en) Computing device and method for configuring assembly information of a data center
US10437270B2 (en) Systems and methods for reporting of excessive vibration conditions in a storage resource
CN105975382A (en) Hardware configuration change alarming method
CN113468189A (en) Equipment information management method, device and system
CN109213643B (en) Method and device for dynamically managing daughter card sensor of server
US11334359B2 (en) Systems and methods for management of dynamic devices
CN113407180B (en) Configuration page generation method, system, equipment and medium
CN110633240A (en) Electronic system capable of detecting hot plug times

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190215