CN109815076A - A kind of network interface card boot option detection method, system, terminal and storage medium - Google Patents

A kind of network interface card boot option detection method, system, terminal and storage medium Download PDF

Info

Publication number
CN109815076A
CN109815076A CN201910168787.5A CN201910168787A CN109815076A CN 109815076 A CN109815076 A CN 109815076A CN 201910168787 A CN201910168787 A CN 201910168787A CN 109815076 A CN109815076 A CN 109815076A
Authority
CN
China
Prior art keywords
network interface
interface card
boot
boot option
option
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.)
Withdrawn
Application number
CN201910168787.5A
Other languages
Chinese (zh)
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 Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910168787.5A priority Critical patent/CN109815076A/en
Publication of CN109815076A publication Critical patent/CN109815076A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of network interface card boot option detection method, system, terminal and storage medium, comprising: setting standard boot number of options;Obtain the boot option of test network interface card;The comparison result of boot option and standard boot number of options based on test network interface card obtains network interface card boot option testing result.The present invention can automatically detect network interface card boot option, without human intervention, save human resources, the automatic comparison of boot option significantly improves detection efficiency compared to artificial comparison, saves detection time.

Description

A kind of network interface card boot option detection method, system, terminal and storage medium
Technical field
The invention belongs to server the field of test technology, and in particular to a kind of network interface card boot option detection method, system, end End and storage medium.
Background technique
Network interface card is in system O&M in occupation of very important status.Wherein just remotely start including passing through network interface card, or PXE bulking system;And it realizes these functions and network interface card is required to support PXE starting.In practical application, due to network interface card boot Both driver, BIOS etc. are constantly updating upgrading, the compatibility of the intrinsic problem of software version therein either the two is asked Topic, frequently resulting in boot option can't detect and influence the normal use of network interface card.Therefore to the boot option of network interface card at BIOS Detection also becomes important a part.
To detect the boot option information of network interface card, needing to be switched on every time enters the interface BIOS, inside finds all Boot option checks whether complete.Or booting enters system every time, collects BIOS detection log to check boot option information It is whether complete.This method needs labor intensive to be arranged in real time and observes log information, time-consuming larger and waste of manpower resource.
Therefore a kind of automated testing method is needed, boot option can be detected automatically after each Server Restart.
Summary of the invention
Manual operation, time-consuming and laborious deficiency are relied on for existing boot option detection method, the present invention provides a kind of net Block boot option detection method, system, terminal and storage medium, to solve the above technical problems.
In a first aspect, the present invention provides a kind of network interface card boot option detection method, comprising:
Setting standard boot number of options;
Obtain the boot option of test network interface card, comprising: acquisition BIOS log;Screen the boot option in BIOS log.
The comparison result of boot option and standard boot number of options based on test network interface card obtains the inspection of network interface card boot option Survey result, comprising: judge to test the boot number of options of network interface card and whether standard boot number of options is consistent: being then to determine net Card boot option detects successfully;It is no, then determine the detection failure of network interface card boot option.
Further, network interface card boot option detection method further include: setting detection number;Obtain network interface link state;Sentence Whether disconnected current detection number reaches setting detection number: being, then output test result;It is no, then according to network interface link state control The detection opened Xun Huan to boot option is thought highly of in testing service processed.
Second aspect, the present invention provide a kind of network interface card boot option detection system, comprising:
Standard setting unit is configured to setting standard boot number of options;
Option acquiring unit, comprising: log acquisition module is configured to acquisition BIOS log;Option screening module, configuration For screening the boot option in BIOS log.
As a result acquiring unit, comprising: consistent judgment module is configured to the boot number of options and mark of judgement test network interface card Whether quasi- boot number of options is consistent;Success determination module is configured to determine that network interface card boot option detects successfully;Failure determines Module is configured to determine the detection failure of network interface card boot option.
Further, network interface card boot option detection system further include: number setup module is configured to setting detection time Number;State acquisition module is configured to obtain network interface link state;Number judgment module is configured to judge current detection time Whether number reaches setting detection number;As a result output module is configured to output test result;Detection module is restarted, according to net The detection opened Xun Huan to boot option is thought highly of in mouth link state control testing service.
The third aspect provides a kind of terminal, comprising:
Processor, memory, wherein
The memory is used to store computer program,
The processor from memory for calling and running the computer program, so that terminal executes above-mentioned terminal Method.
Fourth aspect provides a kind of computer storage medium, instruction is stored in the computer readable storage medium, When run on a computer, so that computer executes method described in above-mentioned various aspects.
The beneficial effects of the present invention are,
Network interface card boot option detection method, system, terminal and storage medium provided by the invention, by the way that standard boot is arranged Number of options, then the automatic boot option for obtaining test network interface card, passes through the number and mark of the boot option of contrastive test network interface card Network interface card boot option testing result can be obtained according to comparison result in quasi- boot number of options.The present invention can be automatically to network interface card Boot option is detected, and without human intervention, saves human resources, the automatic comparison of boot option is compared compared to artificial Detection efficiency is significantly improved, detection time is saved.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic flow chart of the method for one embodiment of the invention.
Fig. 2 is the schematic flow chart of the method for one embodiment of the invention.
Fig. 3 is the schematic block diagram of the system of one embodiment of the invention.
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention Range.
The Key Term occurred in the present invention is explained below.
Fig. 1 is the schematic flow chart of the method for one embodiment of the invention.Wherein, Fig. 1 executing subject can be one kind Network interface card boot option detection system.
As shown in Figure 1, this method 100 includes:
Step 110, standard boot number of options is set;
Step 120, the boot option of test network interface card is obtained;
Step 130, the comparison result of boot option and standard boot number of options based on test network interface card obtains network interface card Boot option testing result.
Optionally, as one embodiment of the invention, the boot option for obtaining test network interface card includes:
Acquire BIOS log;
Screen the boot option in BIOS log.
Optionally, as one embodiment of the invention, the boot option and standard boot option based on test network interface card Comparison result obtain network interface card boot option testing result include:
Judge whether boot number of options and the standard boot number of options of test network interface card are consistent:
It is then to determine that network interface card boot option detects successfully;
It is no, then determine the detection failure of network interface card boot option.
Optionally, as one embodiment of the invention, the method also includes:
Setting detection number;
Obtain network interface link state;
Judge whether current detection number reaches setting detection number:
It is, then output test result;
It is no, then testing service is controlled according to network interface link state and thinks highly of the detection opened Xun Huan to boot option.
In order to facilitate the understanding of the present invention, below with the principle of network interface card boot option detection method of the present invention, in conjunction with reality The process detected in example to network interface card boot option is applied, network interface card boot option detection method provided by the invention is done further Description.
Specifically, referring to FIG. 2, the network interface card boot option detection method includes:
S1, setting standard boot number of options.
Network interface card boot option detection method provided in this embodiment utilizes script execution, first setting standard boot option number Mesh, the present embodiment are set as 8.
S2, the boot option for obtaining test network interface card.
The comparison result of S3, the boot option based on test network interface card and standard boot option obtain the detection of network interface card boot option As a result.
If Fig. 3 shows, which includes:
Standard setting unit 310, the standard setting unit 310 is for being arranged standard boot number of options;
Option acquiring unit 320, the option acquiring unit 320 are used to obtain the boot option of test network interface card;
As a result acquiring unit 330, the result acquiring unit 330 are used for boot option and standard based on test network interface card The comparison result of boot number of options obtains network interface card boot option testing result.
Optionally, as one embodiment of the invention, option acquiring unit includes: log acquisition module, is configured to adopt Collect BIOS log;Option screening module, the boot option being configured in screening BIOS log.
Optionally, as one embodiment of the invention, as a result acquiring unit, comprising: consistent judgment module is configured to sentence Whether the boot number of options and standard boot number of options of disconnected test network interface card are consistent;Success determination module, is configured to determine Network interface card boot option detects successfully;Failure determination module is configured to determine the detection failure of network interface card boot option.
Optionally, as one embodiment of the invention, the system also includes: number setup module is configured to be arranged Detect number;State acquisition module is configured to obtain network interface link state;It is current to be configured to judgement for number judgment module Whether detection number reaches setting detection number;As a result output module is configured to output test result;Restart detection module, Testing service, which is controlled, according to network interface link state thinks highly of the detection opened Xun Huan to boot option.
Fig. 4 is a kind of structural schematic diagram of terminal system 400 provided in an embodiment of the present invention, which can be with For executing network interface card boot option detection method provided in an embodiment of the present invention.
Wherein, which may include: processor 410, memory 420 and communication unit 430.These components It is communicated by one or more bus, it will be understood by those skilled in the art that the structure of server shown in figure is not Limitation of the invention is constituted, it is also possible to hub-and-spoke configuration either busbar network, can also include more than illustrating Or less component, perhaps combine certain components or different component layouts.
Wherein, which can be used for executing instruction for storage processor 410, and memory 420 can be by any class The volatibility or non-volatile memories terminal or their combination of type are realized, such as static random access memory (SRAM), electricity Erasable Programmable Read Only Memory EPROM (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.When executing instruction in memory 420 When being executed by processor 410, so that terminal 400 some or all of is able to carry out in following above method embodiment step.
Processor 410 is the control centre for storing terminal, utilizes each of various interfaces and the entire electric terminal of connection A part by running or execute the software program and/or module that are stored in memory 420, and calls and is stored in storage Data in device, to execute the various functions and/or processing data of electric terminal.The processor can be by integrated circuit (Integrated Circuit, abbreviation IC) composition, such as the IC that can be encapsulated by single are formed, can also be by more of connection The encapsulation IC of identical function or different function and form.For example, processor 410 can only include central processing unit (Central Processing Unit, abbreviation CPU).In embodiments of the present invention, CPU can be single operation core, can also To include multioperation core.
Communication unit 430, for establishing communication channel, so that the storage terminal be allow to be led to other terminals Letter.It receives the user data of other terminals transmission or sends user data to other terminals.
The present invention also provides a kind of computer storage mediums, wherein the computer storage medium can be stored with program, the journey Sequence may include step some or all of in each embodiment provided by the invention when executing.The storage medium can for magnetic disk, CD, read-only memory (English: read-only memory, referred to as: ROM) or random access memory (English: Random access memory, referred to as: RAM) etc..
Therefore, the present invention is by setting standard boot number of options, and then the automatic boot option for obtaining test network interface card, leads to The number and standard boot number of options for crossing the boot option of contrastive test network interface card, can be obtained network interface card boot according to comparison result Option testing result.The present invention can automatically detect network interface card boot option, without human intervention, save manpower money The automatic comparison in source, boot option significantly improves detection efficiency compared to artificial comparison, saves detection time, the present embodiment The attainable technical effect of institute may refer to described above, and details are not described herein again.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present invention substantially or Say that the part that contributes to existing technology can be embodied in the form of software products, which is stored in Such as USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory in one storage medium The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk, including it is several Instruction is used so that a terminal (can be personal computer, server or second terminal, the network terminal etc.) is held Row all or part of the steps of the method according to each embodiment of the present invention.
Same and similar part may refer to each other between each embodiment in this specification.Implement especially for terminal For example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring in embodiment of the method Explanation.
In several embodiments provided by the present invention, it should be understood that disclosed system, system and method, it can be with It realizes by another way.For example, system embodiment described above is only schematical, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of system or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in covering scope of the invention/appoint What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer It is included within the scope of the present invention.Therefore, protection scope of the present invention is answered described is with scope of protection of the claims It is quasi-.

Claims (10)

1. a kind of network interface card boot option detection method characterized by comprising
Setting standard boot number of options;
Obtain the boot option of test network interface card;
The comparison result of boot option and standard boot number of options based on test network interface card obtains network interface card boot option detection knot Fruit.
2. network interface card boot option detection method according to claim 1, which is characterized in that described obtain tests network interface card Boot option includes:
Acquire BIOS log;
Screen the boot option in BIOS log.
3. network interface card boot option detection method according to claim 1, which is characterized in that described based on test network interface card The comparison result of boot option and standard boot option obtains network interface card boot option testing result
Judge whether boot number of options and the standard boot number of options of test network interface card are consistent:
It is then to determine that network interface card boot option detects successfully;
It is no, then determine the detection failure of network interface card boot option.
4. network interface card boot option detection method according to claim 1, which is characterized in that the method also includes:
Setting detection number;
Obtain network interface l i nk state;
Judge whether current detection number reaches setting detection number:
It is, then output test result;
It is no, then testing service is controlled according to network interface l ink state and thinks highly of the detection opened Xun Huan to boot option.
5. a kind of network interface card boot option detection system characterized by comprising
Standard setting unit is configured to setting standard boot number of options;
Option acquiring unit is configured to obtain the boot option of test network interface card;
As a result acquiring unit, the comparison result for being configured to boot option and standard boot number of options based on test network interface card obtain Take network interface card boot option testing result.
6. network interface card boot option detection system according to claim 5, which is characterized in that the option acquiring unit packet It includes:
Log acquisition module is configured to acquisition BIOS log;
Option screening module, the boot option being configured in screening BIOS log.
7. network interface card boot option detection system according to claim 5, which is characterized in that the result acquiring unit packet It includes:
Consistent judgment module, be configured to judge to test the number of the boot option of network interface card and standard boot number of options whether one It causes;
Success determination module is configured to determine that network interface card boot option detects successfully;
Failure determination module is configured to determine the detection failure of network interface card boot option.
8. network interface card boot option detection system according to claim 5, which is characterized in that the system also includes:
Number setup module is configured to setting detection number;
State acquisition module is configured to obtain network interface l i nk state;
Number judgment module is configured to judge whether current detection number reaches setting detection number;
As a result output module is configured to output test result;
Restart detection module, testing service is controlled according to network interface l i nk state and thinks highly of the detection opened Xun Huan to boot option.
9. a kind of terminal characterized by comprising
Processor;
The memory executed instruction for storage processor;
Wherein, the processor is configured to perform claim requires the described in any item methods of 1-4.
10. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the program is executed by processor Shi Shixian method for example of any of claims 1-4.
CN201910168787.5A 2019-03-06 2019-03-06 A kind of network interface card boot option detection method, system, terminal and storage medium Withdrawn CN109815076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910168787.5A CN109815076A (en) 2019-03-06 2019-03-06 A kind of network interface card boot option detection method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910168787.5A CN109815076A (en) 2019-03-06 2019-03-06 A kind of network interface card boot option detection method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109815076A true CN109815076A (en) 2019-05-28

Family

ID=66608296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910168787.5A Withdrawn CN109815076A (en) 2019-03-06 2019-03-06 A kind of network interface card boot option detection method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109815076A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413328A (en) * 2019-07-24 2019-11-05 苏州浪潮智能科技有限公司 A kind of PXE function enabled method, device and the relevant device of network interface card port
CN110413459A (en) * 2019-06-24 2019-11-05 苏州浪潮智能科技有限公司 Recognition methods, device, equipment and the readable storage medium storing program for executing of external PHY card
CN114691223A (en) * 2022-03-21 2022-07-01 深圳市同泰怡信息技术有限公司 Method and device for transmitting BIOS log through network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413459A (en) * 2019-06-24 2019-11-05 苏州浪潮智能科技有限公司 Recognition methods, device, equipment and the readable storage medium storing program for executing of external PHY card
CN110413459B (en) * 2019-06-24 2023-01-10 苏州浪潮智能科技有限公司 External PHY card identification method, device, equipment and readable storage medium
CN110413328A (en) * 2019-07-24 2019-11-05 苏州浪潮智能科技有限公司 A kind of PXE function enabled method, device and the relevant device of network interface card port
CN110413328B (en) * 2019-07-24 2022-05-24 苏州浪潮智能科技有限公司 PXE function enabling method and device for network card port and related equipment
CN114691223A (en) * 2022-03-21 2022-07-01 深圳市同泰怡信息技术有限公司 Method and device for transmitting BIOS log through network
CN114691223B (en) * 2022-03-21 2023-08-22 深圳市同泰怡信息技术有限公司 Method and device for transmitting BIOS logs through network

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN109039829A (en) A kind of network card performance testing method, apparatus, terminal and storage medium
CN109815076A (en) A kind of network interface card boot option detection method, system, terminal and storage medium
CN110413470A (en) A kind of server I SS function test method, system, terminal and storage medium
CN110162435A (en) A kind of server PXE starting test method, system, terminal and storage medium
CN109510742A (en) A kind of server network interface card remote test method, device, terminal and storage medium
CN109783378A (en) GPU is in the compatibility test method of Ubnutu system, device, terminal and storage medium
CN109800029A (en) Batch sets method, apparatus, terminal and the storage medium of server B IOS parameter
CN109240865A (en) A kind of AC test method, device, terminal and the storage medium of AEP memory
CN107451060A (en) A kind of across mobile terminal automated test frame system
CN109257249A (en) A kind of network interface card stability test method, apparatus, terminal and storage medium
CN109032888A (en) A kind of server start-up course fault detection method, device and controlled terminal
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
CN109684166A (en) Method, apparatus, terminal and the storage medium of automatic test Sensor log normalization
CN109086176A (en) A kind of SSD steady-state method of test, device, equipment and storage medium based on FIO
CN109857471A (en) Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC
CN109446097A (en) A kind of regression test case selection method, device, terminal and storage medium
CN109117335A (en) A kind of hard disk simulation hot plug test method, device, terminal and storage medium
CN109032874A (en) A kind of memory pressure test method, device, terminal and storage medium
CN110399727A (en) A kind of BMC permission automatic test approach, system, terminal and storage medium
CN109491909A (en) A kind of CPLD refreshes verification method, device, terminal and storage medium
CN109324933A (en) A kind of AEP memory reboot test method, device, terminal and storage medium
CN109815070A (en) A kind of HOST-BOX server stability test method, apparatus, terminal and storage medium
CN109918221A (en) A kind of hard disk reports an error analytic method, system, terminal and storage medium
CN104601798B (en) A kind of custom application starting control method and device

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190528

WW01 Invention patent application withdrawn after publication