CN107508727B - Automatic network card information checking method and device - Google Patents

Automatic network card information checking method and device Download PDF

Info

Publication number
CN107508727B
CN107508727B CN201710773404.8A CN201710773404A CN107508727B CN 107508727 B CN107508727 B CN 107508727B CN 201710773404 A CN201710773404 A CN 201710773404A CN 107508727 B CN107508727 B CN 107508727B
Authority
CN
China
Prior art keywords
speed
duplex
status
network
comparison result
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
CN201710773404.8A
Other languages
Chinese (zh)
Other versions
CN107508727A (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 CN201710773404.8A priority Critical patent/CN107508727B/en
Publication of CN107508727A publication Critical patent/CN107508727A/en
Application granted granted Critical
Publication of CN107508727B publication Critical patent/CN107508727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

An automatic network card information checking method specifically comprises the following steps: confirming the number of network ports of the machine to be tested; looking up status, duplex and speed of the current network; comparing the real-time status, duplex and speed with the expected value; and outputting the comparison result to a file for storage. The automatic network card information checking device is also included. Can snatch network information automatically, status, duplex, speed and the expected value of current network contrast, confirm unanimously, and the test passes through, confirms inconsistent test failure to in inputing the file with the test result, improved efficiency of software testing, and can effectual reduction artificial check bring the execution error, ensured the quality of test.

Description

Automatic network card information checking method and device
Technical Field
The invention relates to the technical field of network card detection, in particular to an automatic network card information checking method and device.
Background
With the rapid development of the IT industry, the requirements of clients on servers are various, in order to meet the requirements of different clients, the same project has the mainboards with various specifications, particularly the requirements of Internet clients on different networks, due to the shortage of people, many testers are just graduates of practice, the specification of the mainboard is not deeply known, the actual effect is not good through a manual inspection mode, a large amount of manpower is needed, and execution errors caused by unfamiliarity of products often occur.
Disclosure of Invention
The invention aims to provide an automatic network card information checking method and device, which are used for solving the problems that errors and human resource waste are easily caused by human factors in network card detection.
The technical scheme adopted by the invention for solving the technical problems is as follows: an automatic network card information checking method specifically comprises the following steps:
confirming the number of network ports of the machine to be tested;
looking up status, duplex and speed of the current network;
comparing the real-time status, duplex and speed with the expected value;
and outputting the comparison result to a file for storage.
Further, before the above steps, the method also includes connecting all data network ports of the device under test to a network environment with matched rate.
Further, the confirmation of the number of the network ports of the machine to be tested is executed through a countif command; and searching status, duplex and speed of the current network is executed by using grep command.
Further, the premise for comparing the real-time status, duplex, speed with the expected value is to preset the expected value of status, duplex, speed.
Further, the expected value of status is yes, the expected value of duplex is full, and the expected value of speed is 1000.
Further, the comparison result comprises past and failed; if the real-time status, duplex and speed meet the expected values, the comparison result is past; if the real-time status, duplex, speed do not meet the expected values, the comparison result is failed.
An automatic network card information inspection device utilizes the method, and comprises a network port inspection module, a network port inspection module and a network port inspection module, wherein the network port inspection module is used for determining the number of network ports of a machine to be tested; and the combination of (a) and (b),
the query module is used for traversing and searching status, duplex and speed of the current network; and the combination of (a) and (b),
the comparison module is used for comparing the real-time values of status, duplex and speed with the expected values;
and the result judging and outputting module is used for judging the comparison result, storing the comparison result and outputting the comparison result to the file.
Furthermore, the device also comprises a preset module used for connecting all data network ports of the device to be tested to the network environment with matched speed.
Further, the expected values of status, duplex and speed in the comparison module are yes, full and 1000 respectively.
Further, the comparison result includes past and failed.
The above summary provides merely a representation of embodiments of the invention and is not intended to be exhaustive or to limit the invention to the precise form disclosed.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
according to one technical scheme, the network information can be automatically captured, status, duplex and speed of the current network are compared with expected values, consistency is confirmed, the test is passed, inconsistent test failure is confirmed, and the test result is input into a file, so that the test efficiency is improved, the execution errors caused by manual verification can be effectively reduced, and the test quality is ensured.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 2 is a schematic connection diagram of a module structure according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
As shown in fig. 1, an automatic network card information checking method specifically includes the following steps:
step 1) confirming the number of network ports of a machine to be tested;
step 2) looking up status, duplex and speed of the current network;
step 3) comparing the real-time status, duplex and speed with an expected value;
and 4) outputting the comparison result to a file for storage.
Before the above steps, all data network ports of the device under test are connected to a network environment with matched speed.
Confirming that the number of the network ports of the machine to be tested is executed through a countif command; and searching status, duplex and speed of the current network is executed by using grep command.
The precondition for comparing the real-time status, duplex, speed with the expected value is to preset the expected value of status, duplex, speed. The expected value for status is yes, the expected value for duplex is full, and the expected value for speed is 1000.
The comparison result comprises past and failed; if the real-time status, duplex and speed meet the expected values, the comparison result is past; if the real-time status, duplex, speed do not meet the expected values, the comparison result is failed.
An automatic network card information inspection device comprises a network port inspection module, a network interface module and a network interface module, wherein the network port inspection module is used for determining the number of network ports of a machine to be tested; the query module is used for traversing and searching status, duplex and speed of the current network; the comparison module is used for comparing the real-time values of status, duplex and speed with the expected values; and the result judging and outputting module is used for judging the comparison result, storing the comparison result and outputting the comparison result to the file.
The device also comprises a preset module used for connecting all data network ports of the machine to be tested to the network environment with matched speed.
The expected values of status, duplex and speed in the comparison module are yes, full and 1000 respectively.
The comparison results include past and failed. When the real-time status, duplex and speed meet the expected values, the comparison result is past; when the real-time status, duplex and speed do not meet the expected values, the comparison result is failed.
The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the invention, and such modifications and improvements are also considered to be within the scope of the invention.

Claims (4)

1. An automatic network card information checking method is characterized by comprising the following steps:
connecting all data network ports of the machine to be tested to a network environment with matched speed;
confirming the number of network ports of the machine to be tested;
looking up status, duplex and speed of the current network;
comparing the real-time status, duplex and speed with the expected value;
outputting the comparison result to a file for storage;
the network port number of the machine to be tested is confirmed to be executed through a countif command; searching status, duplex and speed of the current network and executing by adopting a grep command;
the comparison result comprises past and failed; if the real-time status, duplex and speed meet the expected values, the comparison result is past; if the real-time status, duplex, speed do not meet the expected values, the comparison result is failed.
2. The method of claim 1, wherein the comparing the real-time status, duplex, speed with the expected value is premised on presetting the expected value of status, duplex, speed; the expected value of status is yes, the expected value of duplex is full, and the expected value of speed is 1000.
3. An automatic network card information checking device, using the method of any one of claims 1 to 2, characterized by comprising a preset module for connecting all data network ports of a machine under test to a network environment with matched rate; and
the network port checking module is used for determining the number of the network ports of the machine to be tested; and the combination of (a) and (b),
the query module is used for traversing and searching status, duplex and speed of the current network; and the combination of (a) and (b),
the comparison module is used for comparing the real-time values of status, duplex and speed with the expected values;
the result judging and outputting module is used for judging the comparison result, storing the comparison result and outputting the comparison result to a file;
the comparison results include past and failed.
4. The apparatus of claim 3, wherein the expected values of status, duplex, speed in the comparison module are yes, full, 1000 respectively.
CN201710773404.8A 2017-08-31 2017-08-31 Automatic network card information checking method and device Active CN107508727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710773404.8A CN107508727B (en) 2017-08-31 2017-08-31 Automatic network card information checking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710773404.8A CN107508727B (en) 2017-08-31 2017-08-31 Automatic network card information checking method and device

Publications (2)

Publication Number Publication Date
CN107508727A CN107508727A (en) 2017-12-22
CN107508727B true CN107508727B (en) 2020-11-27

Family

ID=60693231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710773404.8A Active CN107508727B (en) 2017-08-31 2017-08-31 Automatic network card information checking method and device

Country Status (1)

Country Link
CN (1) CN107508727B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965062A (en) * 2018-08-07 2018-12-07 郑州云海信息技术有限公司 A kind of network interface test method, device, equipment and the storage medium of Onboard NIC
CN109039829A (en) * 2018-09-18 2018-12-18 郑州云海信息技术有限公司 A kind of network card performance testing method, apparatus, terminal and storage medium
CN109639525B (en) * 2018-12-14 2022-05-17 北京计算机技术及应用研究所 Network interface detection method based on homemade operating system
CN111193638A (en) * 2019-12-20 2020-05-22 曙光信息产业股份有限公司 Linux platform based network card automatic testing method and device
CN111416754B (en) * 2020-03-13 2022-02-22 苏州浪潮智能科技有限公司 Method, device, equipment and medium for restoring storage network port rate

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468388A (en) * 2014-11-04 2015-03-25 浪潮电子信息产业股份有限公司 Method for testing load balancing of network card based on Linux system
CN105516388A (en) * 2015-12-15 2016-04-20 上海斐讯数据通信技术有限公司 Wireless network device MAC address test method and system
CN105636101A (en) * 2016-01-26 2016-06-01 珠海迈科智能科技股份有限公司 Method and device for detecting wifi performance of set-top box

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8472883B2 (en) * 2008-09-23 2013-06-25 Intel Mobile Communications GmbH Self calibration method for radio equipment with receive and transmit circuitry

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468388A (en) * 2014-11-04 2015-03-25 浪潮电子信息产业股份有限公司 Method for testing load balancing of network card based on Linux system
CN105516388A (en) * 2015-12-15 2016-04-20 上海斐讯数据通信技术有限公司 Wireless network device MAC address test method and system
CN105636101A (en) * 2016-01-26 2016-06-01 珠海迈科智能科技股份有限公司 Method and device for detecting wifi performance of set-top box

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《网卡参数查询及设置工具ethtool》;onephone;《CSDN博客》;20170117;正文全文 *

Also Published As

Publication number Publication date
CN107508727A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN107508727B (en) Automatic network card information checking method and device
CN107145437B (en) Java annotation test method and device
WO2017000424A1 (en) Protocol detection method and apparatus
CN108768730B (en) Method and device for operating intelligent network card
CN111427765B (en) Method and system for automatically starting interface performance test realized based on jmeter
US9392011B2 (en) Web vulnerability repair apparatus, web server, web vulnerability repair method, and program
CN108459850B (en) Method, device and system for generating test script
CN107832179A (en) A kind of PCIe Error Enabling method of testings
US8839188B2 (en) Automated build process and root-cause analysis
CN105743707A (en) Method for testing BMC log analyzing function based on Redhat system
CN108231132B (en) NAND flash memory verification device and verification system
CN101770416B (en) Bus testing method for new generation of peripheral connecting interface
CN107632909B (en) Method and system for automatically testing device functions
CN103984633B (en) A kind of bank main passes down the automatization test system of operation
CN109710479B (en) Processing method, first device and second device
CN106452965A (en) Method of automatically verifying NCSI stability of network card
CN103218277A (en) Automatic detection method and device for server environment
CN108255697B (en) SMT-based vehicle-mounted controller software semi-formalization requirement verification system and method
CN107562565A (en) A kind of method for verifying internal memory Patrol Scurb functions
CN106055445A (en) Method for automatically testing pressure of CPU
CN112948195B (en) Interface testing method, device, electronic equipment and storage medium
CN115934559A (en) Testing method of intelligent form testing system
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
CN108984355A (en) A kind of automated testing method of interface testing
CN110224892A (en) A kind of computer network automatic check method, system 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
TA01 Transfer of patent application right

Effective date of registration: 20201104

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant