CN110413328B - PXE function enabling method and device for network card port and related equipment - Google Patents
PXE function enabling method and device for network card port and related equipment Download PDFInfo
- Publication number
- CN110413328B CN110413328B CN201910671660.5A CN201910671660A CN110413328B CN 110413328 B CN110413328 B CN 110413328B CN 201910671660 A CN201910671660 A CN 201910671660A CN 110413328 B CN110413328 B CN 110413328B
- Authority
- CN
- China
- Prior art keywords
- pxe
- port
- network card
- target
- control 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000006870 function Effects 0.000 claims description 134
- 230000004048 modification Effects 0.000 claims description 15
- 238000012986 modification Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 8
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000010187 selection method Methods 0.000 description 2
- 230000009191 jumping Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4416—Network booting; Remote initial program loading [RIPL]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Small-Scale Networks (AREA)
Abstract
The application discloses a PXE function enabling method of a network card port, which comprises the steps of carrying out port scanning on a target network card according to an obtained enabling instruction, and distributing a unique identifier for each port of the target network card; generating PXE control options of corresponding ports by using the unique identifier; acquiring a target PXE control option selected from all the PXE control options; setting the port corresponding to the target PXE control option to be in an enable state; the PXE function enabling method for the network card port can effectively manage the PXE function enabling state of each port of the network card, and greatly improves the efficiency of the network card for realizing the PXE boot function. The application also discloses a PXE function enabling device, equipment and a computer readable storage medium of the network card port, which have the beneficial effects.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a PXE function enabling method for a network card port, and further, to a PXE function enabling apparatus, a device, and a computer-readable storage medium for a network card port.
Background
With the development of computer technology, in order to realize different data exchange functions with the outside, the server can be externally connected with network cards of different models. The network card has an important function of a PXE (Pre-boot Execution Environment), specifically, a protocol designed by Intel can make a computer boot through a network, the protocol is divided into a client and a server, the PXE client is in a ROM of the network card, when the computer boots, a BIOS calls the PXE client into a memory to execute, and displays a command menu, and after a user selects the PXE client, the PXE client downloads an operating system placed at a far end to a local for running through the network.
For a multi-port network card, when using a PXE function, only a network cable needs to be inserted into a designated port, and the port is booted when starting, but in general, each port of the network card is in a state of default configuration of the PXE function, and then when performing PXE boot, all ports are scanned to find the port into which the network cable is inserted to perform PXE boot into a PXE environment, and when the number of the network cards is large or the number of the network ports of the network cards is large, a large amount of scanning time is needed, thereby greatly reducing the working efficiency.
In addition, for a client site, in different application scenarios, different network ports may use different functions, for example, some network ports only perform data services, and the other network ports configure a PXE function, that is, not all network ports need to perform PXE function configuration; further, assuming that all network ports of the same network card are default to be configured with the PXE function, and all network ports are accessed to the network cable, and are set to run data services through the previous network port, and the subsequent network port executes the PXE function, then, in the PXE boot process, since the BIOS starts scanning from the first network port of the network card, it is inevitable that there is network cable access through the first network port, and the PXE boot function is implemented in the network port, but this will conflict with the data services running in the network port, which affects the normal running of the data services. In order to solve the problem, in the prior art, the network cable is generally plugged and pulled in a mode of manually selecting a network port, but a large amount of labor force is brought to workers, and the working efficiency is reduced to a certain extent.
Therefore, how to effectively manage the PXE function enabling state of each port of the network card to improve the efficiency of the network card in implementing the PXE boot function is a problem to be solved by those skilled in the art.
Disclosure of Invention
The PXE function enabling method for the network card port can effectively manage PXE function enabling states of all the ports of the network card, and greatly improves the efficiency of the network card for realizing a PXE boot function; it is another object of the present application to provide a PXE function enabling apparatus, device and computer readable storage medium for network card port, which also have the above-mentioned advantages.
In order to solve the above technical problem, the present application provides a PXE function enabling method for a network card port, where the PXE function enabling method for a network card port includes:
carrying out port scanning on a target network card according to the obtained enabling instruction, and distributing a unique identifier for each port of the target network card;
generating PXE control options of corresponding ports by using the unique identifier;
acquiring a target PXE control option selected from all the PXE control options;
and setting the port corresponding to the target PXE control option to be in an enable state.
Preferably, the allocating a unique identifier to each port of the target network card includes:
and distributing Bus/Device/Function to each port of each target network card.
Preferably, the generating PXE control options for the corresponding port by using the unique identifier includes:
and calling a preset function to process the unique identifier to obtain the PXE control option of the port corresponding to the unique identifier.
Preferably, the obtaining a selected target PXE control option from all the PXE control options includes:
sending each PXE control option to a Setup interface for displaying;
and acquiring the target PXE control option selected by a user from each PXE control option based on the Setup interface.
Preferably, the PXE function enabling method for the network card port further includes:
and setting the ports corresponding to the PXE control options except the target PXE control option to a disable state.
Preferably, the PXE function enabling method for the network card port further includes:
acquiring a modification command aiming at each PXE control option by utilizing an ipmi command;
selecting each PXE control option through the modification instruction to obtain a modified target PXE control option;
and setting the port corresponding to the modified target PXE control option to be in an enable state.
Preferably, the PXE function enabling method for the network card port further includes:
receiving a PXE boot instruction for the target network card;
traversing each port of the target network card according to the PXE boot instruction, and determining the enabling state of each port;
and executing PXE function configuration operation on the port with the enable state being the enable state so as to realize the PXE boot function.
In order to solve the above technical problem, the present application further provides a PXE function enabling device of a network card port, where the PXE function enabling device of the network card port includes:
the unique identifier distribution module is used for carrying out port scanning on the target network card according to the obtained enabling instruction and distributing unique identifiers for all ports of the target network card;
the control option generation module is used for generating PXE control options of corresponding ports by using the unique identifier;
the control option selection module is used for acquiring a target PXE control option selected from all the PXE control options;
and the PXE function enabling module is used for setting the port corresponding to the target PXE control option to be in an enable state.
In order to solve the above technical problem, the present application further provides a PXE function enabling device of a network card port, where the PXE function enabling device of the network card port includes:
a memory for storing a computer program;
and the processor is used for realizing the steps of the PXE function enabling method of any one network card port when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the PXE function enabling method for any network card port.
The PXE function enabling method for the network card port comprises the steps of carrying out port scanning on a target network card according to an obtained enabling instruction, and distributing a unique identifier for each port of the target network card; generating PXE control options of corresponding ports by using the unique identifier; acquiring a target PXE control option selected from all the PXE control options; and setting the port corresponding to the target PXE control option to be in an enable state.
Therefore, in the PXE function enabling method for the network card port provided by the application, in the process of scanning the network card port, a unique identifier is distributed to each port to represent the uniqueness of the network card port, and further PXE control options corresponding to each network card port are generated by using the unique identifiers, namely one network card port corresponds to one PXE control option, so that a target PXE control option can be directly selected from all the generated PXE control options and a target network card port corresponding to the target PXE control option is obtained, and further the PXE function enabling of the network card is realized by using the target network card port, the realizing method does not need manual plugging and pulling out of a network cable, the PXE control function enabling of a specified network port can be realized only by selecting a proper target PXE control option according to actual requirements, even in the case of facing a large number of network card with multiple network ports, the method is also suitable, and the workload of workers is greatly reduced, the working efficiency is effectively improved.
The PXE function enabling device, apparatus and computer readable storage medium for network card port provided in the present application all have the above beneficial effects, and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a PXE function enabling method for a network card port provided in the present application;
fig. 2 is a schematic flowchart of a method for implementing a PXE boot function of a network card according to the present application;
fig. 3 is a schematic flowchart of another method for implementing a PXE boot function of a network card provided in the present application;
fig. 4 is a schematic structural diagram of a PXE function enabling device for a network card port provided in the present application;
fig. 5 is a schematic structural diagram of a PXE function enabling device of a network card port provided in the present application.
Detailed Description
The core of the application is to provide a PXE function enabling method of the network card port, the PXE function enabling method of the network card port can effectively manage PXE function enabling states of all the ports of the network card, and the efficiency of the network card for realizing a PXE boot function is greatly improved; at the other core of the present application, a PXE function enabling apparatus, device and computer readable storage medium for network card port are provided, which also have the above beneficial effects.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but 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 application.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a PXE function enabling method for a network card port provided in the present application, where the PXE function enabling method for a network card port may include:
s101: carrying out port scanning on the target network card according to the obtained enabling instruction, and distributing unique identifiers for all ports of the target network card;
the step aims to realize the distribution of the unique identifier of the network card port, specifically, when an enabling instruction is received, each port of a target network card can be scanned according to the enabling instruction, wherein the target network card is the network card which needs to realize the PXE function enabling, further, each scanned port is distributed with the unique identifier of the scanned port, certainly, the specific content of the unique identifier is not unique, and the uniqueness of the port is reflected.
It can be understood that the method for acquiring the enabling instruction does not affect the implementation of the technical scheme, and the method may be initiated by a worker based on a client, or may be automatically triggered according to a preset response condition, which is not limited in this application.
Preferably, the allocating a unique identifier to each port of the target network card may include: and allocating Bus/Device/Function (Bus number/Device number/Function number) to each port of each target network card.
Specifically, the embodiment of the present application provides a unique identifier with specific content, i.e., the Bus/Device/Function, to embody the uniqueness of the network card port.
S102: generating PXE control options of corresponding ports by using the unique identifier;
specifically, after the PXE control options are generated, each network card port has its corresponding PXE control option, for example, for a four-port (port) onboard network card, there are also four PXE control options correspondingly generated, so that a worker can designate a network card port for implementing the PXE function by designating the PXE control option.
Preferably, the generating of the PXE control option of the corresponding port by using the unique identifier may include: and calling a preset function to process the unique identifier to obtain the PXE control option of the port corresponding to the unique identifier.
The application provides a more specific method for generating a PXE control option, that is, a unique identifier is calculated through a preset function, wherein the selection of the preset function does not affect the implementation of the technical scheme, and any one of the prior art can be adopted, which is not described herein again.
S103: acquiring a target PXE control option selected from all PXE control options;
the method comprises the steps that target PXE control options are selected, each network card port generates a corresponding PXE control option, a proper PXE control option can be selected from all PXE control options according to actual requirements to serve as the target PXE control option, the selection can be achieved through manual selection based on a terminal interface, or automatic setting can be achieved through responding to preset selection rules, and the method is not specifically limited.
Preferably, the obtaining of the target PXE control option selected from all the PXE control options may include: sending each PXE control option to a Setup interface for displaying; and acquiring target PXE control options selected by a user from the PXE control options based on the Setup interface.
The application provides a more specific selection method of the target PXE control option, namely a selection method based on a terminal interface, so that the condition that a worker can realize PXE function enabling of a target network card appointed network port according to actual requirements is effectively guaranteed. Specifically, all the generated PXE control options can be sent to a front-end interface, that is, a Setup interface, for displaying, so that a worker can select a target PXE control option from all the PXE control options displayed by the Setup interface. Of course, the display method of each PXE control option on the terminal interface is not specifically limited in this application, and may be displayed in a list format, for example.
S104: and setting the port corresponding to the target PXE control option to be in an enable state.
The step aims to realize PXE function enabling of the target network card appointed port, and specifically, the selected target PXE control option is set to be in an enable state. It is understood that the number of the selected target PXE control options is not unique, and may be multiple, for example, for a four-port onboard network card, two PXE control options from the 4 PXE control options generated by the four-port onboard network card may be selected as the target PXE control options, so that the ports corresponding to the two selected PXE control options are set to an enable state.
Further, the number of the target network cards is also not unique, specifically, for one server, the number of the external network cards may be multiple, and therefore, the number of the target network cards required to implement the PXE function enablement may also be multiple, and thus, by the method, not only the PXE function enablement of the designated network card and the designated network port but also the PXE function enablement of the batch network card and the batch port may be implemented.
As a preferred embodiment, the PXE function enabling method for a network card port may further include: and setting ports corresponding to the PXE control options except the target PXE control option to be in a disable state.
Specifically, for each PXE control option other than the selected target PXE control option, the corresponding port may be set to a disable state since the PXE function is not required to be enabled. Therefore, for the target network card, the PXE function enabling can be realized through the specified port, and normal data services can be realized through other network ports.
As a preferred embodiment, the PXE function enabling method for a network card port may further include: acquiring a modification command aiming at each PXE control option by utilizing an ipmi command; selecting each PXE control option through the modification instruction to obtain a modified target PXE control option; and setting the ports corresponding to the modified target PXE control options to be in an enable state.
The PXE function enabling method for the network card port provided in the embodiment of the present application may also modify the port for implementing the PXE function enabling, that is, implement the PXE function enabling through an ipmi command. Specifically, an ipmi command may be initiated by an operator based on the terminal interface, where the ipmi command includes a modification command for each PXE control option, and then a port corresponding to the modified target PXE control option is set to an enable state.
Similarly, taking a four-port onboard network card as an example, originally designating a third port to realize PXE function enabling, that is, the third port is in an enable state, and the first, second and fourth ports are in disable states, and now modifying a target PXE control option to a PXE control option corresponding to the fourth port through an ipmi command, so that the third port is changed from the enable state to the disable state, the fourth port is changed from the disable state to the enable state, and the enable states of the first and second ports remain unchanged, thereby realizing modification of the ports realizing PXE function enabling.
Further, batch modification and remote modification of the target internet access can be realized through the method, the workload of workers is greatly reduced, and the working efficiency is effectively improved.
In the PXE function enabling method for the network card port, during the process of scanning the network card port, a unique identifier is distributed to each port to represent the uniqueness of the network card port, and further the unique identifier is used for generating PXE control options corresponding to each network card port, namely one network card port corresponds to one PXE control option, so that a target PXE control option can be directly selected from all the generated PXE control options and a target network card port corresponding to the target PXE control option is obtained, and further the PXE function enabling of the network card is realized by using the target network card port, the realization method does not need manual plugging and unplugging of a network cable, the PXE control function enabling of a specified network port can be realized only by selecting a proper target PXE control option according to actual requirements, even in the case of facing a large number of multi-port network cards, the method is also suitable, and the workload of workers is greatly reduced, the working efficiency is effectively improved.
On the basis of the foregoing embodiments, please refer to fig. 2, where fig. 2 is a schematic flowchart of a method for implementing a network card PXE boot function provided in the present application, where the method for implementing the network card PXE boot function may include:
s201: receiving a PXE (PCI extensions for instrumentation) boot instruction for a target network card;
s202: traversing each port of the target network card according to the PXE boot instruction, and determining the enabling state of each port;
s203: and executing PXE function configuration operation on the port with the enable state being the enable state so as to realize the PXE boot function.
Based on the PXE function enabling method for the card port provided in the previous embodiment, after the PXE function enabling is completed, the PXE boot function can be further realized through the port that completes the PXE function enabling. Specifically, when a PXE boot instruction for the target network card is received, all ports of the target network card may be traversed based on the instruction to determine the enabling state of each network port, and since the PXE function enabling of the designated port of the target network card has been completed based on the previous embodiment, at this time, a PXE function configuration operation is directly performed on the port whose enabling state is an enable state, so that the PXE boot function is implemented, and for the port whose enabling state is a disable state, the PXE function configuration is not performed, and the PXE boot function is not implemented.
Further, taking an on-board network card as an example, the present application provides a more specific method for implementing a PXE boot function of the network card, please refer to fig. 3, and fig. 3 is a schematic flow chart of another method for implementing the PXE boot function of the network card provided by the present application. The onboard network card is fixed on the mainboard in a connection mode, so the onboard network card is called as an onboard network card, can be used as a pcie device to be directly connected with a CPU rootport (root port) and is connected in an onboard mode, and therefore the rootport connected with the onboard network card is fixed. Further, the implementation flow of the method for implementing the PXE boot function of the network card is as follows:
firstly, starting up, scanning a Personal Computer (PCI) by a basic input/output system (BIOS), scanning network ports (ports) of a board-mounted network card Device to determine that a plurality of network ports are arranged on the board-mounted network card, and distributing Bus/Device/Function to each network port; further, calling a corresponding function to create a corresponding number of PXE control options on a BIOS Setup interface;
secondly, the BIOS code finds the network ports through Bus/Device/Function, and before loading the PXE oprom, the PXE control options corresponding to the network ports are judged;
step three, for the PXE control option corresponding to the specified network port for realizing the PXE boot function, if the network port is in an enable state, loading the PXE oprom; otherwise, jumping to the step five and finishing the loading;
step four, finishing a PXE boot function through a specified network port;
and step five, finishing.
Therefore, the PXE boot function of the specified network interface port is further realized on the basis of finishing the PXE function enabling of the specified network interface card port, so that the PXE boot function of the specified network interface card port is processed remotely and in batches, and the working efficiency is greatly improved.
To solve the above problem, please refer to fig. 4, where fig. 4 is a schematic structural diagram of a PXE function enabling device of a network card port provided in the present application, the PXE function enabling device of the network card port may include:
the unique identifier distribution module 10 is configured to perform port scanning on the target network card according to the obtained enabling instruction, and distribute a unique identifier to each port of the target network card;
the control option generating module 20 is configured to generate a PXE control option of a corresponding port by using the unique identifier;
a control option selection module 30, configured to obtain a target PXE control option selected from all the PXE control options;
and the PXE function enabling module 40 is configured to set the port corresponding to the target PXE control option to an enable state.
It can be seen that, in the PXE function enabling device for network card ports provided in the embodiments of the present application, during the process of scanning the network card ports, a unique identifier is allocated to each port to indicate the uniqueness of the network card ports, and further a PXE control option corresponding to each network card port is generated by using the unique identifier, that is, one network card port corresponds to one PXE control option, so that a target PXE control option can be directly selected from all the generated PXE control options and a target network card port corresponding thereto is obtained, and further the PXE function enabling of the network card is realized by using the target network card port, which does not need to manually plug and unplug a network cable, and can realize the PXE control function enabling of a designated network port by selecting an appropriate target PXE control option according to actual requirements, even in the case of facing a large number of network cards with multiple network ports, the method is also suitable, and greatly reduces the workload of workers, the working efficiency is effectively improved.
As a preferred embodiment, the unique identifier allocating module 10 may be specifically configured to perform port scanning on the target network card according to the obtained enabling instruction, and allocate a Bus/Device/Function to each port of each target network card.
As a preferred embodiment, the control option generating module 20 may be specifically configured to call a preset function to process the unique identifier, and obtain the PXE control option of the port corresponding to the unique identifier.
As a preferred embodiment, the control option selecting module 30 may be specifically configured to send each PXE control option to a Setup interface for displaying; and acquiring target PXE control options selected by a user from the PXE control options based on the Setup interface.
As a preferred embodiment, the PXE function enabling apparatus for a network card port may further include a PXE enabling state setting module, configured to set a port corresponding to each PXE control option except for the target PXE control option to a disable state.
As a preferred embodiment, the PXE function enabling device of the network card port may further include a control option modification module, configured to obtain a modification command for each PXE control option by using an ipmi command; selecting each PXE control option through a modification instruction to obtain a modified target PXE control option; and setting the ports corresponding to the modified target PXE control options to be in an enable state.
As a preferred embodiment, the PXE function enabling device of the network card port may further include a PXE boot function implementing module, configured to receive a PXE boot instruction for the target network card; traversing each port of the target network card according to the PXE boot instruction, and determining the enabling state of each port; and executing PXE function configuration operation on the port with the enable state being the enable state so as to realize the PXE boot function.
For the introduction of the apparatus provided in the present application, please refer to the above method embodiments, which are not described herein again.
To solve the above problem, please refer to fig. 5, fig. 5 is a schematic structural diagram of a PXE function enabling device of a network card port provided in the present application, where the PXE function enabling device of the network card port may include:
a memory 1 for storing a computer program;
a processor 2, configured to implement the following steps when executing the computer program:
carrying out port scanning on the target network card according to the obtained enabling instruction, and distributing unique identifiers for all ports of the target network card; generating PXE control options of the corresponding ports by using the unique identifier; acquiring a target PXE control option selected from all PXE control options; and setting the port corresponding to the target PXE control option to be in an enable state.
For the introduction of the device provided in the present application, please refer to the above method embodiment, which is not described herein again.
To solve the above problem, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program when executed by a processor can implement the following steps:
carrying out port scanning on the target network card according to the obtained enabling instruction, and distributing unique identifiers for all ports of the target network card; generating PXE control options of corresponding ports by using the unique identifier; acquiring a target PXE control option selected from all PXE control options; and setting the port corresponding to the target PXE control option to be in an enable state.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided in the present application, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing has described in detail PXE function enabling methods, apparatuses, devices and computer readable storage media for network card ports provided by the present application. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and these improvements and modifications also fall into the elements of the protection scope of the claims of the present application.
Claims (10)
1. A PXE function enabling method of a network card port is characterized by comprising the following steps:
carrying out port scanning on a target network card according to the obtained enabling instruction, and distributing a unique identifier for each port of the target network card;
generating PXE control options of corresponding ports by using the unique identifier;
acquiring a target PXE control option selected from all the PXE control options;
and setting the port corresponding to the target PXE control option to be in an enable state.
2. The PXE function enabling method of claim 1, wherein said assigning a unique identifier to each port of the target network card comprises:
and distributing Bus/Device/Function to each port of each target network card.
3. The PXE function enabling method of claim 1, wherein said generating PXE control options for corresponding ports using said unique identifier comprises:
and calling a preset function to process the unique identifier to obtain the PXE control option of the port corresponding to the unique identifier.
4. The PXE function enabling method of claim 1, wherein said obtaining a selected target PXE control option from among all said PXE control options comprises:
sending each PXE control option to a Setup interface for displaying;
and acquiring the target PXE control option selected by a user from each PXE control option based on the Setup interface.
5. The PXE function enabling method of claim 1, further comprising:
and setting the ports corresponding to the PXE control options except the target PXE control option to a disable state.
6. The PXE function enabling method of any one of claims 1 to 5, further comprising:
acquiring a modification command aiming at each PXE control option by utilizing an ipmi command;
selecting each PXE control option through the modification instruction to obtain a modified target PXE control option;
and setting the port corresponding to the modified target PXE control option to be in an enable state.
7. The PXE function enabling method of claim 1, further comprising:
receiving a PXE boot instruction for the target network card;
traversing each port of the target network card according to the PXE boot instruction, and determining the enabling state of each port;
and executing PXE function configuration operation on the port with the enable state being the enable state so as to realize the PXE boot function.
8. A PXE function enabling device of a network card port is characterized by comprising:
the unique identifier distribution module is used for carrying out port scanning on the target network card according to the obtained enabling instruction and distributing unique identifiers for all ports of the target network card;
the control option generation module is used for generating PXE control options of corresponding ports by using the unique identifier;
the control option selection module is used for acquiring a target PXE control option selected from all the PXE control options;
and the PXE function enabling module is used for setting the port corresponding to the target PXE control option to be in an enable state.
9. A PXE function enabling device of a network card port is characterized by further comprising:
a memory for storing a computer program;
a processor for implementing the steps of the PXE function enabling method for a network card port of any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon, a computer program which, when executed by a processor, implements the steps of the PXE function enabling method for a network card port of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910671660.5A CN110413328B (en) | 2019-07-24 | 2019-07-24 | PXE function enabling method and device for network card port and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910671660.5A CN110413328B (en) | 2019-07-24 | 2019-07-24 | PXE function enabling method and device for network card port and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110413328A CN110413328A (en) | 2019-11-05 |
CN110413328B true CN110413328B (en) | 2022-05-24 |
Family
ID=68362853
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910671660.5A Active CN110413328B (en) | 2019-07-24 | 2019-07-24 | PXE function enabling method and device for network card port and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110413328B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399168B (en) * | 2019-07-12 | 2022-05-24 | 苏州浪潮智能科技有限公司 | System starting method, device and equipment for multiple data disk storage servers |
CN111835571B (en) * | 2020-07-20 | 2023-04-07 | 平安科技(深圳)有限公司 | Intelligent network card initialization method and device, computer equipment and storage medium |
CN113190279B (en) * | 2021-04-01 | 2023-03-17 | 山东英信计算机技术有限公司 | Pre-boot function control method, system and medium |
CN117331607A (en) * | 2023-10-26 | 2024-01-02 | 无锡沐创集成电路设计有限公司 | Method for starting based on designated network port and related components |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232522A (en) * | 2008-02-22 | 2008-07-30 | 浙江大学 | Network card driving method |
CN105681081A (en) * | 2016-01-12 | 2016-06-15 | 华为技术有限公司 | Physical machine management method and device |
CN106657029A (en) * | 2016-12-05 | 2017-05-10 | 南京南瑞继保电气有限公司 | Redundant communication method for realizing multi-internet access IP address sharing based on white list |
CN109815076A (en) * | 2019-03-06 | 2019-05-28 | 苏州浪潮智能科技有限公司 | A kind of network interface card boot option detection method, system, terminal and storage medium |
-
2019
- 2019-07-24 CN CN201910671660.5A patent/CN110413328B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232522A (en) * | 2008-02-22 | 2008-07-30 | 浙江大学 | Network card driving method |
CN105681081A (en) * | 2016-01-12 | 2016-06-15 | 华为技术有限公司 | Physical machine management method and device |
CN106657029A (en) * | 2016-12-05 | 2017-05-10 | 南京南瑞继保电气有限公司 | Redundant communication method for realizing multi-internet access IP address sharing based on white list |
CN109815076A (en) * | 2019-03-06 | 2019-05-28 | 苏州浪潮智能科技有限公司 | A kind of network interface card boot option detection method, system, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110413328A (en) | 2019-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110413328B (en) | PXE function enabling method and device for network card port and related equipment | |
US12056519B2 (en) | Virtual machine migration method and apparatus | |
WO2020052438A1 (en) | Game rendering method and apparatus, terminal, and non-transitory computer-readable storage medium | |
CN109995814B (en) | Cloud host resource migration method and device, communication equipment and storage medium | |
CN109725950B (en) | Method, device and storage medium for realizing single-instance operation of client | |
CN111414285A (en) | Test method, test device and test equipment for starting function of server system | |
CN111262753B (en) | Method, system, terminal and storage medium for automatically configuring number of NUMA nodes | |
CN114116364A (en) | Chip debugging method, storage medium, related device and system | |
CN112667228A (en) | Application program construction method and device and computer equipment | |
CN111104178A (en) | Dynamic library loading method, terminal device and storage medium | |
CN111181781A (en) | Vdbench test configuration method, system, terminal and storage medium | |
WO2024113884A1 (en) | Resource allocation method and apparatus for peripheral, server, and storage medium | |
CN117708029A (en) | PCIE topology structure simulation method, device, equipment and medium | |
CN115878327A (en) | Bus reservation method, device, server, electronic equipment and storage medium | |
CN111427550A (en) | Object creating method, terminal device and storage medium | |
CN110798346B (en) | Configuration method of newly added network card of Linux virtual machine and related components | |
CN113656322B (en) | Data processing method, device, electronic equipment and computer storage medium | |
CN110971696B (en) | System and method for realizing virtual electronic card communication | |
CN112379902B (en) | Method, apparatus and computer readable storage medium for adapting multiple end devices | |
CN113746673A (en) | Method, device, equipment and medium for deploying bare metal server ipxe | |
CN114116491A (en) | Webpage program testing method and device, electronic equipment and storage medium | |
CN113377418A (en) | File loading method, storage medium and equipment | |
CN110968383B (en) | Message frame display method and device, terminal and storage medium | |
CN111078596A (en) | Flash chip control method, device and system and readable storage medium | |
CN111026650B (en) | Method and device for testing software, storage medium and electronic equipment |
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 |