CN112631878A - Method and equipment for dynamically generating SDR information - Google Patents
Method and equipment for dynamically generating SDR information Download PDFInfo
- Publication number
- CN112631878A CN112631878A CN202011550137.6A CN202011550137A CN112631878A CN 112631878 A CN112631878 A CN 112631878A CN 202011550137 A CN202011550137 A CN 202011550137A CN 112631878 A CN112631878 A CN 112631878A
- Authority
- CN
- China
- Prior art keywords
- information
- sdr
- devices
- mainboard
- sdr information
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000004044 response Effects 0.000 claims abstract description 13
- 238000001514 detection method Methods 0.000 claims description 14
- 230000001960 triggered effect Effects 0.000 claims description 7
- 230000000873 masking effect Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0016—Inter-integrated circuit (I2C)
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a method and a device for dynamically generating SDR information, wherein the method comprises the following steps: generating basic SDR information based on the detected information of any one device on the mainboard and displaying the basic SDR information; detecting whether other devices exist on the mainboard or not in a preset mode; in response to detecting that there are other devices on the motherboard, generating dynamic SDR information based on information of the other devices; and merging the basic SDR information and the dynamic SDR information, and displaying the merged SDR information. By using the scheme of the invention, the SDR can accord with the device condition of the existing machine, the efficiency of maintaining the server by a manager can be improved, hardware does not need to be added, the cost is low, the quantity of the SDR can be reduced, and the reading is quicker.
Description
Technical Field
The present invention relates to the field of computers, and more particularly, to a method and apparatus for dynamically generating SDR (Sensor Data Record) information.
Background
In the current servers on the market, each motherboard has a BMC (baseboard management controller), which is a set of programs that are fixed to a memory chip on the motherboard in the computer. The current architecture BMC is responsible for monitoring the system status of the motherboard and the peripheral devices. A controller on the server mainboard operates on the mainboard independently, so that an administrator can monitor the operation of the server remotely or locally, and the BMC provides monitoring of the mainboard and peripheral devices. At present, the SDR is fixedly displayed, the SDR cannot be dynamically generated, and the problem that the display cannot be used when the sensor data is displayed because the device does not exist in the presence of the SDR is solved.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for dynamically generating SDR information, which, by using the technical solution of the present invention, can make SDR conform to the device status of the existing machine, can improve the efficiency of a manager for maintaining a server, does not need to increase hardware, has low cost, can reduce the number of SDR, and makes reading faster.
Based on the above objectives, an aspect of the embodiments of the present invention provides a method for dynamically generating SDR information, comprising the following steps:
generating basic SDR information based on the detected information of any one device on the mainboard and displaying the basic SDR information;
detecting whether other devices exist on the mainboard or not in a preset mode;
in response to detecting that there are other devices on the motherboard, generating dynamic SDR information based on information of the other devices;
and merging the basic SDR information and the dynamic SDR information, and displaying the merged SDR information.
According to an embodiment of the present invention, detecting whether there are other devices on the motherboard in a preset manner includes:
detecting whether other devices exist on the mainboard through an I2C (integrated circuit bus);
whether other devices exist on the mainboard or not is detected through GPIO (general purpose input/output) pins.
According to an embodiment of the invention, the detecting whether other devices exist on the mainboard through the I2C bus comprises the following steps:
determining whether a slave address of the apparatus exists on the particular I2C channel;
in response to the slave address of the device being present on the I2C channel, a determination is made that there are other devices on the motherboard.
According to an embodiment of the invention, the detecting whether other devices exist on the mainboard through the GPIO pin comprises the following steps:
judging whether the voltage of the GPIO pin of the device is the same as the expected voltage or not;
and responding to the situation that the voltage of the GPIO pin of the device is the same as the expected voltage, and judging that other devices are on the mainboard.
According to one embodiment of the invention, the SDR information includes sensor name, ID, and information of triggered masking of alarms.
In another aspect of the embodiments of the present invention, there is also provided an apparatus for dynamically generating SDR information, the apparatus comprising:
the generating module is configured to generate basic SDR information based on the detected information of any one device on the mainboard and display the basic SDR information;
the detection module is configured to detect whether other devices exist on the mainboard in a preset mode;
a generation module configured to generate dynamic SDR information based on information of other devices in response to detecting other devices on the motherboard;
and the merging module is configured to merge the basic SDR information and the dynamic SDR information and display the merged SDR information.
According to one embodiment of the invention, the detection module is further configured to:
detecting whether other devices exist on the mainboard or not through the I2C bus;
whether other devices exist on the mainboard or not is detected through the GPIO pin.
According to one embodiment of the invention, the detection module is further configured to:
determining whether a slave address of the apparatus exists on the particular I2C channel;
in response to the slave address of the device being present on the I2C channel, a determination is made that there are other devices on the motherboard.
According to one embodiment of the invention, the detection module is further configured to:
judging whether the voltage of the GPIO pin of the device is the same as the expected voltage or not;
and responding to the situation that the voltage of the GPIO pin of the device is the same as the expected voltage, and judging that other devices are on the mainboard.
According to one embodiment of the invention, the SDR information includes sensor name, ID, and information of triggered masking of alarms.
The invention has the following beneficial technical effects: the method for dynamically generating the SDR provided by the embodiment of the invention generates basic SDR information based on the detected information of any device on the mainboard and displays the basic SDR information; detecting whether other devices exist on the mainboard or not in a preset mode; in response to detecting that there are other devices on the motherboard, generating dynamic SDR information based on information of the other devices; the technical scheme of combining the basic SDR information with the dynamic SDR information and displaying the combined SDR information can ensure that the SDR accords with the device condition of the existing machine, can improve the efficiency of maintaining a server by a manager, does not need to increase hardware, has low cost, can reduce the quantity of the SDR and can read more quickly.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flow diagram of a method of dynamically generating an SDR in accordance with one embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus for dynamically generating an SDR in accordance with one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the above objects, a first aspect of embodiments of the present invention proposes an embodiment of a method of dynamically generating SDR information. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1, generating basic SDR information based on the detected information of any device on the mainboard and displaying the basic SDR information, wherein one or more devices (sensors) must exist on the mainboard, firstly, a device capable of being determined is selected, the SDR information is generated and displayed based on the device, the SDR information is used as basic SDR information, namely fixed SDR information, whether other devices exist on the mainboard or not can at least display the basic SDR information, for example, an Inlet temperature SDR corresponds to the basic information of the Inlet temperature sensor and comprises the information of the name, the ID, the triggered shielding of the sensor and the like, the most important work of the BMC is to monitor the system conditions of the mainboard and peripheral devices, and therefore, at least one device on the mainboard can be determined to be performed by the BMC;
s2 detects whether there is other device on the main board by preset mode, after the basic SDR information is established, the non-fixed SDR information is added dynamically, during the boot process of BMC, according to the content of the corresponding unfixed check table, whether the device exists on the mainboard is confirmed by I2C or GPIO, the I2C judges whether the device exists in a mode of confirming whether the device exists in the slave address of the device on a specific I2C channel, if the address of the slave device exists, the device can be considered to be on the mainboard, in addition, a judgment condition can be added, judging whether the device has a register position, if so, considering the device to be on a mainboard, judging whether the device exists in a mode of confirming whether the voltage of a GPIO pin of the device is the same as the expected voltage when the device exists, and if so, considering the device to be on the mainboard;
s3 responds to the detection of other devices on the mainboard, dynamic SDR information is generated based on the information of other devices, if other devices exist, corresponding SDR information can be generated according to the check table, SDR information can also be generated according to the device information, the generated SDR information is dynamic SDR information, if a new device is detected next time, corresponding SDR information continues to be generated and combined, if a certain device does not exist in the next detection, the SDR information without devices is deleted;
s4 merges the basic SDR information with the dynamic SDR information, displays the merged SDR information, merges the dynamic SDR information generated above with the basic SDR information, displays the merged SDR information, merges the new SDR information once a new device is detected and new SDR information is generated, and deletes the SDR information of a device in the merged SDR information once it is detected that the device is not present.
The technical scheme of the invention is that a fixed SDR message is generated, then the existence of the device is confirmed when the BMC is started to dynamically generate the SDR message of the device and the SDR message is added into the fixed SDR message to be displayed together, thereby avoiding the problem that the SDR exists, but the display cannot be used when the sensor data is displayed because the device does not exist, so that an administrator can avoid confirming the existence of the device, also can reduce the quantity of the SDR and improve the reading efficiency.
By the technical scheme of the invention, the SDR can accord with the device condition of the existing machine, the efficiency of maintaining the server by a manager can be improved, hardware does not need to be added, the cost is low, the quantity of the SDR can be reduced, and the reading is quicker.
In a preferred embodiment of the present invention, detecting whether there are other devices on the motherboard in a preset manner includes:
detecting whether other devices exist on the mainboard or not through the I2C bus;
whether other devices exist on the mainboard or not is detected through the GPIO pin.
In a preferred embodiment of the present invention, the detecting whether there are other devices on the motherboard via the I2C bus comprises:
determining whether a slave address of the apparatus exists on the particular I2C channel;
in response to the slave address of the device being present on the I2C channel, a determination is made that there are other devices on the motherboard. The I2C judges whether the device exists by confirming whether the device has the slave address of the device on the specific I2C channel, if so, the device can be considered to be on the mainboard, and in addition, a judgment condition can be added, namely whether the device has the register position, and if so, the device can be considered to be on the mainboard.
In a preferred embodiment of the present invention, the detecting whether there are other devices on the motherboard by the GPIO pin includes:
judging whether the voltage of the GPIO pin of the device is the same as the expected voltage or not;
and responding to the situation that the voltage of the GPIO pin of the device is the same as the expected voltage, and judging that other devices are on the mainboard. The GPIO judges whether the device exists or not by confirming whether the voltage of the GPIO pin of the device is the same as the voltage expected to exist or not, and if so, the device can be considered to be on the mainboard.
In a preferred embodiment of the invention, the SDR information includes sensor name, ID and information of triggered masking of alarms. Other information can be displayed according to actual requirements, and the SDR information can be set by self.
By the technical scheme of the invention, the SDR can accord with the device condition of the existing machine, the efficiency of maintaining the server by a manager can be improved, hardware does not need to be added, the cost is low, the quantity of the SDR can be reduced, and the reading is quicker.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above object, a second aspect of the embodiments of the present invention proposes an apparatus for dynamically generating SDR information, as shown in fig. 2, the apparatus 200 includes:
the generating module is configured to generate basic SDR information based on the detected information of any one device on the mainboard and display the basic SDR information;
the detection module is configured to detect whether other devices exist on the mainboard in a preset mode;
a generation module configured to generate dynamic SDR information based on information of other devices in response to detecting other devices on the motherboard;
and the merging module is configured to merge the basic SDR information and the dynamic SDR information and display the merged SDR information.
In a preferred embodiment of the present invention, the detection module is further configured to:
detecting whether other devices exist on the mainboard or not through the I2C bus;
whether other devices exist on the mainboard or not is detected through the GPIO pin.
In a preferred embodiment of the present invention, the detection module is further configured to:
determining whether a slave address of the apparatus exists on the particular I2C channel;
in response to the slave address of the device being present on the I2C channel, a determination is made that there are other devices on the motherboard.
In a preferred embodiment of the present invention, the detection module is further configured to:
judging whether the voltage of the GPIO pin of the device is the same as the expected voltage or not;
and responding to the situation that the voltage of the GPIO pin of the device is the same as the expected voltage, and judging that other devices are on the mainboard.
In a preferred embodiment of the invention, the SDR information includes sensor name, ID and information of triggered masking of alarms.
The embodiments described above, particularly any "preferred" embodiments, are possible examples of implementations and are presented merely to clearly understand the principles of the invention. Many variations and modifications may be made to the above-described embodiments without departing from the spirit and principles of the technology described herein. All such modifications are intended to be included within the scope of this disclosure and protected by the following claims.
Claims (10)
1. A method for dynamically generating SDR information, comprising the steps of:
generating basic SDR information based on the detected information of any one device on the mainboard and displaying the basic SDR information;
detecting whether other devices exist on the mainboard or not in a preset mode;
in response to detecting that there are other devices on the motherboard, generating dynamic SDR information based on information of the other devices;
and merging the basic SDR information and the dynamic SDR information, and displaying the merged SDR information.
2. The method of claim 1, wherein detecting whether there are other devices on the motherboard in a predetermined manner comprises:
detecting whether other devices exist on the mainboard through an I2C bus;
and detecting whether other devices exist on the mainboard or not through the GPIO pin.
3. The method of claim 2, wherein detecting whether there are other devices on the motherboard via the I2C bus comprises:
determining whether a slave address of the apparatus exists on the particular I2C channel;
and responding to the address of the slave device of the device on the I2C channel, and judging that other devices exist on the mainboard.
4. The method of claim 2, wherein detecting whether other devices are on the motherboard via GPIO pins comprises:
judging whether the voltage of the GPIO pin of the device is the same as the expected voltage or not;
and judging that other devices are on the mainboard in response to the fact that the voltage of the GPIO pin of the device is the same as the expected voltage.
5. The method of claim 1, wherein the SDR information comprises sensor name, ID, and information of triggered masking of alarms.
6. An apparatus for dynamically generating SDR information, the apparatus comprising:
a generation module configured to generate basic SDR information based on information of any one of the detected devices on the main board and display the basic SDR information;
the detection module is configured to detect whether other devices exist on the mainboard in a preset mode;
a generation module configured to generate dynamic SDR information based on information of other devices in response to detecting the other devices on the motherboard;
a merging module configured to merge the basic SDR information and the dynamic SDR information and display the merged SDR information.
7. The device of claim 6, wherein the detection module is further configured to:
detecting whether other devices exist on the mainboard through an I2C bus;
and detecting whether other devices exist on the mainboard or not through the GPIO pin.
8. The device of claim 7, wherein the detection module is further configured to:
determining whether a slave address of the apparatus exists on the particular I2C channel;
and responding to the address of the slave device of the device on the I2C channel, and judging that other devices exist on the mainboard.
9. The device of claim 7, wherein the detection module is further configured to:
judging whether the voltage of the GPIO pin of the device is the same as the expected voltage or not;
and judging that other devices are on the mainboard in response to the fact that the voltage of the GPIO pin of the device is the same as the expected voltage.
10. The apparatus of claim 6, wherein the SDR information comprises sensor name, ID, and information of triggered masking of alarms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011550137.6A CN112631878A (en) | 2020-12-24 | 2020-12-24 | Method and equipment for dynamically generating SDR information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011550137.6A CN112631878A (en) | 2020-12-24 | 2020-12-24 | Method and equipment for dynamically generating SDR information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112631878A true CN112631878A (en) | 2021-04-09 |
Family
ID=75324378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011550137.6A Withdrawn CN112631878A (en) | 2020-12-24 | 2020-12-24 | Method and equipment for dynamically generating SDR information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112631878A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109213643A (en) * | 2017-07-07 | 2019-01-15 | 中兴通讯股份有限公司 | A kind of method and device of dynamic management server subcard sensor |
CN109344027A (en) * | 2018-09-04 | 2019-02-15 | 大唐高鸿信安(浙江)信息科技有限公司 | A kind of method and device of monitoring device component states |
-
2020
- 2020-12-24 CN CN202011550137.6A patent/CN112631878A/en not_active Withdrawn
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109213643A (en) * | 2017-07-07 | 2019-01-15 | 中兴通讯股份有限公司 | A kind of method and device of dynamic management server subcard sensor |
CN109344027A (en) * | 2018-09-04 | 2019-02-15 | 大唐高鸿信安(浙江)信息科技有限公司 | A kind of method and device of monitoring device component states |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107122321B (en) | Hardware repair method, hardware repair system, and computer-readable storage device | |
US20030110426A1 (en) | Apparatus and method for error logging on a memory module | |
CN114168222B (en) | Method and device for acquiring time consumption during starting, terminal equipment and storage medium | |
CN109308239B (en) | Method and apparatus for outputting information | |
CN111988196B (en) | Bandwidth detection method and device, electronic equipment and storage medium | |
US7378977B2 (en) | Current overload detecting system and method | |
CN111949457A (en) | Server fault chip detection method and device | |
CN112817831A (en) | Application performance monitoring method, device, computer system and readable storage medium | |
CN116775141A (en) | Abnormality detection method, abnormality detection device, computer device, and storage medium | |
CN113672306B (en) | Server component self-checking abnormity recovery method, device, system and medium | |
CN113868058A (en) | Peripheral component high-speed interconnection equipment fault detection method and device and server | |
CN117707884A (en) | Method, system, equipment and medium for monitoring power management chip | |
CN112506693A (en) | Method and device for recording abnormal information, storage medium and electronic equipment | |
CN115292113B (en) | Method and device for fault detection of internal memory of server and electronic equipment | |
CN112631878A (en) | Method and equipment for dynamically generating SDR information | |
CN115934446A (en) | Self-checking method, server, equipment and storage medium | |
WO2023206926A1 (en) | User configuration data recovery method and device, and medium | |
CN115098342A (en) | System log collection method, system, terminal and storage medium | |
CN115033441A (en) | PCIe equipment fault detection method, device, equipment and storage medium | |
CN114461479A (en) | Method and device for debugging multimedia processing chip, storage medium and electronic equipment | |
CN113010303A (en) | Data interaction method and device between processors and server | |
CN112464124A (en) | Anomaly detection method, device and computer-readable storage medium | |
TW201314576A (en) | Method for accessing pre-boot information | |
CN111045899B (en) | Method for displaying BIOS information in early stage of computer system startup self-check | |
US20240143474A1 (en) | System and method for dynamic sensors support in ipmi stack |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210409 |
|
WW01 | Invention patent application withdrawn after publication |