CN103135703A - Method for rapidly reading field replaceable unit information - Google Patents
Method for rapidly reading field replaceable unit information Download PDFInfo
- Publication number
- CN103135703A CN103135703A CN2011103919226A CN201110391922A CN103135703A CN 103135703 A CN103135703 A CN 103135703A CN 2011103919226 A CN2011103919226 A CN 2011103919226A CN 201110391922 A CN201110391922 A CN 201110391922A CN 103135703 A CN103135703 A CN 103135703A
- Authority
- CN
- China
- Prior art keywords
- node
- communication
- information
- field replaceable
- replaceable unit
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000004891 communication Methods 0.000 claims abstract description 85
- 238000001514 detection method Methods 0.000 claims abstract description 24
- 238000005192 partition Methods 0.000 claims description 9
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000001934 delay Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention provides a method for rapidly reading field replaceable unit (FRU) information. The method is applied to an equipment cabinet system containing a plurality of nodes. The method comprises that a detection unit is provided and is connected with the plurality of nodes; a chain table is preliminarily defined, and a time N of communication of the detection unit and a node is preset; communication parameters needed by N times of the communication are added into the chain table and carried out to obtain partial FRU information of the node; a communication time M needed by obtaining of all the FRU information of the node is calculated; and the communication parameters needed by (M-N) times of the communication between the detection unit and the node are added into the chain table and carried out to obtain the rest FRU information of the node. According to the method, the partial FRU information is obtained through presetting of the communication time of the detection unit and one node, and then the total FRU information is calculated and obtained through the partial FRU information. Therefore, the method improves the reading speed of the FRU information of the nodes, and can guarantee real-time performance of the FRU information of the nodes.
Description
Technical Field
The present invention relates to field replaceable unit information of a server, and more particularly, to a method for rapidly reading the field replaceable unit information.
Background
Currently, accessories in computer or server systems come from the same or different vendors. To save costs, they typically divide the computer into a number of FRUs (Field replaceable units), large enough to power supplies, and small enough to fans, to be replaced directly without maintenance when these accessories fail. For example, an FRU may be a part number, product number, or serial number on a part.
Due to the importance of FRU information, reading FRU information is a critical link in many designs. Taking a cloud computing project as an example, a Rack system (Rack) having a plurality of nodes and a detecting unit (such as an intelligent Power detecting unit) is generally adopted, and the detecting unit is used to communicate with the plurality of nodes to obtain FRU information on each Node in the plurality of nodes, and only receiving the FRU information of the Node can know what type and what function of the hardware of the Node. Currently, a reading method is adopted to completely read the FRU information of one node at a time, so that although the software programming is convenient, the communication time between the SPDU and the node is greatly increased. The other reading mode is to adopt a hook interface, and only a certain number of times of communication can be carried out with a single node each time, however, the number of times of communication required for completely reading FRU information is not predicted and can be obtained only through calculation in the reading process. If reading is performed while obtaining the number of readings, reading the entire FRU may need to be divided into many times, and only limited FRU information may be obtained each time, which may greatly delay the reading time of the FRU information.
In view of this, how to design a method for quickly reading FRU information, which can quickly obtain the complete FRU information of each node and ensure the real-time performance of the FRU information of each node, is a subject to be urgently solved by related technical personnel in the industry.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art of reading field replaceable unit information, the present invention provides a method for quickly reading field replaceable unit information.
According to one aspect of the present invention, there is provided a method of quickly reading field replaceable unit information, wherein the method comprises:
a, providing a detection unit, wherein the detection unit is connected to the plurality of nodes;
b, predefining a linked list and presetting the communication frequency N of the detection unit and one of the nodes, wherein N is a natural number;
c, adding communication parameters required by N times of communication between the detection unit and the node into the linked list, and executing N times of communication between the detection unit and the node to acquire partial field replaceable unit information of the node;
d, calculating the communication times M required for acquiring all the field replaceable unit information of the node according to the acquired part of the field replaceable unit information, wherein M is a natural number and M is more than N; and
e, adding communication parameters required by the rest (M-N) times of communication between the sensing unit and the node into the linked list, and executing (M-N) times of communication between the sensing unit and the node to acquire the rest field replaceable unit information of the node, so as to acquire all field replaceable unit information of the node.
Preferably, step d further comprises: after the ith communication between the detection unit and the node, judging whether the communication times M required by all the field replaceable unit information of the node can be acquired according to the acquired partial field replaceable unit information, wherein i is less than N; and when the communication times M cannot be obtained, continuing to execute the (i +1) th communication between the detection unit and the node until the communication times M required by acquiring all the field replaceable unit information of the node.
Preferably, step d further comprises: reading header file information of the part of the field replaceable unit information according to the acquired part of the field replaceable unit information, and acquiring area-related information corresponding to the part of the field replaceable unit information according to the header file information; and after the area related information is obtained, selecting the area with the largest offset address, reading partition header file information of the area, and determining the communication times M required for obtaining all field replaceable unit information of the node according to the partition header file information. More preferably, the partition header file information includes a byte length of the area.
Preferably, the linked list is a linked list whose execution mode is first-in first-out. More preferably, the communication parameters required for the communication between the detecting unit and the nodes have different priorities, and the communication parameters with high priorities are added to the linked list before the communication parameters with low priorities.
Preferably, when the linked list does not include communication parameters required for communication between the detecting unit and the nodes, another node of the plurality of nodes is selected, so that the detecting unit is connected to the another node through a line switching device, and communication between the detecting unit and the another node is performed to obtain field replaceable unit information of the another node.
Preferably, the field replaceable unit information is transmitted to the detection unit as I2C.
Preferably, the node is a network Switch (LAN Switch), a Just a Bunch of Disks (JBOD), or a motherboard (motherboard).
By adopting the method for rapidly reading the field replaceable unit information, the communication times of the communication between the sensing unit and a node are preset, the communication times of the communication between the sensing unit and the node are preset to obtain partial field replaceable unit information, and then all the field replaceable unit information is calculated and obtained according to the partial field replaceable unit information. Therefore, the method improves the reading speed of the FRU information of each node in the plurality of nodes, can ensure the real-time performance of the FRU information of the nodes, and can quickly identify the node attribute based on the FRU information.
Drawings
The various aspects of the present invention will become more apparent to the reader after reading the detailed description of the invention with reference to the attached drawings. Wherein,
fig. 1 illustrates a flow diagram of a method of quickly reading FRU information in accordance with an aspect of the present invention.
Detailed Description
In order to make the present disclosure more complete and complete, reference is made to the accompanying drawings, in which like references indicate similar or analogous elements, and to the various embodiments of the invention described below. However, it will be understood by those of ordinary skill in the art that the examples provided below are not intended to limit the scope of the present invention. In addition, the drawings are only for illustrative purposes and are not drawn to scale.
Specific embodiments of various aspects of the present invention are described in further detail below with reference to the accompanying drawings. As described above, in the prior art, when reading FRU information, a hook interface manner is adopted, and only a certain number of times of communication with a single node is possible. However, the number of communications required to completely read the FRU information is not known in advance, so that reading the whole FRU needs to be divided into a plurality of times, and limited FRU information can be obtained each time, which greatly delays the reading time of the FRU information, affects the reading process of the FRU information of subsequent nodes, and can cause the FRU information not to be real-time in severe cases. For example, the nodes may be network switches (LAN Switch), Just a Bunch of Disks (JBOD), or motherboards (motherboards).
Fig. 1 illustrates a flow diagram of a method of quickly reading FRU information in accordance with an aspect of the present invention.
In the reading method, step S101 is first executed to provide a detection Unit, such as a Smart Power Detection Unit (SPDU), which is connected to a plurality of nodes through a line switching device. Then, step S103 is executed to predefine a linked list and preset the number of times N that the detecting unit communicates with one of the nodes, where N is a natural number. It should be noted that the predefined linked list and the preset number of communication times N do not need to specify a sequence, and the preset number of communication times N between the detection unit and the node can be flexibly adjusted according to actual needs. Then, step S105 is executed to add the communication parameters required for N times of communication between the sensing unit and the node into the predefined linked list, and execute N times of communication between the sensing unit and the node, so as to obtain part of the field replaceable unit information of the node. In step S107, the number of communications M required to acquire all the field replaceable unit information of the node is calculated based on the acquired part of the field replaceable unit information, where M is a natural number and M > N. Finally, step S109 is executed to add the communication parameters required for the remaining (M-N) communications between the sensing unit and the node into the linked list, and execute the (M-N) communications between the sensing unit and the node to obtain the remaining field replaceable unit information of the node, so as to obtain all the field replaceable unit information of the node. Preferably, the FRU information of the node is sent to the detection unit as I2C.
In one embodiment, after the ith communication between the detecting unit and a node, whether the number of communication times M required by all FRU information of the node can be acquired is judged according to the acquired partial FRU information, wherein i is less than N; and when the communication times M cannot be obtained, continuing to execute the (i +1) th communication between the detection unit and the node until the communication times M required by acquiring all FRU information of the node. Preferably, header information in the portion of FRU information is read based on the acquired portion of FRU information, and region-related information corresponding to the portion of FRU information is acquired based on the header information. For example, the region-related information includes how many regions the FRU information has, how long each region is, an offset address of each region, and the like. After the area related information is obtained, selecting the area with the largest offset address, reading the partition header file information of the area, and determining the communication times M required for acquiring all FRU information of the node according to the partition header file information. For example, the partition header file information includes the byte length of the area.
In another embodiment, the linked list is a linked list whose execution mode is first-in first-out, that is, the data input into the linked list is output from the linked list first. More preferably, the communication parameters required for the communication between the detecting unit and the node have different priorities, and the communication parameters with high priorities are added to the linked list before the communication parameters with low priorities.
In addition, when the linked list does not include communication parameters required by the communication between the detecting unit and the node, another node in the plurality of nodes is selected, so that the detecting unit is connected to the other node through a line switching device, and the communication between the detecting unit and the other node is executed, so as to obtain the field replaceable unit information of the other node. Since the implementation procedure for obtaining all FRU information of the other node is the same as or similar to the implementation procedure for obtaining all FRU information of the other node through communication between the detecting unit and the node, further description is omitted here for simplicity of description.
By adopting the method for rapidly reading the field replaceable unit information, the communication times of the communication between the sensing unit and a node are preset, the communication times of the communication between the sensing unit and the node are preset to obtain partial field replaceable unit information, and then all the field replaceable unit information is calculated and obtained according to the partial field replaceable unit information. Therefore, the method improves the reading speed of the FRU information of each node in the plurality of nodes, can ensure the real-time performance of the FRU information of the nodes, and can quickly identify the node attribute based on the FRU information.
Hereinbefore, specific embodiments of the present invention are described with reference to the drawings. However, those skilled in the art will appreciate that various modifications and substitutions can be made to the specific embodiments of the present invention without departing from the spirit and scope of the invention. Such modifications and substitutions are intended to be included within the scope of the present invention as defined by the appended claims.
Claims (9)
1. A method for rapidly reading field replaceable unit information, which is applied to a cabinet system comprising a plurality of nodes, is characterized by comprising the following steps:
a, providing a detection unit, wherein the detection unit is connected to the plurality of nodes;
b, predefining a linked list and presetting the communication frequency N of the detection unit and one of the nodes, wherein N is a natural number;
c, adding communication parameters required by N times of communication between the detection unit and the node into the linked list, and executing N times of communication between the detection unit and the node to acquire partial field replaceable unit information of the node;
d, calculating the communication times M required for acquiring all the field replaceable unit information of the node according to the acquired part of the field replaceable unit information, wherein M is a natural number and M is more than N; and
e, adding communication parameters required by the rest (M-N) times of communication between the sensing unit and the node into the linked list, and executing (M-N) times of communication between the sensing unit and the node to acquire the rest field replaceable unit information of the node, so as to acquire all field replaceable unit information of the node.
2. The method of claim 1, wherein step d further comprises:
after the ith communication between the detection unit and the node, judging whether the communication times M required by all the field replaceable unit information of the node can be acquired according to the acquired partial field replaceable unit information, wherein i is less than N; and
and when the communication times M cannot be obtained, continuously executing the (i +1) th communication between the detection unit and the node until the communication times M required by acquiring all the field replaceable unit information of the node.
3. The method of claim 2, wherein step d further comprises:
reading header file information of the part of the field replaceable unit information according to the acquired part of the field replaceable unit information, and acquiring area-related information corresponding to the part of the field replaceable unit information according to the header file information; and
and after the area related information is obtained, selecting the area with the largest offset address, reading partition header file information of the area, and determining the communication times M required for acquiring all field replaceable unit information of the node according to the partition header file information.
4. The method of claim 3, wherein the partition header information comprises a byte length of the region.
5. The method of claim 1, wherein the linked list is a first-in-first-out linked list.
6. The method of claim 5, wherein the communication parameters required for communication between the snooping units and the nodes have different priorities, and wherein higher priority communication parameters are added to the linked list before lower priority communication parameters.
7. The method of claim 1, wherein: when the linked list does not contain communication parameters required by the communication between the detecting unit and the nodes, selecting another node in the plurality of nodes, so that the detecting unit is connected to the another node through a line switching device, and the communication between the detecting unit and the another node is executed to obtain the field replaceable unit information of the another node.
8. The method of claim 1, wherein the field replaceable unit information is transmitted to the sensing unit as I2C.
9. The method of claim 1, wherein the node is a network Switch (LAN Switch), a Just a Bunch of Disks (JBOD), or a motherboard (motherboard).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110391922.6A CN103135703B (en) | 2011-11-30 | 2011-11-30 | A kind of method for being used to quickly read Field Replaceable Unit information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110391922.6A CN103135703B (en) | 2011-11-30 | 2011-11-30 | A kind of method for being used to quickly read Field Replaceable Unit information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103135703A true CN103135703A (en) | 2013-06-05 |
CN103135703B CN103135703B (en) | 2017-07-25 |
Family
ID=48495655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110391922.6A Active CN103135703B (en) | 2011-11-30 | 2011-11-30 | A kind of method for being used to quickly read Field Replaceable Unit information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103135703B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103983876A (en) * | 2014-05-27 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Method for online detection of node middle panel |
WO2021128903A1 (en) * | 2019-12-26 | 2021-07-01 | 苏州浪潮智能科技有限公司 | Method and system for accelerating reading of information of field replace unit, device and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064725A (en) * | 2006-04-28 | 2007-10-31 | 索尼计算机娱乐公司 | Game apparatus, communication apparatus, wireless game controller, and game system |
CN101662370A (en) * | 2008-08-26 | 2010-03-03 | 华为技术有限公司 | Dormancy/wakening method for server and server with dormancy/wakening function |
US20110066766A1 (en) * | 2009-09-11 | 2011-03-17 | Fujitsu Limited | Control apparatus and data processing system |
CN102081567A (en) * | 2009-11-26 | 2011-06-01 | 英业达股份有限公司 | Server |
US20110255866A1 (en) * | 2010-04-15 | 2011-10-20 | Alcatel-Lucent Usa Inc. | System and method for scheduling timeslots for transmission by optical nodes in an optical network |
-
2011
- 2011-11-30 CN CN201110391922.6A patent/CN103135703B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101064725A (en) * | 2006-04-28 | 2007-10-31 | 索尼计算机娱乐公司 | Game apparatus, communication apparatus, wireless game controller, and game system |
CN101662370A (en) * | 2008-08-26 | 2010-03-03 | 华为技术有限公司 | Dormancy/wakening method for server and server with dormancy/wakening function |
US20110066766A1 (en) * | 2009-09-11 | 2011-03-17 | Fujitsu Limited | Control apparatus and data processing system |
CN102081567A (en) * | 2009-11-26 | 2011-06-01 | 英业达股份有限公司 | Server |
US20110255866A1 (en) * | 2010-04-15 | 2011-10-20 | Alcatel-Lucent Usa Inc. | System and method for scheduling timeslots for transmission by optical nodes in an optical network |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103983876A (en) * | 2014-05-27 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Method for online detection of node middle panel |
CN103983876B (en) * | 2014-05-27 | 2017-12-01 | 浪潮电子信息产业股份有限公司 | A kind of method of plate on-line checking in node |
WO2021128903A1 (en) * | 2019-12-26 | 2021-07-01 | 苏州浪潮智能科技有限公司 | Method and system for accelerating reading of information of field replace unit, device and medium |
Also Published As
Publication number | Publication date |
---|---|
CN103135703B (en) | 2017-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9298719B2 (en) | On-demand caching in a WAN separated distributed file system or clustered file system cache | |
US10523580B2 (en) | Automatic cloud provisioning based on related internet news and social network trends | |
CN105677455A (en) | Device scheduling method and task administrator | |
CN114091704B (en) | Alarm suppression method and device | |
CN107924330A (en) | Technology for integrated thread scheduling | |
CN115269108A (en) | Data processing method, device and equipment | |
US9542459B2 (en) | Adaptive data collection | |
CN110019214A (en) | The method and apparatus that data split result is verified | |
CN114816393A (en) | Information generation method, device, equipment and storage medium | |
CN114428711A (en) | Data detection method, device, equipment and storage medium | |
CN103135703B (en) | A kind of method for being used to quickly read Field Replaceable Unit information | |
CN110472190A (en) | The method and apparatus for filling ordered sequence | |
US9183042B2 (en) | Input/output traffic backpressure prediction | |
CN110532150A (en) | A kind of shelf management method, apparatus, storage medium and processor | |
CN110245120A (en) | The daily record data processing method of streaming computing system and streaming computing system | |
CN113220554B (en) | Method and apparatus for detecting performance of program code | |
CN114706893A (en) | Fault detection method, device, equipment and storage medium | |
CN114049065A (en) | Data processing method, device and system | |
KR101737777B1 (en) | Computing device performance monitor | |
US8891515B2 (en) | Method for node communication | |
CN113010285A (en) | Method, apparatus, device, medium and product for processing data | |
CN111782443A (en) | Data processing method and device and electronic equipment | |
CN109918213A (en) | A kind of message treatment method, device and server | |
CN110968397B (en) | Analysis method and device for virtual machine capacity management | |
US20200162284A1 (en) | Management device, communication system, management method, and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |