CN113849354A - Connection checking method, connection checking device, server and storage medium - Google Patents

Connection checking method, connection checking device, server and storage medium Download PDF

Info

Publication number
CN113849354A
CN113849354A CN202110990786.6A CN202110990786A CN113849354A CN 113849354 A CN113849354 A CN 113849354A CN 202110990786 A CN202110990786 A CN 202110990786A CN 113849354 A CN113849354 A CN 113849354A
Authority
CN
China
Prior art keywords
connection
server
connection information
checking
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110990786.6A
Other languages
Chinese (zh)
Inventor
张学良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202110990786.6A priority Critical patent/CN113849354A/en
Publication of CN113849354A publication Critical patent/CN113849354A/en
Priority to PCT/CN2022/109390 priority patent/WO2023024833A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The embodiment of the application relates to the technical field of communication, in particular to a connection checking method. The connection checking method comprises the following steps: acquiring a mirror image file of a memory operating system from a connection checking device; the mirror image file of the memory operating system at least comprises a product Serial Number (SN) code of the server and planning connection information; loading the memory operating system according to the mirror image file of the memory operating system; acquiring actual connection information of the server; and comparing the actual connection information with the planned connection information to obtain a connection checking result, and sending the connection checking result to the connection checking device. The connection inspection method provided by the embodiment of the application can shorten the time of connection inspection, obviously improve the efficiency of connection inspection and improve the flexibility of the connection inspection process, thereby meeting the actual needs of users.

Description

Connection checking method, connection checking device, server and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a connection checking method, a connection checking apparatus, a server, and a storage medium.
Background
A data center is a globally collaborative network of devices that is used to communicate, accelerate, present, compute, store data information over a network infrastructure. Taking a communication operator as an example, the communication operator builds a plurality of data centers in various places around the world, such as a base station and the like, each data center can be provided with a plurality of machine rooms, each machine room can be provided with a plurality of servers and a plurality of network devices, a large number of connecting lines exist between the servers and the network devices, such as cable connection, backboard connection and the like, only each connecting line is correct, namely when the actual connecting line is consistent with the planned connecting line, the server can communicate with the network devices, the data center can normally work, when the connecting line has errors, technicians need to find and correct the wrong connecting line in time, and the data center can normally work.
However, when the related connection inspection method is used to inspect the connection between the server and the network device, the central device responsible for the connection inspection acquires the actual connection information between thousands of servers and the network device, and uniformly compares the actual connection information of each server with the planned connection information one by one at the central device, so that the efficiency of the connection inspection is very low, the time consumption of the connection inspection process is very long, and meanwhile, when the central device determines that there is an incorrect connection, the connection inspection can only be performed on all servers again after the technicians reconnect the connection, and the connection inspection process is not flexible enough to meet the actual needs of users.
Disclosure of Invention
The embodiment of the present application mainly aims to provide a connection checking method, a connection checking apparatus, a server and a storage medium, which can shorten the time for connection checking, significantly improve the efficiency of connection checking, and improve the flexibility of the connection checking process, thereby meeting the actual needs of users.
In order to achieve the above object, an embodiment of the present application provides a connection checking method, which is applied to a server, and the method includes: acquiring a mirror image file of a memory operating system from a connection checking device; wherein, the mirror image file of the memory operating system at least comprises a Serial number (SN code) and planning connection information of the server; loading the memory operating system according to the mirror image file of the memory operating system; acquiring actual connection information of the server; and comparing the actual connection information with the planned connection information to obtain a connection checking result, and sending the connection checking result to the connection checking device.
In order to achieve the above object, an embodiment of the present application further provides a connection checking method applied to a connection checking apparatus, where the method includes: acquiring a product Serial Number (SN) code and planning connection information of a server; generating a memory operating system according to the SN code of the product serial number of the server and the planning connection information, and generating a mirror image file of the memory operating system; sending the mirror image file of the memory operating system to the server; the mirror image file of the memory operating system is used for the server to load the memory operating system, acquire actual connection information of the server, compare the actual connection information with the planned connection information to obtain a connection checking result, and send the connection checking result to the connection checking device; and acquiring a connection checking result sent by the server, and outputting the connection checking result.
In order to achieve the above object, an embodiment of the present application further provides a server, including: at least one processor; and a memory communicatively coupled to the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the above-mentioned connection checking method applied to the server.
In order to achieve the above object, an embodiment of the present application further provides a connection checking apparatus, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a connectivity check method as described above for the connectivity check method.
In order to achieve the above object, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, where the computer program, when executed by a processor, implements the above-mentioned connection checking method applied to a server, or implements the above-mentioned connection checking method applied to a connection checking apparatus.
Compared with the technical scheme that the connection check is carried out by uniformly comparing the actual connection information of each server with the planned connection information one by a centralized device responsible for carrying out the connection check, the connection check method, the connection check device, the server and the storage medium provided by the application have the advantages that the connection check device is only responsible for generating the mirror image file of the memory operating system at least comprising the planned connection information of the server, the server acquires the mirror image file of the memory operating system from the connection check device and loads the memory operating system according to the mirror image file of the memory operating system, after the memory operating system is loaded, the server automatically acquires the actual connection information of the server and compares the actual connection information with the planned connection information to obtain a connection check result, and finally the connection check result is sent to the connection check device, the method is used for checking by the user, namely a distributed connection checking mode is adopted, each server automatically checks whether the own connection is correct and reports the connection, a connection checking device is not required to carry out checking uniformly, the time for checking the connection can be shortened, the efficiency for checking the connection is obviously improved, the flexibility of the connection checking process is improved, and the actual needs of the user are met.
Drawings
FIG. 1 is a first flowchart of a wire check method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating comparing actual connection information with planned connection information to obtain a connection check result according to an embodiment of the present application;
FIG. 3 is a second flowchart of a connection checking method according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating an embodiment of obtaining an image file of a memory operating system from a connectivity check device;
FIG. 5 is a flowchart III of a connection check method according to another embodiment of the present application;
FIG. 6 is a schematic diagram of a connectivity check apparatus communicatively coupled to a server according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating a connection check device sending an image file of a memory operating system to a server according to an embodiment of the present application;
FIG. 8 is a fourth flowchart of a connectivity check method according to another embodiment of the present application;
FIG. 9 is a schematic block diagram of a server according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of a connection inspection apparatus according to another embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in the examples of the present application, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present application, and the embodiments may be mutually incorporated and referred to without contradiction.
One embodiment of the application relates to a connection checking method, which is applied to a server. The following describes the implementation details of the connection checking method of the present embodiment in detail, and the following is only provided for the convenience of understanding and is not necessary for implementing the present embodiment.
The specific flow of the connection checking method of this embodiment may be as shown in fig. 1, and includes:
step 101, obtaining an image file of a memory operating system from a connection checking device.
Specifically, the image file of the memory operating system at least includes an SN code of the server and planned connection information, where the planned connection information is a connection between the server and each network device planned by a person skilled in the art, and includes a location of the server, a home device (i.e., the server), an opposite device (i.e., each network device), a home port, an opposite port, and the like.
In a specific implementation, the server may communicate with the connection checking device, when connection checking is required, the connection checking device may generate a memory operating system and generate a mirror image of the memory operating system based on the SN code and the planned connection information of each server to be checked, and the server may obtain the mirror image of the memory operating system from the connection checking device according to an instruction of the connection checking device.
In an example, the image file of the memory operating system acquired by the server from the connectivity check device may further include a check policy, and the server may perform connectivity check according to the check policy.
And 102, loading the memory operating system according to the mirror image file of the memory operating system.
In a specific implementation, after the server obtains the image file of the memory operating system from the connection checking device, the memory operating system can be loaded according to the image file of the memory operating system, that is, the memory operating system is installed in the server, so that the server has a function of performing connection checking, and after the memory operating system is loaded, the server can enter the memory operating system and obtain the planning connection information corresponding to the server from the memory operating system according to a query command issued by the memory operating system and the SN code of the server.
In one example, the connection check device may send the planned connection information corresponding to the server to each server according to the SN code of each server.
And 103, acquiring actual connection information of the server.
Specifically, after the memory operating system is loaded, the server has the capability of checking the connection, and the server can obtain the actual connection information of the server according to the indication of the memory operating system.
In a specific implementation, a server detects a query instruction generated by a memory operating system, traverses each local port of the server, detects a cable, a backplane connection and the like connected to each local port, determines an opposite port and an opposite device connected to the local port, and obtains actual connection information of the server according to the local device (i.e., the server), the local port, the opposite port and the opposite device, and stores the actual connection information in a memory inside the server.
And 104, comparing the actual connection information with the planned connection information to obtain a connection checking result, and sending the connection checking result to the connection checking device.
Specifically, after acquiring the actual connection information of the server, the server may compare the actual connection information with the planned connection information acquired from the memory operating system to obtain a connection check result, and send the connection check result to the connection check device, where the connection check result sent by the server to the connection check device is correct or incorrect, and when sending the connection check result to the connection check device, the server may also send the actual connection information of the server to the connection check device together.
In a specific implementation, the server compares the actual connection information with the planned connection information acquired from the memory operating system, and if the actual connection information is consistent with the planned connection information, the server determines that the connection is correct; and if the actual connection information is inconsistent with the planned connection information, the server determines that the connection is wrong.
In an example, the server may further obtain a preset check policy from the memory operating system, compare the actual connection information with the planned connection information according to the check policy to obtain a connection check result, and send the connection check result to the connection check device.
In this embodiment, compared with the technical scheme of uniformly comparing the actual connection information of each server with the planned connection information one by a centralized device responsible for performing connection check, in the embodiment of the present application, the connection check device is only responsible for generating the image file of the memory operating system at least including the planned connection information of the server, the server obtains the image file of the memory operating system from the connection check device, loads the memory operating system according to the image file of the memory operating system, after the memory operating system is loaded, the server automatically obtains the actual connection information of itself and compares the actual connection information with the planned connection information to obtain the connection check result, and finally sends the connection check result to the connection check device for the user to check, that is, a distributed connection check mode is adopted, the servers automatically check whether the own connection is correct and report the connection, and a connection checking device is not required to uniformly check the connection, so that the time for checking the connection can be shortened, the efficiency of the connection checking is obviously improved, the flexibility of the connection checking process is improved, and the actual requirements of users are met.
In an embodiment, the server obtains, from the connection inspection apparatus, an image file of the memory operating system, which includes an inspection policy, where the inspection policy includes a number N of failed retries, where N is an integer greater than 1, and the server compares actual connection information with planned connection information to obtain a connection inspection result, which may be implemented by the steps shown in fig. 2, and specifically includes:
step 201, judging whether the actual connection information is consistent with the planned connection information, if so, executing step 202, otherwise, executing step 203.
Step 202, it is determined that the connection check result of the server is correct.
In a specific implementation, after acquiring the actual connection information of the server, the server may compare the actual connection information with the planned connection information acquired from the memory operating system, and if the server determines that the actual connection information is consistent with the planned connection information, it determines that the connection check result of the server is correct, and considering that a server may have connections with a plurality of network devices, and the actual connection information of the server is correct under the condition that all the connections are consistent with the planned connections.
Step 203, judging whether the current comparison times are equal to N, if so, executing step 204, otherwise, returning to step 201 to continue comparison.
Step 204, determining that the connection checking result of the server is a connection error.
In a specific implementation, after acquiring the actual connection information of the server, the server may compare the actual connection information with the planned connection information acquired from the memory operating system, if the server determines that the actual connection information is inconsistent with the planned connection information, the server determines whether the current comparison frequency is equal to N, if the server determines that the current comparison frequency is equal to N, the server determines that the connection check result of the server is a connection error, considering that there may be connections between one server and a plurality of network devices, and the actual connection information of the server is correct under the condition that all the connections are consistent with the planned connections, where the entire connection check result of the server is a judgment error as long as one connection is judged incorrectly, and in this embodiment, only if the actual connection information and the planned connection information are considered to be inconsistent for N times continuously, the connection checking result of the server is determined to be a connection error, so that the accuracy and reliability of connection checking can be effectively improved.
In this embodiment, the image file of the memory operating system further includes a check policy, where the check policy includes a number N of failed retries, where N is an integer greater than 1; the comparing the actual connection information with the planned connection information to obtain a connection inspection result includes: judging whether the actual connection information is consistent with the planned connection information; if the actual connection information is inconsistent with the planned connection information and the current comparison frequency is less than N, judging whether the actual connection information is consistent with the planned connection information again; if the actual connection information is inconsistent with the planned connection information and the current comparison times are equal to N, the connection checking result of the server is determined to be a connection error, connection checking is carried out according to the failure retry times, the situation that the connection is correctly determined to be the connection error due to server misjudgment can be avoided, invalid additional work is added to technicians, when the connection is not consistent in the N times of judgment, the connection error is determined, and the accuracy and the reliability of connection checking can be effectively improved.
Another embodiment of the present application relates to a connection checking method, and the following details of the connection checking method of the present embodiment are specifically described, and the following details are provided only for easy understanding and are not necessary for implementing the present invention, and fig. 3 is a flowchart of the connection checking method of the present embodiment, and includes:
step 301, obtain the image file of the memory operating system from the connection checking device.
Step 302, loading the memory operating system according to the mirror image file of the memory operating system.
Steps 301 to 302 are substantially the same as steps 101 to 102, and are not described herein again.
Step 303, periodically acquiring actual connection information of the server according to the check period.
Specifically, the image file of the memory operating system generated by the connection checking device includes a preset checking policy, the checking policy includes a checking period, after the server finishes loading the memory operating system, the server may periodically obtain actual connection information of the server according to the checking period, and the checking period may be set by a person skilled in the art according to actual needs, which is not specifically limited in this embodiment of the present application.
In one example, an operator deploys a new operation point, constructs a new machine room and sets a plurality of servers, the servers to be checked are the servers of the new operation point, the servers are connected for the first time, and the checking period set by the connection checking device can be 15 minutes, that is, the server acquires the actual connection information of itself every 15 minutes.
In one example, the servers to be checked are servers in a machine room of a mature operating point which is already put into operation, and the check period set by the connection check device can be 24 hours, that is, the servers acquire actual connection information of themselves once a day.
And step 304, comparing the actual connection information with the planned connection information periodically according to the inspection period to obtain a connection inspection result, and sending the connection inspection result to the connection inspection device.
In a specific implementation, the server may periodically compare the actual connection information with the planned connection information according to the inspection period to obtain a connection inspection result, and send the connection inspection result to the connection inspection device.
In this embodiment, the checking policy further includes a checking period; the acquiring of the actual connection information of the server includes: according to the check period, acquiring actual connection information of the server periodically; the comparing the actual connection information with the planned connection information to obtain a connection checking result, and sending the connection checking result to the connection checking device includes: periodically comparing the actual connection information with the planned connection information according to the inspection period to obtain a connection inspection result, and the connection checking result is sent to the connection checking device, considering the technical proposal that the centralized device carries out connection checking uniformly, after the technician reconnects the connection, the technician is required to manually open the connection for review, which requires a great deal of human-computer interaction, in this embodiment, the memory operating system stores a checking policy, the checking policy includes a connection checking period, the server can periodically obtain actual connection information of the server according to the connection checking period, periodically perform comparison, after the technician reconnects the connection, as long as the inspection period is reached, the server can automatically perform connection recheck without performing unnecessary human-computer interaction, and the automation degree of connection inspection can be further improved.
In one embodiment, after obtaining the connection check result, the server may further send the identification information of the server to the connection check device, so that the connection check device outputs the identification information to the user.
In concrete realization, the server of waiting to look into sets up usually in the computer lab, and the server is placed in the frame, and a frame can contain a plurality of server, and a module can be constituteed according to the function to the server in a plurality of frames, can include a plurality of frame in a module promptly, and the server can obtain self SN sign indicating number through predetermineeing the order, and the serial number of the frame that the server belongs to according to self SN sign indicating number setting server on the connecting wire device, the serial number of the module that the server belongs to, information such as the serial number of the computer lab that the server belongs to.
In this embodiment, after the obtaining of the connection checking result, the method further includes: setting the serial number of a rack where the server is located, the serial number of a module where the server is located and the serial number of a machine room where the server is located in the connection checking device according to the SN code of the server; the machine room comprises a plurality of modules, the modules comprise a plurality of racks, and the racks comprise a plurality of servers. When the server sends the connection checking result to the connection checking device, self position information can be set in the connection checking device, so that technicians can conveniently determine the position of the server, the actual use requirements of users are further met, and the use experience of the users is improved.
In an embodiment, the obtaining, by the server, the image file of the memory operating system from the connection checking apparatus may be implemented by the steps shown in fig. 4, which specifically include:
step 401, if it is detected that the connectivity inspection apparatus logs in the server, the method receives a starting mode of the connectivity inspection apparatus for the server.
Specifically, the connection check device is activated by the server in a network mode.
In a specific implementation, after generating an image file of a memory operating system, the connection check device may obtain management port login information of each server of the data center, where the management port login information includes a login ID, a login user plane, a login password, and the like, and after logging in the server, the connection check device may set a starting mode of the server to a network mode, and after detecting that the connection check device logs in the server, the server may receive a setting of the starting mode of the connection check device on the server.
Step 402, restarting the server according to the starting mode.
In step 403, an image file of the memory operating system is obtained from the connection checking apparatus through the network.
In a specific implementation, after receiving a starting mode of the connection check device for the server, the server may be restarted according to an instruction of the connection check device, and the restarted server communicates with the connection check device through a network, that is, an image file of the memory operating system is acquired from the connection check device through the network.
In this embodiment, the obtaining the image file of the memory operating system from the connection checking apparatus includes: if the connection checking device is detected to log in the server, receiving a starting mode of the connection checking device to the server; wherein, the starting mode is a network mode; restarting the server according to the starting mode; the network acquires the mirror image file of the memory operating system from the connection checking device, the connection checking device can log in the server and control the server to restart, so that the server can actively acquire the mirror image file of the memory operating system from the connection checking device without sending the mirror image file of the memory operating system one by the connection checking device, the power consumption of the connection checking device is reduced, and the efficiency of the connection checking process is improved.
Another embodiment of the present application relates to a connection checking method, and the following details of the connection checking method of the present embodiment are specifically described, and the following details are provided only for easy understanding and are not necessary for implementing the present invention, and fig. 5 is a flowchart of the connection checking method of the present embodiment, and includes:
step 501, acquiring a product Serial Number (SN) code and planning connection information of a server.
Step 502, according to the SN code of the server and the planned connection information, a memory operating system is generated, and a memory operating system image file is generated.
Step 503, sending the image file of the memory operating system to the server.
In a specific implementation, when the connection inspection device determines that connection inspection is required, the connection inspection device may obtain SN codes and planned connection information of servers in a data center, generate a memory operating system based on the obtained SN codes and the planned connection information of the servers, package the memory operating system to generate a mirror image of the memory operating system, send the mirror image of the memory operating system to the servers, allow the servers to load the memory operating system, obtain actual connection information of the servers, compare the actual connection information with the planned connection information to obtain a connection inspection result, and send the connection inspection result to the connection inspection device.
In an example, the connection checking apparatus may generate the memory operating system based on the SN code of each server of the data center, the planned connection information, and a preset checking policy.
In one example, the schematic diagram of the communication connection between the connectivity inspection apparatus and the servers is shown in fig. 6, each server is connected to a Top of Rack switch (TOR), the TOR is connected to an End of line switch (EOR), and the connectivity inspection apparatus is connected to the EOR, so as to implement the communication connection between the connectivity inspection apparatus and the server.
And step 504, acquiring the connection checking result sent by the server, and outputting the connection checking result.
In a specific implementation, after the connection check device obtains the connection check result sent by the server, the connection check device can output the connection check result for a technician to check.
In one example, the connection check device may output the connection check result of each server as a check report, where the check report includes information about which servers have correct connections, which servers have wrong connections, and which servers have wrong connections.
In an embodiment, the connection checking apparatus may generate the memory operating system according to planned connection information of the server and a pre-stored checking policy, where the checking policy includes a number N of times of failure retry, where N is an integer greater than 1, the number N of times of failure retry is used for the server to determine whether the actual connection information is consistent with the planned connection information again when the actual connection information is inconsistent with the planned connection information and the current number of times of comparison is less than N; and when the actual connection information is inconsistent with the planned connection information and the current comparison frequency is equal to N, determining that the connection check result of the server is a connection error.
In one embodiment, the checking policy includes a checking period, where the checking period is used for the server to periodically obtain actual connection information of the server according to the checking period, periodically compare the actual connection information with the planned connection information to obtain a connection checking result, and send the connection checking result to the connection checking device.
In an embodiment, after the connection checking device obtains the connection checking result sent by the server and outputs the connection checking result, the connection checking device may further receive a number of a rack where the server is located, a number of a module where the server is located, and a number of a machine room where the server is located, which are set in the connection checking device by the server.
In this embodiment, the connection checking device may visually present the connection checking result of each server in the form of multidimensional data, for example, the server 0017 is located on the rack No. 2 of the module No. 6 in the machine room No. 3, and the connection checking result is correct, and then, for example, the server 0258 is located on the rack No. 4 of the module No. 1 in the machine room No. 19, and the connection checking result is a connection error, and actual connection information of the server 0158 and the network device a, the network device B, and the network device C is inconsistent with the planned connection information.
In an embodiment, the method for sending the image file of the memory operating system to the server by the connection check device through the steps shown in fig. 7 includes:
step 601, obtaining management port login information of the server.
In a specific implementation, the connection check device may send the image file of the memory operating system to the servers by logging in each server, and after generating the image file of the memory operating system, the connection check device may obtain the management port login information of the server, where the management port login information of the server includes a login ID, a login user plane, a login password, and the like.
And step 602, logging in the server according to the login information of the management port, and setting the starting mode of the server as a network mode.
In a specific implementation, after acquiring the management port login information of the server, the connection check device may log in the server according to the management port login information, and set a starting mode of the server to be a network mode, where the network mode is that the server may communicate with the connection check device through a network after being started.
Step 603, instructing the server to restart according to the starting mode, so that the server can obtain the image file of the memory operating system from the connection checking device through the network.
In a specific implementation, after the startup mode of the server is set to be the network mode, the connectivity check device may issue a restart command to the server to instruct the server to restart according to the startup mode, and the restarted server may obtain the image file of the memory operating system from the connectivity check device through the network.
Another embodiment of the present application relates to a connection checking method, and the following details of the connection checking method of the present embodiment are specifically described, and the following details are provided only for easy understanding and are not necessary for implementing the present invention, and fig. 8 is a flowchart of the connection checking method of the present embodiment, and includes:
and step 701, acquiring a product Serial Number (SN) code and planning connection information of the server.
Step 702, generating a memory operating system according to the SN code of the server and the planned connection information, and generating a memory operating system image file.
And 703, setting the starting mode of the server to be a network mode, and controlling the server to restart.
Step 704, obtain the image file of the memory os from the connection check device, and install the memory os.
Step 705, actual connection information of the server is periodically acquired.
Step 706, comparing the actual connection information with the planned connection information periodically to obtain a connection inspection result.
Step 707, reporting the connection check result, and setting the location information of the server in the connection check device.
And step 708, presenting the connection checking result and the position information of the server on the interface.
Another embodiment of the present application relates to a server, as shown in fig. 9, including: at least one processor 801; and a memory 802 communicatively coupled to the at least one processor 801; the memory 802 stores instructions executable by the at least one processor 801, and the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the connection checking method applied to the server in the above embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
Another embodiment of the present application relates to a connection checking apparatus, as shown in fig. 10, including: at least one processor 901; and a memory 902 communicatively coupled to the at least one processor 901; the memory 902 stores instructions executable by the at least one processor 901, and the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the wire connection checking method applied to the wire connection checking apparatus in the above embodiments.
Another embodiment of the present application relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the present application, and that various changes in form and details may be made therein without departing from the spirit and scope of the present application in practice.

Claims (13)

1. A connection checking method is applied to a server and is characterized by comprising the following steps:
acquiring a mirror image file of a memory operating system from a connection checking device; the mirror image file of the memory operating system at least comprises a product Serial Number (SN) code of the server and planning connection information;
loading the memory operating system according to the mirror image file of the memory operating system;
acquiring actual connection information of the server;
and comparing the actual connection information with the planned connection information to obtain a connection checking result, and sending the connection checking result to the connection checking device.
2. The connection checking method according to claim 1, wherein the image file of the memory operating system further comprises a checking policy, wherein the checking policy comprises a number N of failed retries, and N is an integer greater than 1;
the comparing the actual connection information with the planned connection information to obtain a connection inspection result includes:
judging whether the actual connection information is consistent with the planned connection information;
if the actual connection information is inconsistent with the planned connection information and the current comparison frequency is less than N, judging whether the actual connection information is consistent with the planned connection information again;
and if the actual connection information is inconsistent with the planned connection information and the current comparison frequency is equal to N, determining that the connection check result of the server is a connection error.
3. The connection inspection method according to claim 2, wherein the inspection policy further includes an inspection period;
the acquiring of the actual connection information of the server includes:
according to the check period, acquiring actual connection information of the server periodically;
the comparing the actual connection information with the planned connection information to obtain a connection checking result, and sending the connection checking result to the connection checking device includes:
and comparing the actual connection information with the planned connection information periodically according to the inspection period to obtain a connection inspection result, and sending the connection inspection result to the connection inspection device.
4. The wire inspection method according to claim 1, further comprising, after obtaining the wire inspection result:
setting the serial number of a rack where the server is located, the serial number of a module where the server is located and the serial number of a machine room where the server is located in the connection checking device according to the SN code of the server; the machine room comprises a plurality of modules, the modules comprise a plurality of racks, and the racks comprise a plurality of servers.
5. The connection check method according to claim 1, wherein the obtaining the image file of the memory operating system from the connection check device comprises:
if the connection checking device is detected to log in the server, receiving a starting mode of the connection checking device to the server; wherein, the starting mode is a network mode;
restarting the server according to the starting mode;
and acquiring the mirror image file of the memory operating system from the connection checking device through a network.
6. A connection checking method is applied to a connection checking device and is characterized by comprising the following steps:
acquiring a product Serial Number (SN) code and planning connection information of a server;
generating a memory operating system according to the SN code of the server and the planning connection information, and generating a mirror image file of the memory operating system;
sending the mirror image file of the memory operating system to the server; the mirror image file of the memory operating system is used for the server to load the memory operating system, acquire actual connection information of the server, compare the actual connection information with the planned connection information to obtain a connection checking result, and send the connection checking result to the connection checking device;
and acquiring a connection checking result sent by the server, and outputting the connection checking result.
7. The connection inspection method according to claim 6, wherein the generating a memory operating system according to the planned connection information of the server comprises:
generating a memory operating system according to the planning connection information of the server and a prestored checking strategy; wherein the checking strategy comprises a number N of failed retries, and N is an integer greater than 1;
and the number of times of failed retries N is used for judging whether the actual connection information is consistent with the planned connection information again when the actual connection information is inconsistent with the planned connection information and the current comparison number of times is less than N, and determining that the connection checking result of the server is a connection error when the actual connection information is inconsistent with the planned connection information and the current comparison number of times is equal to N.
8. The connection inspection method according to claim 7, wherein the inspection policy further includes an inspection period, and the inspection period is used for the server to periodically obtain actual connection information of the server according to the inspection period, periodically compare the actual connection information with the planned connection information to obtain a connection inspection result, and send the connection inspection result to the connection inspection device.
9. The connection check method according to claim 6, further comprising, after the obtaining the connection check result sent by the server and outputting the connection check result:
receiving the serial number of a rack where the server is arranged, the serial number of a module where the server is arranged and the serial number of a machine room where the server is arranged, wherein the serial number of the rack is arranged in the connection inspection device; the machine room comprises a plurality of modules, the modules comprise a plurality of racks, and the racks comprise a plurality of servers.
10. The connection inspection method according to claim 6, wherein sending the image file of the memory operating system to the server comprises:
acquiring login information of a management port of the server;
logging in the server according to the login information of the management port, and setting the starting mode of the server as a network mode;
and indicating the server to restart according to the starting mode, so that the server can acquire the image file of the memory operating system from the connection checking device through the network.
11. A server, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the continuity check method of any one of claims 1 to 5.
12. A wiring inspection apparatus, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the continuity check method of any one of claims 6 to 10.
13. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the continuity check method of any one of claims 1 to 5, or implements the continuity check method of any one of claims 6 to 10.
CN202110990786.6A 2021-08-26 2021-08-26 Connection checking method, connection checking device, server and storage medium Pending CN113849354A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110990786.6A CN113849354A (en) 2021-08-26 2021-08-26 Connection checking method, connection checking device, server and storage medium
PCT/CN2022/109390 WO2023024833A1 (en) 2021-08-26 2022-08-01 Connecting line inspection method, connecting line inspection apparatus, and server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110990786.6A CN113849354A (en) 2021-08-26 2021-08-26 Connection checking method, connection checking device, server and storage medium

Publications (1)

Publication Number Publication Date
CN113849354A true CN113849354A (en) 2021-12-28

Family

ID=78976209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110990786.6A Pending CN113849354A (en) 2021-08-26 2021-08-26 Connection checking method, connection checking device, server and storage medium

Country Status (2)

Country Link
CN (1) CN113849354A (en)
WO (1) WO2023024833A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023024833A1 (en) * 2021-08-26 2023-03-02 中兴通讯股份有限公司 Connecting line inspection method, connecting line inspection apparatus, and server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040860A1 (en) * 2009-08-12 2011-02-17 International Business Machines Corporation Validation of the configuration of a data communications network using a virtual network operations center
CN107479888A (en) * 2017-08-11 2017-12-15 携程旅游信息技术(上海)有限公司 Operating system mirror image deployment services device method, system, equipment and storage medium
CN109587005A (en) * 2018-12-26 2019-04-05 华为技术服务有限公司 Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing
CN109951325A (en) * 2019-02-28 2019-06-28 华为技术有限公司 A kind of network cable connection inspection method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815014B (en) * 2010-02-09 2012-04-25 上海百络信息技术有限公司 Real-time network data capture method based on connection
CN112311574B (en) * 2019-07-30 2023-05-09 中国移动通信有限公司研究院 Network topology connection checking method, device and equipment
US10990464B1 (en) * 2019-09-04 2021-04-27 Amazon Technologies, Inc. Block-storage service supporting multi-attach and health check failover mechanism
CN113849354A (en) * 2021-08-26 2021-12-28 中兴通讯股份有限公司 Connection checking method, connection checking device, server and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040860A1 (en) * 2009-08-12 2011-02-17 International Business Machines Corporation Validation of the configuration of a data communications network using a virtual network operations center
CN107479888A (en) * 2017-08-11 2017-12-15 携程旅游信息技术(上海)有限公司 Operating system mirror image deployment services device method, system, equipment and storage medium
CN109587005A (en) * 2018-12-26 2019-04-05 华为技术服务有限公司 Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing
CN109951325A (en) * 2019-02-28 2019-06-28 华为技术有限公司 A kind of network cable connection inspection method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023024833A1 (en) * 2021-08-26 2023-03-02 中兴通讯股份有限公司 Connecting line inspection method, connecting line inspection apparatus, and server and storage medium

Also Published As

Publication number Publication date
WO2023024833A1 (en) 2023-03-02

Similar Documents

Publication Publication Date Title
CN102722420B (en) Self-diagnosis terminal, detection method and remote maintenance system
US10405361B2 (en) Switching-on method, base station, base station controller, switching-on system and storage medium
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
CN107729038A (en) The baseboard management controller of firmware update and renewable firmware
TW201621539A (en) Rack having automatic recovery function and automatic recovery method for the same
CN113849354A (en) Connection checking method, connection checking device, server and storage medium
CN112311574B (en) Network topology connection checking method, device and equipment
US10659536B2 (en) Method of controlling inverters
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN109032867A (en) A kind of method for diagnosing faults, device and equipment
CN116820596A (en) FRU (field replaceable unit) management method, device and system
JPH10301799A (en) System for applying test program
CN111831341A (en) Configuration file loading method, device and system and computer readable medium
CN113225679A (en) Bluetooth equipment firmware upgrading data transmission method based on software APP technology
CN112463610A (en) Test process control method and device
CN111949477B (en) Management scheme of large equipment
TWI812481B (en) System and method for supplying power to circuit board and test devices in sequence to test circuit board
US11726766B2 (en) Method and apparatus for maintaining software of a control unit for an industrial control system
CN117873519A (en) Firmware upgrading method and device, storage medium and electronic device
CN111752773B (en) Method and device for realizing power-on self-check verification of clustered system
CN111162974B (en) Configurable two-out-of-two hardware platform aging test system and test method
CN115623462A (en) Method, system and storage medium for acquiring IP addresses of BMC and operating system
EP4231551A1 (en) Computer system and setting method
CN116755773A (en) IPMI command correction method and device
TWI654524B (en) Rack server system and signal communication frequency adjustment method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination