Case management method and system, electronic equipment and storage medium

The cascading expanders are connected through the 485 bus and address codes are assigned, which solves the problem of traditional chassis management methods occupying in-band resources, enables direct access and efficient management of the expanders by the baseboard management controller, and improves IO processing capabilities and chassis management. efficiency.

CN118796747APending Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410855445.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The traditional chassis management method occupies in-band resources, affects product performance, and requires a head expander to relay management information, resulting in time loss and reducing the chassis management efficiency of the baseboard management controller.

Method used

Connect serially with cascade expanders at all levels through the 485 bus, assign an address code to each expander, store it in the routing table, poll the routing table to send read and write requests, and complete information query and control based on feedback information to avoid occupancy In-band resources.

Benefits of technology

It enables the baseboard management controller to directly and accurately access each expander, ensuring that IO services exclusively occupy SAS in-band communication resources, improving IO processing capabilities and access rates, and improving chassis management capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796747A_ABST
    Figure CN118796747A_ABST
Patent Text Reader

Abstract

The invention provides a case management method and system, electronic equipment and a storage medium, and relates to the technical field of computers, a substrate management controller is serially connected with cascade expanders at all levels through a 485 bus, and address codes are allocated to the cascade expanders at all levels; storing the address code of each stage of cascade expander in a routing table of a 485 communication protocol; polling the routing table, and sending a read-write request to the to-be-controlled expander; after the request is responded, the management information is sent to the to-be-controlled expander, the feedback information of the to-be-controlled expander is received, the information query of the to-be-controlled expander is completed according to the feedback information, and the control of the to-be-controlled expander is completed, so that the substrate management controller can directly and accurately access each expander; in-band resources are not occupied, it is guaranteed that IO services exclusively occupy SAS in-band communication resources, the IO processing capacity is improved, the access rate of a substrate management controller to an expander is increased, and therefore the case management capacity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a chassis management method, system, electronic equipment and storage medium. Background Art

[0002] The role of the storage system is to process the massive data transmitted between the server and the hard disk with high reliability and high speed. The storage system mainly includes chassis management functions and IO business processing functions. The realization of chassis management functions is to ensure that the storage system has better software and hardware resources and to ensure high reliability, high availability and high efficiency of IO processing capabilities. The chassis management function is usually completed by the baseboard management controller (Baseboard Manager Controller, BMC). The baseboard management controller can detect the operation of the equipment in real time, including temperature, voltage, fan status, etc.; in order to ensure that the equipment can operate stably and reliably for a long time, it is necessary to detect the information of these peripheral hardware in real time. In the hardware topology where the hard disk and the controller are integrated, because the baseboard management controller does not support the serial attached SCSI interface (Serial Attached SCSI, SAS) protocol, it is impossible to directly manage the SAS hard disk. An expander is needed to manage the SAS hard disk. The expander is responsible for collecting the status information of the hard disk and reporting it to the baseboard management controller. The baseboard management controller summarizes the chassis management information and reports it to the CPU. The communication between the baseboard management controller and the expander is usually completed using an Inter-Integrated Circuit (IIC) link. However, for most application scenarios, the hardware topology requires a cascaded disk cluster (Just a Bunch Of Disks, JBOD). At this time, the baseboard management controller cannot communicate with the expander on the disk cluster through the IIC link, and a head expander needs to be added. The head expander communicates with each expander in multiple disk clusters through a SAS link. The head expander completes the chassis management information collection of the cascaded disk cluster and then reports it to the baseboard management controller through the IIC link. Since the head expander and the multi-stage cascade expander in this method need to occupy SAS in-band resources to transmit chassis management related information, it will squeeze the in-band processing resources of the CPU to send IO services, reduce the processing capacity of IO services, and thus affect product performance. In addition, the baseboard management controller needs the transfer management information of the head expander when managing the chassis, which causes time loss and reduces the chassis management efficiency of the baseboard management controller. Summary of the invention

[0003] The present invention provides a chassis management method, system, electronic device and storage medium, which are used to solve the defects of the traditional chassis management method that the traditional chassis management method occupies in-band resources, affects product performance, requires a head expander to transfer management information, causes time loss, and reduces the chassis management efficiency of a baseboard management controller.

[0004] The present invention provides a chassis management method, which is applied to a baseboard management controller, wherein the baseboard management controller is serially connected to cascade expanders at various levels through a 485 bus, and the method comprises: Allocating address codes to the cascade expanders at each level; The address codes of the cascade expanders at each level are stored in the routing table of the 485 communication protocol; Polling the routing table and sending a read and write request to the expander to be controlled; After the request is responded to, management information is sent to the expander to be controlled, feedback information from the expander to be controlled is received, information query of the expander to be controlled is completed according to the feedback information, and control of the expander to be controlled is completed.

[0005] According to the chassis management method provided by the present invention, the step of allocating address codes to the cascade expanders at each level includes: Obtaining the address of the expander in the computer system interface; The sum of the last 8 bits of the address is used as the address code of the expander.

[0006] According to the chassis management method provided by the present invention, after polling the routing table and sending a read / write request to the expander to be controlled, the method further includes: If the feedback information of the expander to be controlled is not received, the address code of the expander to be controlled is removed from the routing table.

[0007] According to the chassis management method provided by the present invention, the feedback information includes at least one of an address code, a function code for executing an action, data of a result after executing the action, and an error check code.

[0008] The present invention also provides a chassis management method, which is applied to an expander, comprising: Receiving a read / write request sent by a baseboard management controller via a 485 bus communication protocol; In response to the read / write request, management information sent by the baseboard management controller is received, and feedback information is returned to the baseboard management controller according to the management information.

[0009] According to the chassis management method provided by the present invention, the receiving of management information sent by the baseboard management controller and returning feedback information to the baseboard management controller according to the management information include: Parsing the management information to obtain the address code and function code in the management information; Verify whether the device itself is the expander to be controlled according to the address code; If yes, error checking is performed on the function code; the error checking includes generating a polynomial corresponding to each function code at the baseboard management controller end, generating a check polynomial at the expander end, dividing the polynomial generated by the function code by the check polynomial to obtain a remainder polynomial, comparing the remainder polynomial with the polynomial corresponding to the function code, and if the results are the same, the check passes; After the verification is passed, the type of the function code is identified; If the function code is a query function code, confirm the query information content according to the specific code value of the query function code, the query information content includes at least one of querying hard disk information, querying temperature information and querying power status information; fill the query result of the query information content into the data area, and return it to the baseboard management controller, wherein the format of the data area filling content is agreed upon by both the baseboard management controller and the expander; If the function code is a setting function code, confirm the setting instruction according to the specific code value of the setting function code, and the setting instruction includes at least one of enabling the port physical layer, the slot number, the lighting type, and setting the status of the light; complete the corresponding action according to the setting instruction, and return the action execution result to the baseboard management controller through the data area.

[0010] According to the chassis management method provided by the present invention, the expander supports two network channels, and the chassis management method further includes: The two network channels are respectively connected to the baseboard management controller, wherein at least one network channel is used to receive chassis management information of the baseboard management controller.

[0011] The present invention also provides a chassis management system, comprising: Baseboard management controller and multi-stage cascade expander; The baseboard management controller is connected to the multi-stage cascade expander via a 485 bus; The baseboard management controller is used to assign address codes to the cascade expanders at each level; store the address codes of the cascade expanders at each level in the routing table of the 485 bus communication protocol; poll the routing table and send a read and write request to the expander to be controlled; after the request is responded to, send management information to the expander to be controlled, receive feedback information from the expander to be controlled, complete information query of the expander to be controlled according to the feedback information, and complete control of the expander to be controlled; The expander is used to receive a read / write request sent by a baseboard management controller via a 485 bus communication protocol; respond to the read / write request, receive management information sent by the baseboard management controller, and return feedback information to the baseboard management controller according to the management information.

[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the chassis management method as described in any one of the above items when executing the program.

[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any of the above-mentioned chassis management methods when executed by a processor.

[0014] The present invention provides a chassis management method, system, electronic device and storage medium. The baseboard management controller is serially connected to cascade expanders at various levels through a 485 bus, and address codes are assigned to the cascade expanders at various levels; the address codes of the cascade expanders at various levels are stored in a routing table of a 485 communication protocol; the routing table is polled to send a read and write request to the expander to be controlled; after the request is responded to, management information is sent to the expander to be controlled, feedback information of the expander to be controlled is received, information query of the expander to be controlled is completed according to the feedback information, and control of the expander to be controlled is completed, so as to ensure that the baseboard management controller can directly and accurately access each expander without occupying in-band resources, ensure that IO services exclusively occupy SAS in-band communication resources, improve IO processing capabilities, and improve the access rate of the baseboard management controller to the expander, thereby improving the chassis management capability. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 This is one of the flowcharts of the chassis management method provided by an embodiment of the present invention; Figure 2 This is a second flow chart of the chassis management method provided by an embodiment of the present invention; Figure 3 is a schematic diagram of the functional architecture of a chassis management system provided by an embodiment of the present invention; Figure 4 It is a functional structure diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0017] Figure 1 A flowchart of a chassis management method provided by an embodiment of the present invention, such as Figure 1As shown, the chassis management method provided by the embodiment of the present invention is applied to a baseboard management controller, and the baseboard management controller is serially connected to each level of cascade expanders through a 485 bus. The method includes: Step 101, assigning address codes to the cascade expanders at each level; In the embodiment of the present invention, the expander of SAS is divided into two types, including output expander and edge expander: a SAS domain can only have one output expander, which can be connected to the edge expander at will; an edge expander can only be connected to one output expander, and the present invention does not limit the cascading method of the expander.

[0018] In an embodiment of the present invention, the chassis management method provided by the present invention, allocating address codes to the cascade expanders at each level, includes: Obtaining the address of the expander in the computer system interface; The sum of the last 8 bits of the address is used as the address code of the expander.

[0019] In an embodiment of the present invention, in order to ensure the uniqueness of the master and slave device address codes, the baseboard management controller may use the default address 0x01; the expander uses the sum of the last 8 bits of the SAS address as the address code, because the SAS address is unique for each expander, and therefore, by taking the sum of the last 8 bits, it is also unique.

[0020] The address code allows the baseboard management controller to directly access any expander, which is convenient and quick.

[0021] Step 102, storing the address codes of the cascade expanders at each level in the routing table of the 485 communication protocol; Step 103: poll the routing table and send a read / write request to the expander to be controlled; In the embodiment of the present invention, after polling the routing table and sending a read / write request to the expander to be controlled, the method further includes: if no feedback information of the expander to be controlled is received, removing the address code of the expander to be controlled from the routing table.

[0022] The validity of baseboard management controller access is ensured through routing table maintenance and update.

[0023] Step 104: after the request is responded to, send management information to the expander to be controlled, receive feedback information from the expander to be controlled, complete information query of the expander to be controlled according to the feedback information, and complete control of the expander to be controlled.

[0024] In the embodiment of the present invention, the feedback information includes at least one of an address code, a function code for executing an action, data of a result after executing the action, and an error check code.

[0025] For storage server systems that support SAS hard disks, the chassis management function is completed by the baseboard management controller, and the management of SAS disks is indirectly managed by the baseboard management controller through the expander. In the traditional chassis management method, the baseboard management controller manages the first-level expander through IIC, and the first-level expander manages the second-level and multi-level expanders. Because the head expander and multi-level cascade expander in this method need to occupy SAS in-band resources to transmit chassis management related information, it will squeeze the CPU's in-band processing resources for sending IO services, reduce the processing capacity of IO services, and thus affect product performance. In addition, the baseboard management controller needs the transfer management information of the head expander when managing the chassis, which causes time loss and reduces the chassis management efficiency of the baseboard management controller.

[0026] The chassis management method provided by the embodiment of the present invention comprises the following steps: the baseboard management controller is serially connected to cascade expanders at various levels through a 485 bus, and address codes are assigned to the cascade expanders at various levels; the address codes of the cascade expanders at various levels are stored in a routing table of a 485 communication protocol; the routing table is polled to send a read / write request to the expander to be controlled; after the request is responded to, management information is sent to the expander to be controlled, feedback information of the expander to be controlled is received, information query of the expander to be controlled is completed according to the feedback information, and control of the expander to be controlled is completed, so as to ensure that the baseboard management controller can directly and accurately access each expander without occupying in-band resources, ensure that IO services exclusively occupy SAS in-band communication resources, improve IO processing capabilities, and improve the access rate of the baseboard management controller to the expander, thereby improving the chassis management capability.

[0027] Based on any of the above embodiments, an embodiment of the present invention further provides a chassis management method, which is applied to an expander, including: Step 201, receiving a read / write request sent by a baseboard management controller via a 485 bus communication protocol; Step 202: respond to the read / write request, receive management information sent by the baseboard management controller, and return feedback information to the baseboard management controller according to the management information.

[0028] In an embodiment of the present invention, the receiving management information sent by the baseboard management controller and returning feedback information to the baseboard management controller according to the management information includes: Parsing the management information to obtain the address code and function code in the management information; Verify whether the device itself is the expander to be controlled according to the address code; If yes, error checking is performed on the function code; the error checking includes generating a polynomial corresponding to each function code at the baseboard management controller end, generating a check polynomial at the expander end, dividing the polynomial generated by the function code by the check polynomial to obtain a remainder polynomial, comparing the remainder polynomial with the polynomial corresponding to the function code, and if the results are the same, the check passes; After the verification is passed, the type of the function code is identified; If the function code is a query function code, confirm the query information content according to the specific code value of the query function code, the query information content includes at least one of querying hard disk information, querying temperature information and querying power status information; fill the query result of the query information content into the data area, and return it to the baseboard management controller, wherein the format of the data area filling content is agreed upon by both the baseboard management controller and the expander; If the function code is a setting function code, confirm the setting instruction according to the specific code value of the setting function code, and the setting instruction includes at least one of enabling the port physical layer, the slot number, the lighting type, and setting the status of the light; complete the corresponding action according to the setting instruction, and return the action execution result to the baseboard management controller through the data area.

[0029] Based on any of the above embodiments, the expander supports two network channels, and the chassis management method further includes: connecting to the baseboard management controller through the two network channels respectively, wherein at least one network channel is used to receive chassis management information of the baseboard management controller.

[0030] In the embodiment of the present invention, if the expander chip supports two network channels, the baseboard management controller can manage the expander through the network. The specific method is: the baseboard management controller and the expander are placed in the same local area network, and the baseboard management controller can access any expander through the local area network. The SAS in-band resources are not occupied, and the SAS in-band resources are completely released for IO business processing, ensuring the two-line work of chassis management and IO business processing.

[0031] like Figure 2 As shown, BMC acts as the master device and expander acts as the slave device. BMC sends a request to the expander of each cascaded JBOD to check whether the expander can communicate. If the expander can respond normally, the BMC stores the expander's address in the routing table of the 485 communication protocol; the BMC polls the routing table to send read and write requests. If the expander does not respond, the communication failure is recorded and the expander address is removed from the routing table; After the expander receives the access request, it identifies whether the address code in the message is its own address code. If it is its own address code, it executes the corresponding function according to the function code in the message; if the address code is not its own address code, it does not perform any action.

[0032] In the embodiment of the present invention, the function code in the message may be a number between 1 and 127. The BMC and expander may agree on the function code: For example: Query function code: 01 is for querying hard disk information; 02 is for querying temperature information; 03 is for querying PSU status information; Setting function code: 04 is for enabling PHY; 05 is for turning on the hard disk light; 06 is for turning on the PSU light; the instruction code can be customized according to the actual usage scenario.

[0033] According to the function code, query instructions and setting instructions are distinguished; for example, the instruction code is 01, querying hard disk information, BMC and expander can agree on the content of the data area, expander fills the message data area according to the agreed format definition, and returns the data to BMC; the instruction code is 05, setting the hard disk light status, BMC and expander can agree on the content of the data area, and the agreed content involves the slot number, light type, setting light status, etc. As a slave device, the expander completes the corresponding action according to the instructions in the data area, and returns the result after the action is completed; the returned data includes the address code, the function code of the action, the result data after the action is executed, and the error check code; BMC parses the data area data according to the returned address code and function code to complete the query of expander information or complete the control of expander information.

[0034] In the embodiment of the present invention, the BMC manages the multi-level cascade expander through the 485 bus, which can ensure that the BMC directly accesses each level of expander to ensure that the SAS in-band resources are exclusively used for IO business processing, improve IO processing efficiency and capacity, and improve the overall IO processing capacity of the product.

[0035] The chassis management method provided by the embodiment of the present invention completes the chassis management function through BMC for the storage server system supporting SAS hard disks. The management of SAS disks is indirectly managed by BMC through expanders. Different from the previous method in which BMC manages the first-level expander through IIC and the first-level expander manages the second-level and multi-level expanders, BMC is serially connected to the cascade expanders through the 485 bus, and the SAS in-band channel is completely released to IO business processing. The query and control of chassis management information are completed through the 485 bus. Through the method of the embodiment of the present invention, on the one hand, it can ensure that IO business exclusively occupies the in-band channel, improve the efficiency and ability of CPU to process IO business, and thus improve the overall performance of the product; on the other hand, through the direct connection of 485, BMC can directly access all cascade expanders, without the need for the first-level expander to be transferred through the in-band channel, improve the ability of BMC chassis management, and improve the ability and efficiency of querying and controlling expander-related chassis data, thereby improving the overall performance of the product.

[0036] The chassis management system provided by the present invention is described below. The chassis management system described below and the chassis management method described above can be referenced to each other.

[0037] Figure 3 A schematic diagram of the architecture of a chassis management system provided by an embodiment of the present invention, such as Figure 3 As shown, the chassis management system provided by the embodiment of the present invention includes: Baseboard management controller and multi-stage cascade expander; The baseboard management controller is connected to the multi-stage cascade expander via a 485 bus; In the embodiment of the present invention, the baseboard management controller (BMC) and the cascade expander are connected through the 485 out-of-band, and the BMC and the multi-stage cascade expander are serially connected through the 485 bus. As an out-of-band serial communication protocol, the 485 bus protocol has good anti-noise interference, long data transmission distance and a large number of device nodes. By connecting each node in series through a bus, the communication distance can reach 1200 meters, which can meet the serial connection requirements of the storage head cascade multi-stage JBOD.

[0038] The storage system mainly includes chassis management function and IO business processing function. The realization of chassis management function is to ensure that the storage system has better software and hardware resources and to ensure high reliability, high availability and high efficiency of IO processing capability. The embodiment of the present invention proposes that the baseboard management controller completes chassis management of expanders at all levels through 485 bus out-of-band management, and completely releases SAS in-band resources to IO business processing, ensuring the two-line work of chassis management and IO business processing. While improving the chassis management capability, the IO business processing capability is also further improved because of the exclusive use of in-band resources. By improving the IO business processing capability and the chassis management capability, the overall product performance of the storage system can be improved, and the market competitiveness of the product can be improved.

[0039] The baseboard management controller is used to assign address codes to the cascade expanders at each level; store the address codes of the cascade expanders at each level in the routing table of the 485 bus communication protocol; poll the routing table and send a read and write request to the expander to be controlled; after the request is responded to, send management information to the expander to be controlled, receive feedback information from the expander to be controlled, complete information query of the expander to be controlled according to the feedback information, and complete control of the expander to be controlled; The expander is used to receive a read / write request sent by a baseboard management controller via a 485 bus communication protocol; respond to the read / write request, receive management information sent by the baseboard management controller, and return feedback information to the baseboard management controller according to the management information.

[0040] The chassis management system provided by the embodiment of the present invention, for a storage system of a multi-level cascaded JBOD, connects a baseboard management controller and cascaded expanders at various levels in series by using 485 vertically, the baseboard management controller serves as a master device, the expander serves as a slave device, each level of expander has its own address code, the baseboard management controller can arbitrarily access the cascaded expanders at various levels through the 485 bus, improves the communication efficiency between the baseboard management controller and the expander and the ability of the baseboard management controller to manage the expander, does not need a first-level expander to serve as a transfer between the baseboard management controller and the second-level and subsequent expanders, when the CPU queries and controls the information of the SAS hard disk, the information is sent to the baseboard management controller through the IPMI (Intelligent Platform Management Interface) protocol, and the baseboard management controller can quickly and accurately transmit the information to the corresponding expander through the 485 bus, thereby improving the efficiency and ability of chassis management, releasing the chassis management processing from the SAS in-band channel, and the in-band resources will only be used to process the IO business sent by the CPU, which can effectively improve the efficiency and ability of processing the IO business, thereby improving the overall performance of the product.

[0041] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the server may include: a processor 410, a communications interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communications interface 420 and the memory 430 communicate with each other through the communication bus 440. The memory 430 includes a computer program, an operating system and acquired data, and the processor 410 may call the logic instructions in the memory 430 to execute the chassis management method, which includes: allocating address codes to the cascade expanders at each level; storing the address codes of the cascade expanders at each level in the routing table of the 485 communication protocol; polling the routing table, sending a read and write request to the expander to be controlled; after the request is responded to, sending management information to the expander to be controlled, receiving feedback information from the expander to be controlled, completing information query of the expander to be controlled according to the feedback information, and completing control of the expander to be controlled.

[0042] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0043] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the chassis management method provided by the above-mentioned methods, the method comprising: assigning address codes to the cascade expanders at each level; storing the address codes of the cascade expanders at each level in a routing table of a 485 communication protocol; polling the routing table and sending a read and write request to the expander to be controlled; after the request is responded to, sending management information to the expander to be controlled, receiving feedback information from the expander to be controlled, completing information query of the expander to be controlled based on the feedback information, and completing control of the expander to be controlled.

[0044] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0045] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution can be essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.

[0046] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

[0047] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A chassis management method, characterized in that: Applied to a baseboard management controller, the baseboard management controller is serially connected to various levels of cascade expanders via a 485 bus, and the method comprises: Allocating address codes to the cascade expanders at each level; The address codes of the cascade expanders at each level are stored in the routing table of the 485 communication protocol; Polling the routing table and sending a read and write request to the expander to be controlled; After the request is responded to, management information is sent to the expander to be controlled, feedback information from the expander to be controlled is received, information query of the expander to be controlled is completed according to the feedback information, and control of the expander to be controlled is completed.

2. The chassis management method according to claim 1, characterized in that: The allocating address codes to the cascade expanders at each level includes: Obtaining the address of the expander in the computer system interface; The sum of the last 8 bits of the address is used as the address code of the expander.

3. The chassis management method according to claim 2, characterized in that: After polling the routing table and sending a read / write request to the expander to be controlled, the method further includes: If the feedback information of the expander to be controlled is not received, the address code of the expander to be controlled is removed from the routing table.

4. The chassis management method according to claim 1, characterized in that: The feedback information includes at least one of an address code, a function code for executing an action, data of a result after executing the action, and an error check code.

5. A chassis management method, characterized in that: Applicable to expanders, including: Receiving a read / write request sent by a baseboard management controller via a 485 bus communication protocol; In response to the read / write request, management information sent by the baseboard management controller is received, and feedback information is returned to the baseboard management controller according to the management information.

6. The chassis management method according to claim 5, characterized in that: The receiving management information sent by the baseboard management controller and returning feedback information to the baseboard management controller according to the management information includes: Parsing the management information to obtain the address code and function code in the management information; Verify whether the device itself is the expander to be controlled according to the address code; If yes, error checking is performed on the function code; the error checking includes generating a polynomial corresponding to each function code at the baseboard management controller end, generating a check polynomial at the expander end, dividing the polynomial generated by the function code by the check polynomial to obtain a remainder polynomial, comparing the remainder polynomial with the polynomial corresponding to the function code, and if the results are the same, the check passes; After the verification is passed, the type of the function code is identified; If the function code is a query function code, confirm the query information content according to the specific code value of the query function code, the query information content includes at least one of querying hard disk information, querying temperature information and querying power status information; fill the query result of the query information content into the data area, and return it to the baseboard management controller, wherein the format of the data area filling content is agreed upon by both the baseboard management controller and the expander; If the function code is a setting function code, confirm the setting instruction according to the specific code value of the setting function code, and the setting instruction includes at least one of enabling the port physical layer, the slot number, the lighting type, and setting the status of the light; complete the corresponding action according to the setting instruction, and return the action execution result to the baseboard management controller through the data area.

7. The chassis management method according to claim 5, characterized in that: The expander supports two network channels, and the chassis management method further includes: The two network channels are respectively connected to the baseboard management controller, wherein at least one network channel is used to receive management information sent by the baseboard management controller.

8. A chassis management system, characterized in that: include: Baseboard management controller and multi-stage cascade expander; The baseboard management controller is connected to the multi-stage cascade expander via a 485 bus; The baseboard management controller is used to assign address codes to the cascade expanders at each level; store the address codes of the cascade expanders at each level in the routing table of the 485 bus communication protocol; poll the routing table and send a read and write request to the expander to be controlled; after the request is responded to, send management information to the expander to be controlled, receive feedback information from the expander to be controlled, complete information query of the expander to be controlled according to the feedback information, and complete control of the expander to be controlled; The expander is used to receive a read / write request sent by a baseboard management controller via a 485 bus communication protocol; respond to the read / write request, receive management information sent by the baseboard management controller, and return feedback information to the baseboard management controller according to the management information.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the chassis management method according to any one of claims 1 to 7 is implemented.

10. A non-transitory readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the chassis management method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Computing device, physical state adjusting method, medium and product

    CN120316045A

  • Information management method and system for external card of server

    CN121614429A

  • A method and system for managing information of server peripheral cards

    CN121614429B

  • Expander management method and system and storage medium

    CN121996594A