CN113852472A - Machine head and tail communication method, system and device and computer readable storage medium - Google Patents
Machine head and tail communication method, system and device and computer readable storage medium Download PDFInfo
- Publication number
- CN113852472A CN113852472A CN202111093038.4A CN202111093038A CN113852472A CN 113852472 A CN113852472 A CN 113852472A CN 202111093038 A CN202111093038 A CN 202111093038A CN 113852472 A CN113852472 A CN 113852472A
- Authority
- CN
- China
- Prior art keywords
- tail
- machine
- head
- starting
- power
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000004891 communication Methods 0.000 title claims abstract description 39
- 238000004590 computer program Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 9
- 230000002159 abnormal effect Effects 0.000 claims description 4
- 230000009471 action Effects 0.000 description 4
- 230000005611 electricity Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/10—Current supply arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/12—Arrangements for remote connection or disconnection of substations or of equipment thereof
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The application discloses a machine head and tail communication method, a system, a device and a computer readable storage medium, which are applied to a machine head and comprise the following steps: after power is on, power is supplied to the tail; judging whether power supply to the tail is successful or not; if the starting is successful, judging whether the tail meets the starting condition after receiving the starting command; if yes, controlling the tail of the machine to start up; and after the machine tail is started, locally starting the machine. The machine head actively supplies power to the machine tail, so that the state of the machine tail can be determined, the machine tail is controlled to be powered on when the machine tail is started according to the state of the machine tail, the power-on control right of the machine tail is transferred to the machine head, the machine tail is enabled to be started before the machine head, the problem that the machine head cannot access the machine tail when the machine tail is started later than the machine head is solved, and the stability and the reliability are improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, an apparatus, and a computer-readable storage medium for head-to-tail communication.
Background
With the development of servers, there is an increasing need to expand devices on existing machines. The collection of external devices such as JBOD GPUBOX does not need CPU, and more interfaces and devices can be expanded on the existing server. In this arrangement, the server is called the head end, and the JBOD GPUBOX is called the tail end. When the machine head and the machine tail are assembled, the machine head and the machine tail are two systems, and the machine head and the machine tail are provided with own management systems, so that the interaction relationship between the two systems achieves the stability of the whole system.
The BMCs are arranged on the mainboards of the machine head and the machine tail, and the two BMCs are communicated through the ipmb bus, so that the monitoring of information such as voltage, temperature, fan rotating speed and the like is realized. When one of the two systems is not powered on, or when the initialization of the BMC in one system is not completed, the communication between the two BMCs may fail. The starting sequence of the machine head and the machine tail is required, generally, the machine tail is started first, the machine head is started again, the starting action can be completed by the BMC of the machine head and the machine tail, and the machine tail is started first and then started manually through a starting button.
The prior art has requirements on the starting sequence of the machine head and the machine tail, the operation must be carried out according to a certain flow, and if the flow is wrong, the machine head cannot identify the machine tail equipment after starting. In the prior art, the machine head and the machine tail interact through an ipmb bus, the BMCs of the machine head and the machine tail are required to be in a live state, communication cannot be performed if the power-on time of the machine head and the machine tail is different, and the state of the information that the ipmb can interact mainly through a sensor is not flexible enough.
Therefore, a more reliable method for communication between the head and the tail is needed.
Disclosure of Invention
In view of the above, the present invention provides a method, a system, a device and a computer readable storage medium for head-to-tail communication, which improve stability and reliability. The specific scheme is as follows:
a machine head and machine tail communication method is applied to a machine head and comprises the following steps:
after power is on, power is supplied to the tail;
judging whether the power supply to the tail is successful or not;
if the starting-up command is successful, judging whether the tail meets the starting-up condition or not after receiving the starting-up command;
if yes, controlling the machine tail to start up;
and after the machine tail is started, locally starting the machine.
Optionally, the process of supplying power to the tail includes:
and supplying power to the tail through a POE port connected with the tail.
Optionally, the process of determining whether the tail meets the boot condition includes:
judging whether the tail has AC power or not;
if yes, judging whether the tail is started or not;
if yes, controlling the starting process of the machine tail, comprising the following steps:
and if the machine tail is not started, controlling the machine tail to start.
Optionally, the method further includes:
and if the power supply of the tail fails, no AC power exists or the tail is not started, feeding back an abnormal alarm.
Optionally, the method further includes:
and acquiring BMC version information and FRU information of the tail.
Optionally, the communication with the tail is based on a TPC/IP protocol.
The invention also discloses a machine head and tail communication system, which is applied to the machine head and comprises the following components:
the tail power supply module is used for supplying power to the tail after being electrified;
the power supply judging module is used for judging whether power supply to the tail is successful or not;
the tail starting judgment module is used for judging whether the tail meets the starting condition or not after receiving a starting instruction if the power supply judgment module judges that the power supply is successful;
the tail starting-up module is used for controlling the tail to start up if the tail starting-up judging module judges that the starting-up conditions are met;
and the machine head starting module is used for starting up the machine head locally after the machine tail is started up.
Optionally, the machine tail power supply module is specifically configured to, if the machine tail power supply determination module determines that power can be supplied, supply power to the machine tail through the POE port connected to the machine tail.
The invention also discloses a machine head and machine tail communication device, which comprises:
a memory for storing a computer program;
a processor for executing the computer program to implement the head-end-to-tail communication method as described above.
The invention also discloses a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the machine head and tail communication method.
The invention discloses a machine head and tail communication method, which is applied to a machine head and comprises the following steps: after power is on, power is supplied to the tail; judging whether power supply to the tail is successful or not; if the starting is successful, judging whether the tail meets the starting condition after receiving the starting command; if yes, controlling the tail of the machine to start up; and after the machine tail is started, locally starting the machine.
The head of the invention actively supplies power to the tail, thereby being capable of determining the state of the tail, controlling the power-on of the tail when the tail is started according to the state of the tail, and transferring the power-on control right of the tail to the head, thereby ensuring that the tail is started before the head, avoiding the problem that the head cannot access the tail when the tail is started later than the head, and improving the stability and the reliability.
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 schematic flow chart of a head-to-tail communication method disclosed in an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another method for communication between a head and a tail according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a head-to-tail communication system according to an embodiment of the present invention.
Detailed Description
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.
The embodiment of the invention discloses a machine head and tail communication method, which is applied to a machine head and is shown in figure 1, and comprises the following steps:
s11: after power is on, power is supplied to the tail.
Specifically, after the machine head is powered on and initialized, equipment information needs to be acquired from the machine tail, and as the machine tail opening control is integrated in the machine head, the machine tail cannot be started before the machine head, and meanwhile, as the machine tail is not started, the machine tail is in a non-power supply state, the machine head needs to supply power to the machine tail in advance, and the machine head can acquire the related information of the machine tail.
S12: and judging whether the power supply to the tail is successful or not.
Specifically, if the tail exists, the head BMC of the head can communicate with the tail BMC in the tail, so as to determine that the power supply is successful, and if the tail does not exist or the tail BMC is not powered due to a failure, the head BMC may count as a power supply failure because no response of the tail BMC is obtained.
S13: if the starting up command is successful, judging whether the tail meets the starting up condition or not after the starting up command is received.
Specifically, if the machine head successfully supplies power to the machine tail, after the machine head receives the start-up instruction, whether the machine tail meets the start-up condition is judged, and the start-up condition may include whether the machine tail has AC power or whether the machine tail is already started up.
It should be noted that, in the embodiment of the present invention, the head only provides a small amount of power to the tail, and only can support the operation of the tail BMC in the tail, and cannot supply power to the entire tail, so that the tail needs to have a separate AC power as a power supply, and therefore, only when the tail has the AC power, there is enough power to start the tail, and only when the tail is not started, the tail can be started.
Specifically, the power-on command of the handpiece may be triggered by a user pressing a power-on key of the handpiece, or the BMC receives a corresponding digital power-on command signal. Because the corresponding boot key is also present at the tail and the priority is usually higher than that of the BMC software control, a situation that the user starts the tail in advance through the boot key of the tail may occur, and therefore, it is necessary to determine whether the tail is booted.
S14: and if the number of the tail is consistent with the number of the tail, controlling the tail to start.
Specifically, once the machine tail meets the starting condition, the machine tail is controlled to start, the machine head is controlled to control the machine tail to start, the starting time sequence of the machine tail is controlled by the machine head, and the machine tail is started after the machine head, so that the machine head can access each device in the machine tail.
S15: and after the machine tail is started, locally starting the machine.
Specifically, after the machine tail is determined to be started, the local machine head is started, so that the machine head is ensured to be started after the machine tail is started, and the problem that the machine head cannot access equipment in the machine tail due to the fact that the machine tail is started first is avoided.
Therefore, the head of the embodiment of the invention actively supplies power to the tail, so that the state of the tail can be determined, the power-on of the tail is controlled according to the state of the tail, the power-on control right of the tail is transferred to the head, the tail is ensured to be started before the head, the problem that the head cannot access the tail because the tail is started later than the head is solved, and the stability and the reliability are improved.
The embodiment of the invention discloses a specific machine head and machine tail communication method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Referring to fig. 2, specifically:
s21: after the power is on, the power is supplied to the machine tail through the POE port connected with the machine tail.
Specifically, the aircraft nose can utilize POE (Power Over Ethernet, active Ethernet) port to the tail BMC Power supply of tail, adopts POE net gape to connect aircraft nose and tail can communicate promptly, can supply Power again, need not to set up solitary Power supply port, and the one-tenth has many, has improved the port utilization ratio, has reduced the modification to existing equipment, has improved the suitability.
S22: judging whether power supply to the tail is successful or not;
s23: if the starting command is successful, judging whether the tail has the AC power or not after receiving the starting command.
Specifically, it is determined whether an AC power (Alternating Current) exists at the tail, and if so, it may be further determined whether the tail may be powered on, and if not, the tail may not have enough power to power on.
S24: if yes, judging whether the tail is started or not;
s25: if the tail is not started, controlling the tail to start;
s26: after the machine tail is started, the machine tail is locally started;
s27: and acquiring BMC version information and FRU information of the tail.
Specifically, after the communication connection is established between the machine head BMC of the machine head and the machine tail BMC of the machine tail, the machine head BMC can also acquire BMC version information and FRU information of the machine tail, so that a user can check the BMC version information and the FRU information of the machine tail at the machine head without checking the machine tail, and the machine head BMC is more convenient and faster.
S28: and if the tail power supply fails, no AC power exists or the tail power supply is not started, feeding back an abnormal alarm.
Specifically, if it is determined that power supply fails, no AC power exists or the machine is not started in any of the determination processes of S22, S23, and S24, it is declared that the machine cannot be normally started by the machine head control machine tail, an alarm message may be generated and fed back to the user, so that the user can know the occurrence of a fault as soon as possible to perform corresponding maintenance, and the alarm message may inform the user of the possible reason of the current fault, such as no response in communication or no AC power.
Specifically, in any of the above embodiments, the head communicates with the tail based on the TPC/IP protocol, so as to ensure the security of communication and ensure the communication speed.
Correspondingly, the embodiment of the present invention further discloses a head-tail communication system, which is applied to a head, and as shown in fig. 3, the system includes:
the tail power supply module 11 is used for supplying power to the tail after being electrified;
a power supply judging module 12, configured to judge whether power supply to the tail is successful;
the tail starting judgment module 13 is used for judging whether the tail meets the starting condition after receiving the starting instruction if the power supply judgment module 12 judges that the power supply is successful;
a tail start-up module 14, configured to control the tail start-up if the tail start-up judgment module 13 determines that the start-up condition is met;
and the machine head starting module 16 is used for local starting after the machine tail is started.
Therefore, the head of the embodiment of the invention actively supplies power to the tail, so that the state of the tail can be determined, the power-on of the tail is controlled according to the state of the tail, the power-on control right of the tail is transferred to the head, the tail is ensured to be started before the head, the problem that the head cannot access the tail because the tail is started later than the head is solved, and the stability and the reliability are improved.
Specifically, the tail power supply module 11 is specifically configured to supply power to the tail through a POE port connected to the tail.
Specifically, the tail start-up determining module 13 includes an AC power determining unit and a start-up determining unit; wherein,
the AC electricity judging unit is used for judging whether the tail has AC electricity or not;
the starting-up judging unit is used for judging whether the tail is started up or not if the tail exists;
the tail start-up module 14 is specifically configured to control the tail start-up if the start-up determining unit determines that the tail is not started up.
Specifically, the system can also comprise an alarm module; wherein,
and the warning module is used for feeding back an abnormal warning if the power supply judging module 12 judges that the power supply at the tail of the aircraft fails, the AC power judging unit judges that no AC power exists or the power-on judging unit judges that the aircraft is not powered on.
Specifically, the system also comprises an information acquisition module; wherein,
and the information acquisition module is used for acquiring BMC version information and FRU information of the tail.
Wherein the head-end can communicate with the tail-end based on the TPC/IP protocol.
In addition, the embodiment of the invention also discloses a head-tail communication device, which comprises:
a memory for storing a computer program;
a processor for executing a computer program to implement the head-end-to-tail communication method as described above.
In addition, the embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to realize the machine head and tail communication method.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely 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. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
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 technical content provided by the present invention is described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the above description of the examples is only used to help understanding the method of the present invention and the core idea thereof; 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 machine head and machine tail communication method is applied to a machine head and comprises the following steps:
after power is on, power is supplied to the tail;
judging whether the power supply to the tail is successful or not;
if the starting-up command is successful, judging whether the tail meets the starting-up condition or not after receiving the starting-up command;
if yes, controlling the machine tail to start up;
and after the machine tail is started, locally starting the machine.
2. The method for machine head-tail communication according to claim 1, wherein the process of supplying power to the machine tail comprises:
and supplying power to the tail through a POE port connected with the tail.
3. The method according to claim 2, wherein the step of determining whether the tail meets the boot condition comprises:
judging whether the tail has AC power or not;
if yes, judging whether the tail is started or not;
if yes, controlling the starting process of the machine tail, comprising the following steps:
and if the machine tail is not started, controlling the machine tail to start.
4. The head-end-to-tail communication method according to claim 3, further comprising:
and if the power supply of the tail fails, no AC power exists or the tail is not started, feeding back an abnormal alarm.
5. The head-end-to-tail communication method according to any one of claims 1 to 4, further comprising:
and acquiring BMC version information and FRU information of the tail.
6. The head-end-to-tail communication method according to claim 5, wherein the communication with the tail is based on a TPC/IP protocol.
7. The utility model provides a head-tail communication system which characterized in that is applied to the aircraft nose, includes:
the tail power supply module is used for supplying power to the tail after being electrified;
the power supply judging module is used for judging whether power supply to the tail is successful or not;
the tail starting judgment module is used for judging whether the tail meets the starting condition or not after receiving a starting instruction if the power supply judgment module judges that the power supply is successful;
the tail starting-up module is used for controlling the tail to start up if the tail starting-up judging module judges that the starting-up conditions are met;
and the machine head starting module is used for starting up the machine head locally after the machine tail is started up.
8. The machine head and tail communication method according to claim 7, wherein the machine tail power supply module is specifically configured to supply power to the machine tail through a POE port connected to the machine tail if the machine tail power supply determination module determines that power can be supplied.
9. A head-tail communication device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the head-to-tail communication method as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the head-to-tail communication method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111093038.4A CN113852472A (en) | 2021-09-17 | 2021-09-17 | Machine head and tail communication method, system and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111093038.4A CN113852472A (en) | 2021-09-17 | 2021-09-17 | Machine head and tail communication method, system and device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113852472A true CN113852472A (en) | 2021-12-28 |
Family
ID=78974313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111093038.4A Withdrawn CN113852472A (en) | 2021-09-17 | 2021-09-17 | Machine head and tail communication method, system and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113852472A (en) |
-
2021
- 2021-09-17 CN CN202111093038.4A patent/CN113852472A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10866624B2 (en) | Power management method of a system made of devices powered over data cable | |
US8707290B2 (en) | Firmware update in an information handling system employing redundant management modules | |
US7080285B2 (en) | Computer, system management support apparatus and management method | |
US7653841B2 (en) | Information processing apparatus and information notification method therefor, and control program | |
CN111045866B (en) | BMC fault processing method and device, electronic equipment and storage medium | |
CN116107819A (en) | Server start-up fault detection system, method, device and medium | |
US20150019671A1 (en) | Information processing system, trouble detecting method, and information processing apparatus | |
CN114116280A (en) | Interactive BMC self-recovery method, system, terminal and storage medium | |
CN117251333A (en) | Method, device, equipment and storage medium for acquiring hard disk information | |
CN112732412B (en) | Service configuration file processing method and device, storage medium and electronic equipment | |
US8677323B2 (en) | Recording medium storing monitoring program, monitoring method, and monitoring system | |
CN113852472A (en) | Machine head and tail communication method, system and device and computer readable storage medium | |
CN106411643B (en) | BMC detection method and device | |
CN115562900B (en) | AMD server system installation power-off processing method, device, equipment and medium | |
CN113867815B (en) | Method for monitoring server suspension and automatically restarting and server applying same | |
CN114138567A (en) | Substrate management control module maintenance method, device, equipment and storage medium | |
CN111858183B (en) | Restarting method and device of electronic equipment | |
CN111158944B (en) | Information processing method, power supply system and electronic equipment system | |
KR101351703B1 (en) | Terminal device and power control device | |
CN111522718A (en) | Server power supply system and server | |
JPH08329006A (en) | Fault information system | |
CN111913551A (en) | Control method for resetting baseboard management controller | |
CN114442786B (en) | Power failure warning and recovering method, device and storage medium | |
CN117573404A (en) | Vehicle chip and protection method thereof | |
CN116126467A (en) | Container application fault recovery method, device, equipment and storage medium |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20211228 |