CN107257303A - A kind of method for carrying out automatic detection to network interface card in server system restarting process - Google Patents
A kind of method for carrying out automatic detection to network interface card in server system restarting process Download PDFInfo
- Publication number
- CN107257303A CN107257303A CN201710630458.9A CN201710630458A CN107257303A CN 107257303 A CN107257303 A CN 107257303A CN 201710630458 A CN201710630458 A CN 201710630458A CN 107257303 A CN107257303 A CN 107257303A
- Authority
- CN
- China
- Prior art keywords
- network interface
- interface card
- baseline
- information
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of method for carrying out automatic detection to network interface card in server system restarting process, belong to network interface card technical field of measurement and test, the present invention passes through the order under operating system, after system reboot, the automatic relevant information for obtaining network interface card under current system, then by being compared with the reference information obtained before test, the test purpose of checking network card status uniformity during Server Restart is reached.
Description
Technical field
Network interface card is carried out certainly in server system restarting process the present invention relates to network interface card measuring technology, more particularly to one kind
The method of dynamic detection.
Background technology
With the fast development of network, the high-speed requirement in big data epoch, need of the data center to faster access speed
Asking also gradually increases.Accounting for the 10Gb network interface cards of higher proportion in server mainstream configuration at present also progressively will be by 25Gb, 40Gb, very
To the substitution of 100Gb network interface cards.The progressively ripe network card equipment in past 5 years, will also face ripple upgrading.Therefore,
It is expected that each manufacturer server will all add substantial amounts of trendy High_speed NIC in respective novel server at present.
Therefore, in server test field, in various test process, increasing will also turn into the attention rate of network card equipment
One trend.
The content of the invention
In order to solve problem above, the present invention proposes one kind and network interface card is carried out automatically in server system restarting process
The method of detection.It is automatic to obtain network interface card information in operating system after each Server Restart, and with testing the preceding base obtained
Calibration information is compared, so as to reach the test purpose of checking network card status uniformity during Server Restart.Survey can be improved
Efficiency is tried, the input of test manpower is saved, it also avoid the mistake occurred in repeating, greatly improve operating efficiency and drop
Low human cost.
The technical scheme is that
By the order under operating system, after system reboot, it is automatic obtain the MAC Address of network interface card under current system, IP address,
The relevant informations such as unit type, PCIE device number, then by being compared with the reference information obtained before test, reach checking
The test purpose of network card status uniformity during Server Restart.
Three steps are broadly divided into,
The first step, is rebooted into after system every time, automatically by baseline information identical method is obtained, and obtains network interface card correlation letter
Breath, and preserve to data file;
Second step, the network interface card relevant information that the first step is obtained carries out logic with the baseline information obtained in preposition work and compared,
It is completely the same then to export a Pass result into destination file, then export a Fail result if there is inconsistent place
Into destination file;
3rd step, the result obtained according to second step, if result is Pass, is restarted test and proceeded, this is performed repeatedly
Three steps are operated;If result is Fail, sends order and interrupt reboot operation, retain phenomenon, tester yet-to-be developed is asked
Topic analysis.
Obtaining the relevant information of network interface card under current system mainly includes:MAC Address, IP address, unit type, PCIE device
Number.
Early stage needs configuration system, and sets network interface card IP, using the base-line data for acquisition network interface card information of such as issuing orders,
ifconfig -a | grep -a1 HWaddr | awk 'NR==2{print $1,$4,$5} NR==3{print $
1,$2}'|tee –a baseline.log
Processing order by primary commands ifconfig-a and afterwards, obtains the systematic naming method of network interface card, MAC Address and sets
The IP address put, and baseline.log is stored in as base-line data;
Afterwards by order, unit type and PCIE device number are obtained, and be saved in the baseline information above generated;
So far, baseline information, which is obtained, completes, and initially enters testing process link.
The beneficial effects of the invention are as follows
This method quickly, efficiently, can be examined accurately to state stability of the network card equipment during Server Restart
Survey, the coverage rate of perfect Server Restart test.And thus method can be tested by the firmware of network card equipment, driving stability
Card, improves the test quality of relevant device compatibility.And because all instructions has been previously written script, it is thus also avoided that in hand
During dynamic operation, the instruction input mistake caused due to largely repeating.Greatly improve operating efficiency and reduce human cost.
Brief description of the drawings
Fig. 1 is the operational process schematic diagram of the present invention.
Embodiment
More detailed illustrate is carried out to present disclosure below:
This method be under calculate node system, after each system reboot by self-starting in the order that sets obtain network interface card
The relevant informations such as MAC Address, IP address, unit type, PCIE device number, then enter with the reference information that captures first before test
Row is compared, so as to verify the uniformity of network card status during system reboot.
Below by taking the script process of this method as an example, this method is progressively illustrated,
Preposition work:
Configuration system, and network interface card IP is set, using the base-line data for acquisition network interface card information of such as issuing orders,
ifconfig -a | grep -a1 HWaddr | awk 'NR==2{print $1,$4,$5} NR==3{print $
1,$2}'|tee –a baseline.log
Processing order by primary commands ifconfig-a and afterwards, obtains the systematic naming method of network interface card, MAC Address and sets
The IP address put, and baseline.log is stored in as base-line data, its return value is as follows
xgbe0 HWaddr AB:CD:EF:01:23:45
inet addr:10.65.11.112
Wherein xgbe0 is the AB after equipment name of the network interface card under system, HWaddr:CD:EF:01:23:45 be network interface card
It is the default IP address of network interface card after MAC Address, the inet addr of the second row.
Afterwards by order, unit type and PCIE device number are obtained, and is saved in the baseline letter above generated
In breath,
lspci |grep -i ethernet|tee –a baseline.log
Its return value is as follows,
1a:00.0 Ethernet controller: Intel Corporation Device 37d3 (rev 08)
Wherein1a:00.0For the PCIE device number of network interface card,Intel Corporation Device 37d3As network interface card model.
So far, baseline information, which is obtained, completes, and initially enters testing process link.
Testing process
The first step, is rebooted into after system every time, automatically by baseline information identical method is obtained, and obtains network interface card correlation letter
Breath, and preserve to data file;
Second step, the network interface card relevant information that the first step is obtained carries out logic with the baseline information obtained in preposition work and compared,
It is completely the same then to export a Pass result into destination file, then export a Fail result if there is inconsistent place
Into destination file;
3rd step, the result obtained according to second step, if result is Pass, is restarted test and proceeded, this is performed repeatedly
Three steps are operated;If result is Fail, sends order and interrupt reboot operation, retain phenomenon, tester yet-to-be developed is asked
Topic analysis.
Claims (4)
1. a kind of method for carrying out automatic detection to network interface card in server system restarting process, it is characterised in that
By the order under operating system, after system reboot, the automatic relevant information for obtaining network interface card under current system, Ran Houtong
Cross and be compared with the reference information obtained before test, reach the survey of checking network card status uniformity during Server Restart
Try purpose.
2. according to the method described in claim 1, it is characterised in that
Three steps are broadly divided into,
The first step, is rebooted into after system every time, automatically by baseline information identical method is obtained, and obtains network interface card correlation letter
Breath, and preserve to data file;
Second step, the network interface card relevant information that the first step is obtained carries out logic with the baseline information obtained in preposition work and compared,
It is completely the same then to export a Pass result into destination file, then export a Fail result if there is inconsistent place
Into destination file;
3rd step, the result obtained according to second step, if result is Pass, is restarted test and proceeded, this is performed repeatedly
Three steps are operated;If result is Fail, sends order and interrupt reboot operation, retain phenomenon, tester yet-to-be developed is asked
Topic analysis.
3. method according to claim 2, it is characterised in that
Obtaining the relevant information of network interface card under current system mainly includes:MAC Address, IP address, unit type, PCIE device number.
4. method according to claim 3, it is characterised in that
Early stage needs configuration system, and sets network interface card IP, using the base-line data for acquisition network interface card information of such as issuing orders,
ifconfig -a | grep -a1 HWaddr | awk 'NR==2{print $1,$4,$5} NR==3{print $
1,$2}'|tee –a baseline.log
Processing order by primary commands ifconfig-a and afterwards, obtains the systematic naming method of network interface card, MAC Address and sets
The IP address put, and baseline.log is stored in as base-line data;
Afterwards by order, unit type and PCIE device number are obtained, and be saved in the baseline information above generated;
So far, baseline information, which is obtained, completes, and initially enters testing process link.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710630458.9A CN107257303A (en) | 2017-07-28 | 2017-07-28 | A kind of method for carrying out automatic detection to network interface card in server system restarting process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710630458.9A CN107257303A (en) | 2017-07-28 | 2017-07-28 | A kind of method for carrying out automatic detection to network interface card in server system restarting process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107257303A true CN107257303A (en) | 2017-10-17 |
Family
ID=60025874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710630458.9A Pending CN107257303A (en) | 2017-07-28 | 2017-07-28 | A kind of method for carrying out automatic detection to network interface card in server system restarting process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107257303A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908490A (en) * | 2017-11-09 | 2018-04-13 | 郑州云海信息技术有限公司 | GPU registers reliability verification method and system in a kind of server DC tests |
CN108965062A (en) * | 2018-08-07 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of network interface test method, device, equipment and the storage medium of Onboard NIC |
CN109257250A (en) * | 2018-08-30 | 2019-01-22 | 郑州云海信息技术有限公司 | Network interface card stability test method and device, storage medium and electronic equipment |
CN109257249A (en) * | 2018-08-20 | 2019-01-22 | 郑州云海信息技术有限公司 | A kind of network interface card stability test method, apparatus, terminal and storage medium |
CN109597732A (en) * | 2018-12-11 | 2019-04-09 | 郑州云海信息技术有限公司 | A kind of PCIE device monitoring method based on Linux |
CN109639525A (en) * | 2018-12-14 | 2019-04-16 | 北京计算机技术及应用研究所 | Network interface detection method based on production domesticization operating system |
CN109802867A (en) * | 2019-01-02 | 2019-05-24 | 郑州云海信息技术有限公司 | A kind of method and system for testing network interface card NCSI connective stability |
CN111464377A (en) * | 2020-03-12 | 2020-07-28 | 苏州浪潮智能科技有限公司 | Network card inspection method, device, equipment and storage medium |
CN114912107A (en) * | 2022-07-15 | 2022-08-16 | 飞腾信息技术有限公司 | Access management method, related device, system and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060294378A1 (en) * | 2005-06-23 | 2006-12-28 | Lumsden Ian A | Key loading systems and methods |
CN102983968A (en) * | 2011-09-02 | 2013-03-20 | 深圳市快播科技有限公司 | A method and a server for software backend authentication |
CN103107997A (en) * | 2013-03-13 | 2013-05-15 | 北京电信规划设计院有限公司 | Passive optical network session service distribution method |
CN103973515A (en) * | 2014-05-12 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Network card stability testing method |
CN106487941A (en) * | 2015-08-31 | 2017-03-08 | 北京华为数字技术有限公司 | A kind of method and apparatus of collocating medium access control address |
-
2017
- 2017-07-28 CN CN201710630458.9A patent/CN107257303A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060294378A1 (en) * | 2005-06-23 | 2006-12-28 | Lumsden Ian A | Key loading systems and methods |
CN102983968A (en) * | 2011-09-02 | 2013-03-20 | 深圳市快播科技有限公司 | A method and a server for software backend authentication |
CN103107997A (en) * | 2013-03-13 | 2013-05-15 | 北京电信规划设计院有限公司 | Passive optical network session service distribution method |
CN103973515A (en) * | 2014-05-12 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Network card stability testing method |
CN106487941A (en) * | 2015-08-31 | 2017-03-08 | 北京华为数字技术有限公司 | A kind of method and apparatus of collocating medium access control address |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908490A (en) * | 2017-11-09 | 2018-04-13 | 郑州云海信息技术有限公司 | GPU registers reliability verification method and system in a kind of server DC tests |
CN107908490B (en) * | 2017-11-09 | 2021-02-05 | 苏州浪潮智能科技有限公司 | Method and system for verifying reliability of GPU (graphics processing Unit) register in server DC (direct Current) test |
CN108965062A (en) * | 2018-08-07 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of network interface test method, device, equipment and the storage medium of Onboard NIC |
CN109257249A (en) * | 2018-08-20 | 2019-01-22 | 郑州云海信息技术有限公司 | A kind of network interface card stability test method, apparatus, terminal and storage medium |
CN109257250A (en) * | 2018-08-30 | 2019-01-22 | 郑州云海信息技术有限公司 | Network interface card stability test method and device, storage medium and electronic equipment |
CN109597732A (en) * | 2018-12-11 | 2019-04-09 | 郑州云海信息技术有限公司 | A kind of PCIE device monitoring method based on Linux |
CN109639525A (en) * | 2018-12-14 | 2019-04-16 | 北京计算机技术及应用研究所 | Network interface detection method based on production domesticization operating system |
CN109639525B (en) * | 2018-12-14 | 2022-05-17 | 北京计算机技术及应用研究所 | Network interface detection method based on homemade operating system |
CN109802867A (en) * | 2019-01-02 | 2019-05-24 | 郑州云海信息技术有限公司 | A kind of method and system for testing network interface card NCSI connective stability |
CN109802867B (en) * | 2019-01-02 | 2022-04-26 | 郑州云海信息技术有限公司 | Method and system for testing connection stability of network card NCSI |
CN111464377A (en) * | 2020-03-12 | 2020-07-28 | 苏州浪潮智能科技有限公司 | Network card inspection method, device, equipment and storage medium |
CN114912107A (en) * | 2022-07-15 | 2022-08-16 | 飞腾信息技术有限公司 | Access management method, related device, system and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107257303A (en) | A kind of method for carrying out automatic detection to network interface card in server system restarting process | |
CN104375910A (en) | Automated startup and shutdown testing method | |
CN103973515A (en) | Network card stability testing method | |
US10809298B2 (en) | Batch testing system and method thereof | |
US20150319072A1 (en) | Methods, systems, and computer readable media for providing fuzz testing functionality | |
CN107193699A (en) | One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes | |
CN107612775A (en) | A kind of node two level connects the DC method of testings and system of server | |
US20120131385A1 (en) | Testing mehtod for unit under test | |
CN106547653A (en) | Computer system fault condition detection method, apparatus and system | |
CN106407059A (en) | Server node testing system and method | |
CN107193730A (en) | A kind of interface test method of automation | |
CN104615519A (en) | Method for detecting loss of memory capacity of server under LINUX system | |
CN104422865A (en) | Wafer-level one time programmable (OTP) chip test method and device | |
CN103678058A (en) | Hardware detection system and method | |
KR100939198B1 (en) | Testing device, testing method, analyzing device, and program | |
CN111984539A (en) | Automatic testing method and device for webpage front end | |
CN115794639B (en) | Visual test based on flow and visual simulation test system and method | |
CN116302736A (en) | Method and device for testing components of server, electronic equipment and storage medium | |
CN109783292A (en) | A kind of inspection method and system of server info | |
CN108089965A (en) | A kind of computer parallel type method for testing pressure | |
CN114283876A (en) | DDR signal quality test method, test device and test equipment | |
CN113342675A (en) | Mapping method and device of tested module, and testing method and system | |
CN112834907A (en) | Test system supporting log file configuration | |
TWI679530B (en) | Batch test system and method thereof | |
CN108280003A (en) | A kind of method and system of automatic Boot Server batch testing |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171017 |