CN111064624A - Whole cabinet node positioning method, device, equipment and readable storage medium - Google Patents

Whole cabinet node positioning method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111064624A
CN111064624A CN201911386487.0A CN201911386487A CN111064624A CN 111064624 A CN111064624 A CN 111064624A CN 201911386487 A CN201911386487 A CN 201911386487A CN 111064624 A CN111064624 A CN 111064624A
Authority
CN
China
Prior art keywords
node
information
address information
cabinet
whole cabinet
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
CN201911386487.0A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911386487.0A priority Critical patent/CN111064624A/en
Publication of CN111064624A publication Critical patent/CN111064624A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0604Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
    • H04L41/0618Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on the physical or logical position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a complete cabinet node positioning method, which comprises the following steps: when a starting-up instruction is acquired, starting-up sequence information is sent to the whole cabinet, so that the whole cabinet can start up each node according to the starting-up sequence information; acquiring address information sent by each node after starting up, storing each address information into a storage library, and establishing a corresponding relation between each address information and each position information in the storage library according to the acquisition sequence of the address information; wherein the position information corresponds to the boot sequence information; analyzing the obtained position query instruction to obtain target address information, and determining target position information corresponding to the target address information in a storage library by using a corresponding relation; the method can stably complete the positioning work of the nodes in the whole cabinet without a complex positioning device, thereby improving the maintenance and development efficiency of the whole cabinet; in addition, the invention also provides a complete cabinet node positioning device, equipment and a computer readable storage medium, and the device and the equipment also have the beneficial effects.

Description

Whole cabinet node positioning method, device, equipment and readable storage medium
Technical Field
The invention relates to the technical field of servers, in particular to a complete cabinet node positioning method, a complete cabinet node positioning device, complete cabinet node positioning equipment, a computer readable storage medium and a complete cabinet node positioning system.
Background
With the rapid development of the IT industry and the expansion of the business scale of Internet enterprises, the demand of the whole cabinet server in the market is increasing. Especially in China, the expansion of the scale of the whole cabinet server is very strong.
Because the whole cabinet server is large in scale, in order to maintain the whole cabinet, how to find the position of the designated node in the whole cabinet server carrying a large number of nodes becomes a problem to be solved. The existing whole cabinet server node positioning method adopts a set of positioning device, namely, a set of position positioning device is carried in a whole cabinet and is specially used for positioning nodes in the whole cabinet, however, the positioning device has more problems, such as complex structure and links, more devices, unstable links among devices and slow signal transmission rate on the links. These problems may cause various unpredictable abnormal phenomena or faults in the positioning device during actual use, which may not complete the node positioning work normally, waste a lot of time in the maintenance or development of the whole cabinet, and reduce the maintenance and development efficiency of the whole cabinet.
Therefore, how to solve the problems that a large amount of time is wasted when the current complete cabinet server node positioning method is used for maintaining or developing the complete cabinet, and the maintenance and development efficiency of the complete cabinet is reduced is a technical problem to be solved by technical personnel in the field.
Disclosure of Invention
In view of the above, the present invention provides a complete cabinet node positioning method, a complete cabinet node positioning apparatus, a complete cabinet node positioning device, a computer readable storage medium, and a complete cabinet node positioning system, which solve the problems that a current complete cabinet server node positioning method wastes a lot of time during the maintenance or development of a complete cabinet, and reduces the maintenance and development efficiency of the complete cabinet.
In order to solve the technical problem, the invention provides a complete cabinet node positioning method, which comprises the following steps:
when a starting-up instruction is acquired, starting-up sequence information is sent to the whole cabinet, so that the whole cabinet can start up each node according to the starting-up sequence information;
acquiring address information sent by each node after the node is started, storing each address information into a storage library, and establishing a corresponding relation between each address information and each position information in the storage library according to the acquisition sequence of the address information; wherein the location information corresponds to the boot sequence information;
analyzing the obtained position query instruction to obtain target address information, and determining target position information corresponding to the target address information in the repository by using the corresponding relation.
Optionally, the method further comprises:
sending a detection instruction to the whole cabinet so that the whole cabinet can detect each node according to the starting sequence information;
judging whether response information sent by each node after being detected is received or not;
if the response information sent by the node is not received, determining the node as a first node, and deleting first address information corresponding to the first node in the repository;
and releasing the first corresponding relation between the first address information and the first position information, and executing an alarm operation.
Optionally, the method further comprises:
when an updating instruction is obtained, establishing updating sequence information by utilizing the first position information;
sending the update sequence information to the whole cabinet, so that the whole cabinet updates the first node according to the update sequence information;
acquiring second address information sent by each first node after updating, and storing the second address information into the repository;
and establishing a second corresponding relation between the second address information and the first position information according to the acquisition sequence of the second address information.
Optionally, if the response information sent by the node is received, the method includes:
determining the node as a second node, and analyzing the response information to obtain address verification information;
judging whether the address verification information is the same as third address information corresponding to the second node in the repository;
and if not, deleting the third address information, and removing a third corresponding relation between the third address information and the second position information.
Optionally, after sending the probing instruction to the entire cabinet, the method further includes:
and sending a prompt instruction to the whole cabinet so that the whole cabinet can send UID lamp lighting instructions to the nodes.
Optionally, the address information includes BMC IP address information and BMC MAC address information.
The invention also provides a complete cabinet node positioning device, which comprises:
the sending module is used for sending the starting sequence information to the whole cabinet when the starting instruction is obtained, so that the whole cabinet can start each node according to the starting sequence information;
the establishing module is used for acquiring address information sent by each node after the node is started, storing each address information into a storage library, and establishing a corresponding relation between each address information and each position information in the storage library according to the acquisition sequence of the address information; wherein the location information corresponds to the boot sequence information;
and the positioning module is used for analyzing the obtained position query instruction to obtain target address information and determining the target position information corresponding to the target address information in the storage library by utilizing the corresponding relation.
The invention also provides a node positioning device of the whole cabinet, which comprises a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is used for executing the computer program to realize the node positioning method of the whole cabinet.
The invention also provides a computer readable storage medium for storing a computer program, wherein the computer program is executed by a processor to realize the complete cabinet node positioning method.
The invention also provides a complete machine cabinet node positioning system which comprises a complete machine cabinet and the complete machine cabinet node positioning equipment, wherein the complete machine cabinet is connected with the complete machine cabinet node positioning equipment through a switch, and the complete machine cabinet comprises a plurality of nodes.
According to the node positioning method of the whole cabinet, provided by the invention, when the starting-up instruction is obtained, the starting-up sequence information is sent to the whole cabinet, so that the whole cabinet can start up each node according to the starting-up sequence information. Acquiring address information sent by each node after starting up, storing each address information into a storage library, and establishing a corresponding relation between each address information and each position information in the storage library according to the acquisition sequence of the address information; wherein the location information corresponds to the boot sequence information. And analyzing the acquired position query instruction to obtain target address information, and determining target position information corresponding to the target address information in the storage library by using the corresponding relation.
Therefore, the method sends the starting sequence information to the whole cabinet when the starting instruction is obtained, the node sends the address information of the node after the starting, and the whole cabinet starts the node according to the starting sequence information, so that the obtaining sequence of the address information corresponds to the starting sequence. After the address information is acquired, the corresponding relation between the address information and the position information prestored in the storage library is established, and the position information corresponds to the starting sequence information, so that the position information corresponds to the address information, and the correct corresponding relation can be established. When the position query instruction is obtained, the target position information specified by the position query instruction can be determined according to the corresponding relation, and then the node positioning work is completed. Therefore, the positioning work of the nodes in the whole cabinet can be stably finished without a complex positioning device, the time required by the maintenance or development of the whole cabinet is saved, and the maintenance and development efficiency of the whole cabinet is improved.
In addition, the invention also provides a complete cabinet node positioning device, complete cabinet node positioning equipment, a computer readable storage medium and a complete cabinet node positioning system, and the complete cabinet node positioning device, the complete cabinet node positioning equipment, the computer readable storage medium and the complete cabinet node positioning system also have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for positioning nodes of a whole cabinet according to an embodiment of the present invention;
fig. 2 is a flowchart of a node detection method according to an embodiment of the present invention;
fig. 3 is a flowchart of an information verification method according to an embodiment of the present invention;
fig. 4 is a flowchart of an information updating method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a node positioning device of a complete cabinet according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a complete cabinet node positioning apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for positioning nodes of a complete cabinet according to an embodiment of the present invention.
The method comprises the following steps:
s101: and when the starting-up instruction is acquired, starting-up sequence information is sent to the whole cabinet, so that the whole cabinet can start up each node according to the starting-up sequence information.
In the embodiment of the invention, the whole cabinet is a server whole cabinet, and comprises a plurality of server nodes. The whole cabinet is connected with a computing device for executing each step of the whole cabinet node positioning method provided by the invention, the computing device is any computing device with an operating system and a network adapter, such as a computer terminal, and the computing device can be called as a whole cabinet node positioning device. The node positioning equipment of the whole cabinet can be based on a Linux system and can receive and send instructions based on an IPMI protocol.
The startup instruction is used for starting up the whole cabinet, specifically, for instructing the whole cabinet to start up each node therein, and in order to obtain the address information of each node in the whole cabinet and establish the corresponding relationship between the address information and the position information, the whole cabinet is required to start up each node according to a certain startup sequence. Therefore, the startup sequence information is sent to the whole cabinet, and the startup sequence of each node is recorded in the startup sequence information, and the specific content of the startup sequence information is not limited in this embodiment. For example, each server node in the entire cabinet is installed at a different physical location, so that different physical node locations may be marked, for example, a numerical mark may be used, that is, 1 indicates location No. 1, 2 indicates location No. 2, and the boot sequence information may record the physical location of each node in sequence, for example, 1, 2, 3, 4 ….
And after the starting sequence information is sent to the whole cabinet, the whole cabinet starts each node according to the starting sequence information. The specific process of starting up each node by the whole cabinet is not limited in this embodiment, for example, each node may be started up according to a preset period, for example, when the starting sequence information is 1, 2, 3, and 4, and the preset time is ten seconds, the node at the position No. 1 is started up first, the node at the position No. 2 is started up after ten seconds, the node at the position No. 3 is started up after ten seconds, and the node at the position No. 4 is started up after ten seconds. Or the node with the subsequent boot sequence may be booted after the node with the prior boot sequence sends the address information, for example, when the boot sequence is 1, 2, 3, and 4, the node with the position 1 is booted first, when the node with the position 1 sends the address information, the node with the position 2 is booted, when the node with the position 2 sends the address information, the node with the position 3 is booted, and when several points with the position 3 send the address information, the node with the position 4 is booted.
S102: acquiring address information sent by each node after starting up, storing each address information into a storage library, and establishing a corresponding relation between each address information and each position information in the storage library according to the acquisition sequence of the address information; wherein the location information corresponds to the boot sequence information.
The whole cabinet is started after receiving the starting sequence information, the node sends address information to the whole cabinet node positioning device after being started, and in order to better position the node, the address information can include an IP address and an MAC address, specifically, the address information can be the IP address and the MAC address of the BMC network, namely, the BMC IP address information and the BMC MAC address information. Each node may send address information immediately after being powered on, or may send address information after being powered on for a period of time, which is not limited in this embodiment.
After the address information of each node is obtained, the address information is stored in a storage library. It should be noted that the repository stores location information in advance, and the location information corresponds to the boot sequence information and is used to establish a corresponding relationship, so as to position the node in the following. Specifically, the corresponding relation between each address information and each position information in the storage library is rewarded according to the acquisition sequence of the address information. The corresponding relation can be recorded in a list form, and the node is started up by the whole cabinet according to the starting-up sequence information, so that the node started up first sends the address information, and the node started up later sends the address information. When the boot sequence information is 1, 2, 3, and 4, and the first piece of address information is acquired, it may be determined that the address information is sent by the node at position No. 1, and the position information corresponds to the boot sequence information, so that a correspondence between the position information and the position information corresponding to position No. 1 may be established, for example, the position information may be N1, and when the correspondence is recorded in a form of a list, the position information and N1 may form a list entry of the list and write the list entry into the list. When receiving the second piece of address information, it may be determined that the address information is sent by the node at position No. 2, so that a correspondence between the position information and the position information corresponding to position No. 2 may be established, for example, the position information may be N2, and the position information and N2 may be combined into a list entry and written into the list. When the third piece of address information is received, it may be determined that the address information is sent by the node at the position No. 3, so that a corresponding relationship between the position information and the position information corresponding to the position No. 3 may be established, for example, the position information may be N3, and the position information and N3 may be combined into a list entry and written into the list. When the fourth piece of address information is received, it may be determined that the address information is sent by the node at position 4, so that a correspondence between the position information and the position information corresponding to position 4 may be established, for example, the position information may be N4, and then the position information and N4 may be combined into a list entry and written into the list, thereby completing establishment of correspondence between all nodes.
S103: and analyzing the acquired position query instruction to obtain target address information, and determining target position information corresponding to the target address information in the storage library by using the corresponding relation.
The location query instruction may be manually input by a control person, or may be transmitted by other devices. When the position query instruction is obtained, the position query instruction is analyzed to obtain target address information, where the target address information is address information of a node to be located, and the specific content of the target address information is not limited in this embodiment. After the target address information is determined, the corresponding relation is utilized to determine target position information corresponding to the target address information in a storage library, and the determined target position information is the positioning of the node. After the target position information is determined, other operations such as outputting the target position information or presenting the target position information may also be performed. For example, when the position query instruction is manually input by a control person, the target position information may be presented after the target position information is determined; when the location query instruction is transmitted by the other device, it may be transmitted to the device after determining the target location information.
By applying the method for positioning the nodes of the whole cabinet provided by the embodiment of the invention, the starting sequence information is sent to the whole cabinet when the starting instruction is obtained, the nodes can send the address information of the nodes after starting, and the whole cabinet starts the nodes according to the starting sequence information, so that the obtaining sequence of the address information corresponds to the starting sequence. After the address information is acquired, the corresponding relation between the address information and the position information prestored in the storage library is established, and the position information corresponds to the starting sequence information, so that the position information corresponds to the address information, and the correct corresponding relation can be established. When the position query instruction is obtained, the target position information specified by the position query instruction can be determined according to the corresponding relation, and then the node positioning work is completed. Therefore, the positioning work of the nodes in the whole cabinet can be stably finished without a complex positioning device, the time required by the maintenance or development of the whole cabinet is saved, and the maintenance and development efficiency of the whole cabinet is improved.
Based on the foregoing embodiments of the present invention, a node detection method will be described in the embodiments of the present invention, which can detect whether a node fails or needs to be updated. Referring to fig. 2, fig. 2 is a flowchart of a node probing method according to an embodiment of the present invention, including:
s201: and sending a detection instruction to the whole cabinet so that the whole cabinet can detect each node according to the starting sequence information.
The detection instruction is used for detecting the nodes in the whole cabinet and judging whether the nodes are in failure or whether the corresponding relationship of the nodes needs to be updated. Specifically, the detection instruction may be sent when the control personnel confirm to perform the detection operation, or the detection instruction may be sent to the whole cabinet according to a preset period. After the detection instruction is obtained, the entire cabinet detects each node according to the boot sequence information, for example, the detection instruction may be forwarded to each node according to the address information in the corresponding relationship. After being detected, the node sends response information, and the response information is used for indicating that the node receives the detection. The embodiment does not limit the specific content of the response message, and may include address information of the node, for example. If the node fails or the address information of the node changes, the probe instruction cannot be received, and further response information cannot be sent.
Further, after the detection instruction is sent to the whole cabinet, a prompt instruction can be sent to the whole cabinet, so that the whole cabinet can send UID lamp lighting instructions to all nodes. If the address information of the node changes, the UID lamp lighting instruction cannot be received; if the address information of the node is not changed, the UID lamp lighting instruction can be received, and the UID lamp of the node can be lighted, so that the control personnel can distinguish and position the node.
S202: and judging whether response information sent by each node after being detected is received.
And after the detection instruction is sent, judging whether response information sent by each node is received. If the response information is received, it indicates that the node receives the probe, step S205 is performed, that is, a preset operation is executed, and the specific content of the preset operation is not limited in this embodiment, for example, no operation may be performed, that is, no operation is performed; or may be further detected. If the response message is not received, step S203 may be entered.
In the embodiment of the invention, the whole cabinet performs the boot-up operation on each node at preset time intervals according to the sequence specified by the boot-up sequence information. Therefore, whether response information is received within a preset time can be judged, for example, when the preset time interval is ten seconds and the starting sequence information is 1, 2, 3 and 4, after a detection instruction is sent, a timer is used for timing to judge whether response information is received within ten seconds, if so, the node in the position 1 sends the response information, the timer is updated, and if not, the node in the position 1 does not send the response information, and the timer is updated; after the timer is updated, judging whether response information is received within ten seconds, if so, indicating that the node at the No. 2 position sends the response information, updating the timer, and if not, indicating that the node at the No. 2 position does not send the response information, and updating the timer; after the timer is updated, judging whether response information is received within ten seconds, if so, indicating that the node at the No. 3 position sends the response information, updating the timer, and if not, indicating that the node at the No. 3 position does not send the response information, and updating the timer; and after the timer is updated, judging whether response information is received within ten seconds, if so, indicating that the node at the No. 4 position sends the response information, and if not, indicating that the node at the No. 4 position does not send the response information.
S203: and determining the node as a first node, and deleting first address information corresponding to the first node in the repository.
When the response information of a certain node is received, which indicates that the node may fail or needs to be updated, the node is determined as the first node, and the first address information corresponding to the first node is deleted from the repository.
S204: and releasing the first corresponding relation between the first address information and the first position information, and executing an alarm operation.
And removing the first corresponding relation between the first address information and the corresponding first position information, and clearing the table entry corresponding to the first address information in the list if the corresponding relation is recorded in the form of the list. After the first corresponding relation is removed, the alarm operation can be executed, so that the control personnel can know the running condition of the whole cabinet. It should be noted that, the present embodiment does not limit the execution sequence of the step S203 and the step S204, for example, the step S203 may be executed first, and then the step S204 may be executed; or the step S204 may be executed first, and then the step S203 may be executed; or the step S203 and the step S204 may be performed simultaneously.
Based on the above embodiment of the present invention, after receiving the response message, further verification may be performed, and the step S205 will be further described in the embodiment of the present invention. Referring to fig. 3, fig. 3 is a flowchart of an information verification method according to an embodiment of the present invention, including:
s301: and determining the node as a second node, and analyzing the response information to obtain address verification information.
In the embodiment of the present invention, the response message includes address verification information, and the address verification information may be address information of the node or may be a part of the address information. After the response information is obtained, the node is determined as a second node, and the response information is analyzed to obtain address verification information corresponding to the second node.
S302: and judging whether the address verification information is the same as third address information corresponding to the second node in the storage library.
After the address verification information is obtained, whether third address information corresponding to the second node in the repository is the same as the address verification information is judged, if the third address information is the same as the address verification information, it is indicated that the address information corresponding to the node and the corresponding relationship do not need to be updated, step S304 may be entered, that is, a preset operation is executed, where the preset operation is not the same as the preset operation in step S205, and the specific content is not limited in this embodiment. If the third address information is different from the address verification information, it indicates that the address information and the corresponding relationship corresponding to the node are wrong, and the process proceeds to step S303.
S303: and deleting the third address information, and removing the third corresponding relation between the third address information and the second position information.
And when the third address information is determined to be different from the address verification information, indicating that the third address information and the corresponding relation corresponding to the node need to be updated, deleting the third address information, and releasing the third corresponding relation between the third address information and the second position information. After the third corresponding relationship is released, the second location information corresponding to the second node may be determined as the first location information, and the second node may be determined as the first node, so that the address information and the corresponding relationship may be updated subsequently.
Based on the embodiment of the present invention, when the update instruction is acquired, the address information and the corresponding relationship of the node whose corresponding relationship is released may be updated. Referring to fig. 4, fig. 4 is a flowchart of an information updating method according to an embodiment of the present invention, including:
s401: when the update instruction is acquired, update sequence information is constructed using the respective first position information.
The update instruction is used for updating the learned information and the corresponding relation of the node corresponding to the first position information. The embodiment does not limit the specific obtaining method of the update instruction, and for example, the update instruction may be generated according to a preset period; or may acquire an update instruction manually input by a control person. When the updating instruction is acquired, determining each piece of first position information, and constructing updating sequence information by using each piece of first position information, wherein the first position information is position information without corresponding relation. In the embodiment of the invention, the first position information forms the updating sequence information according to the sequence of the first position information in the starting sequence information.
S402: and sending the updating sequence information to the whole cabinet so that the whole cabinet can update the first node according to the updating sequence information.
And sending the update sequence information to the whole cabinet, and updating the first node by the whole cabinet according to the update sequence information, wherein the specific content of the update operation is not limited in this embodiment. For example, according to the update sequence specified by the update sequence information, each node is restarted, and if the node is in shutdown operation, the node is started. And the node sends second address information after being started so as to update the learned information and the corresponding relation of the node.
S403: and acquiring second address information sent by each first node after updating, and storing the second address information into a storage library.
And after second address information sent by each first node after updating is obtained, the second address information is stored in a storage library.
S404: and establishing a second corresponding relation between the second address information and the first address information according to the acquisition sequence of the second address information.
And establishing a second corresponding relation with the first position information according to the acquisition sequence of the second address information, wherein the specific establishing process of the second corresponding relation is the same as the step S102. For example, when the update sequence information is N5, N20, N50, when the first piece of second address information is acquired, it can be determined that the address information is transmitted by a node at the N5 position (i.e., position No. 5), and thus the correspondence relationship between the second address information and N5 can be established. When the second piece of second address information is acquired, it can be determined that the address information is transmitted by the node at the position N20 (i.e., the position No. 20), and therefore, the correspondence between the second address information and N20 can be established. When the third piece of second address information is acquired, it can be determined that the address information is transmitted by the node at the position N50 (i.e., the position No. 50), and therefore, the correspondence between the second address information and N50 can be established.
In the following, the node positioning device of the complete equipment cabinet provided by the embodiment of the present invention is introduced, and the node positioning device of the complete equipment cabinet described below and the node positioning method of the complete equipment cabinet described above may be referred to each other correspondingly.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a node positioning device of a complete cabinet according to an embodiment of the present invention, including:
a sending module 510, configured to send, when a boot instruction is obtained, boot sequence information to the whole cabinet, so that the whole cabinet boots each node according to the boot sequence information;
an establishing module 520, configured to acquire address information sent after each node is powered on, store each address information in a repository, and establish a corresponding relationship between each address information and each location information in the repository according to an acquisition sequence of the address information; wherein the position information corresponds to the boot sequence information;
the positioning module 530 is configured to analyze the obtained location query instruction to obtain target address information, and determine target location information corresponding to the target address information in the repository by using the corresponding relationship.
Optionally, the method further comprises:
the detection module is used for sending a detection instruction to the whole cabinet so that the whole cabinet can detect each node according to the starting sequence information;
the response judging module is used for judging whether response information sent by each node after being detected is received or not;
the first determining module is used for determining the node as a first node if the response information sent by the node is not received, and deleting first address information corresponding to the first node in the repository;
and the first contact module is used for releasing the first corresponding relation between the first address information and the first position information and executing an alarm operation.
Optionally, the method further comprises:
the updating sequence constructing module is used for constructing updating sequence information by utilizing each first position information when the updating instruction is obtained;
the updating module is used for sending the updating sequence information to the whole cabinet so that the whole cabinet can update the first node according to the updating sequence information;
the storage module is used for acquiring second address information sent by each first node after updating and storing the second address information into a storage library;
and the establishing module is used for establishing a second corresponding relation between the second address information and the first position information according to the acquisition sequence of the second address information.
Optionally, comprising:
the second determining module is used for determining the node as a second node and analyzing the response information to obtain address verification information;
the judging module is used for judging whether the address verification information is the same as third address information corresponding to a second node in the storage library or not;
and the second releasing module is used for deleting the third address information and releasing the third corresponding relation between the third address information and the second position information if the third address information is different from the second address information.
Optionally, the method further comprises:
and the reminding module is used for sending a reminding instruction to the whole cabinet so that the whole cabinet can send UID lamp lighting instructions to all the nodes.
Optionally, the address information includes BMC IP address information and BMC MAC address information.
In the following, the node positioning device of the complete equipment cabinet provided by the embodiment of the present invention is introduced, and the node positioning device of the complete equipment cabinet described below and the node positioning method of the complete equipment cabinet described above may be referred to each other correspondingly.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a node positioning apparatus of a complete cabinet according to an embodiment of the present invention, where the node positioning apparatus of the complete cabinet includes a memory and a processor, where:
a memory 610 for storing a computer program;
the processor 620 is configured to execute a computer program to implement the above-mentioned node positioning method for the whole cabinet.
The following introduces a computer-readable storage medium provided in an embodiment of the present invention, and the computer-readable storage medium described below and the overall cabinet node positioning method described above may be referred to correspondingly.
The invention also provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the complete cabinet node positioning method are realized.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In the following, the node positioning system of the complete equipment cabinet provided by the embodiment of the present invention is introduced, and the node positioning system of the complete equipment cabinet described below and the node positioning method of the complete equipment cabinet described above may be referred to each other correspondingly.
The invention also provides a complete cabinet node positioning system, which comprises a complete cabinet and the complete cabinet node positioning equipment, and is used for realizing the complete cabinet node positioning method, wherein the complete cabinet comprises a plurality of nodes; the whole cabinet is connected with the whole cabinet node positioning equipment through the switch, and specifically, the network data port and the BMC switching port of each node in the whole cabinet are connected with the switch.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The above detailed description is made on a complete cabinet node positioning method, a complete cabinet node positioning device, a complete cabinet node positioning apparatus, a computer readable storage medium and a complete cabinet node positioning system provided by the present invention, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A node positioning method for a whole cabinet is characterized by comprising the following steps:
when a starting-up instruction is acquired, starting-up sequence information is sent to the whole cabinet, so that the whole cabinet can start up each node according to the starting-up sequence information;
acquiring address information sent by each node after the node is started, storing each address information into a storage library, and establishing a corresponding relation between each address information and each position information in the storage library according to the acquisition sequence of the address information; wherein the location information corresponds to the boot sequence information;
analyzing the obtained position query instruction to obtain target address information, and determining target position information corresponding to the target address information in the repository by using the corresponding relation.
2. The complete cabinet node positioning method according to claim 1, further comprising:
sending a detection instruction to the whole cabinet so that the whole cabinet can detect each node according to the starting sequence information;
judging whether response information sent by each node after being detected is received or not;
if the response information sent by the node is not received, determining the node as a first node, and deleting first address information corresponding to the first node in the repository;
and releasing the first corresponding relation between the first address information and the first position information, and executing an alarm operation.
3. The complete cabinet node positioning method according to claim 2, further comprising:
when an updating instruction is obtained, establishing updating sequence information by utilizing the first position information;
sending the update sequence information to the whole cabinet, so that the whole cabinet updates the first node according to the update sequence information;
acquiring second address information sent by each first node after updating, and storing the second address information into the repository;
and establishing a second corresponding relation between the second address information and the first position information according to the acquisition sequence of the second address information.
4. The complete cabinet node positioning method according to claim 2, wherein if the response message sent by the node is received, the method comprises:
determining the node as a second node, and analyzing the response information to obtain address verification information;
judging whether the address verification information is the same as third address information corresponding to the second node in the repository;
and if not, deleting the third address information, and removing a third corresponding relation between the third address information and the second position information.
5. The complete cabinet node positioning method according to claim 2, after sending a probe instruction to the complete cabinet, further comprising:
and sending a prompt instruction to the whole cabinet so that the whole cabinet can send UID lamp lighting instructions to the nodes.
6. The complete equipment cabinet node positioning method according to any one of claims 1 to 5, wherein the address information comprises BMC IP address information and BMC MAC address information.
7. The utility model provides a complete machine cabinet node positioner which characterized in that includes:
the sending module is used for sending the starting sequence information to the whole cabinet when the starting instruction is obtained, so that the whole cabinet can start each node according to the starting sequence information;
the establishing module is used for acquiring address information sent by each node after the node is started, storing each address information into a storage library, and establishing a corresponding relation between each address information and each position information in the storage library according to the acquisition sequence of the address information; wherein the location information corresponds to the boot sequence information;
and the positioning module is used for analyzing the obtained position query instruction to obtain target address information and determining the target position information corresponding to the target address information in the storage library by utilizing the corresponding relation.
8. The utility model provides a complete machine cabinet node positioning equipment which characterized in that, includes memory and treater, wherein:
the memory is used for storing a computer program;
the processor is used for executing the computer program to realize the complete cabinet node positioning method according to any one of claims 1 to 6.
9. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the complete cabinet node location method according to any one of claims 1 to 6.
10. The node positioning system of the whole cabinet is characterized by comprising the whole cabinet and the node positioning equipment of the whole cabinet according to claim 8, wherein the whole cabinet is connected with the node positioning equipment of the whole cabinet through a switch, and the whole cabinet comprises a plurality of nodes.
CN201911386487.0A 2019-12-29 2019-12-29 Whole cabinet node positioning method, device, equipment and readable storage medium Pending CN111064624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911386487.0A CN111064624A (en) 2019-12-29 2019-12-29 Whole cabinet node positioning method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911386487.0A CN111064624A (en) 2019-12-29 2019-12-29 Whole cabinet node positioning method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111064624A true CN111064624A (en) 2020-04-24

Family

ID=70304507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911386487.0A Pending CN111064624A (en) 2019-12-29 2019-12-29 Whole cabinet node positioning method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111064624A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880853A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Starting method, system and related device of clustered service
CN114006810A (en) * 2021-10-25 2022-02-01 珠海格力电器股份有限公司 Equipment network distribution method, system, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428034A (en) * 2013-08-23 2013-12-04 浪潮电子信息产业股份有限公司 Mounting position checking method for servers in batches
CN105468122A (en) * 2015-11-13 2016-04-06 浪潮(北京)电子信息产业有限公司 Method and device for off-peak boot of nodes and whole cabinet server
CN106301875A (en) * 2015-06-26 2017-01-04 伊姆西公司 The method and apparatus determining the physical location of equipment
CN107659677A (en) * 2017-11-07 2018-02-02 湖南长城银河科技有限公司 The apparatus and method that a kind of IP address based on BMC automatically configures
CN110113219A (en) * 2019-05-29 2019-08-09 山东浪潮人工智能研究院有限公司 A kind of Server location information management method
CN110557304A (en) * 2019-09-20 2019-12-10 腾讯科技(深圳)有限公司 Address detection method and device and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428034A (en) * 2013-08-23 2013-12-04 浪潮电子信息产业股份有限公司 Mounting position checking method for servers in batches
CN106301875A (en) * 2015-06-26 2017-01-04 伊姆西公司 The method and apparatus determining the physical location of equipment
CN105468122A (en) * 2015-11-13 2016-04-06 浪潮(北京)电子信息产业有限公司 Method and device for off-peak boot of nodes and whole cabinet server
CN107659677A (en) * 2017-11-07 2018-02-02 湖南长城银河科技有限公司 The apparatus and method that a kind of IP address based on BMC automatically configures
CN110113219A (en) * 2019-05-29 2019-08-09 山东浪潮人工智能研究院有限公司 A kind of Server location information management method
CN110557304A (en) * 2019-09-20 2019-12-10 腾讯科技(深圳)有限公司 Address detection method and device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880853A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Starting method, system and related device of clustered service
CN114006810A (en) * 2021-10-25 2022-02-01 珠海格力电器股份有限公司 Equipment network distribution method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
KR101748833B1 (en) Software failure locating method, apparatus and equipment
CN107729255B (en) Software testing method, device and system
CN109165152B (en) Method, system and storage medium for monitoring performance of WEB system
US10048978B2 (en) Apparatus and method for identifying a virtual machine having changeable settings
CN111064624A (en) Whole cabinet node positioning method, device, equipment and readable storage medium
CN106341244A (en) Method and system for updating configuration file, client and server
CN113504932B (en) Firmware data updating method and device
CN109462507B (en) Configuration updating method, device and system and electronic equipment
CN112506702A (en) Data center disaster tolerance method, device, equipment and storage medium
CN115061885A (en) Complete machine aging automatic test method and device, electronic equipment and storage medium
CN107783844A (en) A kind of computer program operation exception detection method, device and medium
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN114338363A (en) Continuous integration method, device, equipment and storage medium
CN114003428A (en) Fault early warning method and device for distributed system
CN110134558B (en) Method and device for detecting server
CN108111343B (en) Method and equipment for realizing terminal monitoring based on cloud platform and computer storage medium
CN104935451A (en) Fault detection method and device
EP3646182A1 (en) Recovery of application from error
CN110688173B (en) Positioning method and device of components in cross-platform interface framework and electronic equipment
CN112486718A (en) Database fault automatic switching method and device and computer storage medium
CN109508203B (en) Method, device and system for determining version consistency
WO2016131294A1 (en) Version upgrade processing method and device
CN111414194B (en) Interface information generation method, system, electronic equipment and storage medium
CN113986851A (en) File synchronization method, system and storage medium
CN109039770B (en) Server CMC refreshing method and device and related equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200424

RJ01 Rejection of invention patent application after publication