Method for detecting abnormal connection of cable, electronic equipment and storage medium
Through in-band and out-band detection and positioning lamp detection combined with production information, abnormal cable connections are identified, which solves the problem of accuracy and low efficiency of cable connection detection, ensuring normal operation of the hard disk and data security.
Patent Information
- Application Number
- CN202510864612.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-06-25
AI Technical Summary
In the prior art, the detection results of abnormal cable connections are relatively accurate and efficient, especially in complex computer systems, which are difficult to identify problems such as cross-connection of cables, resulting in unavailability of hard disks or data loss.
By performing the first detection operations of in-band detection and out-of-band detection, combining the positioning lamp detection and the second detection operations of production information, the cable abnormal connections of the first abnormal type and the second abnormal type are respectively identified, and comprehensive detection is performed using hard disk information and backplane information.
It improves the accuracy and efficiency of cable abnormal connection detection, reduces the error of manual detection, and ensures normal operation of the hard disk and data security.
Smart Images

Figure CN120371624A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of computer technologies, and in particular, to a method, an electronic device, and a storage medium for detecting abnormal connection of cables. Background Art
[0002] With the continuous improvement of computer technology and specialization level, the complexity of computer systems is getting higher and higher, and the configuration types are also becoming more complex. For example, in a modern data center, multiple hard disks can be configured for a server to meet the data storage requirements. The configuration positions of the hard disks are relatively flexible, the access methods and types of the cables used to connect the hard disks are also diverse, and there may be situations of abnormal cable connections.
[0003] Therefore, it is necessary to detect abnormal cable connections, but the accuracy and detection efficiency of the detection results are relatively low. Summary of the Invention
[0004] In view of the above problems, embodiments of the present application provide a method, a device, an electronic device, a storage medium, and a computer program product for detecting abnormal connection of cables, which improve the accuracy and detection efficiency of the detection results of abnormal cable connections.
[0005] A first aspect of embodiments of the present application provides a method for detecting abnormal connection of cables, the method including: performing a first operation for detecting abnormal connection of cables to obtain a detection result indicating whether there is a first abnormal type among a plurality of cables; and / or, performing a second detection operation for detecting abnormal connection of cables to obtain a detection result indicating whether there is a second abnormal type among the plurality of cables; wherein, the plurality of cables include a first cable and a second cable, the transmission rate of the first cable is greater than that of the second cable, the first abnormal type indicates that at least one of the first cable and the second cable is not correctly connected and the abnormal connection modes are different, and the second abnormal type indicates that both the first cable and the second cable are not correctly connected and the abnormal connection modes are the same.
[0006] A second aspect of embodiments of the present application provides a device for detecting abnormal connection of cables, the device including: a first obtaining module, configured to perform a first operation for detecting abnormal connection of cables to obtain a detection result indicating whether there is a first abnormal type among a plurality of cables; and / or, a second obtaining module, configured to perform a second detection operation for detecting abnormal connection of cables to obtain a detection result indicating whether there is a second abnormal type among the plurality of cables; wherein, the plurality of cables include a first cable and a second cable, the transmission rate of the first cable is greater than that of the second cable, the first abnormal type indicates that at least one of the first cable and the second cable is not correctly connected and the abnormal connection modes are different, and the second abnormal type indicates that both the first cable and the second cable are not correctly connected and the abnormal connection modes.
[0007] The third aspect of the embodiments of the present application provides an electronic device, including: one or more processors; a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0008] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which computer programs or instructions are stored, and when the computer programs or instructions are executed by a processor, the steps of the above method are implemented.
[0009] The fifth aspect of the embodiments of the present application provides a computer program product, including computer programs or instructions, and when the computer programs or instructions are executed by a processor, the steps of the above method are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Through the following description of the embodiments of the present application with reference to the accompanying drawings, the above content and other objects, features, and advantages of the present application will become clearer. In the drawings:
[0011] Figure 1 A schematic diagram of a cable connection according to an embodiment of the present application is shown;
[0012] Figure 2 A schematic diagram of the principle of a method for detecting an abnormal connection according to an embodiment of the present application is shown;
[0013] Figure 3 An application scenario diagram of a method for detecting an abnormal cable connection according to an embodiment of the present application is shown;
[0014] Figure 4 A flowchart of a method for detecting an abnormal cable connection according to an embodiment of the present application is shown;
[0015] Figure 5 A block diagram of a device for detecting an abnormal cable connection according to an embodiment of the present application is shown;
[0016] Figure 6 A block diagram of an electronic device suitable for implementing a method for detecting an abnormal cable connection according to an embodiment of the present application is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0017] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary and are not intended to limit the scope of the present application. In the following detailed description, for the sake of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is obvious that one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present application.
[0018] The terms used herein are for the purpose of describing particular embodiments only and are not intended to limit the present application. The terms "comprising", "including" and the like as used herein indicate the presence of the recited features, steps, operations and / or components, but do not preclude the presence or addition of one or more other features, steps, operations or components.
[0019] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0020] In cases where expressions such as "at least one of A, B, and C, etc." are used, generally, it should be interpreted according to the meaning commonly understood by those of ordinary skill in the art (for example, "a system having at least one of A, B, or C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0021] In the embodiments of the present application, "indicating" may include direct indication, indirect indication, explicit indication or implicit indication. In the case of describing that a certain indication information is used to indicate A, it can be understood that the indication information carries A, directly indicates A or indirectly indicates A.
[0022] In the embodiments of the present application, the various numerical numbers involved are only for the convenience of description and are not used to limit the protection scope of the present application. The magnitude of the serial numbers involved in the embodiments of the present application does not mean the sequence of execution. The execution sequence of each process should be determined by its function and internal logic. For example, terms such as "first", "second", "third", "fourth" and other various term numbers in the specification, claims and drawings of the embodiments of the present application (if any) can be used to distinguish similar objects and do not have to be used to describe a specific sequence or order. Among them, such terms can be interchanged under appropriate circumstances.
[0023] If there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments of the embodiments of the present application are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0024] For the convenience of clearly describing the technical solutions of the embodiments of the present application, some terms related to the embodiments of the present application are described below.
[0025] 1. Hard disk interface
[0026] The hard disk interface may include at least one of the following: SATA (Serial Advanced Technology Attachment) interface, SAS (Serial Attached Small Computer System Interface) interface, U.2 (Small Form Factor - 8639) interface, M.2 (Next Generation Form Factor) interface, or PCIe (Peripheral Component Interconnect Express) interface, etc.
[0027] 2. Hard disk information, backplane information, motherboard information
[0028] The hard disk information may include at least one of the following: hard disk data, hard disk control information, or hard disk configuration information. The hard disk configuration information may include at least one of the following: hard disk serial number, hard disk drive letter, hard disk model, hard disk number, or hard disk slot number, etc. The hard disk serial number may refer to the unique identifier of the hard disk. The hard disk drive letter may refer to the logical identifier assigned by the operating system to the hard disk partition. The hard disk model may refer to the specification identifier of the hard disks in the same product line. The hard disk slot number may be used to indicate the hard disk slot.
[0029] The backplane information may include at least one of the following: backplane data, backplane control information, or backplane configuration information. The backplane configuration information may include at least one of the following: backplane serial number, backplane model, backplane slot number, or backplane number, etc. The backplane serial number may refer to the unique identifier of the backplane. The backplane model may refer to the specification identifier of the backplanes in the same product line. The backplane slot number may be used to indicate the backplane slot.
[0030] The motherboard information may include motherboard configuration information. The motherboard configuration information may include the motherboard serial number.
[0031] 3. Server, motherboard, backplane, hard disk, backplane slot, backplane port, positioning light, hard disk slot, motherboard interface, cable, first cable, second cable
[0032] The server may include a motherboard, a backplane, hard drives, and cables. The motherboard is the core circuit board of the server and may include at least one of a baseboard management controller, a processor, memory, a chipset, or expansion slots, etc., and can be used for the connection and coordination of hardware components. The motherboard may be configured with a motherboard interface. The motherboard interface may include at least one of the following: a first type of motherboard interface or a second type of motherboard interface. In the embodiments of the present application, the cable may refer to a hard drive cable. The cable may include a first cable and a second cable. The transmission rate of the first cable may be greater than that of the second cable. The first type of motherboard interface may refer to the motherboard interface for connecting the first cable. The second type of motherboard interface refers to the motherboard interface for connecting the second cable.
[0033] The backplane can be used to connect at least one of the motherboard, hard drives, or other expansion devices, etc. The backplane can deploy hard drives. The backplane may be configured with backplane slots, backplane ports, and backplane positioning lights. The backplane slots may refer to the physical slots for fixing hard drives. The backplane ports may include at least one of the following: a first type of backplane port or a second type of backplane port. The first type of backplane port may refer to the backplane port for connecting the first cable. The second type of backplane port may refer to the backplane port for connecting the second cable. The backplane positioning light can be a visual identification component of the backplane. The backplane positioning light can indicate the hard drive status through at least one of the color of the backplane positioning light or whether it is flashing. The backplane positioning light can be used to identify the hard drive slot. The hard drive may be configured with a hard drive slot. The hard drive can be inserted into the backplane slot via the hard drive slot.
[0034] The cable can connect the backplane and the motherboard via the backplane port and the motherboard interface, that is, one end of the cable can be connected to the backplane port and the other end can be connected to the motherboard interface, so as to connect the backplane and the motherboard. The cable may include a first cable and a second cable. The first cable can be used to transmit at least one of hard drive data or hard drive configuration information. The first cable can be used to transmit at least one of backplane data or backplane configuration information. The second cable can be used to transmit at least one of hard drive control information or hard drive configuration information. The second cable can be used to transmit at least one of backplane control information or backplane configuration information.
[0035] As an implementation, the first cable may include at least one of the following: a SATA cable, a SAS cable, a U.2 cable, an M.2 cable, or a PCIe cable, etc. The first type of motherboard interface may include at least one of the following: a SATA interface, a SAS interface, a U.2 interface, an M.2 interface, or a PCIe interface, etc. The first type of backplane port may include at least one of the following: a SATA port, a SAS port, a U.2 port, an M.2 port, or a PCIe port, etc.
[0036] As an implementation, the second cable may include at least one of the following: Inter-Integrated Circuit (I2C), Improved Inter-Integrated Circuit (I3C), System Management Bus (SMBus), Flexible Flat Cable (FFC), Serial General Purpose Input / Output (SGPIO) cable, or Universal Serial Bus (USB) cable. The second type of motherboard interface may include at least one of the following: I2C interface, I3C interface, SMBus interface, FFC interface, SGPIO interface, or USB interface, etc. The second type of backplane port may include at least one of the following: I2C port, I3C port, SMBus port, FFC port, SGPIO port, or USB port, etc.
[0037] Thus, the first cable can be used to transmit hard disk data. The second cable can be used to transmit control information associated with the hard disk. In addition, the second cable can also be used to transmit control information associated with the backplane. Based on this, the transmission path of the first cable can be: hard disk - hard disk slot - backplane slot - backplane - the first type of backplane port - the first cable - the first type of motherboard interface - motherboard. The transmission path of the second cable can be: backplane - the second type of backplane port - the second cable - the second type of motherboard interface - motherboard.
[0038] 4. Field Replaceable Unit (FRU) Information
[0039] The field replaceable unit can be a hardware component in the server that supports hot plugging or quick replacement. The field replaceable unit information may include at least one of the following: backplane information, motherboard information, etc.
[0040] 5. First hard disk information, second hard disk information, first backplane information, second backplane information
[0041] The first hard disk information may refer to the hard disk configuration information obtained by accessing the hard disk using the first cable. The second hard disk information may refer to the hard disk configuration information obtained by accessing the hard disk using the second cable. The first backplane information can be obtained by performing a scanning operation on the backplane configuration information of the backplane. The second backplane information may refer to the backplane configuration information obtained by accessing the backplane using the second cable.
[0042] 6. First exception type, second exception type
[0043] The first abnormal type may indicate that at least one of the first cable or the second cable for connecting the same hard disk is not correctly connected and the abnormal connection methods are different, that is, the first abnormal type may indicate that at least one of the first cable or the second cable is not correctly connected to their respective motherboard interfaces and the abnormal connection methods are different. The second abnormal type may indicate that both the first cable and the second cable for connecting the same hard disk are not correctly connected and the abnormal connection methods are the same, that is, the second abnormal type may indicate that both the first cable and the second cable are not correctly connected to their respective motherboard interfaces and the abnormal connection methods are the same.
[0044] To better understand the first abnormal type and the second abnormal type described in the embodiments of the present application, the following will be described in conjunction with Figure 1 for illustration.
[0045] Figure 1 Fig. shows a schematic diagram of cable connection according to an embodiment of the present application.
[0046] As Figure 1 shown, it includes the first cable A1 and the second cable B1, the first cable A2 and the second cable B2, and the first cable A3 and the second cable B3.
[0047] Correct connection may indicate that the first cable and the second cable for connecting to the same backplane are docked into their respective motherboard interfaces of the motherboard, that is, the first cable A1 and the second cable B1 are docked into their respective motherboard interfaces of the motherboard. The first cable A2 and the second cable B2 are docked into their respective motherboard interfaces of the motherboard. The first cable A3 and the second cable B3 are docked into their respective motherboard interfaces of the motherboard.
[0048] For the first abnormal type, the first cable A1 is correctly connected, the second cable B1 is not correctly connected, and the abnormal connection methods are different, so that the first cable A1 and the second cable B1 fail to be docked into their respective motherboard interfaces of the motherboard. Both the first cable A2 and the second cable B2 are not correctly connected, and the abnormal connection methods are different, so that the first cable A2 and the second cable B2 fail to be docked into their respective motherboard interfaces of the motherboard. The first cable A3 is not correctly connected, the second cable B3 is correctly connected, and the abnormal connection methods are different, so that the first cable A3 and the second cable B3 fail to be docked into their respective motherboard interfaces of the motherboard.
[0049] For the second abnormal type, both the first cable A1 and the second cable B1 are not correctly connected, and the abnormal connection methods are the same, so that the first cable A1 and the second cable B1 are docked into the motherboard. Both the first cable A2 and the second cable B2 are not correctly connected, and the abnormal connection methods are the same, so that the first cable A2 and the second cable B2 are docked into the motherboard. The first cable A3 and the second cable B3 are correctly connected.
[0050] The inventive concept of the embodiments of the present application will be described below with reference to the accompanying drawings.
[0051] With the continuous improvement of computer technology and specialization level, the complexity of computer systems is getting higher and higher, and the configuration types are also becoming more complex. For example, in a modern data center, multiple hard disks can be configured for a server to meet the data storage requirements. The configuration position of the hard disks is relatively flexible, the access methods and types of the cables used to connect the hard disks are also diverse, and there may be abnormal cable connection situations. For example, multiple cables can include a first cable and a second cable. The transmission rate of the first cable is greater than that of the second cable. There may be a situation where the first cable is cross-connected or the second cable is cross-connected. For example, Figure 1 the first abnormal type and the second abnormal type in , this situation does not affect the identification of components. Therefore, it is difficult to identify from the system side. However, in the case of server maintenance or hard disk replacement, abnormal cable connection may cause the hard disk to be replaced incorrectly, resulting in the hard disk being unavailable, data being accidentally deleted, or data being lost.
[0052] To improve the availability of the server, the situation of abnormal cable connection can be detected. However, since the cable does not have independent detectability, other components need to be paired to detect the abnormal cable connection. For example, the other components can include at least one of a hard disk or a backplane, etc. Therefore, it increases the detection difficulty of abnormal cable connection in the detection link during the production stage.
[0053] As an implementation method, a manual detection method can be adopted. For example, the detection personnel can visually inspect the cables and at the same time check through human-computer interaction. For example, in the detection stage, through instructions, the positioning lights corresponding to the hard disks can be lit one by one, and at the same time, the detection personnel are prompted to determine whether the number, order, and color of the actually lit positioning lights are correct and to feedback information. Thus, it can be determined whether there is an abnormal cable connection according to the feedback information.
[0054] In the process of implementing the inventive concept of the present application, it is found that the detection results obtained based on the above method are relatively dependent on the feedback information of the test personnel, and there are situations of misdetection or missed detection by the detection personnel, which affects the accuracy of the detection results. In addition, manual detection takes a long time and affects the detection efficiency.
[0055] Therefore, the embodiments of the present application analyze the abnormal connection types and find through analysis that there are Figure 1The two types of anomalies shown, namely the first anomaly type and the second anomaly type. The first anomaly type can indicate that at least one of the first cable or the second cable is not correctly connected and the abnormal connection methods are different. The second anomaly type can indicate that both the first cable and the second cable are not correctly connected and the abnormal connection methods are the same. Due to the different characteristics of the two types of anomalies, therefore, the embodiments of the present application propose that a first detection operation for cable abnormal connection can be performed to determine whether there is a first anomaly type among multiple cables. A second detection of cable abnormal connection is performed to determine whether there is a second anomaly type among multiple cables. And, the first detection operation, the second detection operation, or both the first detection operation and the second detection operation can be performed.
[0056] For the first anomaly type, it is found that the first cable can be used to transmit the hard disk configuration information (i.e., the first hardware information) in the hard disk information. The second cable can be used to transmit the hard disk configuration information (i.e., the second hardware information) in the hard disk information. The in-band detection method can include accessing at least one hard disk using at least one first cable. The out-of-band detection method can include accessing at least one hard disk using at least one second cable. Thus, the first hardware information obtained by the in-band detection method and the second hardware information obtained by the out-of-band detection method can be obtained, and then, based on the first hardware information and the second hardware information, the detection result of whether there is a first anomaly type among multiple cables can be obtained. Based on the above, the embodiments of the present application propose to perform a first detection operation based on the in-band detection method and the out-of-band detection method.
[0057] For the second anomaly type, it is found that it is possible to determine whether there is a second anomaly type among multiple cables by detecting whether at least one second cable has a second anomaly type, that is, if at least one second cable has a second anomaly type, it can also indicate that at least one first cable also has a second anomaly type. If none of the at least one second cables has a second anomaly type, it can also indicate that none of the at least one first cables has a second anomaly type. It is further found that the positioning light can be controlled to light up through the second cable. Therefore, the embodiments of the present application propose that a second detection operation based on the positioning light detection method can be performed. In addition, it is also found that the second cable can be used to access the backplane to obtain the backplane configuration information (i.e., the second backplane information) in the backplane information. Therefore, the embodiments of the present application propose that a second detection operation based on production information can be performed. For example, the first backplane information of the backplane obtained by the scanning operation and the second backplane information obtained by accessing the backplane using the second cable are used to obtain the detection result indicating whether there is a second anomaly type in at least one second cable.
[0058] To facilitate a better understanding of the inventive concept of the embodiments of the present application, the following is combined with Figure 2 for description.
[0059] Figure 2The schematic diagram of the principle of the method for detecting abnormal connections according to an embodiment of the present application is shown.
[0060] As Figure 2 shown, for the first type of abnormality, the first detection operation based on in-band detection and out-of-band detection methods can be performed to achieve it. For the second type of abnormality, the second detection operation based on the positioning light detection method can be performed. Optionally, the second detection operation based on production information can be performed.
[0061] The inventive concept of the embodiments of the present application has been described above. Next, the method, device, and electronic device for detecting abnormal cable connections provided by the embodiments of the present application will be specifically described with reference to the accompanying drawings.
[0062] First, taking the computer system as a server and the communication protocol as a dual-line protocol as an example, the application scenario applicable to the method for detecting abnormal cable connections will be described. Next, taking the application scenario shown in Figure 3 as an example, the method for detecting abnormal cable connections provided by the embodiments of the present application will be specifically described in conjunction with Figure 3 shown. Figure 4 It should be noted that the embodiments of the present application can be implemented independently or in combination with each other. For the same or similar concepts or processes, they will not be repeated in some embodiments.
[0063] The application scenario diagram of the method for detecting abnormal cable connections according to an embodiment of the present application is shown.
[0064] Figure 3 As
[0065] shown, the server may include a motherboard, a backplane, and hard disks. The hard disks can be installed on the backplane through hard disk slots ( Figure 3 not shown) and backplane slots ( Figure 3 not shown). The first cable can connect the first type of backplane port ( Figure 3 not shown) and the first type of motherboard interface ( Figure 3 not shown). The second cable can connect the second type of backplane port ( Figure 3 not shown) and the second type of motherboard interface ( Figure 3 not shown). Figure 3 not shown).
[0066] Thus, the server can execute the method for detecting abnormal cable connections described in the embodiments of the present application. It should be understood that Figure 3 this is only a schematic illustration and does not constitute a limitation on the protection scope of the present application.
[0067] Next, based on the application scenario described in Figure 3 in combination with Figure 4Specifically describe the method for detecting abnormal cable connections in the embodiments of the present application.
[0068] Figure 4 The flowchart of the method for detecting abnormal cable connections according to the embodiments of the present application is shown.
[0069] As Figure 4 shown, the method includes operations S410 and / or S420.
[0070] In operation S410, perform the first detection operation for abnormal cable connections to obtain the detection result of whether there is a first abnormal type among multiple cables. And / or
[0071] In operation S420, perform the second detection operation for abnormal cable connections to obtain the detection result of whether there is a second abnormal type among multiple cables.
[0072] To determine whether there is at least one of the first abnormal type or the second abnormal type among multiple cables, at least one of the first detection or the second detection for multiple cables can be performed, that is, S410 can be performed, S420 can be performed, or S410 - S420 can be performed.
[0073] Regarding how to perform the first detection, it can be achieved in the following manner.
[0074] As an implementation manner, when the server assembly is completed, the first detection operation based on the in-band detection method and the out-of-band detection method can be performed. For example, according to the respective first hard disk information of at least one hard disk obtained by using the in-band detection method and the respective second hard disk information of at least one hard disk obtained by using the out-of-band detection method, obtain the detection result of whether there is a first abnormal type among multiple cables. The first hard disk information may refer to the hard disk configuration information obtained by using the in-band detection method. The second hard disk information may refer to the hard disk configuration information obtained by using the out-of-band detection method.
[0075] Regarding how to perform the second detection, it can be achieved in the following manner.
[0076] As an implementation, the second detection operation based on the positioning light detection method can be performed after the server assembly is completed. For example, at least one target backplane can be determined from multiple backplanes connected to multiple cables. The target hard disk number can be determined from the hard disk numbers of multiple hard disks installed on the target backplane. For any one of the at least one target backplanes, the target positioning light corresponding to the target hard disk number can be controlled to be lit. According to the feedback information on whether the actual hard disk corresponding to the actual positioning light and the target hard disk corresponding to the target hard disk number are the same, the detection result indicating whether there is a second abnormal type in at least one second cable for the target backplane can be obtained. The actual positioning light can be the positioning light actually lit on the target backplane.
[0077] As another implementation, the second detection operation based on production information is performed. For example, using the first backplane information of the backplane obtained through the scanning operation and the second backplane information obtained by accessing the backplane using the second cable, the detection result indicating whether there is a second abnormal type in at least one second cable can be obtained. The scanning operation can be performed during the server assembly stage.
[0078] According to the embodiments of the present application, since the first abnormal type indicates that at least one of the first cable and the second cable is not correctly connected and the abnormal connection methods are different, and the second abnormal type indicates that both the first cable and the second cable are not correctly connected and the abnormal connection methods are the same, therefore, the first abnormal type and the second abnormal type can cover various types of abnormal cable connections. By performing the first detection operation for abnormal cable connections to obtain the detection result of whether there is a first abnormal type in multiple cables, and / or performing the second detection operation for abnormal cable connections to obtain the detection result of whether there is a second abnormal type in multiple cables, a comprehensive detection of abnormal cable connections is realized, and the detection accuracy and detection efficiency are improved.
[0079] Next, in conjunction with the accompanying drawings, specific descriptions will be made on how to perform the first detection operation based on the in-band detection method and the out-of-band detection method, the second detection operation based on the positioning light detection method, and the second detection operation based on production information.
[0080] I. Regarding how to perform the first detection operation based on the in-band detection method and the out-of-band detection method
[0081] For at least one hard disk connected by multiple cables, the path to obtain the first hard disk information of the hard disk based on the in-band detection method can be the main board - first cable - backplane - hard disk - first hard disk information. If the first cable is abnormally connected, it may be difficult to obtain the correct first hard disk information.
[0082] The path for obtaining the second hard disk information of the hard disk based on the out-of-band detection method can be the backplane management controller of the second cable backplane of the baseboard management controller of the motherboard and the second hard disk information of the hard disk. If the second cable is abnormally connected, it may be difficult to obtain the correct second hard disk information.
[0083] Obtain the first hard disk information of each of at least one hard disk obtained by performing a first detection operation using the in-band detection method. The first hard disk information may include a first hard disk serial number and a first hard disk drive letter. As an implementation manner, a hard disk monitoring tool may be used to obtain the first hard disk information of each of at least one hard disk. For example, when the hard disk is a SATA hard disk or a SAS hard disk, the hard disk monitoring tool may include the smartctl command or PowerShell. The smartctl command can be used to monitor and manage the SMART (Self-Monitoring, Analysis, and Reporting Technology) function of the hard disk drive. When the hard disk is an NVMe (Non Volatile Memory Express) hard disk, the hard disk monitoring tool may include nvme-cli.
[0084] Obtain the second hard disk information of each of at least one hard disk obtained by performing a second detection operation using the out-of-band detection method. The second hard disk information may include a second hard disk serial number and a second hard disk drive letter. For example, the management interface is used to obtain the second hard disk information of each of at least one hard disk. The management interface may include the Web interface of the baseboard management controller. The Web interface may include the Redfish interface. Redfish may be an open standard based on the RESTful API (Representational State Transfer Application Programming Interface) for server hardware management.
[0085] For any one of the at least one hard disk, feedback information indicating whether the first hard disk information and the second hard disk information of the hard disk are the same can be obtained. When the feedback information indicates that the first hard disk information and the second hard disk information of the hard disk are different, a detection result indicating that there is a first abnormal type in the first cable and the second cable for the hard disk is obtained. When the feedback information indicates that the first hard disk information and the second hard disk information of the hard disk are the same, a detection result indicating that there is no first abnormal type in the first cable and the second cable for the hard disk is obtained.
[0086] To better understand the first abnormal type of the embodiments of the present application, the following is described with reference to Table 1 below.
[0087] Table 1 shows the first hard disk information and the second hard disk information in the case of correct connection according to the embodiments of the present application, as well as the first hard disk information and the second hard disk information in the case of the first abnormal type. It should be noted that Table 1 is only for illustrative purposes and does not limit the protection scope of the present application.
[0088]
[0089] Table 1
[0090] As shown in Table 1, if there are the first hard disk information and the second hard disk information shown in Table 1, since the first hard disk information and the second hard disk information of the hard disk are different, and since the second hard disk information is the same as the second hard disk information in the case of correct connection, and the first hard disk information is different from the first hard disk information in the case of correct connection, therefore, a detection result indicating that the first cable for the hard disk has the first abnormal type can be obtained.
[0091] Since the in-band detection method includes accessing at least one hard disk using the first cable, and the out-of-band detection method includes accessing at least one hard disk using the second cable, therefore, the first hard disk information obtained by using the in-band detection method indicates whether the first cable has the first abnormal type, and the second hard disk information obtained by using the out-of-band detection method indicates whether the second cable has the first abnormal type. If both the first cable and the second cable are correctly connected, the first hard disk information and the second hard disk information of the same hard disk are the same. If at least one of the first cable or the second cable is not correctly connected and the abnormal connection methods are different, the first hard disk information and the second hard disk information are different. Thus, by using the first hard disk information of each of at least one hard disk obtained by the in-band detection method and the second hard disk information of each of at least one hard disk obtained by the out-of-band detection method to determine whether the first cable and the second cable for the hard disk have the first abnormal type, the accurate detection of the first abnormal type is achieved.
[0092] II. Regarding how to perform the second detection operation based on the positioning light detection method
[0093] For multiple backplanes connected by multiple cables, the path of the second detection operation based on the positioning light detection method can be that the baseboard management controller of the main board lights the specified positioning light on the backplane management controller of the second cable backplane.
[0094] To reduce the probability of incorrect detection results caused by manual recognition or misoperation, at least one target backplane can be determined from multiple backplanes connected to multiple cables. For example, there are N backplanes, namely backplane 1, ……, backplane n, ……, backplane N. N - 1 backplanes can be determined from the N backplanes as target backplanes, that is, there can be N - 1 target backplanes. For example, the N - 1 target backplanes can include backplane 1, ……, backplane n, ……, backplane N - 1. N can be an integer greater than 1. n can be an integer greater than or equal to 1 and less than or equal to N. Thus, the accuracy of the detection results is improved by reducing the number of hard disks to be detected.
[0095] To further reduce the probability of incorrect detection results, for any one of the at least one target backplane, a target hard disk number can be determined from the hard disk numbers of the multiple hard disks installed on this target backplane, and a positioning light detection is performed on the target hard disk corresponding to the target hard disk number.
[0096] Regarding how to determine the target hard disk from multiple hard disks, it can be achieved in the following way.
[0097] As an implementation method, to ensure the comprehensiveness of the second detection operation, the hard disks that exist in all the multiple target backplanes can be used as target hard disks. Thus, the target hard disks can be determined in advance from the multiple hard disks installed on the target backplane. For example, the target hard disk numbers can be determined in advance from the hard disk numbers of the multiple hard disks installed on the target backplane. The hard disk corresponding to the target hard disk number is the target hard disk. The target hard disk number can be the first hard disk number among the multiple hard disk numbers. Thus, the target hard disk can be the first hard disk among the multiple hard disks.
[0098] To better understand the method of determining at least one target backplane from multiple backplanes and determining the target hard disk number from the hard disk numbers of the multiple hard disks installed on the target backplane proposed in the embodiments of the present application, the following will be described with reference to Table 2.
[0099] Table 2 shows the target backplanes and target hard disk numbers determined based on the positioning light detection method according to the embodiments of the present application. It should be noted that Table 2 is only for illustrative purposes and does not constitute a limitation on the protection scope of the present application.
[0100]
[0101] Table 2
[0102] As shown in Table 2, when the number of backplanes is 1, 2, 3, 4, or 5, the corresponding number of detection times (i.e., the target number of backplanes) is 0, 1, 2, 3, or 4. If the number of backplane ports of backplane 1 is x, the number of backplane ports of backplane 2 is y, the number of backplane ports of backplane 3 is z, and the number of backplane ports of backplane 4 is w, then the hard disk numbers of the multiple hard disks installed on backplane 1 are each 0 to x - 1, the hard disk numbers of the multiple hard disks installed on backplane 2 are each x to x + y - 1, the hard disk numbers of the multiple hard disks installed on backplane 3 are each x + y to x + y + z - 1, and the hard disk numbers of the multiple hard disks installed on backplane 4 are each x + y + z to x + y + z + w - 1.
[0103] Based on the above, when the number of backplanes is 1, that is, including backplane 1, there is no need to perform the second detection operation based on the positioning light detection method. When the number of backplanes is 2, that is, including backplane 1 and backplane 2, backplane 1 can be used as the target backplane, and the target hard disk number can be determined to be 0 from the hard disk numbers of the multiple hard disks installed on backplane 1.
[0104] When the number of backplanes is 3, that is, including backplane 1, backplane 2, and backplane 3, backplane 1 and backplane 2 can be used as the target backplanes. The target hard disk number can be determined to be 0 from the hard disk numbers of the multiple hard disks installed on backplane 1, and the target hard disk number can be determined to be x from the hard disk numbers of the multiple hard disks installed on backplane 2.
[0105] When the number of backplanes is 4, that is, including backplane 1, backplane 2, backplane 3, and backplane 4, backplane 1, backplane 2, and backplane 3 can be used as the target backplanes. The target hard disk number can be determined to be 0 from the hard disk numbers of the multiple hard disks installed on backplane 1, the target hard disk number can be determined to be x from the hard disk numbers of the multiple hard disks installed on backplane 2, and the target hard disk number can be determined to be x + y from the hard disk numbers of the multiple hard disks installed on backplane 3.
[0106] When the number of backplanes is 5, that is, including backplane 1, backplane 2, backplane 3, backplane 4, and backplane 5, backplane 1, backplane 2, backplane 3, and backplane 4 can be used as the target backplanes. The target hard disk number can be determined to be 0 from the hard disk numbers of the multiple hard disks installed on backplane 1, the target hard disk number can be determined to be x from the hard disk numbers of the multiple hard disks installed on backplane 2, the target hard disk number can be determined to be x + y from the hard disk numbers of the multiple hard disks installed on backplane 3, and the target hard disk number can be determined to be x + y + z from the hard disk numbers of the multiple hard disks installed on backplane 4.
[0107] To further improve the accuracy of the detection results, it can be achieved by adding a foolproof function. As another implementation method, the target hard disk can be randomly determined from the multiple hard disks installed on the target backplane. For example, the target hard disk number can be randomly determined from the hard disk numbers of the multiple hard disks installed on the target backplane.
[0108] Based on this, the management interface of the baseboard management controller of the main board can send a lighting instruction to the backplane management controller of the backplane via the second cable. The lighting instruction may include a target hard disk number. In response to the lighting instruction, the backplane management controller controls the target positioning light corresponding to the target hard disk number to light up. When obtaining feedback information indicating that the actual hard disk corresponding to the actual positioning light is different from the target hard disk corresponding to the target hard disk number, a detection result indicating that at least one second cable for the target backplane has a second abnormal type is obtained. When obtaining feedback information indicating that the actual hard disk corresponding to the actual positioning light is the same as the target hard disk corresponding to the target hard disk number, a detection result indicating that at least one second cable for the target backplane does not have a second abnormal type is obtained.
[0109] The following further describes the second detection operations for determining the target hard disk number based on the hard disk numbers of multiple hard disks in advance and for determining the target hard disk number randomly from the hard disk numbers of multiple hard disks, respectively.
[0110] 1. Second detection operation for determining the target hard disk number based on the hard disk numbers of multiple hard disks in advance
[0111] The second interaction page may include a target hard disk number, a second control, and a third control. The second control may indicate feedback information indicating that the actual hard disk corresponding to the actual positioning light is different from the target hard disk corresponding to the target hard disk number. The third control may indicate feedback information indicating that the actual hard disk corresponding to the actual positioning light is the same as the target hard disk corresponding to the target hard disk number.
[0112] The second interaction page can be displayed. When a trigger operation for the second control is detected, a detection result indicating that at least one second cable for the target backplane has a second abnormal type is obtained. When a trigger operation for the first control is detected, a detection result indicating that at least one second cable for the target backplane does not have a second abnormal type is obtained.
[0113] By displaying the target hard disk number, the second control, and the third control on the second interaction page, the difficulty of determining the detection result of whether at least one second cable for the target backplane has a second abnormal type is simplified, and the convenience is improved.
[0114] In addition, in order to improve the accuracy of the detection result, a detection result indicating that at least one second cable for the target hard disk of the target backplane does not have a second abnormal type can also be obtained.
[0115] 2. Second detection operation for determining the target hard disk number randomly from the hard disk numbers of multiple hard disks
[0116] The mapping relationship can indicate the relationship between the hard disk number and the hard disk slot number. Thus, based on the actual hard disk number of the actual hard disk, the actual hard disk slot number of the actual hard disk can be determined from multiple mapping relationships. For example, the actual mapping relationship that matches the actual hard disk number can be determined from multiple mapping relationships. The hard disk slot number in the actual mapping relationship is used as the actual hard disk slot number of the actual hard disk.
[0117] Thus, in the case of obtaining feedback information indicating that the actual hard disk slot number of the actual hard disk is different from the target hard disk slot number of the target hard disk, a detection result indicating that at least one second cable for the target backplane has a second abnormal type is obtained. In the case of obtaining feedback information indicating that the actual hard disk slot number is the same as the target hard disk slot number, a detection result indicating that at least one second cable for the target backplane does not have a second abnormal type is obtained.
[0118] Regarding how to obtain the actual slot number, it can be achieved in the following way.
[0119] As an implementation manner, the first interaction page may include a first control. The first control can be used to input the actual hard disk slot number of the actual hard disk or select the actual hard disk slot number from multiple candidate hard disk slot numbers.
[0120] Thus, the first interaction page can be displayed. In the case of detecting an input operation or a selection operation on the first control, the actual hard disk slot number is obtained.
[0121] By providing the first control on the first interaction page, the difficulty of determining the detection result of whether at least one second cable for the target backplane has a second abnormal type is simplified, and the convenience is improved.
[0122] III. Regarding performing a second detection operation based on production information
[0123] During the production and assembly stage of the server, for any one of the multiple backplanes connected to multiple second cables, a scanning operation can be performed on the backplane information of the backplane to obtain the first backplane information of the backplane. As an implementation manner, the first backplane information may include a backplane slot number and a first backplane serial number associated with the backplane slot number. The second backplane information may include a backplane number and a second backplane serial number associated with the backplane number. Optionally, the motherboard information of the motherboard can also be obtained. In the case of obtaining the first backplane information of each of the multiple backplanes, the first backplane information of each of the multiple backplanes can be associated and stored in the database with the motherboard information.
[0124] In addition, the backplane can also be accessed using a second cable to obtain second backplane information of the backplane. The path for obtaining the second backplane information of the backplane based on the second cable can be: Baseboard Management Controller of the mainboard → second cable → Backplane Management Controller of the backplane → second backplane information. As an implementation, field replaceable unit information can be obtained. The field replaceable unit information can be obtained using the second cable. The field replaceable unit information can include the second backplane information of each of multiple backplanes. If the second cable is abnormally connected, it may be difficult to obtain the correct second backplane information.
[0125] Thus, based on the first backplane information of each of multiple backplanes and the second backplane information of each of multiple backplanes, a detection result indicating whether there is a second abnormal type among multiple second cables can be obtained. For example, for any one of the multiple backplanes, when the first backplane information of the backplane is the same as the second backplane information of the backplane, a detection result indicating that there is a second abnormal type among the multiple second cables for the backplane is obtained. When the first backplane information of the backplane is different from the second backplane information of the backplane, a detection result indicating that there is no second abnormal type among the multiple second cables for the backplane is obtained.
[0126] Since the second backplane information of the backplane is obtained by accessing the backplane using the second cable, and the first backplane information of the backplane is obtained by performing a scan operation on the backplane information of the backplane, if the second cable for the backplane is correctly connected, the first backplane information and the second backplane information of the backplane are the same. If the second cable for the backplane is not correctly connected, the first backplane information and the second backplane information of the backplane are different. Thus, by using the first backplane information and the second backplane information obtained in different ways to determine whether there is a second abnormal type among the second cables for the backplane, accurate detection of the second abnormal type is achieved.
[0127] Regarding how to obtain a detection result indicating whether there is a second abnormal type among multiple second cables based on the first backplane information of each of multiple backplanes and the second backplane information of each of multiple backplanes, it can be achieved through the following method.
[0128] As an implementation, the target backplane number of each of multiple backplanes can be obtained according to the sorting order of the backplane numbers of each of multiple backplanes connected to multiple second cables. For example, the backplane numbers of each of multiple backplanes connected to multiple second cables can be sorted in a predetermined order to obtain the target backplane number of each of multiple backplanes. For example, the predetermined order can be from a predetermined value in ascending order. The predetermined value can be 0. Thus, the second backplane information can include the target backplane number and the second backplane serial number associated with the target backplane number.
[0129] For any one of a plurality of target backplane numbers, when the obtained feedback information indicates that the second backplane serial number associated with the target backplane number is the same as the first backplane serial number associated with the backplane slot number that is the same as the target backplane number, a detection result indicating that there is no second type of abnormality in at least one second cable for the target backplane corresponding to the target backplane number is obtained. When the obtained feedback information indicates that the second backplane serial number associated with the target backplane number is different from the first backplane serial number associated with the backplane slot number that is the same as the target backplane number, a detection result indicating that there is a second type of abnormality in at least one second cable for the target backplane corresponding to the target backplane number is obtained.
[0130] As another implementation, to further improve the accuracy of the detection result, it can be achieved by increasing the information comparison dimension. For example, the first backplane information may further include the first backplane model. The second backplane information may further include the second backplane model. Thus, on the basis of comparing the first backplane serial number and the second backplane serial number, the first backplane model and the second backplane model can be compared.
[0131] For any one of a plurality of target backplane numbers, when the obtained feedback information indicates that the second backplane serial number associated with the target backplane number is the same as the first backplane serial number associated with the backplane slot number that is the same as the target backplane number, and the second backplane model associated with the target backplane number is the same as the first backplane model associated with the backplane slot number that is the same as the target backplane number, a detection result indicating that there is no second type of abnormality in at least one second cable for the target backplane corresponding to the target backplane number is obtained. When the obtained feedback information indicates that the second backplane serial number associated with the target backplane number is different from the first backplane serial number associated with the backplane slot number that is the same as the target backplane number, and / or the second backplane model associated with the target backplane number is different from the first backplane model associated with the backplane slot number that is the same as the target backplane number, a detection result indicating that there is a second type of abnormality in at least one second cable for the target backplane corresponding to the target backplane number is obtained.
[0132] The above describes the method for detecting abnormal cable connection provided by the embodiments of the present application.
[0133] On the basis of the above content, the method for detecting abnormal cable connection provided by the embodiments of the present application will be described as a whole below.
[0134] For the first type of anomaly, embodiments of the present application determine whether the first hard disk information of each of at least one hard disk obtained by using an in-band detection method is the same as the second hard disk information of each of at least one hard disk obtained by using an out-of-band detection method, to determine whether there is a first type of anomaly in the first cable and the second cable for at least one hard disk. The in-band detection method may include accessing at least one hard disk by using at least one first cable. The out-of-band detection method may include accessing at least one hard disk by using at least one second cable.
[0135] Based on the above, the situation of cross-connection of the first cable and the second cable is detected.
[0136] For the second type of anomaly, embodiments of the present application design a foolproof method for the second detection operation based on the positioning light detection method, simplify the manual interaction environment, and perform human-computer interaction detection in units of backplanes to cover each backplane. For the second detection operation based on production information, embodiments of the present application perform automatic detection of multiple second cables by using the first backplane information obtained by a scanning method and the second backplane information obtained by accessing multiple backplanes by using a second cable.
[0137] Based on the above, the situation of paired and synchronous misconnection of the first cable and the second cable is detected.
[0138] Embodiments of the present application adjust the detection method for abnormal cable connection on the basis of the original detection method of the server, improving the accuracy and efficiency of the detection result. In addition, by optimizing the detection method, the server performance can meet the user requirements, thereby improving the shipment quality of the server and enhancing the user's confidence and satisfaction.
[0139] Based on the same inventive concept as the foregoing embodiments of the method for detecting abnormal cable connection, embodiments of the present application further provide a device for detecting abnormal cable connection to implement the method for detecting abnormal cable connection provided by embodiments of the present application.
[0140] Figure 5 The block diagram of the device for detecting abnormal cable connection according to an embodiment of the present application is shown.
[0141] As Figure 5 shown, the device 500 may include a first obtaining module 510 and / or a second obtaining module 520.
[0142] The first obtaining module 510 is configured to perform a first detection operation for abnormal cable connection to obtain a detection result indicating whether there is a first type of anomaly in multiple cables.
[0143] A second acquisition module 520, configured to perform a second detection operation for abnormal cable connection, and obtain a detection result indicating whether there is a second abnormal type among multiple cables.
[0144] According to an embodiment of the present application, the multiple cables may include a first cable and a second cable. The transmission rate of the first cable may be greater than that of the second cable. The first abnormal type may indicate that at least one of the first cable and the second cable is not correctly connected and the abnormal connection methods are different. The second abnormal type may indicate that both the first cable and the second cable are not correctly connected and the abnormal connection methods are the same.
[0145] According to an embodiment of the present application, any multiple of the first acquisition module 510 and / or the second acquisition module 520 may be combined and implemented in one module, or any one of them may be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present application, at least one of the first acquisition module 510 and / or the second acquisition module 520 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or may be implemented by any other reasonable way of integrating or packaging circuits, etc., in hardware or firmware, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Alternatively, at least one of the first acquisition module 510 and / or the second acquisition module 520 may be at least partially implemented as a computer program module, and when the computer program module is run, it may execute corresponding functions.
[0146] Figure 6 The block diagram of an electronic device suitable for implementing a method for detecting abnormal cable connection according to an embodiment of the present application is shown.
[0147] As Figure 6 shown, the electronic device 600 according to an embodiment of the present application includes a processor 601, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage section 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), etc. The processor 601 may also include on-board memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present application.
[0148] In the RAM 603, various programs and data required for the operation of the electronic device 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flow according to the embodiments of the present application by executing the programs in the ROM 602 and / or the RAM 603. It should be noted that the programs may also be stored in one or more memories other than the ROM 602 and the RAM 603. The processor 601 may also perform various operations of the method flow according to the embodiments of the present application by executing the programs stored in the one or more memories.
[0149] According to an embodiment of the present application, the electronic device 600 may further include an input / output (I / O) interface 605, and the input / output (I / O) interface 605 is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 610 as needed so that a computer program read from it can be installed into the storage section 608 as needed.
[0150] The present application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of the present application is implemented.
[0151] According to an embodiment of the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present application, the computer-readable storage medium may include the above-described ROM 602 and / or RAM 603 and / or one or more memories other than ROM 602 and RAM 603.
[0152] An embodiment of the present application also includes a computer program product, which includes a computer program that contains program code for executing the method shown in the flowchart. When the computer program product runs in a computer system, the program code is used to enable the computer system to implement the method for detecting abnormal cable connections provided by the embodiments of the present application.
[0153] When the computer program is executed by the processor 601, it executes the above functions defined in the system / apparatus of the embodiments of the present application. According to an embodiment of the present application, the above-described systems, apparatuses, modules, units, etc. can be implemented by computer program modules.
[0154] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and be downloaded and installed through the communication part 609, and / or be installed from the removable medium 611. The program code included in the computer program can be transmitted by any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0155] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or be installed from the removable medium 611. When the computer program is executed by the processor 601, it executes the above functions defined in the system of the embodiments of the present application. According to an embodiment of the present application, the above-described systems, devices, apparatuses, modules, units, etc. can be implemented by computer program modules.
[0156] In accordance with embodiments of the present application, program code for executing the computer programs provided by the embodiments of the present application can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, such as Java, C++, Python, the "C" language, or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).
[0157] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the above-mentioned module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0158] Those skilled in the art can understand that the features described in the various embodiments of the present application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments of the present application can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present application.
[0159] The above describes the embodiments of the present application. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present application. Although the embodiments are described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. Without departing from the scope of the present application, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present application.
Claims
1. A method for detecting abnormal connection of cables, characterized in that, Including: Performing a first detection operation for abnormal cable connection to obtain a detection result indicating whether there is a first abnormal type among multiple cables; And / or Performing a second detection operation for abnormal cable connection to obtain a detection result indicating whether there is a second abnormal type among the multiple cables; Wherein, the multiple cables include a first cable and a second cable, the transmission rate of the first cable is greater than that of the second cable, the first abnormal type indicates that at least one of the first cable and the second cable is not correctly connected and the abnormal connection manners are different, and the second abnormal type indicates that both the first cable and the second cable are not correctly connected and the abnormal connection manners are the same.
2. The method according to claim 1, characterized in that, The performing a first detection operation for abnormal cable connection to obtain a detection result indicating whether there is a first abnormal type among multiple cables includes: Obtaining first hard disk information of each of at least one hard disk, wherein the first hard disk information is obtained by performing the first detection operation using an in-band detection method, and the in-band detection method includes accessing the at least one hard disk using at least one of the first cables; Obtaining second hard disk information of each of the at least one hard disk, wherein the second hard disk information is obtained by performing the second detection operation using an out-of-band detection method, and the out-of-band detection method includes accessing the at least one hard disk using at least one of the second cables; and For any one of the at least one hard disk, in response to the first hard disk information and the second hard disk information of the hard disk being different, obtaining a detection result indicating that the first cable and the second cable for the hard disk have the first abnormal type.
3. The method according to claim 1 or 2, characterized in that, The performing a second detection operation for abnormal cable connection to obtain a detection result indicating whether there is a second abnormal type among the multiple cables includes: For any target backplane among multiple backplanes connected to the multiple cables, in response to obtaining feedback information indicating that an actual hard disk corresponding to an actual positioning light is different from a target hard disk corresponding to a target hard disk number, obtaining a detection result indicating that at least one of the second cables for the target backplane has the second abnormal type; Wherein, the actual positioning light is a positioning light actually lit on the target backplane, the target hard disk number is randomly determined from the hard disk numbers of the multiple hard disks, or the target hard disk number is predetermined from the multiple hard disk numbers, and the multiple hard disks are installed on the target backplane.
4. The method according to claim 3, characterized in that, The in response to obtaining feedback information indicating that an actual hard disk corresponding to an actual positioning light is different from a target hard disk corresponding to a target hard disk number, obtaining a detection result indicating that at least one of the second cables for the target backplane has the second abnormal type includes: When the target hard disk number is randomly determined from the hard disk numbers of the multiple hard disks, in response to obtaining feedback information indicating that an actual hard disk slot number of the actual hard disk is different from a target hard disk slot number of the target hard disk, obtaining a detection result indicating that at least one of the second cables for the target backplane has the second abnormal type; Wherein, the actual hard disk slot number is determined from a plurality of mapping relationships according to the actual hard disk number of the actual hard disk, and the mapping relationship indicates the relationship between the hard disk number and the hard disk slot number.
5. The method according to claim 4, wherein It further includes: Displaying a first interaction page, wherein the first interaction page includes a first control for inputting the actual hard disk slot number of the actual hard disk or selecting the actual hard disk slot number from a plurality of candidate hard disk slot numbers; and In response to detecting an input operation or a selection operation on the first control, obtaining the actual hard disk slot number.
6. The method according to claim 3, wherein The obtaining the detection result indicating that at least one of the second cables for the target backplane has the second abnormal type in response to obtaining feedback information indicating that the actual hard disk corresponding to the actual positioning light is different from the target hard disk corresponding to the target hard disk number includes: Displaying a second interaction page, wherein the second interaction page includes the target hard disk number, a second control, and a third control, the second control indicates feedback information that the actual hard disk corresponding to the actual positioning light is different from the target hard disk corresponding to the target hard disk number, and the third control indicates feedback information that the actual hard disk is the same as the target hard disk; and In response to detecting a trigger operation on the second control, obtaining the detection result indicating that at least one of the second cables for the target backplane has the second abnormal type.
7. The method according to claim 1 or 2, characterized in that, The performing the second detection operation for abnormal cable connection to obtain the detection result indicating whether there is a second abnormal type among the plurality of cables includes: Obtaining the detection result indicating whether there is a second abnormal type among the plurality of second cables according to the respective first backplane information and second backplane information of a plurality of backplanes connected to the plurality of second cables, wherein the first backplane information is obtained by performing a scanning operation on the backplane information of the backplane, and the second backplane information is obtained by accessing the backplane using the second cable.
8. The method according to claim 7, wherein The first backplane information includes a backplane slot number and a first backplane serial number, and the second backplane information includes a backplane number and a second backplane serial number; Wherein, the obtaining the detection result indicating whether there is a second abnormal type among the plurality of second cables according to the respective first backplane information and second backplane information of a plurality of backplanes connected to the plurality of second cables includes: Obtaining the respective target backplane numbers of the plurality of backplanes according to the arrangement order of the backplane numbers of the plurality of backplanes connected to the plurality of second cables; and For any target backplane number in at least one of the target backplane numbers, in response to the obtained feedback information indicating that the second backplane serial number associated with the target backplane number is different from the first backplane serial number associated with the backplane slot number that is the same as the target backplane number, obtaining the detection result indicating that at least one of the second cables for the target backplane has the second abnormal type, and the target backplane corresponds to the target backplane number.
9. An electronic device, comprising: One or more processors; A memory for storing one or more computer programs, Characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method, system and device for detecting full-link connectivity of cable, and medium
CN112131060A
Server cable detection method, detection device, detection equipment and storage medium
CN112527582A
Host switching anomaly detection method and device, computer equipment and storage medium
CN116701033A
Method and device for testing and managing continuity of multicore cable
JP1996160091A
Cable detection method and apparatus
US20080136803A1