CN112003766B - Network card MAC repeated test exception handling method and device - Google Patents

Network card MAC repeated test exception handling method and device Download PDF

Info

Publication number
CN112003766B
CN112003766B CN202010814895.8A CN202010814895A CN112003766B CN 112003766 B CN112003766 B CN 112003766B CN 202010814895 A CN202010814895 A CN 202010814895A CN 112003766 B CN112003766 B CN 112003766B
Authority
CN
China
Prior art keywords
network card
tested
mac
server equipment
error
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
CN202010814895.8A
Other languages
Chinese (zh)
Other versions
CN112003766A (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 CN202010814895.8A priority Critical patent/CN112003766B/en
Publication of CN112003766A publication Critical patent/CN112003766A/en
Application granted granted Critical
Publication of CN112003766B publication Critical patent/CN112003766B/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/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for processing the exception of MAC (media access control) retest of a network card, wherein the method comprises the following steps: s1, acquiring server equipment to be tested which is in error reporting caused by network card MAC repetition in a production test system; s2, verifying whether the network card of the server equipment to be tested which reports errors is on-line for the second time by comparing the network card data with the network card data in the production management system; if yes, go to step S3; if not, go to step S4; s3, deleting the records of the repeated server equipment corresponding to the secondary online network card in the production test system, and carrying out network card MAC repeated test on the server equipment to be tested again; and S4, judging that the network card MAC of the server equipment to be tested which reports errors leaves the factory repeatedly. The invention eliminates the MAC duplication of the network card caused by secondary online, finds the real MAC duplicated network card leaving the factory, realizes full-automatic test and greatly improves the test efficiency.

Description

Network card MAC repeated test exception handling method and device
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a network card MAC retest exception handling method and device.
Background
The MAC address of the network card has global uniqueness, but the production process of a regular network card manufacturer cannot completely avoid the duplication of the MAC address of the network card, and the duplication of the MAC address of the network card seriously exists in a pirated network card.
If MAC addresses of two network cards in two produced servers are repeated, when the two network cards are shipped to a client for use and are deployed in a local area network of the same network segment, the two devices cannot access each other although the two devices can normally access the network. When a user uses the server, the user often needs to deploy services on different servers to realize functions of interaction, communication, transmission and the like of each subsystem, and the function of local area network communication between the servers cannot be realized due to the repeated MAC addresses. The method of changing the MAC address by a win or making a strategy in a router or a switch can only simulate and change the MAC address of the network card in a disguised way, but cannot actually change the MAC physical address of the network card, at the moment, the hardware of the network card of the server can only be manually disassembled and replaced to solve the problem, and the condition of burning the hardware caused by static electricity at the hand is usually difficult to avoid in the self disassembling process of a client.
In order to avoid the problem of network card MAC address duplication, network card MAC address duplication detection needs to be performed in the server generation test process, so that the commercial server checks whether the network card MAC addresses on the server are duplicated in the production test process. However, in the production process, due to various problems, many orders cause that the installed network card is recorded in the production test system database, after the recording, the network card on the server is disassembled and returned to the hardware warehouse, when the network card is used on newly produced equipment (secondary online) and production test is performed again, the test system obtains the network card MAC and performs repeated verification, finds that the network card MAC exists in the database, and then the test system reports an error and prompts a tester to overhaul. And the MAC duplication caused by the network card coming online for the second time is actually not the real network card MAC duplication.
When the server is produced, due to the fact that the yield is large, the error reporting devices are few, and at most hundreds of devices are thousands of devices, a tester cannot quickly judge whether the network card of the error reporting device of the system is the MAC address repetition caused by the secondary online of the network card or the MAC address repetition when the network card leaves a factory, and the testing efficiency is affected.
Therefore, it is very necessary to provide a method and an apparatus for handling network card MAC retest exception in view of the above-mentioned drawbacks in the prior art.
Disclosure of Invention
Aiming at the defects that whether the network card MAC repetition is really repeated or not cannot be quickly judged by testers in the production process of the server in the prior art and the test efficiency is influenced, the invention provides a network card MAC repetition test exception handling method and device to solve the technical problems.
In a first aspect, the present invention provides a method for processing network card MAC retest exception, including the following steps:
s1, acquiring server equipment to be tested which is in error reporting caused by network card MAC repetition in a production test system;
s2, verifying whether the network card of the server equipment to be tested which reports errors is on-line for the second time by comparing the network card data with the network card data in the production management system;
if yes, go to step S3;
if not, go to step S4;
s3, deleting the records of the repeated server equipment corresponding to the secondary online network card in the production test system, and carrying out network card MAC repeated test on the server equipment to be tested again;
and S4, judging that the network card MAC of the server equipment to be tested which reports errors leaves the factory repeatedly.
Further, the step S1 specifically includes the following steps:
s11, acquiring error reporting machine type and order number information from a production test system through a user interface or a set timing task;
and S12, retrieving an error reporting log of the production test system according to the acquired error reporting machine type and order number information, and acquiring error reporting information of the server equipment to be tested and network card information.
Further, in step S1, the error reporting model and the order number information are obtained from the production test system through the user interface; the method comprises the following specific steps:
s111, judging whether the user is a windows user or a linux user;
s112, if the user is a windows user, setting a windows user interface to acquire the information of the error reporting machine type and the order number input by the user, remotely logging in a linux system of the production test system through ssh, and entering the step S12;
and S113, if the user is the linux user, setting the linux user interface to acquire the error reporting machine type and order number information input by the user, and entering the step S12.
Further, in step S11, the error reporting type and the order number information are obtained from the production test system by setting the timing task, and the specific steps are as follows:
s111', setting a timing task to monitor the test state of the production test system;
s112', when the timing task monitors that the production test system database reports errors, the error reporting machine type and the order number information are automatically acquired, and the step S12 is entered.
Further, the step S12 specifically includes the following steps:
s121, screening an error report log of a specified path according to the acquired error report type, order number information and MAC repeated error report rule under a linux system to generate a first retrieval file;
s122, performing secondary retrieval from the first retrieval file to obtain a local serial number, an MAC (media access control) repeater serial number, a network card MAC and a network card material serial number of the server equipment to be tested, which reports errors, and generating a two-dimensional structure;
and S123, acquiring the two-dimensional structure data of all the error-reported servers to be detected, and generating a second retrieval file.
Further, the step S2 specifically includes the following steps:
s21, acquiring a second retrieval file and a database table of the production management system;
s22, traversing the two-dimensional structure data in the second retrieval file, and determining whether the network card is on line for the second time in the production management system according to the network card serial number of the server to be tested which is reported in each two-dimensional structure data;
if yes, go to step S3;
if not, the process proceeds to step S4.
Further, the step S3 specifically includes the following steps:
s31, correspondingly recording and deleting the serial number of the MAC repeater of the network card on line for the second time in the database of the production test system;
and S32, setting the server equipment to be tested corresponding to the network card on line twice to be in a non-test state, restarting the server equipment to be tested in batch, and carrying out MAC repeatability test on the network card again.
Further, the step S4 specifically includes the following steps:
s41, judging whether the network card of the server equipment to be tested is verified to be on-line for the first time;
if yes, go to step S43;
if not, go to step S42;
s42, judging that the network card MAC of the server equipment to be tested leaves the factory repeatedly, and ending;
s43, restarting the server equipment to be tested in batch, and carrying out network card MAC repeatability test again.
In a second aspect, the present invention provides a device for processing network card MAC retest exception, including:
the error reporting server equipment to be tested acquisition module is used for acquiring error reporting server equipment to be tested caused by network card MAC repetition in the production test system;
the secondary online verification module is used for verifying whether the network card of the server equipment to be tested which reports errors is online for the second time by comparing the network card data with the network card data in the production management system;
the repeated record deleting module is used for deleting the repeated server equipment record corresponding to the secondarily-online network card in the production test system when the network card of the server equipment to be tested which reports errors is secondarily-online, and carrying out network card MAC repeatability test on the server equipment to be tested again;
and the network card MAC delivery repetition judging module is used for judging delivery repetition of the network card MAC of the error-reported server equipment to be tested when the network card of the error-reported server equipment to be tested is on line for a non-secondary time.
Further, the error reporting to-be-tested server equipment acquisition module comprises:
the error reporting machine type and order number acquisition unit is used for acquiring error reporting machine type and order number information from the production test system through a user interface or a set timing task;
the error log retrieval unit is used for retrieving the error log of the production test system according to the acquired error reporting machine type and order number information, and acquiring error reporting to-be-tested server equipment information and network card information; screening an error report log of a specified path under a linux system according to the acquired error report type, order number information and an MAC repeated error report rule to generate a first retrieval file; secondly, searching for the first search file for the second time to obtain a local serial number, an MAC (media access control) repeater serial number, a network card MAC and a network card material serial number of the server equipment to be tested, which reports errors, and generating a two-dimensional structure; finally, acquiring the two-dimensional structure data of all error-reported servers to be tested, and generating a second retrieval file;
the secondary verification module that comes online includes:
the production management system database table acquisition unit is used for acquiring a second retrieval file and a database table of the production management system;
the secondary online verification unit is used for traversing the two-dimensional structure data in the second retrieval file and confirming whether the network card is online for the second time or not in the production management system according to the network card serial number of the server to be detected which is reported in each two-dimensional structure data;
the duplicate record deletion module comprises:
the production test system repeated record deleting unit is used for deleting the corresponding record of the serial number of the MAC repeater of the network card on line for the second time in the production test system database;
the network card MAC repeatability retest unit is used for setting the server equipment to be tested corresponding to the network card on line for the second time to be in a non-test state, restarting the server equipment to be tested in batches and retesting the network card MAC repeatability;
the network card MAC delivery repetition judging module comprises:
the test frequency judging unit is used for judging whether the network card of the server equipment to be tested is verified to be on-line for the first time;
the network card MAC repetition judging unit is used for judging that the network card MAC of the server equipment to be tested leaves the factory and repeats when the network card of the server equipment to be tested is verified to be on line for a non-secondary time again;
and the network card MAC repeated verification unit is used for restarting the server equipment to be tested in batches when the network card of the server equipment to be tested is verified to be on-line for the first time, and carrying out network card MAC repeated test again.
The beneficial effect of the invention is that,
according to the method and the device for processing the abnormity of the MAC repeated test of the network card, when the error is reported due to the MAC repetition of the network card in the production test process, the production management system is firstly used for verifying whether the network card is online for the second time, for the network card online for the second time, the repeated server equipment is recorded in the production test system and deleted, so that the MAC repetition of the network card caused by the online for the second time is eliminated, the network card which is delivered with the real MAC repetition is found, and the original factory is returned; the full-automatic network card MAC repeatability test is realized, the defects of low efficiency, high cost and easy error in manual test are overcome, and the test efficiency is improved when a large batch of server equipment to be tested is tested.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
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 prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a first schematic flow chart of the method of the present invention;
FIG. 2 is a second schematic flow chart of the method of the present invention;
FIG. 3 is a schematic diagram of the system of the present invention;
in the figure, 1-error reporting to a server equipment acquisition module to be tested; 1.1-error reporting machine type and order number obtaining unit; 1.2-error log retrieval unit; 2-secondary online verification module; 2.1-a production management system database table acquisition unit; 2.2-a secondary online verification unit; 3-a duplicate record deletion module; 3.1-production test system duplicate record deletion unit; 3.2-network card MAC repeatability unit; 4-network card MAC delivery repetition judgment module; 4.1-test frequency judging unit; 4.2-network card MAC repeating judging unit; 4.3-network card MAC duplicate authentication unit.
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.
Example 1:
as shown in fig. 1, the present invention provides a method for processing network card MAC retest exception, which includes the following steps:
s1, acquiring server equipment to be tested which is in error reporting caused by network card MAC repetition in a production test system;
s2, verifying whether the network card of the server equipment to be tested which reports errors is on-line for the second time by comparing the network card data with the network card data in the production management system;
if yes, go to step S3;
if not, go to step S4;
s3, deleting the records of the repeated server equipment corresponding to the secondary online network card in the production test system, and carrying out network card MAC repeated test on the server equipment to be tested again;
and S4, judging that the network card MAC of the server equipment to be tested which reports errors leaves the factory repeatedly.
Example 2:
as shown in fig. 2, the present invention provides a method for processing network card MAC retest exception, which includes the following steps:
s1, acquiring server equipment to be tested which is in error reporting caused by network card MAC repetition in a production test system; the method comprises the following specific steps:
s11, acquiring error reporting machine type and order number information from a production test system through a user interface or a set timing task;
acquiring the information of the error reporting type and the order number from a production test system through a user interface; the method comprises the following specific steps:
s111, judging whether the user is a windows user or a linux user;
s112, if the user is a windows user, setting a windows user interface to acquire the information of the error reporting machine type and the order number input by the user, remotely logging in a linux system of the production test system through ssh, and entering the step S12;
s113, if the user is a linux user, setting a linux user interface to acquire the information of the error reporting machine type and the order number input by the user, and entering the step S12;
the method comprises the following steps of acquiring the information of a fault-reporting machine type and an order number from a production test system by setting a timing task, and specifically comprising the following steps:
s111', setting a timing task to monitor the test state of the production test system;
s112', when the regular task monitors that the production test system database reports errors, automatically acquiring the information of the error reporting type and the order number, and entering the step S12;
s12, retrieving an error reporting log of the production test system according to the obtained error reporting machine type and order number information, and obtaining error reporting information of the server equipment to be tested and network card information; the method comprises the following specific steps:
s121, screening an error report log of a specified path according to the acquired error report type, order number information and MAC repeated error report rule under a linux system to generate a first retrieval file;
s122, performing secondary retrieval from the first retrieval file to obtain a local serial number, an MAC (media access control) repeater serial number, a network card MAC and a network card material serial number of the server equipment to be tested, which reports errors, and generating a two-dimensional structure;
s123, acquiring the two-dimensional structure data of all error-reported servers to be tested, and generating a second retrieval file;
s2, verifying whether the network card of the server equipment to be tested which reports errors is on-line for the second time by comparing the network card data with the network card data in the production management system; the method comprises the following specific steps:
s21, acquiring a second retrieval file and a database table of the production management system;
s22, traversing the two-dimensional structure data in the second retrieval file, and determining whether the network card is on line for the second time in the production management system according to the network card serial number of the server to be tested which is reported in each two-dimensional structure data;
if yes, go to step S3;
if not, go to step S4;
s3, deleting the records of the repeated server equipment corresponding to the secondary online network card in the production test system, and carrying out network card MAC repeated test on the server equipment to be tested again; the method comprises the following specific steps:
s31, correspondingly recording and deleting the serial number of the MAC repeater of the network card on line for the second time in the database of the production test system;
s32, setting the server equipment to be tested corresponding to the network card on line twice to be in an untested state, restarting the server equipment to be tested in batches, and carrying out MAC (media access control) repeatability test on the network card again;
s4, judging that the network card MAC of the server equipment to be tested which reports errors leaves the factory repeatedly; the method comprises the following specific steps:
s41, judging whether the network card of the server equipment to be tested is verified to be on-line for the first time;
if yes, go to step S43;
if not, go to step S42;
s42, judging that the network card MAC of the server equipment to be tested leaves the factory repeatedly, and ending;
s43, restarting the server equipment to be tested in batch, and carrying out network card MAC repeatability test again.
In some embodiments, in step S112, graphical interfacing windows, buttons, prompt text, and input boxes of the window user interface are implemented by the Tkinter class in python; SSH2 is remotely and safely connected/logged under a Linux system of a production test system through paramiko class;
in step S111', a timing task is set through a crontab command, and if the timing task is set, the test state of the production test system is automatically detected every 10 minutes;
in step S112', a mysql statement is packaged to scan a database of a diag server host, and the mysql statement is started at regular time to inquire the content of a corresponding table of the database and then obtain the order number and the error reporting type of the running server equipment to be tested;
in step S121, scanning a specific log text name as an error log according to the MAC error repeated rule, and if the log is found to have network card MAC error repeated content, outputting the search content to a d.txt text file as a first search file;
in step S122, opening the d.txt file which has been retrieved for the first time to perform secondary screening, extracting the local serial number, the MAC repeater serial number, the network card MAC and the network card QN of the four pieces of key information, and storing the extracted four pieces of key information into the established two-dimensional structure;
in the step S32, the restart operation of batch ssh remote login to the tested server equipment is realized through an expect command; the method is realized by the following steps: the method comprises the steps that IP addresses corresponding to equipment serial numbers are read in batch in data in a production test system according to the equipment serial numbers repeatedly reported by network card MAC, because host account passwords of all server equipment to be tested are consistent, a fixed account password is adopted, a server equipment host to be tested is remotely logged in by utilizing a spawn function ssh in an expect command, and a restart operation is executed in the server equipment to be tested remotely reported by errors by using the expect command after logging in.
Example 3:
as shown in fig. 3, the present invention provides a device for processing MAC retest exception of a network card, including:
the error reporting server equipment to be tested acquiring module 1 is used for acquiring error reporting server equipment to be tested in a production test system due to network card MAC repetition; the error reporting to-be-tested server equipment acquisition module 1 comprises:
the error reporting machine type and order number acquisition unit 1.1 is used for acquiring error reporting machine type and order number information from a production test system through a user interface or a set timing task;
the error log retrieval unit 1.2 is used for retrieving the error log of the production test system according to the acquired error reporting model and order number information, and acquiring the information of the error reporting server equipment to be tested and the network card information; screening an error report log of a specified path under a linux system according to the acquired error report type, order number information and an MAC repeated error report rule to generate a first retrieval file; secondly, searching for the first search file for the second time to obtain a local serial number, an MAC (media access control) repeater serial number, a network card MAC and a network card material serial number of the server equipment to be tested, which reports errors, and generating a two-dimensional structure; finally, acquiring the two-dimensional structure data of all error-reported servers to be tested, and generating a second retrieval file;
the secondary online verification module 2 is used for verifying whether the network card of the server equipment to be tested which reports errors is online for the second time by comparing the network card data with the network card data in the production management system; the secondary online verification module 2 comprises:
a production management system database table obtaining unit 2.1, configured to obtain a second search file and a database table of the production management system;
the secondary online verification unit 2.2 is configured to traverse the two-dimensional structure data in the second search file, and confirm whether the network card is online for the second time in the production management system according to the network card serial number of the server to be detected reported in each two-dimensional structure data;
the repeated record deleting module 3 is used for deleting the repeated server equipment record corresponding to the secondarily-online network card in the production test system when the network card of the server equipment to be tested which reports errors is secondarily-online, and carrying out network card MAC repeatability test on the server equipment to be tested again; the duplicate record deletion module 3 includes:
a production test system repeated record deleting unit 3.1, which is used for correspondingly deleting the serial number of the MAC repeating machine of the network card on line for the second time in the production test system database;
the network card MAC repeatability retest unit 3.2 is used for setting the server equipment to be tested corresponding to the network card on line for the second time to be in a non-test state, restarting the server equipment to be tested in batches and retesting the network card MAC repeatability;
the network card MAC delivery repetition judging module 4 is used for judging delivery repetition of the network card MAC of the server equipment to be tested which reports errors when the network card of the server equipment to be tested which reports errors is not on line for the second time; the network card MAC delivery repetition judging module 4 comprises:
the test frequency judging unit 4.1 is used for judging whether the network card of the server equipment to be tested is verified to be on-line for the first time;
the network card MAC repetition judging unit 4.2 is used for judging that the network card MAC of the server equipment to be tested leaves the factory and repeats when the network card of the server equipment to be tested is verified to be on line for a non-secondary time again;
and the network card MAC repeated verification unit 4.3 is used for restarting the server equipment to be tested in batches when the network card of the server equipment to be tested is verified to be on line for the second time for the first time, and carrying out network card MAC repeated test again.
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 are 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 invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (7)

1. A network card MAC retest exception handling method is characterized by comprising the following steps:
s1, acquiring server equipment to be tested which is in error reporting caused by network card MAC repetition in a production test system;
s2, verifying whether the network card of the server equipment to be tested which reports errors is on-line for the second time by comparing the network card data with the network card data in the production management system;
if yes, go to step S3;
if not, go to step S4;
s3, deleting the records of the repeated server equipment corresponding to the secondary online network card in the production test system, and carrying out network card MAC repeated test on the server equipment to be tested again;
s4, judging that the network card MAC of the server equipment to be tested which reports errors leaves the factory repeatedly;
the step S1 includes the following steps:
s11, acquiring error reporting machine type and order number information from a production test system through a user interface or a set timing task;
s12, retrieving an error reporting log of the production test system according to the obtained error reporting machine type and order number information, and obtaining error reporting information of the server equipment to be tested and network card information;
the step S12 includes the following steps:
s121, screening an error report log of a specified path according to the acquired error report type, order number information and MAC repeated error report rule under a linux system to generate a first retrieval file;
s122, performing secondary retrieval from the first retrieval file to obtain a local serial number, an MAC (media access control) repeater serial number, a network card MAC and a network card material serial number of the server equipment to be tested, which reports errors, and generating a two-dimensional structure;
s123, acquiring the two-dimensional structure data of all error-reported server equipment to be tested, and generating a second retrieval file;
the step S2 includes the following steps:
s21, acquiring a second retrieval file and a database table of the production management system;
s22, traversing the two-dimensional structure data in the second retrieval file, and determining whether the network card is on line for the second time in the production management system according to the network card serial number of the server equipment to be tested which is reported in each two-dimensional structure data;
if yes, go to step S3;
if not, the process proceeds to step S4.
2. The network card MAC retest exception handling method of claim 1, wherein in step S11, the error-reporting type and order number information are acquired from the production test system through the user interface; the method comprises the following specific steps:
s111, judging whether the user is a windows user or a linux user;
s112, if the user is a windows user, setting a windows user interface to acquire the information of the error reporting machine type and the order number input by the user, remotely logging in a linux system of the production test system through ssh, and entering the step S12;
and S113, if the user is the linux user, setting the linux user interface to acquire the error reporting machine type and order number information input by the user, and entering the step S12.
3. The method for processing the exception of the MAC retest of the network card according to claim 1, wherein in step S11, the error-reporting type and order number information are acquired from the production test system by setting a timing task, and the specific steps are as follows:
s111', setting a timing task to monitor the test state of the production test system;
s112', when the timing task monitors that the production test system database reports errors, the error reporting machine type and the order number information are automatically acquired, and the step S12 is entered.
4. The method for processing the exception of the network card MAC retest of claim 2 or 3, wherein the step S3 specifically comprises the following steps:
s31, correspondingly recording and deleting the serial number of the MAC repeater of the network card on line for the second time in the database of the production test system;
and S32, setting the server equipment to be tested corresponding to the network card on line twice to be in a non-test state, restarting the server equipment to be tested in batch, and carrying out MAC repeatability test on the network card again.
5. The method for processing the exception of the network card MAC retest of claim 4, wherein the step S4 specifically comprises the following steps:
s41, judging whether the network card of the server equipment to be tested is verified to be on-line for the first time;
if yes, go to step S43;
if not, go to step S42;
s42, judging that the network card MAC of the server equipment to be tested leaves the factory repeatedly, and ending;
s43, restarting the server equipment to be tested in batch, and carrying out network card MAC repeatability test again.
6. A network card MAC retest exception handling device, characterized by, includes:
the error reporting server equipment to be tested acquisition module (1) is used for acquiring error reporting server equipment to be tested caused by network card MAC repetition in the production test system;
the secondary online verification module (2) is used for verifying whether the network card of the server equipment to be tested which reports errors is online for the second time by comparing the network card data with the network card data in the production management system;
the repeated record deleting module (3) is used for deleting the repeated server equipment record corresponding to the secondarily-online network card in the production test system when the network card of the server equipment to be tested which reports errors is secondarily-online, and carrying out network card MAC repeatability test on the server equipment to be tested again;
the network card MAC delivery repetition judging module (4) is used for judging delivery repetition of the network card MAC of the server equipment to be tested which reports errors when the network card of the server equipment to be tested which reports errors is not on line for the second time;
the error reporting server equipment to be tested acquisition module (1) comprises:
the error reporting machine type and order number acquisition unit (1.1) is used for acquiring error reporting machine type and order number information from a production test system through a user interface or a set timing task;
the error log retrieval unit (1.2) is used for retrieving the error log of the production test system according to the acquired error reporting model and order number information, and acquiring the information of the error reporting server equipment to be tested and the network card information; screening an error report log of a specified path under a linux system according to the acquired error report type, order number information and an MAC repeated error report rule to generate a first retrieval file; secondly, searching for the first search file for the second time to obtain a local serial number, an MAC (media access control) repeater serial number, a network card MAC and a network card material serial number of the server equipment to be tested, which reports errors, and generating a two-dimensional structure; finally, acquiring the two-dimensional structure data of all error-reported server equipment to be tested, and generating a second retrieval file;
the secondary online verification module (2) comprises:
the production management system database table acquisition unit (2.1) is used for acquiring a second retrieval file and a database table of the production management system;
and the secondary online verification unit (2.2) is used for traversing the two-dimensional structure data in the second retrieval file and confirming whether the network card is online secondarily or not in the production management system according to the network card serial number of the server equipment to be tested which is reported in each two-dimensional structure data.
7. The network card MAC retest exception handling device of claim 6, wherein the duplicate record deletion module (3) comprises:
a production test system repeated record deleting unit (3.1) for deleting the corresponding record of the serial number of the MAC repeating machine of the network card on line for the second time in the production test system database;
the network card MAC repeatability retest unit (3.2) is used for setting the server equipment to be tested corresponding to the network card on line for the second time to be in a non-test state, restarting the server equipment to be tested in batches and retesting the network card MAC repeatability;
the network card MAC delivery repetition judging module (4) comprises:
the test frequency judging unit (4.1) is used for judging whether the network card of the server equipment to be tested is verified to be on-line for the first time;
the network card MAC repeated judging unit (4.2) is used for judging that the network card MAC of the server equipment to be tested leaves the factory repeatedly when the network card of the server equipment to be tested is verified to be on line for a non-secondary time again;
and the network card MAC repeated verification unit (4.3) is used for restarting the server equipment to be tested in batches when the network card of the server equipment to be tested is verified to be on line for the second time for the first time, and carrying out network card MAC repeated test again.
CN202010814895.8A 2020-08-13 2020-08-13 Network card MAC repeated test exception handling method and device Active CN112003766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010814895.8A CN112003766B (en) 2020-08-13 2020-08-13 Network card MAC repeated test exception handling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010814895.8A CN112003766B (en) 2020-08-13 2020-08-13 Network card MAC repeated test exception handling method and device

Publications (2)

Publication Number Publication Date
CN112003766A CN112003766A (en) 2020-11-27
CN112003766B true CN112003766B (en) 2022-04-26

Family

ID=73472354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010814895.8A Active CN112003766B (en) 2020-08-13 2020-08-13 Network card MAC repeated test exception handling method and device

Country Status (1)

Country Link
CN (1) CN112003766B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014491B (en) * 2021-02-26 2022-07-08 山东英信计算机技术有限公司 Method and device for checking server MAC address repetition
CN114490746B (en) * 2021-12-23 2024-01-23 苏州浪潮智能科技有限公司 Equipment testing method and device, equipment to be tested and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959429A (en) * 2016-04-28 2016-09-21 浪潮电子信息产业股份有限公司 Method for ensuring network card MAC address uniqueness in computer complete machine system mass production
CN106027691A (en) * 2016-05-13 2016-10-12 深圳市国鑫恒宇科技有限公司 Checking and correcting method for network card MAC (Media Access Control) address
CN106487947A (en) * 2016-11-03 2017-03-08 广州视源电子科技股份有限公司 A kind of MAC Address duplicate checking method and device
CN108632107A (en) * 2017-12-29 2018-10-09 研祥智能科技股份有限公司 MAC Address of Network Card detection method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9799017B1 (en) * 2014-09-19 2017-10-24 Amazon Technologies, Inc. Cross-data-store operations in log-coordinated storage systems
CN111078476B (en) * 2019-10-25 2023-03-21 苏州浪潮智能科技有限公司 Network card drive firmware stability test method, system, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959429A (en) * 2016-04-28 2016-09-21 浪潮电子信息产业股份有限公司 Method for ensuring network card MAC address uniqueness in computer complete machine system mass production
CN106027691A (en) * 2016-05-13 2016-10-12 深圳市国鑫恒宇科技有限公司 Checking and correcting method for network card MAC (Media Access Control) address
CN106487947A (en) * 2016-11-03 2017-03-08 广州视源电子科技股份有限公司 A kind of MAC Address duplicate checking method and device
CN108632107A (en) * 2017-12-29 2018-10-09 研祥智能科技股份有限公司 MAC Address of Network Card detection method and device

Also Published As

Publication number Publication date
CN112003766A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN112003766B (en) Network card MAC repeated test exception handling method and device
US9864003B1 (en) Automated waveform analysis using a parallel automated development system
US20220050765A1 (en) Method for processing logs in a computer system for events identified as abnormal and revealing solutions, electronic device, and cloud server
CN109886709B (en) Intelligent lock management method, system, computer equipment and storage medium
US10151791B1 (en) Automated waveform analysis methods using a parallel automated development system
CN113014491B (en) Method and device for checking server MAC address repetition
WO2007147327A1 (en) Method, system and apparatus of fault location for communicaion apparatus
CN111694699B (en) Test method and device for automatically synchronizing RTC (real time clock) time by BMC (baseboard management controller) of server
CN112260885B (en) Industrial control protocol automatic test method, system, device and readable storage medium
CN111698121B (en) SNMP trap alarm test method and related device
CN106911510B (en) Usability monitoring system and method for network access system
CN111355740A (en) Method for rapidly and conveniently detecting firewall configuration
US10757402B2 (en) Camera certification for video surveillance systems
CN117254964A (en) Power grid intelligent terminal protocol vulnerability detection method based on high-order attribute grammar
US4527272A (en) Signature analysis using random probing and signature memory
CN111737112B (en) Method and system for realizing server management by remote end integration
CN112463572B (en) Cross-border multi-service dial testing software testing system and method thereof
Ungar Economic evaluation of testability and diagnosability for commercial off the shelf equipment
CN113538725A (en) Hardware product testing method and related equipment
CN114077214A (en) Online testing equipment of initiating explosive device and using method
CN110661677A (en) DNS (Domain name System) testing method, device and system
CN107390115B (en) Method for detecting SC serial port and MC serial port of IO in raid memory in batch
CN117312175B (en) Data processing method, device, computer equipment and storage medium
CN113722129B (en) Storage reliability test method and related device
CN114860549B (en) Buried data verification method, buried data verification device, buried data verification equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant