CN115378835B - Network card NCSI function test method, device, equipment and readable medium - Google Patents

Network card NCSI function test method, device, equipment and readable medium Download PDF

Info

Publication number
CN115378835B
CN115378835B CN202210998153.4A CN202210998153A CN115378835B CN 115378835 B CN115378835 B CN 115378835B CN 202210998153 A CN202210998153 A CN 202210998153A CN 115378835 B CN115378835 B CN 115378835B
Authority
CN
China
Prior art keywords
port
setting
restarting
dhcp service
information
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
CN202210998153.4A
Other languages
Chinese (zh)
Other versions
CN115378835A (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 CN202210998153.4A priority Critical patent/CN115378835B/en
Publication of CN115378835A publication Critical patent/CN115378835A/en
Application granted granted Critical
Publication of CN115378835B publication Critical patent/CN115378835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

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

Abstract

The invention provides a method, a device, equipment and a readable medium for testing NCSI (network card NCSI) functions, wherein the method comprises the following steps: interconnecting a first port and a second port of a network card to be tested through a network cable; modifying the DHCP service configuration file to set the first port as a service end for providing the DHCP service, and starting the DHCP service; setting IP information and subnet mask information of a first port, restarting the first port to set the first port to a server mode, setting IP information of a second port, restarting the second port to set the second port to a client mode; and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the second port of the network card is normal. By using the scheme of the invention, the NCSI function of the network card can be tested without using a switch and an additional server, and the tooling cost is saved.

Description

Network card NCSI function test method, device, equipment and readable medium
Technical Field
The present invention relates to the field of computers, and more particularly, to a method, apparatus, device, and readable medium for network card NCSI functional testing.
Background
The rapid development of network technology has put higher demands on the out-of-band manageability and controllability of servers. Through out-of-band management, engineers can connect to corresponding servers through a network at any place to perform a series of management and maintenance without long-term residence in a noisy machine room environment. NCSI (Network Controller Sideband Interface ) is an industry standard for sideband interface network controllers defined by a distributed management task group to support server out-of-band management.
The basic function of NCSI as a network card has to be tested in the PCBA diagnosis process, and in order to test the function, the switch environment is built in PCBA factories at present, or each testing machine is matched with a server, so that the tool cost is very high, and the test is very inconvenient. In addition, the test process has requirements on the length of the network cable, the network cable with a longer length is required to be used, when the number of the test machines is increased, the number of the switches is required to be increased, and the placing position of the production line test machines is required and cannot be far away from the switches.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, apparatus, device and readable medium for testing the NCSI function of a network card, which can test the NCSI function of the network card without using a switch or an additional server by using the technical scheme of the present invention, thereby saving tooling cost.
Based on the above object, an aspect of the embodiment of the present invention provides a method for testing NCSI functions of a network card, including the steps of:
interconnecting a first port and a second port of a network card to be tested through a network cable;
modifying the DHCP service configuration file to set the first port as a service end for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a first port, restarting the first port to set the first port to a server mode, setting IP information of a second port, restarting the second port to set the second port to a client mode;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the second port of the network card is normal.
According to one embodiment of the present invention, further comprising:
modifying the DHCP service configuration file to set the second port as a server side for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a second port, restarting the second port to set the second port to a server mode, setting IP information of a first port, restarting the first port to set the first port to a client mode;
restarting the BMC;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the first port of the network card is normal.
According to one embodiment of the present invention, modifying the DHCP service configuration file to set the first port as a server providing the DHCP service and starting the DHCP service includes:
modifying a DHCP service configuration file dhcpd.conf, using the configuration DHCPDARGS =eth0 to set the first port as a server providing DHCP services;
modifying a DHCP service configuration file dhcpd.conf, and setting an IP address range acquired by the second port by using a configuration range 10.10.0.2010.10.0.240;
DHCP service is initiated using systemctl restart dhcpd command.
According to one embodiment of the present invention, setting IP information and subnet mask information of a first port, restarting the first port to set the first port to a server mode, and setting IP information of a second port, restarting the second port to set the second port to a client mode includes:
setting the first port acquisition IP mode as static acquisition, setting the IP address of the first port as 10.10.0.10, setting the subnet mask of the first port as 255.255.0.0, and restarting the first port;
and setting a second port acquisition IP mode as dynamic acquisition, and restarting the second port.
In another aspect of the embodiment of the present invention, there is also provided an apparatus for testing NCSI functions of a network card, the apparatus including:
the connection module is configured to interconnect the first port and the second port of the network card to be tested through a network cable;
the modification module is configured to modify the DHCP service configuration file to set the first port as a service end for providing the DHCP service and start the DHCP service;
the setting module is configured to set the IP information and the subnet mask information of the first port, restart the first port to set the first port to a server mode, set the IP information of the second port, and restart the second port to set the second port to a client mode;
and the detection module is configured to confirm whether the BMC shared port can acquire the IP address through the system command so as to check whether the NCSI function of the second port of the network card is normal.
According to one embodiment of the invention, the device further comprises a test module configured to:
modifying the DHCP service configuration file to set the second port as a server side for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a second port, restarting the second port to set the second port to a server mode, setting IP information of a first port, restarting the first port to set the first port to a client mode;
restarting the BMC;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the first port of the network card is normal.
According to one embodiment of the invention, the modification module is further configured to:
modifying a DHCP service configuration file dhcpd.conf, using the configuration DHCPDARGS =eth0 to set the first port as a server providing DHCP services;
modifying a DHCP service configuration file dhcpd.conf, and setting an IP address range acquired by the second port by using a configuration range 10.10.0.2010.10.0.240;
DHCP service is initiated using systemctl restart dhcpd command.
According to one embodiment of the invention, the setup module is further configured to:
setting the first port acquisition IP mode as static acquisition, setting the IP address of the first port as 10.10.0.10, setting the subnet mask of the first port as 255.255.0.0, and restarting the first port;
and setting a second port acquisition IP mode as dynamic acquisition, and restarting the second port.
In another aspect of the embodiments of the present invention, there is also provided a computer apparatus including:
at least one processor; and
and a memory storing computer instructions executable on the processor, the instructions when executed by the processor performing the steps of any of the methods described above.
In another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of any of the methods described above.
The invention has the following beneficial technical effects: according to the network card NCSI function test method provided by the embodiment of the invention, the first port and the second port of the network card to be tested are interconnected through the network cable; modifying the DHCP service configuration file to set the first port as a service end for providing the DHCP service, and starting the DHCP service; setting IP information and subnet mask information of a first port, restarting the first port to set the first port to a server mode, setting IP information of a second port, restarting the second port to set the second port to a client mode; by the technical scheme that whether the BMC shared port can acquire the IP address to check whether the NCSI function of the second port of the network card is normal or not is confirmed through the system command, the NCSI function of the network card can be tested under the condition that a switch and an additional server are not needed, and tooling cost is saved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method of network card NCSI functional testing according to one embodiment of the invention;
FIG. 2 is a schematic diagram of an apparatus for NCSI functional testing of a network card according to one embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the invention;
fig. 4 is a schematic diagram of a computer-readable storage medium according to one embodiment of the 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 will be described in further detail with reference to the accompanying drawings.
With the above object in view, in a first aspect, an embodiment of a method for testing NCSI functions of a network card is provided. Fig. 1 shows a schematic flow chart of the method.
As shown in fig. 1, the method may include the steps of:
s1, interconnecting a first port and a second port of a network card to be tested through a network cable. The network card to be tested is provided with two ports, wherein the first port is LAN0, the second port is LAN1, and the LAN0 and the LAN1 are connected with each other by using a network cable.
S2, modifying the DHCP service configuration file to set the first port as a server side for providing the DHCP service and starting the DHCP service. Modifying DHCP service profile dhcpd.conf, using configuration DHCPDARGS =eth0 to set LAN0 as a server side providing DHCP service, while modifying DHCP service profile dhcpd.conf, setting a range of IP addresses acquired by a client (clinet side) using configuration range 10.10.0.2010.10.0.240, and starting DHCP service using systemctl restart dhcpd command to validate the above setting.
S3, setting IP information and subnet mask information of the first port, restarting the first port to set the first port to a service end mode, setting IP information of the second port, and restarting the second port to set the second port to a client end mode. Setting the LAN0 acquisition IP mode as static acquisition, the command of echo ' BOOTPROTO=static >/etc/sysconfig/network-descriptions/ifcfg-eth 0, then setting the IP address of LAN0 as 10.10.0.10, the command of echo ' IPADDR= 10.10.0.10 ' >/etc/sysconfig/network-descriptions/ifcfg-eth 0, setting LAN0 subnet mask as 255.255.0.0, the command of echo ' NETMASK=255.255.0.0 ' >/etc/sysconfig/network-descriptions/ifcfg- $ { eth0}, using ifdown eth0 to deactivate LAN0 port first, and then using up eth0 to enable LAN0, so that the LAN0 port can be set as server end mode through the above steps. Setting the LAN1 to acquire IP mode as dynamic acquisition, and the command is echo 'BOOTPROTO = dhcp' >/etc/sysconfig/network-descriptions/ifcfg-eth 1, firstly disabling the LAN1 port by using ifdown eth1, and then enabling the LAN1 by using ifup eth1 to enable the setting to be effective, so that the LAN1 port can dynamically acquire IP address, and setting the LAN1 port of the network card as a client mode by the steps.
S4, confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the second port of the network card is normal. After the LAN1 port can dynamically acquire the IP, the BMC can acquire the IP through the LAN1 by the NCSI function and confirm whether the BMC sharing port acquires the IP through a ipmitool LAN print command, so that whether the NCSI function of the second port of the network card is normal is checked.
By using the technical scheme of the invention, the NCSI function of the network card can be tested without using a switch and an additional server, and the tooling cost is saved.
In a preferred embodiment of the present invention, further comprising:
modifying the DHCP service configuration file to set the second port as a server side for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a second port, restarting the second port to set the second port to a server mode, setting IP information of a first port, restarting the first port to set the first port to a client mode;
restarting the BMC;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the first port of the network card is normal. The process is the same as the method, only the first port and the second port are exchanged to detect the NCSI function of the first port, and the BMC needs to be restarted during the process to ensure that the IP originally acquired by the BMC is lost and prevent the cache data from affecting the test.
In a preferred embodiment of the present invention, modifying the DHCP service configuration file to set the first port as a service end providing the DHCP service and starting the DHCP service includes:
modifying a DHCP service configuration file dhcpd.conf, using the configuration DHCPDARGS =eth0 to set the first port as a server providing DHCP services;
modifying a DHCP service configuration file dhcpd.conf, and setting an IP address range acquired by the second port by using a configuration range 10.10.0.2010.10.0.240;
DHCP service is initiated using systemctl restart dhcpd command.
In a preferred embodiment of the present invention, setting the IP information and subnet mask information of the first port, restarting the first port to set the first port to the server mode, and setting the IP information of the second port, restarting the second port to set the second port to the client mode includes:
setting the first port acquisition IP mode as static acquisition, setting the IP address of the first port as 10.10.0.10, setting the subnet mask of the first port as 255.255.0.0, and restarting the first port;
and setting a second port acquisition IP mode as dynamic acquisition, and restarting the second port.
According to the invention, the NCSI function of the network card can be tested without using a switch and an additional server, so that the tooling cost is saved; the invention does not need to limit the length of the network cable, and is convenient for the production line to arrange the test machine.
It should be noted that, it will be understood by those skilled in the art that all or part of the procedures in implementing the methods of the above embodiments may be implemented by a computer program to instruct related hardware, and the above program may be stored in a computer readable storage medium, and the program may include the procedures of the embodiments of the above methods when executed. Wherein the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
Furthermore, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. When executed by a CPU, performs the functions defined above in the methods disclosed in the embodiments of the present invention.
With the above object in mind, in a second aspect of the embodiments of the present invention, an apparatus for testing NCSI functions of a network card is provided, as shown in fig. 2, an apparatus 200 includes:
the connection module is configured to interconnect the first port and the second port of the network card to be tested through a network cable;
the modification module is configured to modify the DHCP service configuration file to set the first port as a service end for providing the DHCP service and start the DHCP service;
the setting module is configured to set the IP information and the subnet mask information of the first port, restart the first port to set the first port to a server mode, set the IP information of the second port, and restart the second port to set the second port to a client mode;
and the detection module is configured to confirm whether the BMC shared port can acquire the IP address through the system command so as to check whether the NCSI function of the second port of the network card is normal.
In a preferred embodiment of the invention, further comprising a test module configured to:
modifying the DHCP service configuration file to set the second port as a server side for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a second port, restarting the second port to set the second port to a server mode, setting IP information of a first port, restarting the first port to set the first port to a client mode;
restarting the BMC;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the first port of the network card is normal.
In a preferred embodiment of the invention, the modification module is further configured to:
modifying a DHCP service configuration file dhcpd.conf, using the configuration DHCPDARGS =eth0 to set the first port as a server providing DHCP services;
modifying a DHCP service configuration file dhcpd.conf, and setting an IP address range acquired by the second port by using a configuration range 10.10.0.2010.10.0.240;
DHCP service is initiated using systemctl restart dhcpd command.
In a preferred embodiment of the invention, the setup module is further configured to:
setting the first port acquisition IP mode as static acquisition, setting the IP address of the first port as 10.10.0.10, setting the subnet mask of the first port as 255.255.0.0, and restarting the first port;
and setting a second port acquisition IP mode as dynamic acquisition, and restarting the second port.
Based on the above object, a third aspect of the embodiments of the present invention proposes a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor 21; and a memory 22, the memory 22 storing computer instructions 23 executable on the processor, the instructions when executed by the processor performing the method of:
interconnecting a first port and a second port of a network card to be tested through a network cable;
modifying the DHCP service configuration file to set the first port as a service end for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a first port, restarting the first port to set the first port to a server mode, setting IP information of a second port, restarting the second port to set the second port to a client mode;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the second port of the network card is normal.
In a preferred embodiment of the present invention, further comprising:
modifying the DHCP service configuration file to set the second port as a server side for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a second port, restarting the second port to set the second port to a server mode, setting IP information of a first port, restarting the first port to set the first port to a client mode;
restarting the BMC;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the first port of the network card is normal.
In a preferred embodiment of the present invention, modifying the DHCP service configuration file to set the first port as a service end providing the DHCP service and starting the DHCP service includes:
modifying a DHCP service configuration file dhcpd.conf, using the configuration DHCPDARGS =eth0 to set the first port as a server providing DHCP services;
modifying a DHCP service configuration file dhcpd.conf, and setting an IP address range acquired by the second port by using a configuration range 10.10.0.2010.10.0.240;
DHCP service is initiated using systemctl restart dhcpd command.
In a preferred embodiment of the present invention, setting the IP information and subnet mask information of the first port, restarting the first port to set the first port to the server mode, and setting the IP information of the second port, restarting the second port to set the second port to the client mode includes:
setting the first port acquisition IP mode as static acquisition, setting the IP address of the first port as 10.10.0.10, setting the subnet mask of the first port as 255.255.0.0, and restarting the first port;
and setting a second port acquisition IP mode as dynamic acquisition, and restarting the second port.
Based on the above object, a fourth aspect of the embodiments of the present invention proposes a computer-readable storage medium. Fig. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer-readable storage medium 31 stores a computer program 32 that, when executed by a processor, performs the following method:
interconnecting a first port and a second port of a network card to be tested through a network cable;
modifying the DHCP service configuration file to set the first port as a service end for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a first port, restarting the first port to set the first port to a server mode, setting IP information of a second port, restarting the second port to set the second port to a client mode;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the second port of the network card is normal.
In a preferred embodiment of the present invention, further comprising:
modifying the DHCP service configuration file to set the second port as a server side for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a second port, restarting the second port to set the second port to a server mode, setting IP information of a first port, restarting the first port to set the first port to a client mode;
restarting the BMC;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the first port of the network card is normal.
In a preferred embodiment of the present invention, modifying the DHCP service configuration file to set the first port as a service end providing the DHCP service and starting the DHCP service includes:
modifying a DHCP service configuration file dhcpd.conf, using the configuration DHCPDARGS =eth0 to set the first port as a server providing DHCP services;
modifying a DHCP service configuration file dhcpd.conf, and setting an IP address range acquired by the second port by using a configuration range 10.10.0.2010.10.0.240;
DHCP service is initiated using systemctl restart dhcpd command.
In a preferred embodiment of the present invention, setting the IP information and subnet mask information of the first port, restarting the first port to set the first port to the server mode, and setting the IP information of the second port, restarting the second port to set the second port to the client mode includes:
setting the first port acquisition IP mode as static acquisition, setting the IP address of the first port as 10.10.0.10, setting the subnet mask of the first port as 255.255.0.0, and restarting the first port;
and setting a second port acquisition IP mode as dynamic acquisition, and restarting the second port.
Furthermore, the method disclosed according to the embodiment 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. The above-described functions defined in the methods disclosed in the embodiments of the present invention are performed when the computer program is executed by a processor.
Furthermore, the above-described method steps and system units may also be implemented using a controller and a computer-readable storage medium storing a computer program for causing the controller to implement the above-described steps or unit functions.
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 present disclosure.
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 location 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 general purpose or special purpose processor. Further, 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 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 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 foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages 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 for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (8)

1. The network card NCSI function test method is characterized by comprising the following steps:
interconnecting a first port and a second port of a network card to be tested through a network cable;
modifying the DHCP service configuration file to set the first port as a server providing DHCP services and to start DHCP services, wherein modifying the DHCP service configuration file to set the first port as a server providing DHCP services and to start DHCP services includes modifying the DHCP service configuration file dhcpd.conf, using configuration DHCPDARGS =eth0 to set the first port as a server providing DHCP services, modifying the DHCP service configuration file dhcpd.conf, using configuration range 10.10.0.2010.10.0.240 to set the IP address range acquired by the second port, using systemctl restart dhcpd commands to start DHCP services;
setting IP information and subnet mask information of a first port, restarting the first port to set the first port to a server mode, setting IP information of a second port, restarting the second port to set the second port to a client mode;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the second port of the network card is normal.
2. The method as recited in claim 1, further comprising:
modifying the DHCP service configuration file to set the second port as a server side for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a second port, restarting the second port to set the second port to a server mode, setting IP information of a first port, restarting the first port to set the first port to a client mode;
restarting the BMC;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the first port of the network card is normal.
3. The method of claim 1, wherein setting the IP information and subnet mask information for the first port, restarting the first port to set the first port to a server mode, and setting the IP information for the second port, restarting the second port to set the second port to a client mode comprises:
setting the first port acquisition IP mode as static acquisition, setting the IP address of the first port as 10.10.0.10, setting the subnet mask of the first port as 255.255.0.0, and restarting the first port;
and setting a second port acquisition IP mode as dynamic acquisition, and restarting the second port.
4. An apparatus for testing NCSI functionality of a network card, the apparatus comprising:
the connection module is configured to interconnect the first port and the second port of the network card to be tested through a network cable;
a modification module configured to modify the DHCP service configuration file to set the first port as a service end providing the DHCP service and to start the DHCP service, to use the configuration DHCPDARGS =eth0 to set the first port as a service end providing the DHCP service, to modify the DHCP service configuration file dhcpd.conf, to use the configuration range 10.10.0.2010.10.0.240 to set an IP address range acquired by the second port, and to use the systemctl restart dhcpd command to start the DHCP service;
a setting module configured to set IP information and subnet mask information of a first port, restart the first port to set the first port to a server mode, and set IP information of a second port, restart the second port to set the second port to a client mode;
and the detection module is configured to confirm whether the BMC shared port can acquire the IP address through the system command so as to check whether the NCSI function of the second port of the network card is normal.
5. The apparatus of claim 4, further comprising a test module configured to:
modifying the DHCP service configuration file to set the second port as a server side for providing the DHCP service, and starting the DHCP service;
setting IP information and subnet mask information of a second port, restarting the second port to set the second port to a server mode, setting IP information of a first port, restarting the first port to set the first port to a client mode;
restarting the BMC;
and confirming whether the BMC shared port can acquire the IP address through the system command to check whether the NCSI function of the first port of the network card is normal.
6. The apparatus of claim 4, wherein the setup module is further configured to:
setting the first port acquisition IP mode as static acquisition, setting the IP address of the first port as 10.10.0.10, setting the subnet mask of the first port as 255.255.0.0, and restarting the first port;
and setting a second port acquisition IP mode as dynamic acquisition, and restarting the second port.
7. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which instructions when executed by the processor implement the steps of the method of any one of claims 1-3.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any of claims 1-3.
CN202210998153.4A 2022-08-19 2022-08-19 Network card NCSI function test method, device, equipment and readable medium Active CN115378835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210998153.4A CN115378835B (en) 2022-08-19 2022-08-19 Network card NCSI function test method, device, equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210998153.4A CN115378835B (en) 2022-08-19 2022-08-19 Network card NCSI function test method, device, equipment and readable medium

Publications (2)

Publication Number Publication Date
CN115378835A CN115378835A (en) 2022-11-22
CN115378835B true CN115378835B (en) 2023-08-04

Family

ID=84066691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210998153.4A Active CN115378835B (en) 2022-08-19 2022-08-19 Network card NCSI function test method, device, equipment and readable medium

Country Status (1)

Country Link
CN (1) CN115378835B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2532054A (en) * 2014-11-07 2016-05-11 Ibm NC-SI port controller
CN111030892A (en) * 2019-12-26 2020-04-17 苏州浪潮智能科技有限公司 Method, equipment and medium for testing network function in BMC NCSI adaptive mode
CN114338493A (en) * 2022-02-24 2022-04-12 苏州浪潮智能科技有限公司 NCSI test method, system, device and storage medium based on network protocol stack
CN114443381A (en) * 2021-12-24 2022-05-06 苏州浪潮智能科技有限公司 Method, device, equipment and medium for checking server configuration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6613690B2 (en) * 2015-07-31 2019-12-04 富士通株式会社 Network device setting method, information processing device, and BIOS program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2532054A (en) * 2014-11-07 2016-05-11 Ibm NC-SI port controller
CN111030892A (en) * 2019-12-26 2020-04-17 苏州浪潮智能科技有限公司 Method, equipment and medium for testing network function in BMC NCSI adaptive mode
CN114443381A (en) * 2021-12-24 2022-05-06 苏州浪潮智能科技有限公司 Method, device, equipment and medium for checking server configuration
CN114338493A (en) * 2022-02-24 2022-04-12 苏州浪潮智能科技有限公司 NCSI test method, system, device and storage medium based on network protocol stack

Also Published As

Publication number Publication date
CN115378835A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN110879712B (en) Cloud data center physical host installation method and related device
CN111030892B (en) Method, equipment and medium for testing network function in BMC NCSI adaptive mode
US20180077232A1 (en) Method and Device for Establishing Communication Connection
CN107729038A (en) The baseboard management controller of firmware update and renewable firmware
CN103475526A (en) IP setting and detecting method supporting multi-VLAN virtual machine
CN111897697A (en) Server hardware fault repairing method and device
CN115378835B (en) Network card NCSI function test method, device, equipment and readable medium
CN106411643B (en) BMC detection method and device
CN114157639B (en) Method, device and equipment for collecting information of intelligent network card of server and readable medium
CN115426258B (en) Information configuration method, device, switch and readable storage medium
CN112178881B (en) Self-checking method and device of RS485 network
CN112291096B (en) Configuration method and device of bare metal server
CN111404771B (en) Network load testing method, device, equipment and medium
CN111277463B (en) Method, system, terminal and storage medium for testing accuracy of gateway address acquisition by BMC
CN110798381B (en) Method, device and equipment for verifying KCS channel communication stability
CN106789150B (en) Network fault detection method and device
WO2017058071A1 (en) Addressing in a system of interconnected units
CN111858300B (en) Automatic testing method, device and system for embedded equipment and storage medium
CN113472558B (en) Network deployment method and device
CN113886218B (en) Method, device, equipment and readable medium for verifying BIOS refreshing
CN112286738B (en) Method, system, equipment and readable storage medium for accessing database
JP7234725B2 (en) Communication connection setting device, communication connection setting system, communication connection setting method, and communication connection setting program
CN115623462A (en) Method, system and storage medium for acquiring IP addresses of BMC and operating system
CN116132266A (en) Method, system, storage medium and equipment for keeping BMC network stable
JP2022142909A (en) Network configuration verification device and method

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