CN110798381B - Method, device and equipment for verifying KCS channel communication stability - Google Patents
Method, device and equipment for verifying KCS channel communication stability Download PDFInfo
- Publication number
- CN110798381B CN110798381B CN201911025082.4A CN201911025082A CN110798381B CN 110798381 B CN110798381 B CN 110798381B CN 201911025082 A CN201911025082 A CN 201911025082A CN 110798381 B CN110798381 B CN 110798381B
- Authority
- CN
- China
- Prior art keywords
- mode
- checking
- static mode
- bmc network
- network
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000004891 communication Methods 0.000 title claims abstract description 36
- 230000003068 static effect Effects 0.000 claims abstract description 106
- 238000012360 testing method Methods 0.000 claims abstract description 5
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims abstract 14
- 238000004590 computer program Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000007726 management method Methods 0.000 description 8
- 238000013112 stability test Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001351 cycling effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/16—Implementing security features at a particular protocol layer
- H04L63/168—Implementing security features at a particular protocol layer above the transport layer
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method, a device, equipment and a computer readable storage medium for verifying the communication stability of a KCS channel, which are applied to a remote controller and comprise the following steps: transmitting the script with the static mode to a tested machine through an SSH protocol, setting the BMC network to be static through a KCS channel by the tested machine, and setting a network segment IP; checking whether the static mode is successfully set through the IPMI Over LAN; if the test is successful, transmitting the script for setting the dynamic mode to the tested machine through an SSH protocol, and setting the mode of the BMC network to be dynamic by the tested machine through a KCS channel; checking whether the dynamic mode is successfully set through the IPMI Over LAN; and if the KCS channel is successful, circularly statically and dynamically and alternately setting the BMC network mode until the preset number of circulation is reached, and judging that the KCS channel is stable. The method, the device, the equipment and the computer readable storage device provided by the invention can effectively check the stability of the KCS channel.
Description
Technical Field
The present invention relates to the technical field of IPMI management systems, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for verifying KCS channel communication stability.
Background
Bmc (baseboard Management controller) is a special chip/controller, called server processor or baseboard Management controller; is based on the heart of the IPMI (intelligent management platform interface) system. In the IPMI management platform, the management of each managed device by the system management software is realized by communicating with the BMC. It mainly supports three system interface methods: KCS (keyboard Controller Style), SMIC (System Management Interface Controller), and BT (Block transfer). The specific method is determined by an SMBIOS table, and a KCS channel is generally used.
The user can monitor the physical characteristics of the server, such as temperature, voltage, fan working state, power supply, cabinet intrusion and the like, by utilizing the IPMI, so that the stability of KCS channel communication is very important for the IPMI management platform, and the stability is about the whole operation state of the server and even the regulation and control operation of the whole machine room.
From the above, it can be seen how to verify the stability of KCS channel is the problem to be solved at present.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a computer readable storage medium for verifying the communication stability of a KCS channel, which solve the problem that the prior art lacks a method for verifying the KCS channel stability.
In order to solve the above technical problem, the present invention provides a method for verifying KCS channel communication stability, which is applied to a remote controller, and comprises: s11: transmitting the script with the static mode to a tested machine through an SSH protocol so that the tested machine can set the BMC network into the static mode through a KCS channel and set a network segment IP; s12: checking whether the static mode of the BMC network is successfully set through the IPMI Over LAN; s13: if the static mode of the BMC network is successfully set, transmitting a script for setting a dynamic mode to the tested machine through the SSH protocol so that the tested machine can set the mode of the BMC network to be the dynamic mode through the KCS channel; s14: checking whether the dynamic mode of the BMC network is successfully set through the IPMI Over LAN; s15: if the dynamic mode of the BMC network is successfully set, the step S11 to the step S15 are cycled until the cycle number is equal to a preset number, and it is determined that the KCS channel is stable.
Preferably, the script for setting the static mode is transmitted to the tested machine through an SSH protocol, so that the tested machine sets the BMC network to the static mode through a KCS channel, and setting the network segment IP includes:
creating the script for setting the static mode;
copying the script with the static mode to the tested machine through an SCP copying command;
logging in the tested machine through the SSH protocol so that the tested machine can execute the script for setting the static mode, setting the BMC network into the static mode through the KCS channel, and setting the network segment IP.
Preferably, the checking whether the static mode of the BMC network is successfully set through the IPMI Over LAN includes:
s31: if the static mode of the BMC network is not successfully set, recording the current checking frequency i, and judging whether the current checking frequency i is smaller than the preset checking frequency;
s32: if the current checking frequency i is less than the preset checking frequency, checking whether the static mode of the BMC network is successfully set again through the IPMI Over LAN after a preset time interval;
s33: if the static mode of the BMC network is not successfully set, updating the current checking time i to i + 1;
s34: judging whether the current checking times are smaller than the preset checking times or not;
s35: if the current checking times are less than the preset checking times, returning to execute the step S32;
s36: and if the current checking times are not less than the preset checking times, judging that the static mode of the BMC network is not successfully set, and judging that the KCS channel is unstable.
Preferably, each time the static mode of the BMC network is successfully set, the transmitting a script for setting a dynamic mode to the tested machine through the SSH protocol, so that the tested machine further includes, after setting the mode of the BMC network to the dynamic mode through the KCS channel:
and logging in the BMC IP, and reading and storing the IPMI Main process information.
Preferably, if the dynamic mode setting of the BMC network is successful, the step S11 to the step S15 are cycled until the number of cycling times is equal to a preset number, and the determining that the KCS channel is stable includes:
judging whether the IPMI Main process is restarted or not according to the stored IPMI Main process information;
and if the IPMI Main process is restarted, judging that the restart of the IPMI Main process can be reproduced through switching the work mode of the BMC network.
The invention also provides a device for verifying the communication stability of the KCS channel, which is applied to a remote controller and comprises the following components:
the first transmission module is used for transmitting the script with the static mode to the tested machine through an SSH protocol so that the tested machine can set the BMC network into the static mode through a KCS channel and set a network segment IP;
the first checking module is used for checking whether the static mode of the BMC network is successfully set through the IPMI Over LAN;
the second transmission module is used for transmitting the script for setting the dynamic mode to the tested machine through the SSH protocol if the static mode of the BMC network is successfully set, so that the tested machine can set the mode of the BMC network to the dynamic mode through the KCS channel;
the second checking module is used for checking whether the dynamic mode of the BMC network is successfully set through the IPMI Over LAN;
and the circulating module is used for circularly executing the starting steps of the first transmitting module, the first detecting module, the second transmitting module, the second checking module and the circulating module if the dynamic mode of the BMC network is successfully set until the circulating frequency is equal to a preset frequency, and judging that the KCS channel is stable.
Preferably, the first transfer module includes:
a creating unit configured to create the script for setting the static mode;
the copying unit is used for copying the script with the static mode to the tested machine through an SCP copying command;
and the login unit is used for logging in the tested machine through the SSH protocol so that the tested machine can execute the script for setting the static mode, the BMC network is set to be in the static mode through the KCS channel, and the network segment IP is set.
Preferably, the first checking module comprises:
the recording unit is used for recording the current checking frequency i if the static mode of the BMC network is not successfully set, and judging whether the current checking frequency i is smaller than the preset checking frequency or not;
the rechecking unit is used for rechecking whether the static mode of the BMC network is successfully set through the IPMI Over LAN after a preset time interval if the current checking frequency i is less than the preset checking frequency;
an updating unit, configured to update the current checking time i to i +1 if the static mode of the BMC network is not successfully set;
the judging unit is used for judging whether the current checking times are smaller than the preset checking times or not;
the execution unit is used for returning to the step of executing the rechecking unit if the current checking times are less than the preset checking times;
and the judging unit is used for judging that the static mode of the BMC network is not successfully set and judging that the KCS channel is unstable if the current checking frequency is not less than the preset checking frequency.
The invention also provides a device for verifying the communication stability of the KCS channel, which comprises:
a memory for storing a computer program; a processor for implementing the steps of one of the above-described methods of verifying KCS channel communication stability when executing the computer program.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described method of verifying KCS channel communication stability.
According to the method for verifying the communication stability of the KCS channel, the remote controller transmits the script with the static mode to the tested machine through the SSH protocol, so that the script with the static mode is executed on the tested machine, the BMC network is set to be in the static mode through the KCS channel, and the IP of other network segments is set. The remote controller checks whether the static mode of the BMC network is successfully set through the IPMI Over LAN, and if the static mode of the BMC network is successfully set, the remote controller transmits a script for setting the dynamic mode to the tested machine through an SSH protocol. And the tested machine sets the BMC network to be in a dynamic mode through the KCS channel. And after the setting of the dynamic mode of the BMC network is finished, checking whether the setting of the dynamic mode of the BMC network is successful through the IPMI Over LAN. If the dynamic mode of the BMC network is successfully set, the steps are circulated to set the BMC network to be the static mode again, and the KCS channel is checked by circulating for the preset times. And when the BMC network can successfully set a static mode and a dynamic mode in each cycle, judging that the KCS channel is stable. In practical application, if the static mode setting is unsuccessful, a great influence is caused, and the troubleshooting is time-consuming and labor-consuming. In practical application, the static mode of the BMC network is generally set from the dynamic mode, so that the method provided by the invention checks the stability of the KCS channel by alternately setting the mode of the BMC network, thereby avoiding the phenomenon that the IPMI command cannot be executed in a band due to the failure of the KCS channel.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a flowchart of a first embodiment of a method for verifying the communication stability of a KCS channel provided in the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for verifying the communication stability of a KCS channel according to the present invention;
FIG. 3 is a flowchart illustrating a third embodiment of a method for verifying the communication stability of a KCS channel according to the present invention;
fig. 4 is a block diagram of a device for verifying KCS channel communication stability according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a method, a device, equipment and a computer readable storage medium for verifying the communication stability of a KCS channel, which can check the stability of the KCS channel, thereby effectively avoiding the phenomenon that an in-band IPMI instruction cannot be executed due to the instability of the KCS channel.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 illustrating a method for verifying KCS channel communication stability according to a first embodiment of the present invention. The embodiment is applied to a remote controller, and the specific operation steps are as follows:
step S101: transmitting the script with the static mode to a tested machine through an SSH protocol so that the tested machine can set the BMC network into the static mode through a KCS channel and set a network segment IP;
pre-building a testing environment of a KCS channel, wherein the system IP, a user name and a password of the tested machine are required; BMC dynamic IP, user name, password and running script.
In this embodiment, first, the remote controller creates a script for setting a static IP, and copies the script for setting the static IP to the tested machine by using an SCP copy command; and logging in the tested machine by using the SSH protocol, executing the script for setting the static IP, setting the BMC network to be in a static mode by the tested machine through the KCS channel, and setting the IP of other network segments.
Step S102: checking whether the static mode of the BMC network is successfully set through the IPMI Over LAN;
and if the static mode of the BMC network is not successfully set, stopping running a KCS stability test flow, and judging that the KCS channel is unstable.
Step S103: if the static mode of the BMC network is successfully set, transmitting a script for setting a dynamic mode to the tested machine through the SSH protocol so that the tested machine can set the mode of the BMC network to be the dynamic mode through the KCS channel;
if the static mode of the BMC network is successfully set, the remote controller creates a script for setting a Dynamic Host Configuration Protocol (DHCP) mode, and copies the script for setting the DHCP mode to the tested machine by adopting the SCP copy command; and logging in the tested machine by using the SSH protocol, executing the script for setting the DHCP mode, and setting the BMC network to be the DHCP mode by the tested machine through the KCS channel.
Step S104: checking whether the dynamic mode of the BMC network is successfully set through the IPMI Over LAN;
and if the dynamic mode of the BMC network is not successfully set, stopping running a KCS stability test flow, and judging that the KCS channel is unstable.
Step S105: if the dynamic mode of the BMC network is successfully set, the step S101 to the step S105 are circulated until the circulation frequency is equal to a preset frequency, and the KCS channel is judged to be stable.
In this embodiment, the remote controller transmits a script for setting the BMC mode to the machine under test through the SSH service; the tested machine sets the BMC network to be in a static mode through the KCS channel, and sets I of other network segments. And then the remote controller checks whether the setting is successful through the IPMI Over LAN, transmits a script for setting a DHCP mode to the tested machine through SSH service after the setting is successful, then sets a BMC network mode to be DHCP through the KCS channel, checks whether the setting is successful through the IPMI Over LAN, and if the setting is successful, then sets a static IP, and repeats the preset cycle times such as 50 times, 100 times, 150 times and the like in a circulating way to check the communication stability of the KCS channel and the IPMI Over LAN.
Based on the above embodiments, in this embodiment, the number of times that whether the static mode of the BMC network is successfully set by using the IPMI Over LAN may be set to multiple times. If the first check is not successfully set, judging whether the check times are less than the preset check times; if the static mode is smaller than the preset time, the preset time interval is set, and if the static mode is successfully set, the IPMI Over LAN is used again after 10 seconds and 20 seconds; and if the examination setting is successful, stopping the examination. If the current check is still not successfully set, judging whether the current check frequency is less than the preset check frequency again, and if the current check frequency is less than the preset check frequency, checking whether the static mode of the BMC network is successfully set again after a preset time interval; and if the current checking times are not less than the preset checking times, no checking is performed, and the static mode setting failure of the BMC network is judged.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for verifying KCS channel communication stability according to a second embodiment of the present invention. The embodiment is applied to a remote controller, and the specific operation steps are as follows:
step S201: transmitting the script with the static mode to a tested machine through an SSH protocol so that the tested machine can set the BMC network into the static mode through a KCS channel and set a network segment IP;
step S202: checking whether the static mode of the BMC network is successfully set through the IPMI Over LAN;
step S203: if the static mode of the BMC network is not successfully set, recording the current checking frequency i, and judging whether the current checking frequency i is smaller than the preset checking frequency;
step S204: if the current checking frequency i is less than the preset checking frequency, checking whether the static mode of the BMC network is successfully set again through the IPMI Over LAN after a preset time interval;
step S205: if the static mode of the BMC network is not successfully set, updating the current checking time i to i + 1;
step S206: judging whether the current checking times are smaller than the preset checking times or not;
step S207: if the current checking times are less than the preset checking times, returning to execute the step S204;
step S208: and if the current checking times are not less than the preset checking times, judging that the static mode of the BMC network is not successfully set, and judging that the KCS channel is unstable.
In this embodiment, when the number of times of checking whether the static mode of the BMC network is successfully set by the IPMI Over LAN is set to multiple times, the false detection probability is reduced, and the accuracy of the KCS channel stability check result is improved.
Based on the above embodiments, in this embodiment, the number of times that whether the dynamic mode of the BMC network is successfully set by using the IPMI Over LAN may be set to multiple times. In this embodiment, the remote controller may further log in the BMC IP and read the IPMI Main process information each time the operating mode of the BMC network is changed from static to dynamic, so as to determine whether the IPMI Main process is restarted after the KCS channel stability test is finished.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for verifying KCS channel communication stability according to a third embodiment of the present invention. The embodiment is applied to a remote controller, and the specific operation steps are as follows:
step S301: transmitting the script with the static mode to a tested machine through an SSH protocol so that the tested machine can set the BMC network into the static mode through a KCS channel and set a network segment IP;
step S302: checking whether the static mode of the BMC network is successfully set through the IPMI Over LAN;
step S303: if the static mode of the BMC network is successfully set, transmitting a script for setting a dynamic mode to the tested machine through the SSH protocol so that the tested machine can set the mode of the BMC network to be the dynamic mode through the KCS channel;
step S304: logging in a BMC IP, reading and storing IPMI Main process information;
step S305: checking whether the dynamic mode of the BMC network is successfully set through the IPMI Over LAN;
step S306: if the dynamic mode of the BMC network is not successfully set, recording the current checking time j, and judging whether the current checking time j is less than the preset checking time;
step S307: if the current checking time j is less than the preset checking time, checking whether the dynamic mode of the BMC network is successfully set again through the IPMI Over LAN after a preset time interval;
step S308: if the dynamic mode of the BMC network is successfully set, the step S301 to the step S308 are circulated until the circulation frequency is equal to a preset frequency, and the KCS channel is judged to be stable;
step S309: judging whether the IPMI Main process is restarted or not according to the stored IPMI Main process information;
step S310: and if the IPMI Main process is restarted, judging that the restart of the IPMI Main process can be reproduced through switching the work mode of the BMC network.
When the IPMI Over LAN is used for checking whether the static mode or the dynamic mode of the BMC network is successfully set, if the first check is not successfully set, judging whether the check frequency is less than the preset check frequency; if the time length is less than the preset time length, checking whether the static mode or the dynamic mode of the BMC network is successfully set by using the IPMI Over LAN again; and if the examination setting is successful, stopping the examination. If the current check is still not successfully set, judging whether the current check frequency is less than the preset check frequency again, and if the current check frequency is less than the preset check frequency, checking whether the static mode or the dynamic mode of the BMC network is successfully set again after a preset time interval; and if the current checking times are not less than the preset checking times, no checking is performed, and the static mode or the dynamic mode of the BMC network is judged to be failed to be set.
The embodiment can realize the static and dynamic mode switching of the BMC network through the KCS channel of the tested machine, and check whether the setting is successful and effective through the IPMI Over Lan, and can be used for checking the stability of the KCS channel and the IPMI Over Lan, which is important for the normal work of the whole server. Meanwhile, the script can check whether the IPMI Main process is restarted or not, and the influence of the switching working mode on the BMC IPMI Main process is verified.
Referring to fig. 4, fig. 4 is a block diagram illustrating a structure of an apparatus for verifying KCS channel communication stability according to an embodiment of the present invention; the specific device may include:
the first transmission module 100 is configured to transmit the script with the static mode to the tested machine through an SSH protocol, so that the tested machine sets the BMC network as the static mode through a KCS channel and sets the network segment IP;
a first checking module 200, configured to check whether the static mode of the BMC network is successfully set through the IPMI Over LAN;
a second transmitting module 300, configured to transmit a script for setting a dynamic mode to the tested machine through the SSH protocol if the static mode of the BMC network is successfully set, so that the tested machine sets the mode of the BMC network to the dynamic mode through the KCS channel;
a second checking module 400, configured to check whether the setting of the dynamic mode of the BMC network is successful through the IPMI Over LAN;
a loop module 500, configured to, if the dynamic mode of the BMC network is successfully set, loop the starting steps of the first transmitting module, the first detecting module, the second transmitting module, the second checking module, and the loop module until the loop frequency is equal to a preset frequency, and determine that the KCS channel is stable.
The apparatus for KCS channel communication stability of the present embodiment is used for implementing the aforementioned method for KCS channel communication stability, and therefore specific implementation manners in the apparatus for KCS channel communication stability can be seen in the foregoing embodiment parts of the method for KCS channel communication stability, for example, the first transmission module 100, the first checking module 200, the second transmission module 300, the second checking module 400, and the circulation module 500, which are respectively used for implementing steps S101, S102, S103, S104, and S105 in the above method for KCS channel communication stability, so specific implementation manners thereof can refer to the descriptions of the corresponding respective part embodiments, and are not described herein again.
The embodiment of the present invention further provides a device for KCS channel communication stability, including: a memory for storing a computer program; a processor for implementing the steps of a method for KCS channel communication stability described above when executing the computer program.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-mentioned method for KCS channel communication stability.
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.
The method, apparatus, device and computer readable storage medium for KCS channel communication stability provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. A method for verifying the communication stability of a KCS channel is applied to a remote controller and comprises the following steps:
s11: transmitting the script with the static mode to a tested machine through an SSH protocol so that the tested machine can set the BMC network into the static mode through a KCS channel and set a network segment IP;
s12: checking whether the static mode of the BMC network is successfully set through the IPMI Over LAN;
s13: if the static mode of the BMC network is successfully set, transmitting a script for setting a dynamic mode to the tested machine through the SSH protocol so that the tested machine can set the mode of the BMC network to be the dynamic mode through the KCS channel;
s14: checking whether the dynamic mode of the BMC network is successfully set through the IPMI Over LAN;
s15: if the dynamic mode of the BMC network is successfully set, the step S11 to the step S15 are cycled until the cycle number is equal to a preset number, and it is determined that the KCS channel is stable.
2. The method of claim 1, wherein the static mode setting script is transmitted to the tested machine through an SSH protocol, so that the tested machine sets the BMC network into a static mode through a KCS channel, and the setting of the network segment IP comprises:
creating the script for setting the static mode;
copying the script with the static mode to the tested machine through an SCP copying command;
logging in the tested machine through the SSH protocol so that the tested machine can execute the script for setting the static mode, setting the BMC network into the static mode through the KCS channel, and setting the network segment IP.
3. The method of claim 1, wherein the checking whether the static mode of the BMC network is set successfully by the IPMI Over LAN comprises:
s31: if the static mode of the BMC network is not successfully set, recording the current checking frequency i, and judging whether the current checking frequency i is smaller than the preset checking frequency;
s32: if the current checking frequency i is less than the preset checking frequency, checking whether the static mode of the BMC network is successfully set again through the IPMI Over LAN after a preset time interval;
s33: if the static mode of the BMC network is not successfully set, updating the current checking frequency i to i = i + 1;
s34: judging whether the current checking times are smaller than the preset checking times or not;
s35: if the current checking times are less than the preset checking times, returning to execute the step S32;
s36: and if the current checking times are not less than the preset checking times, judging that the static mode of the BMC network is not successfully set, and judging that the KCS channel is unstable.
4. The method of claim 1, wherein each time the dynamic mode setting of the BMC network is successful, transmitting a dynamic mode setting script to the machine under test through the SSH protocol, so that the machine under test sets the dynamic mode of the BMC network to the dynamic mode through the KCS channel further comprises:
and logging in the BMC IP, and reading and storing the IPMI Main process information.
5. The method of claim 4, wherein if the dynamic mode setting of the BMC network is successful, the looping through the steps S11 to S15 until the loop number is equal to a preset number, and determining that the KCS channel is stable comprises:
judging whether the IPMI Main process is restarted or not according to the stored IPMI Main process information;
and if the IPMI Main process is restarted, judging that the restart of the IPMI Main process can be reproduced through switching the work mode of the BMC network.
6. An apparatus for verifying KCS channel communication stability, applied to a remote controller, comprises:
the first transmission module is used for transmitting the script with the static mode to the tested machine through an SSH protocol so that the tested machine can set the BMC network into the static mode through a KCS channel and set a network segment IP;
the first checking module is used for checking whether the static mode of the BMC network is successfully set through the IPMI Over LAN;
the second transmission module is used for transmitting the script for setting the dynamic mode to the tested machine through the SSH protocol if the static mode of the BMC network is successfully set, so that the tested machine can set the mode of the BMC network to the dynamic mode through the KCS channel;
the second checking module is used for checking whether the dynamic mode of the BMC network is successfully set through the IPMI Over LAN;
and the circulating module is used for circularly executing the starting steps of the first transmitting module, the first checking module, the second transmitting module, the second checking module and the circulating module if the dynamic mode of the BMC network is successfully set until the circulating frequency is equal to a preset frequency, and judging that the KCS channel is stable.
7. The apparatus of claim 6, wherein the first transmission module comprises:
a creating unit configured to create the script for setting the static mode;
the copying unit is used for copying the script with the static mode to the tested machine through an SCP copying command;
and the login unit is used for logging in the tested machine through the SSH protocol so that the tested machine can execute the script for setting the static mode, the BMC network is set to be in the static mode through the KCS channel, and the network segment IP is set.
8. The apparatus of claim 6, wherein the first checking module is followed by:
the recording unit is used for recording the current checking frequency i if the static mode of the BMC network is not successfully set, and judging whether the current checking frequency i is smaller than the preset checking frequency or not;
the rechecking unit is used for rechecking whether the static mode of the BMC network is successfully set through the IPMI Over LAN after a preset time interval if the current checking frequency i is less than the preset checking frequency;
an updating unit, configured to update the current checking time i to i = i +1 if the static mode of the BMC network is not successfully set;
the judging unit is used for judging whether the current checking times are smaller than the preset checking times or not;
the execution unit is used for returning to the step of executing the rechecking unit if the current checking times are less than the preset checking times;
and the judging unit is used for judging that the static mode of the BMC network is not successfully set and judging that the KCS channel is unstable if the current checking frequency is not less than the preset checking frequency.
9. An apparatus for verifying KCS channel communication stability, comprising:
a memory for storing a computer program;
a processor for implementing the steps of a method of verifying KCS channel communication stability as claimed in any one of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of a method of verifying KCS channel communication stability according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911025082.4A CN110798381B (en) | 2019-10-25 | 2019-10-25 | Method, device and equipment for verifying KCS channel communication stability |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911025082.4A CN110798381B (en) | 2019-10-25 | 2019-10-25 | Method, device and equipment for verifying KCS channel communication stability |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110798381A CN110798381A (en) | 2020-02-14 |
CN110798381B true CN110798381B (en) | 2021-07-16 |
Family
ID=69441306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911025082.4A Active CN110798381B (en) | 2019-10-25 | 2019-10-25 | Method, device and equipment for verifying KCS channel communication stability |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110798381B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111367739B (en) * | 2020-02-29 | 2023-01-10 | 苏州浪潮智能科技有限公司 | USB port testing method and system based on server cluster |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902355A (en) * | 2009-05-27 | 2010-12-01 | 宏正自动科技股份有限公司 | Server, computer system, and method for monitoring computer system |
CN102439888A (en) * | 2011-09-05 | 2012-05-02 | 华为技术有限公司 | Rapid channel interconnection link monitoring method, device and system |
CN105721206A (en) * | 2016-01-29 | 2016-06-29 | 浪潮电子信息产业股份有限公司 | Method for setting BMC (baseboard management controller) network parameters to be immediately effective by BIOS (basic input/output system) |
CN105721534A (en) * | 2014-12-17 | 2016-06-29 | 广达电脑股份有限公司 | System and method for network-based iscsi boot parameter deployment |
CN110069373A (en) * | 2019-04-24 | 2019-07-30 | 苏州浪潮智能科技有限公司 | A kind of BMC automatic test approach and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7340538B2 (en) * | 2003-12-03 | 2008-03-04 | Intel Corporation | Method for dynamic assignment of slot-dependent static port addresses |
US20070055793A1 (en) * | 2005-08-03 | 2007-03-08 | Wellsyn Technology, Inc. | System of managing peripheral interfaces in IPMI architecture and method thereof |
US20070226377A1 (en) * | 2006-02-09 | 2007-09-27 | Dell Products L.P. | Detecting parameters of a system UART and matching those parameters in a serial-over-LAN (SOL) UART |
CN108509223B (en) * | 2018-03-15 | 2021-09-14 | 联想(北京)有限公司 | Data processing method, device and system and storage medium |
CN109614259A (en) * | 2018-11-28 | 2019-04-12 | 郑州云海信息技术有限公司 | A kind of system and method for server PCIe device positioning failure reason |
CN109510742B (en) * | 2019-01-25 | 2022-02-18 | 郑州云海信息技术有限公司 | Server network card remote test method, device, terminal and storage medium |
-
2019
- 2019-10-25 CN CN201911025082.4A patent/CN110798381B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902355A (en) * | 2009-05-27 | 2010-12-01 | 宏正自动科技股份有限公司 | Server, computer system, and method for monitoring computer system |
CN102439888A (en) * | 2011-09-05 | 2012-05-02 | 华为技术有限公司 | Rapid channel interconnection link monitoring method, device and system |
CN105721534A (en) * | 2014-12-17 | 2016-06-29 | 广达电脑股份有限公司 | System and method for network-based iscsi boot parameter deployment |
CN105721206A (en) * | 2016-01-29 | 2016-06-29 | 浪潮电子信息产业股份有限公司 | Method for setting BMC (baseboard management controller) network parameters to be immediately effective by BIOS (basic input/output system) |
CN110069373A (en) * | 2019-04-24 | 2019-07-30 | 苏州浪潮智能科技有限公司 | A kind of BMC automatic test approach and device |
Also Published As
Publication number | Publication date |
---|---|
CN110798381A (en) | 2020-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110879712B (en) | Cloud data center physical host installation method and related device | |
WO2016062002A1 (en) | Connection management method and apparatus, electrical device | |
CN107623698B (en) | Method and device for remotely debugging network equipment | |
US9241007B1 (en) | System, method, and computer program for providing a vulnerability assessment of a network of industrial automation devices | |
CN109510742B (en) | Server network card remote test method, device, terminal and storage medium | |
CN103812728A (en) | Network diagnostic method, system and router | |
US20150319072A1 (en) | Methods, systems, and computer readable media for providing fuzz testing functionality | |
CN111030892B (en) | Method, equipment and medium for testing network function in BMC NCSI adaptive mode | |
JP2005515550A (en) | Credential management and network query | |
CN106776346B (en) | Test method and device of CCMTS (China center testing System) equipment | |
CN110798381B (en) | Method, device and equipment for verifying KCS channel communication stability | |
CN111416882A (en) | BMC IP setting method and device, electronic equipment and system | |
US11277319B2 (en) | Diagnosing network | |
CN111385166A (en) | Network switch testing method, device, equipment and storage medium | |
CN107181606B (en) | Method and apparatus for controlling network nodes | |
EP3970045A1 (en) | Minimizing production disruption through a scan rule engine | |
KR102011469B1 (en) | Method and apparatus for communication status measuring in naval combat system | |
CN116974941A (en) | Testing method for management interface function of intelligent platform of baseboard management controller | |
CN116781564A (en) | Network detection method and system for container cloud platform | |
CN113608932B (en) | Database drilling method, device, equipment and storage medium | |
CN109450728B (en) | Cabinet server control method, device, equipment and storage medium | |
US7032034B1 (en) | Method and apparatus for simulating large scalable networks | |
CN114338464A (en) | Fault diagnosis method, device, equipment and computer readable storage medium | |
KR102408172B1 (en) | Method and device of providing a solution for network interruption by remote automatic network analysis under network interruption | |
US20050268122A1 (en) | Devices and methods for validating network connections |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |