Method, electronic device, and storage medium for detecting abnormal cable connection

By combining in-band detection, out-of-band detection and positioning light detection methods, the abnormal cable connection type is identified, solving the problems of low detection accuracy and efficiency in the existing technology, and ensuring the reliability of cable connections and data security in computer systems.

CN120371624BActive Publication Date: 2025-09-16INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510864612.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-09-16
Estimated Expiration
2045-06-25

AI Technical Summary

Technical Problem

In the prior art, the accuracy and efficiency of detecting abnormal cable connections are low. In particular, it is difficult to identify and correct abnormal connections in complex computer systems, resulting in hard disk unavailability or data loss.

Method used

A method combining in-band detection and out-of-band detection is adopted to obtain hard disk information through the first cable and the second cable respectively. Combined with positioning light detection and production information scanning, the type of abnormal cable connection, including the first abnormal type and the second abnormal type, is identified to improve detection accuracy and efficiency.

Benefits of technology

It achieves comprehensive detection of abnormal cable connections, improves the accuracy and efficiency of detection results, reduces the probability of manual misdetection and missed detection, and ensures the normal operation of hard drives and data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371624B_ABST
    Figure CN120371624B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method, electronic device, and storage medium for detecting abnormal cable connections, which can be applied to the field of computer technology. The method includes: performing a first detection operation for abnormal cable connections to obtain a detection result indicating whether a first abnormality type exists in a plurality of cables; and / or performing a second detection operation for abnormal cable connections to obtain a detection result indicating whether a second abnormality type exists in a 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 abnormality type indicates that at least one of the first cable or the second cable is not correctly connected and the abnormal connection method is different, and the second abnormality type indicates that both the first cable and the second cable are not correctly connected and the abnormal connection method is the same.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of computer technology, and in particular to a method, electronic device, and storage medium for detecting abnormal cable connection. Background Art

[0002] As computer technology and specialization continue to improve, computer systems are becoming increasingly complex, and their configurations are becoming increasingly complex. For example, in modern data centers, servers can be configured with multiple hard drives to meet data storage needs. The placement of hard drives is flexible, and the cables used to connect them vary in their connection methods and types, potentially leading to improper cable connections.

[0003] Therefore, it is necessary to detect abnormal cable connections, but the accuracy and efficiency of the detection results are low. Summary of the Invention

[0004] In view of the above problems, embodiments of the present application provide a method, apparatus, electronic device, storage medium, and computer program product for detecting abnormal cable connections, which improve the accuracy and efficiency of detection results of abnormal cable connections.

[0005] A first aspect of an embodiment of the present application provides a method for detecting abnormal cable connection, the method comprising: performing a first operation of abnormal cable connection to obtain a detection result indicating whether a first abnormality type exists in a plurality of cables; and / or performing a second detection operation of abnormal cable connection to obtain a detection result indicating whether a second abnormality type exists in 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 abnormality type indicates that at least one of the first cable or the second cable is not correctly connected and the abnormal connection mode is different, and the second abnormality type indicates that both the first cable and the second cable are not correctly connected and the abnormal connection mode is the same.

[0006] A second aspect of an embodiment of the present application provides a device for detecting abnormal cable connection, the device comprising: a first obtaining module, configured to perform a first operation of abnormal cable connection, and obtain a detection result indicating whether a first abnormality type exists in a plurality of cables; and / or a second obtaining module, configured to perform a second detection operation of abnormal cable connection, and obtain a detection result indicating whether a second abnormality type exists in the plurality of cables; wherein the plurality of cables comprise a first cable and a second cable, the transmission rate of the first cable is greater than that of the second cable, the first abnormality type indicates that at least one of the first cable or the second cable is not correctly connected and the abnormal connection mode is different, and the second abnormality type indicates that both the first cable and the second cable are not correctly connected and the connection mode is abnormal.

[0007] A third aspect of an embodiment of the present application provides an electronic device, comprising: one or more processors; and 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] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the computer program or instructions are executed by a processor.

[0009] A fifth aspect of an embodiment of the present application provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above contents and other objects, features and advantages of the present application will become more apparent through the following description of the embodiments of the present application with reference to the accompanying drawings, in which:

[0011] Figure 1 A schematic diagram showing cable connections according to an embodiment of the present application is shown;

[0012] Figure 2 A schematic diagram showing the principle of a method for detecting abnormal connections according to an embodiment of the present application is shown;

[0013] Figure 3 A diagram showing an application scenario of a method for detecting abnormal cable connection according to an embodiment of the present application is shown;

[0014] Figure 4 A flowchart of a method for detecting abnormal cable connection according to an embodiment of the present application is shown;

[0015] Figure 5 A block diagram of an apparatus for detecting 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 abnormal cable connection according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[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 only and are not intended to limit the scope of the present application. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present application.

[0018] The terms used herein are only for describing specific embodiments and are not intended to limit this application. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude 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 skilled 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] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled 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 A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0021] In the embodiment of the present application, "indication" 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 used for the convenience of description and are not used to limit the scope of protection of this application. The size of the serial numbers involved in the embodiments of the present application does not mean the order of execution. The order of execution of each process should be determined by its function and internal logic. For example, the terms "first", "second", "third", "fourth" and other various terminology labels (if any) in the description, claims and drawings of the embodiments of the present application can be used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. Among them, the terms used in this way are interchangeable where appropriate.

[0023] Unless otherwise specified or there is no logical conflict, the terms and / or descriptions between different embodiments of the present application are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0024] In order to clearly describe the technical solutions of the embodiments of the present application, some terms involved in the embodiments of the present application are explained 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] Hard disk information may include at least one of the following: hard disk data, hard disk control information, or hard disk configuration information. 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. A hard disk serial number uniquely identifies a hard disk. A hard disk drive letter refers to the logical identifier assigned to a hard disk partition by the operating system. A hard disk model refers to the specification identifier of hard disks within the same product line. A hard disk slot number identifies a hard disk slot.

[0029] Backplane information may include at least one of the following: backplane data, backplane control information, or backplane configuration information. Backplane configuration information may include at least one of the following: backplane serial number, backplane model, backplane slot number, or backplane number. The backplane serial number may be a unique identifier for the backplane. The backplane model may be a specification identifier for backplanes within the same product line. The backplane slot number may be used to identify the backplane slot.

[0030] The motherboard information may include motherboard configuration information, which may include a motherboard serial number.

[0031] 3. Server, motherboard, backplane, hard drive, backplane slot, backplane port, positioning light, hard drive slot, motherboard interface, cable, first cable, second cable

[0032] The server may include a motherboard, a backplane, a hard disk 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, a memory, a chipset or an expansion slot, etc., and may 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-class motherboard interface or a second-class motherboard interface. In the embodiment of the present application, the cable may refer to a hard disk cable. The cable may include a first cable and a second cable. The transmission rate of the first cable may be greater than the transmission rate of the second cable. The first-class motherboard interface may refer to a motherboard interface for connecting the first cable. The second-class motherboard interface refers to a motherboard interface for connecting the second cable.

[0033] The backplane can be used to connect at least one of the motherboard, hard disk or other expansion devices. The backplane can accommodate hard disks. The backplane can be configured with backplane slots, backplane ports and backplane positioning lights. The backplane slots can refer to physical slots used to fix hard disks. The backplane ports can include at least one of the following: a first-type backplane port or a second-type backplane port. A first-type backplane port can refer to a backplane port used to connect a first cable. A second-type backplane port can refer to a backplane port used to connect a second cable. The backplane positioning light can be a visual identification component of the backplane. The backplane positioning light can indicate the hard disk status by at least one of the backplane positioning light's color or whether it flashes. The backplane positioning light can be used to identify the hard disk slot. The hard disk can be configured with a hard disk slot. The hard disk can be inserted into the backplane slot via the hard disk slot.

[0034] The cable can connect the backplane and the mainboard via the backplane port and the mainboard interface, that is, one end of the cable can be connected to the backplane port and the other end can be connected to the mainboard interface, thereby connecting the backplane and the mainboard. The cable may include a first cable and a second cable. The first cable can be used to transmit at least one of hard disk data or hard disk 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 disk control information or hard disk 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. The first-type 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. The first-type 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.

[0036] As an implementation, the second cable may include at least one of the following: an Inter-Integrated Circuit (I2C), an Improved Inter-Integrated Circuit (I3C), a System Management Bus (SMBus), a Flexible Flat Cable (FFC), a Serial General Purpose Input / Output (SGPIO) cable, or a Universal Serial Bus (USB) cable. The second type of motherboard interface may include at least one of the following: an I2C interface, an I3C interface, an SMBus interface, an FFC interface, an SGPIO interface, or a USB interface. The second type of backplane port may include at least one of the following: an I2C port, an I3C port, an SMBus port, an FFC port, an SGPIO port, or a USB port.

[0037] Thus, the first cable can be used to transmit hard drive data. The second cable can be used to transmit control information associated with the hard drive. Furthermore, the second cable can also be used to transmit control information associated with the backplane. The transmission path based on the first cable can be hard drive—hard drive slot—backplane slot—backplane—first-type backplane port—first cable—first-type motherboard interface—motherboard. The transmission path based on the second cable can be backplane—second-type backplane port—second cable—second-type motherboard interface—motherboard.

[0038] 4. Field Replaceable Unit (FRU) information

[0039] The field replaceable unit (FRU) may be a hardware component in the server that supports hot plugging or quick replacement. The FRU information may include at least one of the following: backplane information or mainboard information.

[0040] 5. First hard drive information, second hard drive information, first backplane information, second backplane information

[0041] The first hard disk information may refer to hard disk configuration information obtained by accessing the hard disk using the first cable. The second hard disk information may refer to hard disk configuration information obtained by accessing the hard disk using the second cable. The first backplane information may be obtained by performing a backplane configuration information scan operation on the backplane. The second backplane information may refer to backplane configuration information obtained by accessing the backplane using the second cable.

[0042] 6. First exception type, second exception type

[0043] The first exception type may indicate that at least one of the first cable or the second cable used to connect to the same hard drive is incorrectly connected and the abnormal connection methods are different, that is, the first exception type may indicate that at least one of the first cable or the second cable is incorrectly connected to their respective motherboard interfaces and the abnormal connection methods are different. The second exception type may indicate that both the first cable and the second cable used to connect to the same hard drive are incorrectly connected and the abnormal connection methods are the same, that is, the second exception type may indicate that both the first cable and the second cable are incorrectly connected to their respective motherboard interfaces and the abnormal connection methods are the same.

[0044] In order to better understand the first and second exception types described in the embodiment of the present application, Figure 1 Provide explanation.

[0045] Figure 1 A schematic diagram of cable connection according to an embodiment of the present application is shown.

[0046] like Figure 1 As shown, 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 are included.

[0047] Correct connection can indicate that the first cable and the second cable connected to the same backplane are connected to the corresponding motherboard interfaces of the mainboard in pairs, that is, the first cable A1 and the second cable B1 are connected to the corresponding motherboard interfaces of the mainboard in pairs. The first cable A2 and the second cable B2 are connected to the corresponding motherboard interfaces of the mainboard in pairs. The first cable A3 and the second cable B3 are connected to the corresponding motherboard interfaces of the mainboard in pairs.

[0048] For the first exception type, first cable A1 is correctly connected, second cable B1 is incorrectly connected, and the abnormal connection methods are different, resulting in first cable A1 and second cable B1 being unable to connect to their respective motherboard interfaces as a pair. First cable A2 and second cable B2 are both incorrectly connected, and the abnormal connection methods are different, resulting in first cable A2 and second cable B2 being unable to connect to their respective motherboard interfaces as a pair. First cable A3 is incorrectly connected, second cable B3 is correctly connected, and the abnormal connection methods are different, resulting in first cable A3 and second cable B3 being unable to connect to their respective motherboard interfaces as a pair.

[0049] For the second abnormality type, both first cable A1 and second cable B1 are incorrectly connected, and the abnormal connection method is the same, so that first cable A1 and second cable B1 are connected to the mainboard as a pair. Both first cable A2 and second cable B2 are incorrectly connected, and the abnormal connection method is the same, so that first cable A2 and second cable B2 are connected to the mainboard as a pair. First cable A3 and second cable B3 are correctly connected.

[0050] The inventive concept of the embodiments of the present application is described below with reference to the accompanying drawings.

[0051] With the continuous improvement of computer technology and the level of specialization, the complexity of computer systems is getting higher and higher, and the configuration types are becoming more and more complex. For example, in modern data centers, multiple hard disks can be configured for servers to meet data storage needs. The configuration location of the hard disk is relatively flexible, and the access methods and types of cables used to connect the hard disks are also diverse, and there may be abnormal cable connections. For example, the multiple cables may include a first cable and a second cable. The transmission rate of the first cable is greater than the transmission rate 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 and second types of abnormalities mentioned above do not affect component identification and are therefore difficult to identify from the system side. However, during server maintenance or hard drive replacement, an abnormal cable connection may cause the hard drive to be incorrectly replaced, resulting in hard drive unavailability, data deletion, or even data loss.

[0052] To improve server availability, abnormal cable connections can be detected. However, because cables cannot be detected independently, they must be used in conjunction with other components. For example, these components may include at least one of a hard drive or a backplane. This increases the difficulty of detecting abnormal cable connections during the production phase.

[0053] As an implementation method, manual inspection can be used. For example, inspectors can visually inspect the cables while also performing human-computer interaction. For example, during the inspection phase, instructions can be used to illuminate the locator lights corresponding to the hard drives one by one. The inspector is then prompted to confirm the correct number, sequence, and color of the illuminated locator lights, and feedback is provided. This feedback can then be used to determine whether any cables are abnormally connected.

[0054] During the implementation of the present invention, we discovered that the test results obtained using the above-mentioned method were highly dependent on the feedback from the testers, and that testers could make mistakes or miss detections, thus affecting the accuracy of the test results. Furthermore, manual testing was time-consuming, affecting test efficiency.

[0055] Therefore, the embodiment of the present application analyzes the abnormal connection type and finds that there are Figure 1The two abnormality types shown are the first abnormality type and the second abnormality type. The first abnormality type may indicate that at least one of the first cable or the second cable is not correctly connected and the abnormal connection method is different. The second abnormality type may indicate that both the first cable and the second cable are not correctly connected and the abnormal connection method is the same. Since the characteristics of the two abnormality types are different, the embodiment of the present application proposes that a first detection operation of abnormal cable connection can be performed to determine whether the first abnormality type exists in multiple cables. A second detection of abnormal cable connection is performed to determine whether the second abnormality type exists in multiple cables. In addition, the first detection operation, the second detection operation, or the first detection operation and the second detection operation can be performed.

[0056] For the first abnormality 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 may include accessing at least one hard disk using at least one first cable. The out-of-band detection method may include accessing at least one hard disk using at least one second cable, thereby obtaining the first hardware information obtained using the in-band detection method and the second hardware information obtained using the out-of-band detection method, and then obtaining the detection result of whether the first abnormality type exists in multiple cables based on the first hardware information and the second hardware information. Based on the above, an embodiment of the present application proposes to perform a first detection operation based on the in-band detection method and the out-of-band detection method.

[0057] Regarding the second abnormality type, it was discovered that the presence of the second abnormality type in multiple cables can be determined by detecting whether at least one second cable has the second abnormality type. That is, if at least one second cable has the second abnormality type, it can also be indicated that at least one first cable also has the second abnormality type. If none of the at least one second cables have the second abnormality type, it can also be indicated that none of the at least one first cable has the second abnormality type. It was further discovered that the lighting of the positioning light can be controlled by the second cable. Therefore, the embodiment of the present application proposes that a second detection operation based on the positioning light detection method can be performed. In addition, it was discovered that the backplane configuration information (i.e., the second backplane information) in the backplane information can be accessed using the second cable. Therefore, the embodiment of the present application proposes 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 a detection result indicating whether the second abnormality type exists in at least one second cable.

[0058] In order to better understand the inventive concept of the embodiment of the present application, Figure 2 Provide explanation.

[0059] Figure 2A schematic diagram showing the principle of a method for detecting abnormal connections according to an embodiment of the present application is shown.

[0060] like Figure 2 As shown, for the first abnormality type, a first detection operation based on an in-band detection method and an out-of-band detection method can be performed. For the second abnormality type, a second detection operation based on a positioning light detection method can be performed. Optionally, a second detection operation based on production information can be performed.

[0061] The above describes the inventive concept of the embodiments of the present application. The following describes in detail the method, device, and electronic device for detecting abnormal cable connection provided by the embodiments of the present application with reference to the accompanying drawings.

[0062] First, combine Figure 3 , taking the computer system as the server and the communication protocol as the two-wire protocol as an example, the application scenarios applicable to the method for detecting abnormal cable connection are described. Figure 3 As an example, combining the application scenario shown in Figure 4 The method for detecting abnormal cable connection provided in an embodiment of the present application is described in detail.

[0063] It should be noted that the embodiments of the present application can be implemented independently or in combination with each other, and the same or similar concepts or processes will not be described in detail in some embodiments.

[0064] Figure 3 A diagram showing an application scenario of a method for detecting abnormal cable connection according to an embodiment of the present application is shown.

[0065] like Figure 3 As shown, the server may include a mainboard, a backplane, and a hard disk. The hard disk can be inserted into the server through a hard disk slot ( Figure 3 not shown) and backplane slots ( Figure 3 The first cable can be connected to the first type backplane port ( Figure 3 Not shown) and the first type motherboard interface ( Figure 3 Not shown). A second cable can be connected to a second type backplane port ( Figure 3 Not shown) and the second type motherboard interface ( Figure 3 not shown).

[0066] Thus, the server can execute the method for detecting abnormal cable connection described in the embodiment of the present application. It should be understood that Figure 3 This is merely an illustrative description and does not constitute a limitation on the scope of protection of this application.

[0067] The following will be based on Figure 3 The application scenario described, combined with Figure 4The method for detecting abnormal cable connection according to an embodiment of the present application is described in detail.

[0068] Figure 4 A flow chart of a method for detecting abnormal cable connection according to an embodiment of the present application is shown.

[0069] like Figure 4 As shown, the method includes operations S410 and / or S420.

[0070] In operation S410, a first detection operation of abnormal cable connection is performed to obtain a detection result of whether a first abnormal type exists in the plurality of cables. And / or

[0071] In operation S420, a second detection operation of abnormal cable connection is performed to obtain a detection result of whether a second abnormality type exists in the plurality of cables.

[0072] To determine whether at least one of the first abnormal type or the second abnormal type exists in multiple cables, at least one of the first detection or the second detection may be performed on the multiple cables, that is, S410, S420, or S410-S420 may be performed.

[0073] Regarding how to perform the first detection, it can be achieved in the following manner.

[0074] As an implementation method, a first detection operation based on in-band detection and out-of-band detection can be performed after the server is assembled. For example, based on the first hard disk information of at least one hard disk obtained using the in-band detection method and the second hard disk information of at least one hard disk obtained using the out-of-band detection method, a detection result of whether a first abnormality type exists in multiple cables is obtained. The first hard disk information can refer to the hard disk configuration information obtained using the in-band detection method. The second hard disk information can refer to the hard disk configuration information obtained 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 method, a second detection operation based on the positioning light detection method can be performed when 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 each of the multiple hard disks installed on the target backplane. For any target backplane among the at least one target backplane, the target positioning light corresponding to the target hard disk number can be controlled to light up. Based on the feedback information obtained 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, a detection result indicating whether there is a second abnormality type in at least one second cable used for the target backplane is obtained. The actual positioning light can be the positioning light that is actually lit on the target backplane.

[0077] As another implementation, a second detection operation based on production information is performed. For example, first backplane information obtained through a scanning operation and second backplane information obtained through accessing the backplane using a second cable are used to obtain a detection result indicating whether a second abnormality type exists in at least one second cable. The scanning operation can be performed during the server assembly phase.

[0078] According to an embodiment of the present application, since the first abnormality type indicates that at least one of the first cable or the second cable is incorrectly connected and the abnormal connection method is different, and the second abnormality type indicates that both the first cable and the second cable are incorrectly connected and the abnormal connection method is the same, the first abnormality type and the second abnormality type can cover various types of abnormal cable connections. By performing a first detection operation for abnormal cable connection, a detection result of whether the first abnormality type exists in multiple cables, and / or performing a second detection operation for abnormal cable connection, a detection result of whether the second abnormality type exists in multiple cables, a comprehensive detection of abnormal cable connection is achieved, improving detection accuracy and detection efficiency.

[0079] The following describes in detail 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 with reference to the accompanying drawings.

[0080] 1. How to perform the first detection operation based on in-band detection and out-of-band detection

[0081] For at least one hard drive connected by multiple cables, the path for obtaining the first hard drive information of the hard drive based on the in-band detection method can be the first hard drive information of the motherboard first cable backplane hard drive. If the first cable is abnormally connected, it may be difficult to obtain the correct first hard drive 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 baseboard management controller of the motherboard, the second cable, the backplane management controller of the backplane, and the hard disk second hard disk information. If the second cable is abnormally connected, it may be difficult to obtain the correct second hard disk information.

[0083] Obtain first hard disk information for each of at least one hard disks obtained by performing a first detection operation using an in-band detection method. The first hard disk information may include the first hard disk serial number and the first hard disk drive letter. As an implementation method, the first hard disk information for each of the at least one hard disks may be obtained using a hard disk monitoring tool. For example, if 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 may be used to monitor and manage the SMART (Self-Monitoring, Analysis, and Reporting Technology) function of the hard disk drive. If the hard disk is an NVMe (Non Volatile Memory Express) hard disk, the hard disk monitoring tool may include nvme-cli.

[0084] Obtain second hard disk information for each of the at least one hard disks obtained by performing a second detection operation using an out-of-band detection method. The second hard disk information may include the second hard disk serial number and the second hard disk drive letter. For example, the second hard disk information for each of the at least one hard disks may be obtained using a management interface. The management interface may include a web interface of a baseboard management controller. The web interface may include a Redfish interface. Redfish may be an open standard based on a RESTful API (Representational State Transfer Application Programming Interface) for server hardware management.

[0085] For any of the at least one hard disk drives, feedback information may be obtained as to whether the first hard disk information and the second hard disk information of the hard disk are identical. If 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 a first abnormality type exists in the first cable and the second cable used for the hard disk. If the feedback information indicates that the first hard disk information and the second hard disk information of the hard disk are identical, a detection result indicating that the first abnormality type does not exist in the first cable and the second cable used for the hard disk.

[0086] In order to better understand the first abnormality type of the embodiment of the present application, the following table 1 is used for explanation.

[0087] Table 1 shows the first hard disk information and the second hard disk information under the condition of correct connection according to the embodiment of the present application, as well as the first hard disk information and the second hard disk information under the condition of the first abnormality type. It should be noted that Table 1 is only an example and does not constitute a limitation on the scope of protection of this application.

[0088]

[0089] Table 1

[0090] As shown in Table 1, if there is a situation where the first hard disk information and the second hard disk information shown in Table 1 exist, 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, 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 abnormality type exists in the first cable used for the hard disk can be obtained.

[0091] Since the in-band detection method includes accessing at least one hard disk using a first cable, and the out-of-band detection method includes accessing at least one hard disk using a second cable, the first hard disk information obtained using the in-band detection method indicates whether the first abnormality type exists in the first cable, and the second hard disk information obtained using the out-of-band detection method indicates whether the first abnormality type exists in the second cable. If the first cable and the second cable are both 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 method is different, the first hard disk information and the second hard disk information are different. Therefore, by using the first hard disk information of each at least one hard disk obtained by the in-band detection method and the second hard disk information of each at least one hard disk obtained by the out-of-band detection method to determine whether the first abnormality type exists in the first cable and the second cable for the hard disk, accurate detection of the first abnormality type is achieved.

[0092] 2. 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 light up a specified positioning light for the baseboard management controller of the main board and the backplane management controller of the second cable backplane.

[0094] In order to reduce the probability of erroneous detection results caused by manual identification 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. In this way, the accuracy of the detection results is improved by reducing the number of hard disks to be detected.

[0095] In order to further reduce the probability of erroneous detection results, for any target backplane among at least one target backplane, the target hard disk number can be determined from the hard disk numbers of multiple hard disks installed on the target backplane, and a positioning light detection can be performed on the target hard disk corresponding to the target hard disk number.

[0096] How to determine the target hard disk from multiple hard disks can be achieved in the following ways.

[0097] As an implementation method, to ensure the comprehensiveness of the second detection operation, hard drives present in multiple target backplanes can be used as target hard drives. Thus, the target hard drive can be pre-determined from the multiple hard drives installed on the target backplane. For example, the target hard drive number can be pre-determined from the hard drive numbers of the multiple hard drives installed on the target backplane. The hard drive corresponding to the target hard drive number is the target hard drive. The target hard drive number can be the first hard drive number among the multiple hard drive numbers. Thus, the target hard drive can be the first hard drive among the multiple hard drives.

[0098] In order to better understand the method proposed in the embodiment of the present application of determining at least one target backplane from multiple backplanes and determining the target hard disk number from the hard disk numbers of multiple hard disks installed on the target backplane, the following is an explanation in conjunction with Table 2.

[0099] Table 2 shows the target backplane and target hard disk numbers determined based on the positioning light detection method according to an embodiment of the present application. It should be noted that Table 2 is only an example and does not constitute a limitation on the scope of protection of this 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 detection count (i.e., the target number of backplanes) is 0, 1, 2, 3, or 4. If the number of backplane ports on backplane 1 is x, the number of backplane ports on backplane 2 is y, the number of backplane ports on backplane 3 is z, and the number of backplane ports on backplane 4 is w, then the hard disk numbers of the multiple hard disks installed on backplane 1 are 0 to x-1, the hard disk numbers of the multiple hard disks installed on backplane 1 are x to x+y-1, the hard disk numbers of the multiple hard disks installed on backplane 3 are x+y to x+y+z-1, and the hard disk numbers of the multiple hard disks installed on backplane 4 are x+y+z to x+y+z+w-1.

[0103] Based on the above, if the number of backplanes is 1, i.e., including backplane 1, there is no need to perform the second detection operation based on the positioning light detection method. If the number of backplanes is 2, i.e., including backplanes 1 and 2, backplane 1 can be used as the target backplane, and the target hard drive number is determined to be 0 from the hard drive numbers of the multiple hard drives installed in 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 target backplanes, and the target hard disk number is determined to be 0 from the hard disk numbers of the multiple hard disks installed on backplane 1, and the target hard disk number is 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 target backplanes, and the target hard disk number is determined to be 0 from the hard disk numbers of the multiple hard disks installed on backplane 1, the target hard disk number is determined to be x from the hard disk numbers of the multiple hard disks installed on backplane 2, and the target hard disk number is 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 target backplanes, and the target hard disk number is determined to be 0 from the hard disk numbers of the multiple hard disks installed on backplane 1, the target hard disk number is determined to be x from the hard disk numbers of the multiple hard disks installed on backplane 2, the target hard disk number is 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 is 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, a foolproof function can be added. As another implementation, the target hard drive can be randomly determined from multiple hard drives installed on the target backplane. For example, the target hard drive number can be randomly determined from the hard drive numbers of the multiple hard drives installed on the target backplane.

[0108] Based on this, the management interface of the baseboard management controller of the mainboard can send a lighting instruction to the backplane management controller of the backplane via the second cable. The lighting instruction may include the target hard disk number. In response to the lighting instruction, the backplane management controller controls the lighting of the target positioning light corresponding to the target hard disk number. Upon obtaining feedback information indicating that the actual hard disk corresponding to the actual positioning light and the target hard disk corresponding to the target hard disk number are different, a detection result indicating that a second abnormality type exists in at least one second cable used for the target backplane. Upon obtaining feedback information indicating that 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, a detection result indicating that a second abnormality type does not exist in at least one second cable used for the target backplane.

[0109] The second detection operation based on pre-determining the target hard disk number from the hard disk numbers of the plurality of hard disks and based on randomly determining the target hard disk number from the hard disk numbers of the plurality of hard disks will be further described below.

[0110] 1. Second detection operation based on determining the target hard disk number from the hard disk numbers of multiple hard disks in advance

[0111] The second interactive page may include a target hard drive number, a second control, and a third control. The second control may indicate different feedback information for the actual hard drive corresponding to the actual locator light and the target hard drive corresponding to the target hard drive number. The third control may indicate the same feedback information for the actual hard drive corresponding to the actual locator light and the target hard drive corresponding to the target hard drive number.

[0112] A second interactive page may be displayed. When a trigger operation for the second control is detected, a detection result indicating that a second abnormality type exists in at least one second cable used for the target backplane is obtained. When a trigger operation for the first control is detected, a detection result indicating that the second abnormality type does not exist in at least one second cable used for the target backplane is obtained.

[0113] By displaying the target hard disk number, the second control and the third control on the second interactive page, the difficulty of determining whether at least one second cable used for the target backplane has a second abnormality type detection result is simplified, thereby improving convenience.

[0114] Furthermore, in order to improve the accuracy of the detection result, a detection result indicating that the at least one second cable of the target hard disk used for the target backplane does not have a second abnormality type may also be obtained.

[0115] 2. Second detection operation based on randomly determining the target hard disk number from the hard disk numbers of multiple hard disks

[0116] A mapping relationship can indicate the relationship between a hard drive number and a hard drive slot number. Thus, based on the actual hard drive number of the actual hard drive, the actual hard drive slot number of the actual hard drive can be determined from multiple mapping relationships. For example, an actual mapping relationship that matches the actual hard drive number can be determined from multiple mapping relationships. The hard drive slot number in the actual mapping relationship is then used as the actual hard drive slot number of the actual hard drive.

[0117] Thus, when feedback information indicating that the actual hard disk slot number of the actual hard disk and the target hard disk slot number are different is obtained, a detection result indicating that the second abnormality type exists in at least one second cable used for the target backplane. When feedback information indicating that the actual hard disk slot number and the target hard disk slot number are the same is obtained, a detection result indicating that the second abnormality type does not exist in at least one second cable used for the target backplane.

[0118] To obtain the actual slot number, you can use the following methods.

[0119] As an implementation, the first interactive page may include a first control that can be used to input an actual hard disk slot number of an actual hard disk or select an actual hard disk slot number from a plurality of candidate hard disk slot numbers.

[0120] In this way, the first interactive page can be displayed. When an input operation or a selection operation for the first control is detected, the actual hard disk slot number is obtained.

[0121] By using the first control on the first interactive page, the difficulty of determining whether at least one second cable used for the target backplane has a detection result of the second abnormal type is simplified, thereby improving convenience.

[0122] 3. Executing a Second Detection Operation Based on Production Information

[0123] During the production and assembly phase of the server, a scanning operation can be performed on the backplane information of any backplane among the multiple backplanes connected to the multiple second cables to obtain the first backplane information of the backplane. As an implementation method, the first backplane information can include the backplane slot number and the first backplane serial number associated with the backplane slot number. The second backplane information can include the backplane number and the second backplane serial number associated with the backplane number. Optionally, the motherboard information of the motherboard can also be obtained. When the first backplane information of each of the multiple backplanes is obtained, the first backplane information of each of the multiple backplanes can be associated with the motherboard information and stored in a database.

[0124] In addition, the backplane can be accessed using a second cable to obtain the second backplane information of the backplane. The path for obtaining the second backplane information of the backplane based on the second cable can be the baseboard management controller of the mainboard → the second cable → the backplane management controller of the backplane → the second backplane information. As an implementation method, field replaceable unit information can be obtained. The field replaceable unit information can be obtained using the second cable. The field replaceable unit information may 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 the multiple backplanes and the second backplane information of each of the multiple backplanes, a detection result indicating whether the second abnormality type exists in the multiple second cables can be obtained. For example, for any of the multiple backplanes, if the first backplane information of the backplane and the second backplane information of the backplane are the same, a detection result indicating that the second abnormality type exists in the multiple second cables used for the backplane can be obtained. If the first backplane information of the backplane and the second backplane information of the backplane are different, a detection result indicating that the second abnormality type does not exist in the multiple second cables used for the backplane can be 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 scanning operation on the backplane information of the backplane, if the second cable used 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 used for the backplane is not correctly connected, the first backplane information and the second backplane information of the backplane are different. Therefore, by using the first backplane information and the second backplane information obtained in different ways, it is determined whether there is a second abnormality type in the second cable used for the backplane, thereby achieving accurate detection of the second abnormality type.

[0127] Regarding how to obtain a detection result indicating whether the second abnormality type exists in the plurality of second cables based on the respective first backplane information of the plurality of backplanes and the respective second backplane information of the plurality of backplanes, this can be achieved in the following manner.

[0128] As an implementation, the target backplane numbers of the multiple backplanes can be obtained based on the sorting order of the backplane numbers of the multiple backplanes connected to the multiple second cables. For example, the backplane numbers of the multiple backplanes connected to the multiple second cables can be sorted in a predetermined order to obtain the target backplane numbers of the multiple backplanes. For example, the predetermined order can be from small to large starting from a predetermined value. 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 target backplane number among the multiple 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 the second abnormality type does not exist in at least one second cable of 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 the second abnormality type exists in at least one second cable of the target backplane corresponding to the target backplane number is obtained.

[0130] As another implementation, to further improve the accuracy of the detection results, this can be achieved by adding an information comparison dimension. For example, the first backplane information can also include the first backplane model. The second backplane information can also include the second backplane model. Thus, the first backplane model and the second backplane model can be compared based on the comparison of the first backplane serial number and the second backplane serial number.

[0131] For any target backplane number among multiple target backplane numbers, when the feedback information obtained 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 the second abnormality type does not exist in at least one second cable of the target backplane corresponding to the target backplane number is obtained. When the feedback information obtained 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 the second abnormality type exists in at least one second cable of 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 embodiment of the present application.

[0133] Based on the above content, the method for detecting abnormal cable connection provided in an embodiment of the present application is generally described below.

[0134] For the first abnormality type, an embodiment of the present application determines whether the first hard disk information and the second hard disk information of at least one hard disk are the same based on the first hard disk information of at least one hard disk obtained using an in-band detection method and the second hard disk information of at least one hard disk obtained using an out-of-band detection method, so as to determine whether the first abnormality type exists in the first cable and the second cable used for the at least one hard disk. The in-band detection method may include accessing the at least one hard disk using the at least one first cable. The out-of-band detection method may include accessing the at least one hard disk using the at least one second cable.

[0135] Based on the above, the cross connection between the first cable and the second cable is detected.

[0136] For the second type of anomaly, the present embodiment of the application designs a foolproof method for the second detection operation based on the positioning light detection method, simplifies the human interaction environment, and performs human-computer interaction detection on a per-backplane basis, covering all backplanes. For the second detection operation based on production information, the present embodiment of the application utilizes the first backplane information obtained by scanning and the second backplane information obtained by accessing multiple backplanes using the second cable to automatically detect multiple second cables.

[0137] Based on the above, it is possible to detect the situation where the first cable and the second cable are connected incorrectly in pair.

[0138] This embodiment of the application improves the detection method for abnormal cable connections based on the original server detection method, improving the accuracy and efficiency of the detection results. In addition, by optimizing the detection method, the server performance can meet user requirements, thereby improving the quality of server shipments and enhancing user confidence and satisfaction.

[0139] Based on the same inventive concept as the aforementioned embodiment of the method for detecting abnormal cable connection, the embodiment of the present application further provides an apparatus for detecting abnormal cable connection, to implement the method for detecting abnormal cable connection provided in the embodiment of the present application.

[0140] Figure 5 A block diagram of a device for detecting abnormal cable connection according to an embodiment of the present application is shown.

[0141] like Figure 5 As shown, the apparatus 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 and obtain a detection result indicating whether a first abnormality type exists in the plurality of cables.

[0143] The second obtaining module 520 is configured to perform a second detection operation for abnormal cable connection and obtain a detection result indicating whether a second abnormality type exists in the plurality of cables.

[0144] According to an embodiment of the present application, the plurality of cables may include a first cable and a second cable. The transmission rate of the first cable may be greater than the transmission rate of the second cable. The first exception type may indicate that at least one of the first cable or the second cable is incorrectly connected and the abnormal connection methods are different. The second exception type may indicate that both the first cable and the second cable are incorrectly connected and the abnormal connection methods are the same.

[0145] According to embodiments of the present application, any multiple modules in the first obtaining module 510 and / or the second obtaining module 520 can be combined into a single module, or any one of these modules can be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules can be combined with at least part of the functionality of other modules and implemented in a single module. According to embodiments of the present application, at least one of the first obtaining module 510 and / or the second obtaining module 520 can 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 a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented in hardware or firmware through any other reasonable means of circuit integration or packaging, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or any appropriate combination of any of these. Alternatively, at least one of the first obtaining module 510 and / or the second obtaining module 520 can be at least partially implemented as a computer program module that, when executed, can perform the corresponding functionality.

[0146] Figure 6 A 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] like Figure 6 As shown, an electronic device 600 according to an embodiment of the present application includes a processor 601, which can perform various appropriate actions and processes based on a program stored in a read-only memory (ROM) 602 or a program loaded from a storage unit 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include onboard 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] Various programs and data required for the operation of the electronic device 600 are stored in the RAM 603. The processor 601, ROM 602, and RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flow according to the embodiment of the present application by executing the programs in the ROM 602 and / or RAM 603. It should be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations of the method flow according to the embodiment of the present application by executing the programs stored in the one or more memories.

[0149] According to an embodiment of the present application, electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to bus 604. Electronic device 600 may also include one or more of the following components connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including devices such as a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN card or modem. Communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. Removable media 611, such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed in drive 610 as needed, so that computer programs read from the removable media can be installed into storage section 608 as needed.

[0150] This 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 independently and not be incorporated into the device / apparatus / system. The 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 this application is implemented.

[0151] According to an embodiment of the present application, a computer-readable storage medium may be a non-volatile computer-readable storage medium, and may include, for example, but not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present application, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0152] Embodiments of the present application also include a computer program product comprising a computer program containing program code for executing the method shown in the flowchart. When the computer program product is executed in a computer system, the program code is used to cause the computer system to implement the method for detecting abnormal cable connections provided in the embodiments of the present application.

[0153] The computer program executes the above functions defined in the system / device of the embodiment of the present application when the computer program is executed by the processor 601. According to the embodiment of the present application, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0154] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0155] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from a removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present application are performed. According to the embodiment of the present application, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.

[0156] According to an embodiment of the present application, the program code for executing the computer program provided by the embodiment of the present application can be written in any combination of one or more programming languages. Specifically, these computer 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, languages ​​such as Java, C++, Python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0157] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0158] Those skilled in the art will appreciate that the features described in the various embodiments of this application may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in this application. In particular, the features described in the various embodiments of this application may be combined and / or coupled in various ways without departing from the spirit and teachings of this application. All such combinations and / or couplings fall within the scope of this application.

[0159] The embodiments of the present application have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present application. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be advantageously used in combination. Without departing from the scope of the present application, those skilled in the art may make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present application.

Claims

1. A method for detecting abnormal cable connection, characterized in that: include: performing a first detection operation for abnormal cable connection to obtain a detection result indicating whether a first abnormality type exists in the plurality of cables; and / or performing a second detection operation for abnormal cable connection to obtain a detection result indicating whether a second abnormality type exists in the plurality of cables; 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 abnormality type indicates that at least one of the first cable or the second cable is incorrectly connected and the abnormal connection modes are different, and the second abnormality type indicates that both the first cable and the second cable are incorrectly connected and the abnormal connection modes are the same; The performing of the first detection operation of abnormal cable connection to obtain a detection result indicating whether a first abnormality type exists in the plurality of cables includes: For any hard disk of the at least one hard disk, in response to first hard disk information and second hard disk information of the hard disk being different, obtaining a detection result indicating that the first abnormality type exists in a first cable and a second cable for the hard disk, the first hard disk information being obtained by performing the first detection operation using an in-band detection method, the in-band detection method including accessing the at least one hard disk using the at least one first cable, and the second hard disk information being obtained by performing the second detection operation using an out-of-band detection method including accessing the at least one hard disk using the at least one second cable; The performing of the second detection operation of abnormal cable connection to obtain a detection result indicating whether a second abnormality type exists in the plurality of cables includes: For any target backplane among the plurality of backplanes connected to the plurality of cables, in response to obtaining feedback information indicating that an actual hard disk corresponding to the actual locator light and a target hard disk corresponding to the target hard disk number are different, obtaining a detection result indicating that at least one of the second cables used for the target backplane has the second abnormality type; Among them, the actual positioning light is the positioning light that is actually lit on the target backplane, the target hard disk number is randomly determined from the hard disk numbers of multiple hard disks, or the target hard disk number is pre-determined from multiple hard disk numbers, and the multiple hard disks are installed on the target backplane.

2. The method according to claim 1, characterized in that The step of obtaining, in response to obtaining feedback information indicating that an actual hard disk corresponding to the actual locator light is different from a target hard disk corresponding to a target hard disk number, a detection result indicating that at least one second cable used for the target backplane has the second abnormality type includes: When the target hard disk number is randomly determined from the hard disk numbers of the plurality of hard disks, in response to obtaining feedback information indicating that an actual hard disk slot number of the actual hard disk and a target hard disk slot number of the target hard disk are different, obtaining a detection result indicating that at least one second cable used for the target backplane has the second abnormality type; 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.

3. The method according to claim 2, characterized in that Also includes: Displaying a first interactive page, wherein the first interactive page includes a first control, the first control being used to input an actual hard disk slot number of the actual hard disk or select 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, the actual hard disk slot number is obtained.

4. The method according to claim 1, wherein The step of obtaining, in response to obtaining feedback information indicating that an actual hard disk corresponding to the actual locator light is different from a target hard disk corresponding to a target hard disk number, a detection result indicating that at least one second cable used for the target backplane has the second abnormality type includes: Displaying a second interactive page, wherein the second interactive page includes the target hard drive number, a second control, and a third control, wherein the second control indicates that the actual hard drive corresponding to the actual positioning light has different feedback information from the target hard drive corresponding to the target hard drive number, and the third control indicates that the actual hard drive has the same feedback information as the target hard drive; and In response to detecting a trigger operation for the second control, a detection result indicating that the second abnormality type exists in at least one of the second cables used for the target backplane is obtained.

5. The method according to claim 1 or 2, characterized in that The performing of a second detection operation for abnormal cable connection to obtain a detection result indicating whether a second abnormality type exists in the plurality of cables includes: Based on the first backplane information and the second backplane information of each of the multiple backplanes connected to the multiple second cables, a detection result indicating whether the second abnormality type exists in the multiple second cables is obtained, 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.

6. The method according to claim 5, characterized in that 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; The obtaining, based on the first backplane information and the second backplane information of each of the plurality of backplanes connected to the plurality of second cables, a detection result indicating whether the second abnormality type exists in the plurality of second cables includes: Obtaining target backplane numbers of the plurality of backplanes connected to the plurality of second cables according to the arrangement order of the backplane numbers of the plurality of backplanes; and For any target backplane number among 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, a detection result indicating that the second abnormality type exists in at least one of the second cables used for the target backplane is obtained, and the target backplane corresponds to the target backplane number.

7. An electronic device comprising: one or more processors; a memory for storing one or more computer programs, It is 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 6.

8. A computer-readable storage medium having a computer program or instruction 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 6 are implemented.

Citation Information

Patent Citations

  • Server cable detection method, detection device, detection equipment and storage medium

    CN112527582A

  • Electrical connection cable testing system and method

    WO2024040848A1