CN111078476B - Network card drive firmware stability test method, system, terminal and storage medium - Google Patents
Network card drive firmware stability test method, system, terminal and storage medium Download PDFInfo
- Publication number
- CN111078476B CN111078476B CN201911024393.9A CN201911024393A CN111078476B CN 111078476 B CN111078476 B CN 111078476B CN 201911024393 A CN201911024393 A CN 201911024393A CN 111078476 B CN111078476 B CN 111078476B
- Authority
- CN
- China
- Prior art keywords
- firmware
- network card
- information
- drive
- command
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000003860 storage Methods 0.000 title claims abstract description 20
- 238000013112 stability test Methods 0.000 title claims description 4
- 238000012360 testing method Methods 0.000 claims abstract description 52
- 230000006870 function Effects 0.000 claims abstract description 48
- 238000004891 communication Methods 0.000 claims abstract description 39
- 230000003068 static effect Effects 0.000 claims abstract description 20
- 238000012795 verification Methods 0.000 claims abstract description 11
- 230000002159 abnormal effect Effects 0.000 claims description 22
- 238000009434 installation Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 3
- 238000001514 detection method Methods 0.000 claims description 3
- 238000011990 functional testing Methods 0.000 claims description 2
- 238000004321 preservation Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 241000282326 Felis catus Species 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000000593 degrading effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011900 installation process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/263—Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a method, a system, a terminal and a storage medium for testing the stability of network card drive firmware, wherein the method comprises the following steps: saving the original network card drive firmware information; updating network card driving firmware by calling a system firmware management command; and comparing the updated firmware information of the network card driving firmware with the original network card driving firmware information, verifying the communication function of the updated driving firmware through a ping preset target IP, and outputting a comparison result and a communication function verification result. The invention checks the communication function of the updated firmware by automatically comparing the firmware information before and after updating and by the static IP of the ping auxiliary machine, thereby realizing the comprehensive test of a plurality of functions before and after upgrading of the firmware, ensuring the test accuracy, simultaneously reducing the manual investment, accurately recording the result of each function verification, and improving the test efficiency and test traceability.
Description
Technical Field
The invention relates to the technical field of server testing, in particular to a method, a system, a terminal and a storage medium for testing stability of network card drive firmware.
Background
In the modern times, networks have become more and more important, and information transmission, distribution and acquisition, data transmission and the like cannot be separated from the networks. The network card is an important device for realizing connection with an external network by serving as a server or a PC, and the importance of the network card is self-evident. The network card is used as a hardware device, which communicates with the computer, the driver is an indispensable element, the operating system can only control the work of the hardware device through the interface, and if the driver of a certain device is not installed correctly, the hardware device cannot work normally. However, every new type of equipment is not perfectly adapted to the system drive after production. In actual application, various unexpected bugs always appear, a manufacturer needs to provide a new driver to repair the encountered problems, at this time, the upgrade test for driving the driver is an important function of the network card device, and whether the function is complete or not has an important influence on the network card device.
Whether the network card drive driver upgrading and downgrading function is complete and stable or not can be judged from the following points: 1. the driver package can be normally installed, no error is reported in the installation process, and normal loading and unloading can be realized; 2. after the drive loading is finished, the network card equipment can be normally identified, and the phenomenon that the equipment cannot be identified after the loading cannot occur; 3. after the driver package is installed and loaded, the system does not generate abnormal log information, and the abnormal log information comprises lspci information and system log information; 4. after the driver package is installed and loaded, the equipment does not generate abnormal logs by itself, such as abnormal link CRC counting; 5. multiple upscaling between high and low versions can be supported. 6. After the driving version is upgraded or downgraded, the communication function of the network card device is normal, for example, the network card device can ping the ip in the same network segment normally.
The conventional method for testing the lifting and degrading stability of the manual drive of an operator has the following defects: the focus is single, namely only the focus is on the drive installation capable of supporting different versions, and the upgrading and degrading functions of the drive are realized. And if the manual operation of the tester, the same operation is repeatedly executed, the time and the labor are consumed, the artificial error is not generated in the operation process, and the test process has no recordable traceability.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for testing stability of a network card driver firmware, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a method for testing stability of a network card driver firmware, including:
saving the original network card drive firmware information;
updating network card driving firmware by calling a system firmware management command;
and comparing the updated firmware information of the network card driving firmware with the original network card driving firmware information, verifying the communication function of the updated driving firmware through a ping preset target IP, and outputting a comparison result and a communication function verification result.
Further, the storing the original firmware information of the network card driver includes:
acquiring an original network card driving firmware version of the tester and busid of a network card port under a system by calling ethtool;
acquiring Lnksta, UESta and CES information according to busid of the network card gateway under the system by calling an lspci command;
obtaining a link CRC abnormal count of the existing network card driving firmware by calling ethyool;
and acquiring the number of the network ports of the existing network card by calling ifconfig.
Further, the updating the network card driver firmware by invoking the system firmware management command includes:
clearing system logs and BMC logs;
deleting the original drive file, decompressing the drive source file and installing a new network card drive firmware;
removing the original network card driving firmware by utilizing an rmmod driver _ name command;
loading the new network card driving firmware by using a modprobe command;
and detecting the updated system log and BMC log, and if abnormal information exists, terminating the test and outputting the abnormal information.
Further, the communication function of the driver firmware updated through ping verification by the preset target IP includes:
setting the static IP of the auxiliary machine as the target IP of the testing machine;
setting a temporary IP of the same network segment as the auxiliary machine by utilizing an ifconfig enpX IP netmask IP up command;
and using a ping command to update the communication function of the drive firmware according to the static IP pin auxiliary machine and pass verification if the ping is successful.
In a second aspect, the present invention provides a system for testing stability of a network card driver firmware, including:
the original storage unit is configured for storing original network card drive firmware information;
the drive updating unit is configured to update the network card drive firmware by calling a system firmware management command;
and the function test unit is configured to compare the updated firmware information of the network card drive firmware with the original network card drive firmware information, verify the communication function of the updated drive firmware through a ping preset target IP, and output a comparison result and a communication function verification result.
Further, the original storage unit includes:
the first information acquisition module is configured to acquire an original network card driving firmware version of the tester and a busid of a network card port under the system by calling ethtool;
the second information acquisition module is configured to acquire Lnksta, UESta and CES information according to busid of the network card gateway under the system by calling an lspci command;
the third information acquisition module is configured to acquire the link CRC exception count of the existing network card drive firmware by calling the ethnool;
and the fourth information acquisition module is configured to acquire the number of network ports of the existing network card by calling ifconfig.
Further, the driving update unit includes:
the log clearing module is configured for clearing the system log and the BMC log;
the firmware installation module is configured for deleting the original drive file, decompressing the drive source file and installing a new network card drive firmware;
the firmware removal module is configured to remove the original network card driving firmware by utilizing an rmmod driver _ name command;
the firmware loading module is configured to load the new network card driving firmware by using a modprobe command;
and the log detection module is configured for detecting the updated system log and the BMC log, terminating the test and outputting abnormal information if the abnormal information exists.
Further, the functional test unit includes:
the target IP setting module is configured for setting the static IP of the auxiliary machine as the target IP of the testing machine;
the local IP setting module is configured for setting a temporary IP in the same network segment as the auxiliary machine by utilizing an ifconfig enpX IP netmask IP up command;
and the Ping communication checking module is configured to use a Ping command to update the communication function of the drive firmware to pass the checking according to the static IP pin auxiliary machine if the Ping command passes the checking.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the method of the terminal described above.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the method, the system, the terminal and the storage medium for testing the stability of the network card driving firmware, provided by the invention, each function is verified by using the automatic script, one-key operation can be realized, after the network card driving firmware of the testing machine is automatically updated in a upgrading and downgrading manner, the communication function of the updated firmware is verified by automatically comparing the firmware information before and after updating and by using the static IP of the ping auxiliary machine, so that multiple functions before and after upgrading and downgrading of the firmware are comprehensively tested, the testing accuracy is ensured, meanwhile, the automatic testing not only reduces manual investment, but also can accurately record the verification result of each function, and the testing efficiency and the testing traceability are improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution main body in fig. 1 may be a system for testing stability of a network card driver firmware.
As shown in fig. 1, the method 100 includes:
and step 130, comparing the updated firmware information of the network card driving firmware with the original network card driving firmware information, checking the communication function of the updated driving firmware through a ping preset target IP, and outputting a comparison result and a communication function checking result.
Optionally, as an embodiment of the present invention, the storing the original network card driver firmware information includes:
acquiring an original network card driving firmware version of the tester and busid of a network card port under a system by calling ethtool;
acquiring Lnksta, UESta and CES information according to busid of the network card gateway under the system by calling an lspci command;
acquiring a link CRC exception count of the existing network card driving firmware by calling the ethtoolol;
and acquiring the number of the network ports of the existing network card by calling ifconfig.
Optionally, as an embodiment of the present invention, the updating the network card driver firmware by invoking a system firmware management command includes:
clearing system logs and BMC logs;
deleting the original drive file, decompressing the drive source file and installing a new network card drive firmware;
removing the original network card driving firmware by utilizing an rmmod driver _ name command;
loading the new network card driving firmware by using a modprobe command;
and detecting the updated system log and BMC log, and if abnormal information exists, terminating the test and outputting the abnormal information.
Optionally, as an embodiment of the present invention, the checking, by ping, the updated communication function of the driver firmware by using a preset target IP includes:
setting the static IP of the auxiliary machine as the target IP of the testing machine;
setting a temporary IP of the same network segment as the auxiliary machine by utilizing an ifconfig enpX IP netmask IP up command;
and using a ping command to update the communication function of the drive firmware according to the static IP pin auxiliary machine and pass verification if the ping is successful.
In order to facilitate understanding of the present invention, the method for testing the stability of the network card driver firmware provided by the present invention is further described below by using the principle of the method for testing the stability of the network card driver firmware of the present invention and combining the process of performing the stability test on the network card driver firmware in the embodiment.
Specifically, the method for testing the stability of the network card drive firmware includes:
s1, storing the original network card drive firmware information.
Recording the current drive firmware information of the network card equipment of the tester, the information of Lnksta, UESta, CESTA and the like in lspci and the CRC (cyclic redundancy check) information of the link of the network card equipment by the following commands, and storing the information as a comparison reference before and after refreshing:
the current drive version can be obtained through ethhtool-i enpX | grep-iE' driver | version "| tee-a driver _ info.
Busid of a device under the system can be acquired through eththool-i enpX | grep-i bus-info | awk '{ print $2 }'.
The information of Lnksta, UESta, CES and the like can be acquired through lspci-vvv-s bussed | grep-iE 'LnkSta | UESta | CESTA' | te-a lspci.
The current device link CRC anomaly count may be obtained by eththool-S enpX | grep-i CRC.
The number of network ports of the current network card device can be obtained through ifconfig enpX | wc-l.
And S2, updating the network card driving firmware by calling a system firmware management command.
First, two drive source files are stored in a configuration file: a high-level driver source file and a low-level driver source file. Calling a corresponding drive source file according to the current firmware version of the testing machine acquired in the step S1, for example: if the firmware version acquired in step S1 is a low-level version, the high-level driver source file is called.
Clearing system logs and bmc logs, and eliminating interference: cat/dev/null >/var/log/messages; cat/dev/null >/var/log/dmesg; dmesg-c >/null; ipmitool sel clear.
Deleting the existing network card drive firmware file of the tester, decompressing the called drive source file compression packet, and installing according to an installation method, taking the Broadcom network card drive as an example: after decompression, executing make through a script; and the make install can complete the drive installation. After installation, the rmmod driver _ name command is called to remove the original old drive firmware, and then the modprobe command is used for loading the installed new drive firmware.
Checking whether the system log and the bmc log are abnormal or not; checking whether the lspci information of the equipment is abnormal or not; checking whether the CRC counting of the equipment is abnormal or not; and checking whether the network port equipment has abnormality or not, and continuing to perform the process, and if the network port equipment has abnormality, outputting a test fail.
And S3, comparing the updated firmware information of the network card driving firmware with the original network card driving firmware information, checking the communication function of the updated driving firmware through a preset target IP (Internet protocol) by ping, and outputting a comparison result and a communication function checking result.
Acquiring the firmware information again by using the method in the step S1 to obtain the firmware information after the drive firmware is updated, comparing the updated firmware information with the original firmware information acquired in the step S1, if the updated firmware information is consistent with the original firmware information, indicating that the drive firmware is failed to be updated, and outputting the test failure; and if the firmware information is inconsistent, the driver firmware is updated.
The auxiliary machine sets a static IP as a target IP of the test machine to verify the communication function after the driver loading, and is specifically realized by modifying a network card configuration file under/etc/sysconfig/network-script/path, and the following parameters are added in the corresponding equipment configuration file to set the static IP and restart the network service to enable the static IP to take effect. The parameters can be referred to as follows: TYPE = Ethernet; BOOTPROTO = static; NAME = enp59s0f1; DEVICE = enp59s0f1; ONBOOT = yes; IPADDR =192.168.1.5; NETMASK =255.255.255.0; SUBNET =192.168.1.0; executing the service network restart validates the configured ip. After the drive firmware in the step S2 is updated, using an ifconfig enpX IP netmask up to set a temporary IP in the same network segment as the auxiliary machine, and using ping IP _ addr-c 20-i 1 to ping the auxiliary machine to check whether ping is available or not and whether the communication function is abnormal or not. Wherein IP _ addr is the auxiliary machine IP.
If the updating is completed and the auxiliary machine can be ping-connected through the comparison of the firmware information, the test result and the current test frequency are stored in the test log, and after the storing is completed, the method provided by the embodiment is used for updating the network card driving firmware of the test machine and detecting the updating result until the preset test frequency is completed.
As shown in fig. 2, the system 200 includes:
an original storage unit 210 configured to store original network card drive firmware information;
a driver update unit 220 configured to update the network card driver firmware by calling a system firmware management command;
the function testing unit 230 is configured to compare the updated firmware information of the network card driver firmware with the original network card driver firmware information, verify the communication function of the updated driver firmware through a ping and a preset target IP, and output a comparison result and a communication function verification result.
Optionally, as an embodiment of the present invention, the original storage unit includes:
the first information acquisition module is configured for acquiring an original network card driving firmware version of the tester and busid of a network card port under the system by calling ethtopool;
the second information acquisition module is configured to acquire Lnksta, UESta and CES information according to busid of the network card gateway under the system by calling an lspci command;
the third information acquisition module is configured to acquire the link CRC exception count of the existing network card drive firmware by calling the ethnool;
and the fourth information acquisition module is configured to acquire the number of network ports of the existing network card by calling ifconfig.
Optionally, as an embodiment of the present invention, the driving update unit includes:
the log clearing module is configured for clearing the system log and the BMC log;
the firmware installation module is configured for deleting the original drive file, decompressing the drive source file and installing a new network card drive firmware;
the firmware removal module is configured to remove the original network card driving firmware by utilizing an rmmod driver _ name command;
the firmware loading module is configured to load the new network card driving firmware by using a modprobe command;
and the log detection module is configured for detecting the updated system log and the BMC log, terminating the test and outputting abnormal information if the abnormal information exists.
Optionally, as an embodiment of the present invention, the function test unit includes:
the target IP setting module is configured for setting the static IP of the auxiliary machine as the target IP of the testing machine;
the local IP setting module is configured and used for setting a temporary IP in the same network segment as the auxiliary machine by utilizing an ifconfig enpX IP netmask IP up command;
and the Ping communication checking module is configured to use a Ping command to update the communication function of the drive firmware to pass the checking according to the static IP pin auxiliary machine if the Ping command passes the checking.
Fig. 3 is a schematic structural diagram of a terminal system 300 according to an embodiment of the present invention, where the terminal system 300 may be used to execute the method for testing the stability of the network card driver firmware according to the embodiment of the present invention.
The terminal system 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention verifies each function by using the automatic script, can realize one-key operation, and after automatically upgrading and downgrading the network card driving firmware of the tester, the communication function of the updated firmware is verified by automatically comparing the firmware information before and after updating and by the static IP of the ping auxiliary machine, so as to realize comprehensive testing of a plurality of functions before and after upgrading the firmware, thereby ensuring the accuracy of the testing.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and includes several instructions to enable a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to execute all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions should be within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure and the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (6)
1. A method for testing stability of a network card drive firmware is characterized by comprising the following steps:
saving the original network card drive firmware information;
updating the network card driving firmware by calling a system firmware management command;
comparing the firmware information after updating the network card driving firmware with the original network card driving firmware information, verifying the communication function of the updated driving firmware through a ping preset target IP, and outputting a comparison result and a communication function verification result;
the storing of the original network card drive firmware information includes:
acquiring an original network card driving firmware version of the tester and busid of a network card port under a system by calling ethtool;
acquiring Lnksta, UESta and CES information according to the busid of the network card gateway under the system by calling an lspci command;
obtaining a link CRC abnormal count of the existing network card driving firmware by calling ethyool;
acquiring the number of network ports of the existing network card by calling ifconfig;
the updating of the network card driving firmware by calling the system firmware management command comprises the following steps:
clearing system logs and BMC logs;
deleting the original drive file, decompressing the drive source file and installing a new network card drive firmware;
removing the original network card driving firmware by utilizing an rmmod driver _ name command;
loading the new network card driving firmware by using a modprobe command;
and detecting the updated system log and BMC log, and if abnormal information exists, terminating the test and outputting the abnormal information.
2. The method of claim 1, wherein the verifying the updated communication function of the driver firmware through the ping with the preset target IP comprises:
setting the static IP of the auxiliary machine as the target IP of the testing machine;
setting a temporary IP of the same network segment as the auxiliary machine by utilizing an ifconfig enpX IP netmask IP up command;
and using a ping command to update the communication function of the drive firmware according to the static IP pin auxiliary machine and pass verification if the ping is successful.
3. A network card drive firmware stability test system is characterized by comprising:
the original storage unit is configured for storing original network card drive firmware information;
the drive updating unit is configured to update the network card drive firmware by calling a system firmware management command;
the function testing unit is used for comparing the updated firmware information of the network card driving firmware with the original network card driving firmware information, checking the communication function of the updated driving firmware through a preset target IP (Internet protocol) by ping, and outputting a comparison result and a communication function checking result;
the original preservation unit includes:
the first information acquisition module is configured to acquire an original network card driving firmware version of the tester and a busid of a network card port under the system by calling ethtool;
the second information acquisition module is configured to acquire Lnksta, UESta and CES information according to busid of the network card gateway under the system by calling an lspci command;
the third information acquisition module is configured to acquire a link CRC exception count of the existing network card drive firmware by calling ethyool;
the fourth information acquisition module is configured to acquire the number of network ports of the existing network card by calling ifconfig;
the drive update unit includes:
the log clearing module is configured for clearing the system log and the BMC log;
the firmware installation module is configured for deleting the original drive file, decompressing the drive source file and installing a new network card drive firmware;
the firmware removal module is configured to remove the original network card driving firmware by utilizing an rmmod driver _ name command;
the firmware loading module is configured to load the new network card driving firmware by using a modprobe command;
and the log detection module is configured for detecting the updated system log and the BMC log, terminating the test and outputting abnormal information if the abnormal information exists.
4. The system of claim 3, wherein the functional test unit comprises:
the target IP setting module is configured for setting the static IP of the auxiliary machine as the target IP of the testing machine;
the local IP setting module is configured and used for setting a temporary IP in the same network segment as the auxiliary machine by utilizing an ifconfig enXIP netmask IP up command;
and the Ping communication checking module is configured to use a Ping command to update the communication function of the drive firmware to pass the checking according to the static IP pin auxiliary machine if the Ping command passes the checking.
5. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any of claims 1-2.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911024393.9A CN111078476B (en) | 2019-10-25 | 2019-10-25 | Network card drive firmware stability test method, system, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911024393.9A CN111078476B (en) | 2019-10-25 | 2019-10-25 | Network card drive firmware stability test method, system, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111078476A CN111078476A (en) | 2020-04-28 |
CN111078476B true CN111078476B (en) | 2023-03-21 |
Family
ID=70310517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911024393.9A Active CN111078476B (en) | 2019-10-25 | 2019-10-25 | Network card drive firmware stability test method, system, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111078476B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112003766B (en) * | 2020-08-13 | 2022-04-26 | 苏州浪潮智能科技有限公司 | Network card MAC repeated test exception handling method and device |
CN112506539B (en) * | 2020-11-26 | 2024-02-23 | 浪潮电子信息产业股份有限公司 | Firmware updating method and device, electronic equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109510740A (en) * | 2019-01-02 | 2019-03-22 | 郑州云海信息技术有限公司 | A kind of method, apparatus, terminal and the storage medium of automatic monitoring network interface card MTU value |
CN109802867B (en) * | 2019-01-02 | 2022-04-26 | 郑州云海信息技术有限公司 | Method and system for testing connection stability of network card NCSI |
CN109783390A (en) * | 2019-01-23 | 2019-05-21 | 郑州云海信息技术有限公司 | PSU firmware promotion and demotion stability test method, apparatus, terminal and storage medium |
-
2019
- 2019-10-25 CN CN201911024393.9A patent/CN111078476B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111078476A (en) | 2020-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9563418B1 (en) | Communication endpoints, software update servers, and related methods | |
CN109510742B (en) | Server network card remote test method, device, terminal and storage medium | |
CN110928743B (en) | Computing system, automatic diagnosis method and medium storing instructions thereof | |
KR101143679B1 (en) | Automated firmware recovery | |
CN111078476B (en) | Network card drive firmware stability test method, system, terminal and storage medium | |
CN107516547A (en) | The processing method and processing device of internal memory hard error | |
CN105743707A (en) | Method for testing BMC log analysis function based on Redhat system | |
CN112100027A (en) | Server maintenance method, device, equipment and machine readable storage medium | |
CN110990289B (en) | Method and device for automatically submitting bug, electronic equipment and storage medium | |
CN111147331A (en) | Server network card interaction test method, system, terminal and storage medium | |
CN116680101A (en) | Method and device for detecting downtime of operating system, and method and device for eliminating downtime of operating system | |
CN109471799B (en) | Method, device, storage medium and terminal for deploying demand environment | |
CN114138587A (en) | Reliability verification method, device and equipment for upgrading server power firmware | |
CN114138606A (en) | PCIE error information processing method and device and computer equipment | |
CN107612786B (en) | Method and system for testing router | |
CN111310160A (en) | WINDOWS automatic login deployment method, device, computer equipment and storage medium | |
CN106528248B (en) | Downloading method and system of mobile terminal based on software integrity | |
CN109800163A (en) | A kind of method and system of test b ios upgrade stability | |
CN113297038B (en) | Monitoring and data processing method, device and equipment, monitoring system and data center | |
CN111858198A (en) | Multi-scheme memory plugging test method, system, terminal and storage medium | |
CN112069009A (en) | Method and device for pressure test in Recovery mode and terminal equipment | |
CN108829417A (en) | A kind of update device of CPLD, method, equipment and storage medium | |
CN116880896B (en) | Recovery method, system, terminal and storage medium of crystal growth furnace control machine | |
CN107390115B (en) | Method for detecting SC serial port and MC serial port of IO in raid memory in batch | |
CN108810184B (en) | Method and system for detecting and resetting IP address of server node of whole cabinet |
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 |