CN111030892B - Method, equipment and medium for testing network function in BMC NCSI adaptive mode - Google Patents

Method, equipment and medium for testing network function in BMC NCSI adaptive mode Download PDF

Info

Publication number
CN111030892B
CN111030892B CN201911366068.0A CN201911366068A CN111030892B CN 111030892 B CN111030892 B CN 111030892B CN 201911366068 A CN201911366068 A CN 201911366068A CN 111030892 B CN111030892 B CN 111030892B
Authority
CN
China
Prior art keywords
bmc
mode
ncsi
mac address
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
Application number
CN201911366068.0A
Other languages
Chinese (zh)
Other versions
CN111030892A (en
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 CN201911366068.0A priority Critical patent/CN111030892B/en
Publication of CN111030892A publication Critical patent/CN111030892A/en
Application granted granted Critical
Publication of CN111030892B publication Critical patent/CN111030892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention discloses a method, equipment and a storage medium for testing network functions in a BMC NCSI adaptive mode, wherein the method comprises the following steps: recording the IP, MAC address and network mode of the special port in the self-adaptive mode; unbinding the shared link of the BMC, and detecting whether the IP, the MAC address and the network mode of the special port change; responding to the fact that the IP, the MAC address and the network mode of the special port are not changed, and detecting whether the IP and the MAC address of the shared port are different from those of the special port or not; detecting whether the BMC webpage can be logged in or not in response to the fact that the IP and MAC address of the shared port are different from those of the special port; and responding to the fact that the BMC webpage can be logged in, and confirming that the network function in the BMC NCSI self-adaptive mode is normal. The scheme provided by the invention can conveniently and effectively complete the BMC NCSI self-adaptive test through the detection of the special port and the shared port, has stronger usability, greatly saves the test time and improves the test efficiency.

Description

Method, equipment and medium for testing network function in BMC NCSI adaptive mode
Technical Field
The present invention relates to the field of testing, and more particularly, to a method, device and readable medium for testing network functions in a BMC NCSI adaptive mode.
Background
The existing Auto function test is realized by logging in a BMC (baseboard management controller) Web page, starting a network aggregation function and selecting a binding interface. The specific operation is that the network cable of the private port or the shared port is respectively pulled out, and the BMC can be accessed through any network port so as to be considered to be normal in network connectivity. At present, no BMC Web page needs to be logged in a client site for setting, so that the prior testing method is not suitable for the client site. In addition, the BMC can be accessed through any network port, so that the network connectivity is normal, and the stability of the network in the Auto mode cannot be ensured. If the network is interrupted on the spot of the client, the use of the client is seriously influenced. The existing Auto network function test method is not perfect and can not effectively ensure the network stability.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a device, and a medium for testing a network function in a BMC NCSI adaptive mode, which can conveniently and effectively complete a BMC NCSI adaptive test by unbinding a shared link of a BMC and respectively detecting an IP, an MAC address, and a network mode of a private port and a shared port, and have strong usability, thereby greatly saving test time and improving test efficiency.
Based on the above object, an aspect of the embodiments of the present invention provides a method for testing network functions in a BMC NCSI adaptive mode, including the following steps: recording the IP, MAC address and network mode of the special port in the self-adaptive mode; unbinding the shared link of the BMC, and detecting whether the IP, the MAC address and the network mode of the special port change; responding to that the IP, the MAC address and the network mode of the special port are not changed, and detecting whether the IP and the MAC address of the shared port are different from those of the special port or not; detecting whether the BMC webpage can be logged in or not in response to the fact that the IP and the MAC address of the shared port are different from those of the special port; and responding to the fact that the BMC webpage can be logged in, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
In some embodiments, in response to being able to log into the BMC web page, confirming that network function in BMC NCSI adaptation mode is normal further comprises: closing the sharing link of the BMC, and detecting whether the IP and MAC addresses of the sharing link are both zero; responding to the fact that the IP address and the MAC address of the shared link are zero, and detecting whether the special port can log in the BMC webpage or not; and responding to the special port to log in the BMC webpage, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
In some embodiments, in response to being able to log into the BMC web page, confirming that network function in BMC NCSI adaptation mode is normal further comprises: respectively setting a BMC IP to be in a dynamic mode and a static mode, and detecting whether packet loss occurs or not; and responding to the condition that the packet loss does not occur, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
In some embodiments, in response to being able to log into the BMC web page, confirming that network function in BMC NCSI adaptation mode is normal further comprises: deleting the special port and judging whether the IP and MAC addresses change or not; and responding to the fact that the IP and the MAC address are not changed, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
In some embodiments, in response to being able to log into the BMC web page, confirming that network function in BMC NCSI adaptation mode is normal further comprises: restarting the BMC, and detecting whether the BMC IP address recovers communication within preset time; and responding to the BMC IP address to recover communication within the preset time, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: recording the IP, MAC address and network mode of the special port in the self-adaptive mode; unbinding the shared link of the BMC, and detecting whether the IP, the MAC address and the network mode of the special port change; responding to that the IP, the MAC address and the network mode of the special port are not changed, and detecting whether the IP and the MAC address of the shared port are different from those of the special port or not; detecting whether the BMC webpage can be logged in or not in response to the fact that the IP and the MAC address of the shared port are different from those of the special port; and responding to the fact that the BMC webpage can be logged in, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
In some embodiments, in response to being able to log into the BMC web page, confirming that network function in BMC NCSI adaptation mode is normal further comprises: closing the sharing link of the BMC, and detecting whether the IP and MAC addresses of the sharing link are both zero; responding to the fact that the IP address and the MAC address of the shared link are zero, and detecting whether the special port can log in the BMC webpage or not; and responding to the special port to log in the BMC webpage, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
In some embodiments, in response to being able to log into the BMC web page, confirming that network function in BMC NCSI adaptation mode is normal further comprises: respectively setting a BMC IP to be in a dynamic mode and a static mode, and detecting whether packet loss occurs or not; and responding to the condition that the packet loss does not occur, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
In some embodiments, in response to being able to log into the BMC web page, confirming that network function in BMC NCSI adaptation mode is normal further comprises: deleting the special port and judging whether the IP and MAC addresses change or not; and responding to the fact that the IP and the MAC address are not changed, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: by unbinding the shared link of the BMC and respectively detecting the IP, MAC address and network mode of the private port and the shared port, the self-adaptive test of the BMC NCSI can be conveniently and effectively completed, the method has strong usability, greatly saves the test time and improves the test efficiency.
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, 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 embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a diagram illustrating an embodiment of a method for testing network functions in the BMC NCSI adaptive mode according to the present invention;
fig. 2 is a schematic diagram of a hardware structure of an embodiment of the method for testing the network function in the BMC NCSI adaptive mode according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above, a first aspect of the embodiments of the present invention provides an embodiment of a method for testing network functions in the BMC NCSI adaptive mode. Fig. 1 is a schematic diagram illustrating an embodiment of the method for testing network functions in the BMC NCSI adaptive mode according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, recording the IP, MAC address and network mode of the special port in the self-adaptive mode;
s2, unbundling the sharing link of the BMC, and detecting whether the IP, MAC address and network mode of the special port change;
s3, responding to the fact that the IP, the MAC address and the network mode of the special port are not changed, and detecting whether the IP and the MAC address of the shared port are different from those of the special port or not;
s4, responding to the difference between the IP and MAC addresses of the shared port and the special port, and detecting whether the BMC webpage can be logged in; and
and S5, responding to the fact that the BMC webpage can be logged in, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
The embodiment of the invention focuses on that the private port is preferred in an Auto (adaptive) mode, and the private port is preferably embodied in an IP (Internet Protocol) address and MAC (Media Access Control) address and a network mode which use the private port by default. The BMC can be unbound, and the private port and the shared port have no abnormal functions, so that the Auto function is normal, when the private port (default network port) and the network port are plugged and unplugged in the Auto mode, the BMCIP and the MAC address can not be changed. The process from unbinding to binding is a circular process, each step is indispensable, the test method is simple and convenient to operate, time can be saved for testing, test work can be completed efficiently, and test efficiency is improved. The problem of the user can be solved better, and the IT system management level of the user is improved.
The BMC (Baseboard management controller) management system is an embedded management subsystem independent of an operating system on a server motherboard, supports an industry standard IPMI protocol, and is used to provide a remote management function for a server by using a virtual keyboard, an interface, a mouse, a power supply, and the like. The user utilizes the BMC to monitor the physical characteristics of the server, such as temperature, voltage, fan operating status, power supply, and chassis intrusion of the components. NCSI (Network Controller Sideband Interface) is an industry standard for a Sideband Interface Network Controller defined by DMTF (Distributed Management Task Force) to support out-of-band Management of servers. The rapid development of network technology makes people have higher requirements on out-of-band manageability and controllability of servers. Through out-of-band management, engineers can be connected to corresponding servers through a network at any place to carry out a series of management and maintenance, and do not need to stay in a noisy laboratory environment for a long time, so that the testing efficiency of the engineers is effectively improved, and the flexibility of a client in using the network is enhanced.
Recording the IP, MAC address and network mode of the special port in the self-adaptive mode; unbinding the shared link of the BMC, and detecting whether the IP, the MAC address and the network mode of the special port change; responding to the fact that the IP, the MAC address and the network mode of the special port do not change, and detecting whether the IP and the MAC address of the shared port are different from those of the special port or not; detecting whether the BMC webpage can be logged in or not in response to the fact that the IP and MAC address of the shared port are different from those of the special port; and responding to the fact that the BMC webpage can be logged in, and enabling the network in the BMC NCSI self-adaptive mode to function normally. After the BMC is refreshed, the Auto mode is defaulted, a private port and a data network port are plugged, through a unbinding command, for example, ipmitool raw 0x3c 0x 920 x03, after the BMC sharelink (shared link) is unbound, whether the IP, MAC address and network mode of the private port are consistent with the IP and MAC address used in the Auto mode and the network mode is checked through ipmitool lan print1 (intelligent platform management interface tool local area network printing 1), and if so, the IP and MAC address of the shared port and the network mode of the BMC are checked through ipmitool lan print8 (intelligent platform management interface tool local area network printing 8). The private port and the shared port are two different IP and MAC addresses, and can normally log in the BMC Web to be considered as passing the test.
In some embodiments, further comprising: closing the sharing link of the BMC, and detecting whether the IP and MAC addresses of the sharing link are both zero; responding to the fact that the IP address and the MAC address of the shared link are zero, and detecting whether the special port can log in the BMC webpage or not; and responding to the special port to log in the BMC webpage, and confirming that the network function under the BMC NCSI self-adaptive mode is normal. Closing (disable) the BMC shared link may be by executing the command ipmitool raw 0x3c 0x 920 x 00. After the BMC sharelink disable, the IP and MAC addresses of sharelink are both 0 and the network mode is unselected through ipmitool lan print 8. The special port can normally log in the BMC Web (webpage) to be considered as passing the test.
When the (Enable) BMC sharelink is opened, the IP and MAC address of the private port can be checked through the ipmitool lan print1 after the BMC sharelink is enabled, and the IP and MAC address of the shared port can be checked through the ipmitool lan print8, when the IP and MAC address of the private port are different from those of the shared port, the BMC sharelink can be normally logged in to be regarded as passing the test.
In some embodiments, further comprising: respectively setting a BMC IP to be in a dynamic mode and a static mode, and detecting whether packet loss occurs or not; and responding to the condition that the packet loss does not occur, and confirming that the network function in the BMC NCSI self-adaptive mode is normal. Ipsmool lan set 1ipsrc dhcp may be input to set BMC IP to dhcp (dynamic), and Ipsmool lan set 1ipsrc static may be input to set BMC IP to static. The IP address and gateway may be as follows: ipmitool lan set 1ipaddr 192.168.1.1, ipmitool lan set 1netmask 255.255.255.0. And (3) constantly ping (sending back display information) the BMC IP of the tested machine, if packet loss occurs, testing fail and recording the packet loss rate.
In some embodiments, further comprising: deleting the special port and judging whether the IP and MAC addresses change or not; and responding to the fact that the IP and the MAC address are not changed, and confirming that the network function under the BMC NCSI self-adaptive mode is normal. Inserting a special port and a network port, executing a command ipmitool lan print1, and recording a BMC IP and an MAC address; and resetting the BMC, executing the command ipmitool mc reset cold, and recording the BMC IP and the MAC address. Pulling out a special port, executing a command ipmitool lan print1, and recording a BMC IP and a MAC address; and resetting the BMC, executing the command ipmitool mc reset cold, and recording the BMC IP and the MAC address. Compare multiple (e.g., 4) records, if consistent, test pass, otherwise fail. In some embodiments, further comprising: restarting the BMC, and detecting whether the BMC IP address recovers communication within preset time; and responding to the BMC IP address to recover communication within the preset time, and confirming that the network function in the BMC NCSI self-adaptive mode is normal. Excluding the ping when restarting the BMC, not recording packet loss, restarting the BMC of the tested node, and checking whether the BMC IP address of the tested node recovers ping communication within a preset time (for example, 2 minutes).
Network pressure can be added to the data network IP, and the packet loss rate is not more than 0.5 percent through the control station ping node BMC IP for 1000 times, which indicates that the network function under the BMC NCSI self-adaptive mode is normal. When the rebot (restart) node to be tested passes through the console ping node BMC IP for 1000 times, no packet loss occurs, which indicates that the network function under the BMC NCSI self-adaptive mode is normal. And restarting the tested node, and indicating that the network function under the BMC NCSI self-adaptive mode is normal by using the control station ping node BMC IP for 1000 times without packet loss.
It should be noted that, the steps in the embodiments of the method for testing the network function in the BMC NCSI adaptive mode described above can be mutually intersected, replaced, added, or deleted, so that these reasonable permutations and combinations are also included in the scope of the present invention, and the scope of the present invention should not be limited to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, recording the IP, MAC address and network mode of the special port in the self-adaptive mode; s2, unbundling the sharing link of the BMC, and detecting whether the IP, MAC address and network mode of the special port change; s3, responding to the fact that the IP, the MAC address and the network mode of the special port are not changed, and detecting whether the IP and the MAC address of the shared port are different from those of the special port or not; s4, responding to the difference between the IP and MAC addresses of the shared port and the special port, and detecting whether the BMC webpage can be logged in; and S5, responding to the ability to log in the BMC webpage, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
In some embodiments, further comprising: closing the sharing link of the BMC, and detecting whether the IP and MAC addresses of the sharing link are both zero; responding to the fact that the IP address and the MAC address of the shared link are zero, and detecting whether the special port can log in the BMC webpage or not; and responding to the special port to log in the BMC webpage, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
In some embodiments, further comprising: respectively setting a BMC IP to be in a dynamic mode and a static mode, and detecting whether packet loss occurs or not; and responding to the condition that the packet loss does not occur, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
In some embodiments, further comprising: deleting the special port and judging whether the IP and MAC addresses change or not; and responding to the fact that the IP and the MAC address are not changed, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
In some embodiments, further comprising: restarting the BMC, and detecting whether the BMC IP address recovers communication within preset time; and responding to the BMC IP address to recover communication within the preset time, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
Fig. 2 is a schematic hardware structural diagram of an embodiment of the method for testing network functions in the BMC NCSI adaptive mode according to the present invention.
Taking the apparatus shown in fig. 2 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
The memory 302 is a non-volatile computer-readable storage medium and may be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for testing network functions in the BMC NCSI adaptive mode in the embodiments of the present application. The processor 301 executes various functional applications of the server and data processing by running the non-volatile software programs, instructions and modules stored in the memory 302, that is, implements the method of testing network functions in the BMC NCSI adaptation mode of the above-described method embodiment.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a method of testing the network function in the BMC NCSI adaptation mode, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
One or more program instructions/modules corresponding to the method of testing network functions in BMC NCSI adaptation mode are stored in the memory 302 and, when executed by the processor 301, perform the method of testing network functions in BMC NCSI adaptation mode in any of the above-described method embodiments.
Any embodiment of a computer device implementing the method for testing network functions in BMC NCSI adaptive mode described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for testing the network function in the BMC NCSI adaptive mode can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure 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 RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (8)

1. A method for testing network functions in a BMC NCSI adaptive mode is characterized by comprising the following steps:
recording the IP, MAC address and network mode of the special port in the self-adaptive mode;
unbinding the shared link of the BMC, and detecting whether the IP, the MAC address and the network mode of the special port change;
responding to that the IP, the MAC address and the network mode of the special port are not changed, and detecting whether the IP and the MAC address of the shared port are different from those of the special port or not;
detecting whether the BMC webpage can be logged in or not in response to the fact that the IP and the MAC address of the shared port are different from those of the special port; and
confirming that the network function in the BMC NCSI adaptation mode is normal in response to being able to log in the BMC web page,
wherein, the responding to the ability to log in the BMC web page and confirming that the network function in the BMC NCSI adaptive mode is normal further comprises:
closing the sharing link of the BMC, and detecting whether the IP and MAC addresses of the sharing link are both zero;
responding to the fact that the IP address and the MAC address of the shared link are zero, and detecting whether the special port can log in the BMC webpage or not; and
and responding to the fact that the special port can log in the BMC webpage, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
2. The method of claim 1, wherein confirming that network functionality in the BMC NCSI adaptation mode is normal in response to being able to log into the BMC web page further comprises:
respectively setting a BMC IP to be in a dynamic mode and a static mode, and detecting whether packet loss occurs or not; and
and responding to the condition that no packet loss occurs, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
3. The method of claim 1, wherein confirming that network functionality in the BMC NCSI adaptation mode is normal in response to being able to log into the BMC web page further comprises:
deleting the special port, and judging whether the BMC IP and the MAC address change or not; and
and responding to the fact that the BMC IP and the MAC address are not changed, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
4. The method of claim 1, wherein confirming that network functionality in the BMC NCSI adaptation mode is normal in response to being able to log into the BMC web page further comprises:
restarting the BMC, and detecting whether the BMC IP address recovers communication within preset time; and
and responding to the BMC IP address to recover communication within the preset time, and confirming that the network function in the BMC NCSI self-adaptive mode is normal.
5. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of:
recording the IP, MAC address and network mode of the special port in the self-adaptive mode;
unbinding the shared link of the BMC, and detecting whether the IP, the MAC address and the network mode of the special port change;
responding to that the IP, the MAC address and the network mode of the special port are not changed, and detecting whether the IP and the MAC address of the shared port are different from those of the special port or not;
detecting whether the BMC webpage can be logged in or not in response to the fact that the IP and the MAC address of the shared port are different from those of the special port; and
confirming that the network function in the BMC NCSI adaptation mode is normal in response to being able to log in the BMC web page,
wherein, the responding to the ability to log in the BMC web page and confirming that the network function in the BMC NCSI adaptive mode is normal further comprises:
closing the sharing link of the BMC, and detecting whether the IP and MAC addresses of the sharing link are both zero;
responding to the fact that the IP address and the MAC address of the shared link are zero, and detecting whether the special port can log in the BMC webpage or not; and
and responding to the fact that the special port can log in the BMC webpage, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
6. The computer device of claim 5, wherein in response to being able to log into the BMC web page, confirming that network function in the BMC NCSI adaptation mode is normal further comprises:
respectively setting a BMC IP to be in a dynamic mode and a static mode, and detecting whether packet loss occurs or not; and
and responding to the condition that no packet loss occurs, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
7. The computer device of claim 5, wherein in response to being able to log into the BMC web page, confirming that network function in the BMC NCSI adaptation mode is normal further comprises:
deleting the special port, and judging whether the BMC IP and the MAC address change or not; and
and responding to the fact that the BMC IP and the MAC address are not changed, and confirming that the network function under the BMC NCSI self-adaptive mode is normal.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201911366068.0A 2019-12-26 2019-12-26 Method, equipment and medium for testing network function in BMC NCSI adaptive mode Active CN111030892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911366068.0A CN111030892B (en) 2019-12-26 2019-12-26 Method, equipment and medium for testing network function in BMC NCSI adaptive mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911366068.0A CN111030892B (en) 2019-12-26 2019-12-26 Method, equipment and medium for testing network function in BMC NCSI adaptive mode

Publications (2)

Publication Number Publication Date
CN111030892A CN111030892A (en) 2020-04-17
CN111030892B true CN111030892B (en) 2021-10-29

Family

ID=70214599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911366068.0A Active CN111030892B (en) 2019-12-26 2019-12-26 Method, equipment and medium for testing network function in BMC NCSI adaptive mode

Country Status (1)

Country Link
CN (1) CN111030892B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769603B (en) * 2020-12-31 2023-07-25 西安易朴通讯技术有限公司 Out-of-band management switching device, method and server
CN113872832A (en) * 2021-09-29 2021-12-31 中科可控信息产业有限公司 BMC network Bond function detection method and device, electronic device and storage medium
CN115378835B (en) * 2022-08-19 2023-08-04 苏州浪潮智能科技有限公司 Network card NCSI function test method, device, equipment and readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540551A (en) * 2018-04-04 2018-09-14 郑州云海信息技术有限公司 A kind of acquisition methods of server node information and obtain system
CN109802867A (en) * 2019-01-02 2019-05-24 郑州云海信息技术有限公司 A kind of method and system for testing network interface card NCSI connective stability
CN110489290A (en) * 2019-07-26 2019-11-22 苏州浪潮智能科技有限公司 Sharelink Network and BMC interactive function verification method and device under a kind of BIOS
CN110493365A (en) * 2019-07-12 2019-11-22 苏州浪潮智能科技有限公司 A kind of common-use tunnel method for switching network and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10069718B2 (en) * 2015-11-26 2018-09-04 Dell Products, L.P. Switching of host network traffic through baseboard management controller (BMC)
CN105516386B (en) * 2015-12-07 2018-08-17 浪潮集团有限公司 A kind of server management system MAC Address collision detection and processing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540551A (en) * 2018-04-04 2018-09-14 郑州云海信息技术有限公司 A kind of acquisition methods of server node information and obtain system
CN109802867A (en) * 2019-01-02 2019-05-24 郑州云海信息技术有限公司 A kind of method and system for testing network interface card NCSI connective stability
CN110493365A (en) * 2019-07-12 2019-11-22 苏州浪潮智能科技有限公司 A kind of common-use tunnel method for switching network and device
CN110489290A (en) * 2019-07-26 2019-11-22 苏州浪潮智能科技有限公司 Sharelink Network and BMC interactive function verification method and device under a kind of BIOS

Also Published As

Publication number Publication date
CN111030892A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN111030892B (en) Method, equipment and medium for testing network function in BMC NCSI adaptive mode
CN111585845B (en) Method, device and equipment for detecting network card node performance and readable medium
US20150026322A1 (en) Configuring a network device
CN101369933A (en) Automatic test method and system
US9241007B1 (en) System, method, and computer program for providing a vulnerability assessment of a network of industrial automation devices
CN111708484A (en) Method, system, device and medium for controlling data brushing speed
CN110597596A (en) VMware-based service authentication method, equipment and readable medium
CN110688128A (en) Deployment method and device for improving reliability of super-fusion storage
US11258665B2 (en) System and method for automated management access point network connection
CN111309553B (en) Method, system, equipment and medium for monitoring storage Jbod
CN111176904B (en) Method, system, equipment and medium for data backup under private cloud architecture
CN111193677B (en) Method, device and medium for attributing FC (fiber channel) port of host to corresponding host
CN111309264A (en) Method, system, device and medium for making directory quota compatible with snapshot
CN111813507A (en) Method, system, equipment and medium for high availability of virtual machine based on sanlock
CN110879760B (en) Unified storage system and method and electronic equipment
CN111427777A (en) SO L test method, system, equipment and medium
CN111045989A (en) Method, device and medium for querying CPLD version information
CN111858538B (en) Method, device, equipment and medium for configuring BeeGFS quota by cluster
CN111130976B (en) Method, equipment and medium for configuring virtual local area network of white box switch
CN111404771B (en) Network load testing method, device, equipment and medium
CN111130861B (en) Method and device for stateless automatic management of whole cabinet equipment
CN111884919B (en) Method, device, equipment and readable medium for clearing invalid virtual IP
CN111722959B (en) Method, system, equipment and medium for expanding storage pool
CN110601905A (en) Fault detection method and device
CN111106957A (en) Method and device for upgrading firmware of switch in batches

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