[go: up one dir, main page]

CN113517996B - A network card equipment polling method, system and related devices - Google Patents

A network card equipment polling method, system and related devices Download PDF

Info

Publication number
CN113517996B
CN113517996B CN202110325991.0A CN202110325991A CN113517996B CN 113517996 B CN113517996 B CN 113517996B CN 202110325991 A CN202110325991 A CN 202110325991A CN 113517996 B CN113517996 B CN 113517996B
Authority
CN
China
Prior art keywords
network card
polling
option
card device
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110325991.0A
Other languages
Chinese (zh)
Other versions
CN113517996A (en
Inventor
郑媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110325991.0A priority Critical patent/CN113517996B/en
Publication of CN113517996A publication Critical patent/CN113517996A/en
Application granted granted Critical
Publication of CN113517996B publication Critical patent/CN113517996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

本申请提供一种网卡设备轮询方法,包括:接收设备轮询指令;判断BIOS配置界面中网卡单独轮询选项是否启用;若是,搜寻启动设备中的网卡设备并将所述网卡设备作为唯一启动项;若否,轮询所有启动设备并启动服务器。本申请通过在BIOS配置界面配置网卡单独轮询选项,当网卡单独轮询选项启动时,可以仅针对网卡设备进行轮询控制,当网卡单独轮询选项关闭时,可以按照正常顺序进行启动设备轮询。可以避免在网卡设备不在第一顺序时由于其他启动设备影响网卡设备的启动,减少PXE网络自动部署系统的故障率。本申请还提供一种、计算机可读存储介质和服务器,具有上述有益效果。

This application provides a network card device polling method, including: receiving device polling instructions; determining whether the network card independent polling option in the BIOS configuration interface is enabled; if so, searching for the network card device in the startup device and using the network card device as the only startup device item; if not, poll all boot devices and start the server. This application configures the network card independent polling option in the BIOS configuration interface. When the network card independent polling option is enabled, polling control can only be performed on the network card device. When the network card independent polling option is turned off, the device polling can be started in the normal order. Inquire. This can avoid other startup devices from affecting the startup of the network card device when the network card device is not in the first order, and reduce the failure rate of the PXE network automatic deployment system. The application also provides a computer-readable storage medium and a server, which have the above beneficial effects.

Description

一种网卡设备轮询方法、系统及相关装置A network card equipment polling method, system and related devices

技术领域Technical field

本申请涉及服务器领域,特别涉及一种网卡设备轮询方法、系统及相关装置。The present application relates to the field of servers, and in particular to a network card device polling method, system and related devices.

背景技术Background technique

BIOS(Basic Input Output System)为基本输入输出系统,作为服务器主板最底层的、最直接的硬件设置和控制的管理者,BIOS功能的优化,更能提高服务器的易用性。而PXE(Pre-boot Execution Environment,预启动执行环境)是一种网络引导技术,工作在Client/Server(客户端/服务器)模式,PXE网卡的ROM(Read-Only Memory,只读存储器)内置了对dhcp和tftp协议的支持,允许客户机通过网络从远程服务器下载引导镜像,并加载安装文件或者整个操作系统。PXE网络的方式来实现系统自动化批量安装,整个安装过程中无需人工干预,极大的提供了工作效率。服务器上架最初进行部署时,要求从网卡设备启动,但当前轮询机制一旦有其他启动设备参与轮询,则直接以其他启动设备启动,从而造成PXE启动失败,同时轮询暂停,影响服务器系统部署,降低服务器系统的部署效率。BIOS (Basic Input Output System) is the basic input and output system. As the lowest and most direct manager of hardware settings and control of the server motherboard, the optimization of BIOS functions can improve the usability of the server. PXE (Pre-boot Execution Environment, pre-boot execution environment) is a network boot technology that works in Client/Server (client/server) mode. The ROM (Read-Only Memory) of the PXE network card has built-in Support for dhcp and tftp protocols allows clients to download boot images from remote servers over the network and load installation files or the entire operating system. PXE network is used to realize automated batch installation of the system. No manual intervention is required during the entire installation process, which greatly improves work efficiency. When the server is initially deployed, it is required to start from the network card device. However, once other startup devices participate in polling, the current polling mechanism will directly start with other startup devices, causing PXE startup failure and polling suspension, affecting server system deployment. , Reduce the deployment efficiency of the server system.

发明内容Contents of the invention

本申请的目的是提供一种网卡设备轮询方法、网卡设备轮询系统、计算机可读存储介质和服务器,通过配置网卡单独轮询选项确保网卡启动设备轮询不受其他启动设备影响。The purpose of this application is to provide a network card device polling method, a network card device polling system, a computer-readable storage medium and a server, and to ensure that the network card startup device polling is not affected by other startup devices by configuring the network card independent polling option.

为解决上述技术问题,本申请提供一种网卡设备轮询方法,具体技术方案如下:In order to solve the above technical problems, this application provides a network card device polling method. The specific technical solutions are as follows:

接收设备轮询指令;Receive device polling instructions;

判断BIOS配置界面中网卡单独轮询选项是否启用;Determine whether the separate polling option for the network card in the BIOS configuration interface is enabled;

若是,搜寻启动设备中的网卡设备并将所述网卡设备作为唯一启动项;If so, search for the network card device in the startup device and use the network card device as the only startup item;

若否,轮询所有启动设备并启动服务器。If not, poll all boot devices and start the server.

可选的,还包括:Optional, also includes:

根据所述IPMI命令启用或关闭所网卡单独轮询选项。Enable or disable individual polling options for all network cards according to the IPMI command.

可选的,根据所述IPMI命令启用或关闭所网卡单独轮询选项之前,还包括:Optionally, before enabling or disabling individual polling options for all network cards according to the IPMI command, include:

在所述BIOS配置界面添加所述网卡单独轮询选项,并为所述网卡单独轮询选项配置IPMI指令集。Add the network card independent polling option in the BIOS configuration interface, and configure an IPMI command set for the network card independent polling option.

可选的,轮询所有启动设备并启动服务器包括:Optionally, polling all boot devices and starting the server includes:

按照启动设备的设备编号顺序轮询所有启动设备并启动服务器。Polls all boot devices in order of their device number and starts the server.

可选的,搜寻网卡设备并将所述网卡设备作为唯一启动项之后,还包括:Optionally, after searching for the network card device and using the network card device as the only startup item, it also includes:

启动所述网卡设备,连接远程服务器;Start the network card device and connect to the remote server;

从所述远程服务器下载并安装引导镜像。Download and install a boot image from the remote server.

可选的,从所述远程服务器下载并安装引导镜像之后,还包括:Optionally, after downloading and installing the boot image from the remote server, it also includes:

关闭所述网卡单独轮询选项,并配置默认启动设备。Turn off the individual network card polling option and configure the default boot device.

本申请还提供一种网卡设备轮询系统,包括:This application also provides a network card device polling system, including:

指令接收模块,用于接收设备轮询指令;Instruction receiving module, used to receive device polling instructions;

判断模块,用于判断BIOS配置界面中网卡单独轮询选项是否启用;The judgment module is used to judge whether the independent polling option of the network card in the BIOS configuration interface is enabled;

单独轮询模块,用于所述判断模块的判断结果为是时,搜寻启动设备中的网卡设备并将所述网卡设备作为唯一启动项;A separate polling module is used to search for the network card device in the startup device and use the network card device as the only startup item when the judgment result of the judgment module is yes;

正常轮询模块,用于所述判断模块的判断结果为否时,轮询所有启动设备并启动服务器。The normal polling module is used to poll all startup devices and start the server when the judgment result of the judgment module is no.

可选的,还包括:Optional, also includes:

指令配置模块,用于根据所述IPMI命令启用或关闭所网卡单独轮询选项。An instruction configuration module is used to enable or disable individual polling options for all network cards according to the IPMI command.

本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法的步骤。The present application also provides a computer-readable storage medium on which a computer program is stored, which implements the steps of the above method when executed by a processor.

本申请还提供一种服务器,包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时实现如上所述的方法的步骤。This application also provides a server, which includes a memory and a processor. A computer program is stored in the memory. When the processor calls the computer program in the memory, the steps of the above method are implemented.

本申请提供一种网卡设备轮询方法,包括:接收设备轮询指令;判断BIOS配置界面中网卡单独轮询选项是否启用;若是,搜寻启动设备中的网卡设备并将所述网卡设备作为唯一启动项;若否,轮询所有启动设备并启动服务器。This application provides a network card device polling method, which includes: receiving device polling instructions; determining whether the network card independent polling option in the BIOS configuration interface is enabled; if so, searching for the network card device in the startup device and using the network card device as the only startup device item; if not, poll all boot devices and start the server.

本申请通过在BIOS配置界面配置网卡单独轮询选项,当网卡单独轮询选项启动时,可以仅针对网卡设备进行轮询控制,当网卡单独轮询选项关闭时,可以按照正常顺序进行启动设备轮询。可以避免在网卡设备不在第一顺序时由于其他启动设备影响网卡设备的启动,减少PXE网络自动部署系统的故障率。This application configures the network card independent polling option in the BIOS configuration interface. When the network card independent polling option is enabled, polling control can only be performed on the network card device. When the network card independent polling option is turned off, the device polling can be started in the normal order. Inquire. This can avoid other startup devices from affecting the startup of the network card device when the network card device is not in the first order, and reduce the failure rate of the PXE network automatic deployment system.

本申请还提供一种网卡设备轮询系统、计算机可读存储介质和服务器,具有上述有益效果,此处不再赘述。This application also provides a network card device polling system, a computer-readable storage medium and a server, which have the above beneficial effects and will not be described again here.

附图说明Description of the drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only This is an embodiment of the present application. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without exerting creative efforts.

图1为本申请实施例所提供的一种网卡设备轮询方法的流程图;Figure 1 is a flow chart of a network card device polling method provided by an embodiment of the present application;

图2为本申请提供的一种IPMI指令的结构和内容示意图;Figure 2 is a schematic diagram of the structure and content of an IPMI instruction provided by this application;

图3为本申请实施例所提供的一种网卡设备轮询系统结构示意图。Figure 3 is a schematic structural diagram of a network card device polling system provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of this application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

当前,BIOS在检测到网卡PXE ROM开启后,会将网卡PXE作为启动设备放入Bootoption选项中。BIOS的Boot option启动项会根据启动设备的属性设定启动顺序,例如包括Boot option#1,Boot option#2,Boot option#3,…,Boot option#n等,一般会按照客户需求设定。例如,Boot option#1设定为OS启动盘,Boot option#2设置为网卡PXE启动设备,Boot option#3设置为CD/DVD等。目前BIOS启动项可以做到启动设备轮询机制,即Bootoption#1无启动设备或启动设备启动失败,轮询至Boot option#2,如果无设备机型轮询至Boot option#3依次到Boot option#n的启动设备,如果无设备或启动失败,再从Bootoption#1启动,依次重复轮询,直到找到可启动的设备为止。但当网卡设备并非在Bootoption#1时,按照当前的轮询机制,BIOS在轮询到网卡设备前若有可启动设备,则将停止轮询直接以该启动设备启动,不利于服务器系统的部署。Currently, after the BIOS detects that the network card PXE ROM is turned on, it will put the network card PXE as the boot device in the Bootoption option. The Boot option of the BIOS will set the boot sequence according to the attributes of the boot device, such as Boot option#1, Boot option#2, Boot option#3,..., Boot option#n, etc. It is generally set according to customer needs. For example, Boot option #1 is set to the OS boot disk, Boot option #2 is set to the network card PXE boot device, and Boot option #3 is set to CD/DVD, etc. Currently, the BIOS startup item can implement the startup device polling mechanism, that is, Bootoption#1 has no startup device or the startup device fails to start, polling to Boot option#2, if there is no device model, polling to Boot option#3, and then to Boot option #n's boot device, if there is no device or the startup fails, then boot from Bootoption#1, and repeat polling until a bootable device is found. However, when the network card device is not in Bootoption#1, according to the current polling mechanism, if there is a bootable device before polling the network card device, the BIOS will stop polling and start directly with the boot device, which is not conducive to the deployment of the server system. .

为解决上述问题,请参考图1,图1为本申请实施例所提供的一种网卡设备轮询方法的流程图,该方法包括:To solve the above problem, please refer to Figure 1. Figure 1 is a flow chart of a network card device polling method provided by an embodiment of the present application. The method includes:

S101:接收设备轮询指令;S101: Receive device polling instructions;

本步骤旨在接收设备轮询指令,所谓设备轮询指令为BIOS针对启动设备的轮询。需要注意的是,设备轮询指令并不一定为实际的指令,其可以为由其他动作所触发形成的指令。例如当服务器上电启动后,根据启动流程,BIOS上电后会自动执行轮循,此时BIOS上电后相当于自动生成本步骤中的设备轮询指令。当然,该设备轮询指令也可以由服务器生成,例如根据用户设定的配置生成相应的设备轮询指令,以执行服务器的重启等。This step is intended to receive device polling instructions. The so-called device polling instructions are BIOS polling for startup devices. It should be noted that the device polling command is not necessarily an actual command, but can be a command triggered by other actions. For example, when the server is powered on and started, according to the startup process, the BIOS will automatically perform polling after powering on. At this time, the BIOS is equivalent to automatically generating the device polling instructions in this step. Of course, the device polling instruction can also be generated by the server, for example, a corresponding device polling instruction is generated according to the configuration set by the user to perform a server restart, etc.

在此设备轮询指令的指令类型、内容和结构均不作限定,只要该指令可以令BIOS针对启动设备进行轮询并启动,均可以作为本步骤中的设备轮询指令。需要说明的是,设备轮询指令可以指定某一接口或编号的启动设备优先启动。例如在Boot option#1,Bootoption#2,Boot option#3的启动设备均在位时,可以设定以Boot option#2作为轮询的第一个目标。The command type, content and structure of the device polling command are not limited here. As long as the command can cause the BIOS to poll and start the boot device, it can be used as the device polling command in this step. It should be noted that the device polling command can specify a certain interface or number of startup devices to be started first. For example, when the boot devices of Boot option#1, Bootoption#2, and Boot option#3 are all in place, you can set Boot option#2 as the first target of polling.

S102:判断BIOS配置界面中网卡单独轮询选项是否启用;若是,进入S103;若否,进入S104;S102: Determine whether the network card independent polling option in the BIOS configuration interface is enabled; if so, enter S103; if not, enter S104;

本步骤需要判断BIOS配置界面中网卡单独轮询选项是否启用。本实施例默认在执行本步骤前,已经在BIOS配置界面中配置网卡单独轮询选项。在此对于如何配置网卡单独轮询选项不作具体限定,可以在BIOS配置界面添加网卡单独轮询选项,并为网卡单独轮询选项配置IPMI指令集。即该网卡单独轮询选项可以通过IPMI指令集操控,其实现网卡单独轮询选项的启用或关闭。This step requires determining whether the separate polling option for the network card is enabled in the BIOS configuration interface. By default in this embodiment, before performing this step, the network card independent polling option has been configured in the BIOS configuration interface. There are no specific restrictions on how to configure the network card independent polling option. You can add the network card independent polling option in the BIOS configuration interface and configure the IPMI command set for the network card independent polling option. That is, the independent polling option of the network card can be controlled through the IPMI command set, which enables or disables the independent polling option of the network card.

若网卡单独轮询选项启用,进入步骤S103;若未启用,进入S104。If the network card independent polling option is enabled, proceed to step S103; if not enabled, proceed to S104.

S103:搜寻启动设备中的网卡设备并将所述网卡设备作为唯一启动项;S103: Search for the network card device in the startup device and use the network card device as the only startup item;

本步骤旨在网卡单独轮询选项启用后,在启动设备中搜寻网卡设备并仅针对网卡设备进行轮询,换句话说,仅以网卡设备作为启动设备启动服务器。具体的,在本步骤的执行过程中,可以逐一检测各启动设备,并针对每个启动设备作是否为网卡设备的判断。通常服务器中最多只会存在一台网卡设备。在检测到网卡设备后,即可针对网卡设备进行轮询并启动。需要说明的是,本步骤的实质是先搜寻并确认网卡设备,然后针对网卡设备单独轮询,即虽然此时服务器中包含其他网卡设备,但网卡单独轮询选项启用后,视其他网卡设备不在位,即相当于服务器中仅有网卡设备可作为启动设备使用,也不对其他启动设备进行轮询。例如在Boot option#1,Boot option#2,Boot option#3中,仅Boot option#3为网卡设备,那么先针对Boot option#1,Boot option#2,Boot option#3逐一搜寻,确认Bootoption#3为网卡设备,此时仅针对Boot option#3进行轮询,从而实现将网卡设备作为唯一启动项启动服务器。This step is intended to search for the network card device in the startup device and poll only for the network card device after the network card independent polling option is enabled. In other words, only use the network card device as the startup device to start the server. Specifically, during the execution of this step, each startup device can be detected one by one, and whether each startup device is a network card device can be judged. Usually there will be at most one network card device in the server. After the network card device is detected, the network card device can be polled and started. It should be noted that the essence of this step is to first search and confirm the network card device, and then poll the network card device individually. That is, although the server contains other network card devices at this time, after the network card independent polling option is enabled, other network card devices will be considered to be absent. bit, which means that only the network card device in the server can be used as a startup device, and other startup devices are not polled. For example, among Boot option#1, Boot option#2, and Boot option#3, only Boot option#3 is the network card device. Then search for Boot option#1, Boot option#2, and Boot option#3 one by one to confirm Bootoption# 3 is the network card device. At this time, only Boot option #3 is polled, so that the network card device can be used as the only startup item to start the server.

在本实施例的基础上,作为本申请的部分实施例,在本步骤执行结束后,还可以启动网卡设备,连接远程服务器,从远程服务器下载并安装引导镜像,以实现服务器操作系统的安装部署或更新。且由于通常仅需要在服务器的初次启用时部署操作系统,则从远程服务器下载并安装引导镜像之后,还可以关闭网卡单独轮询选项,并配置默认启动设备。以便服务器在后续正常使用过程中不会以网卡设备作为单独轮询对象,便于服务器的正常启用。当然若服务器此后存在以网卡设备作为启动设备的需求,依旧可以通过启用网卡单独轮询选项进行设定。On the basis of this embodiment, as part of the embodiments of this application, after the execution of this step, you can also start the network card device, connect to the remote server, download and install the boot image from the remote server, so as to realize the installation and deployment of the server operating system. or updated. And since the operating system usually only needs to be deployed when the server is first started, after downloading and installing the boot image from the remote server, you can also turn off the network card independent polling option and configure the default boot device. This is so that the server will not use the network card device as a separate polling object during subsequent normal use, which facilitates the normal startup of the server. Of course, if the server later needs to use the network card device as the startup device, it can still be set by enabling the network card independent polling option.

S104:轮询所有启动设备并启动服务器。S104: Poll all boot devices and start the server.

若网卡单独轮询选项未启用,则正常对服务器中的启动设备进行轮询。即服务器中的所有启动设备均参与轮询。在本步骤中,可以按照启动设备的设备编号顺序轮询所有启动设备并启动服务器。即按照Boot option#1,Boot option#2,Boot option#3的编号顺序进行轮询,也可以按照设定顺序进行轮询。但无论如何执行轮询,在网卡单独轮询选项未启用时,均需要保证所有的启动设备均可以被轮询到。但实际轮询过程中,并非所有启动设备均会被轮询到,一旦轮询到合适的启动设备,服务器将会适时启动。If the network card independent polling option is not enabled, the boot device in the server will be polled normally. That is, all boot devices in the server participate in polling. In this step, you can poll all boot devices in order of their device numbers and start the server. That is, polling is performed in the order of Boot option#1, Boot option#2, and Boot option#3, or polling can be performed in the set order. However, no matter how polling is performed, when the independent polling option of the network card is not enabled, it is necessary to ensure that all startup devices can be polled. However, during the actual polling process, not all startup devices will be polled. Once the appropriate startup device is polled, the server will start in a timely manner.

此外,该网卡单独轮询选项可以配置默认设置,例如服务器的制造厂商在服务器出厂时可以将网卡单独轮询选项默认设置为启用,则在初次部署服务器并进行服务器系统调试和维护时,可以仅针对网卡设备进行轮询,避免将所有启动设备均参与轮询可能导致的服务器并未以网卡设备启动,从而影响系统部署进度。In addition, the network card independent polling option can be configured with default settings. For example, the server manufacturer can set the network card independent polling option to enabled by default when the server leaves the factory. Then when deploying the server for the first time and performing server system debugging and maintenance, you can only Poll the network card device to avoid involving all startup devices in polling, which may cause the server to not start with the network card device, thus affecting the system deployment progress.

本申请实施例通过在BIOS配置界面配置网卡单独轮询选项,当网卡单独轮询选项启动时,可以仅针对网卡设备进行轮询控制,当网卡单独轮询选项关闭时,可以按照正常顺序进行启动设备轮询。可以避免在网卡设备不在第一顺序时由于其他启动设备影响网卡设备的启动,减少PXE网络自动部署系统的故障率。In the embodiment of this application, by configuring the network card independent polling option in the BIOS configuration interface, when the network card independent polling option is enabled, polling control can only be performed on the network card device. When the network card independent polling option is turned off, the network card independent polling option can be started in the normal order. Device polling. This can avoid other startup devices from affecting the startup of the network card device when the network card device is not in the first order, and reduce the failure rate of the PXE network automatic deployment system.

基于上述实施例,作为优选的实施例,无论在服务器上电后需要进行系统的初次部署,抑或是针对服务器系统的远程更新或调试,均可以实时根据IPMI命令启用或关闭所网卡单独轮询选项。Based on the above embodiment, as a preferred embodiment, whether it is necessary to perform the initial deployment of the system after the server is powered on, or for remote update or debugging of the server system, the individual polling option of the network card can be enabled or disabled in real time according to the IPMI command. .

当然,容易理解的是,根据IPMI命令启用或关闭所网卡单独轮询选项之前,同样在BIOS配置界面添加网卡单独轮询选项,并为网卡单独轮询选项配置IPMI指令集。Of course, it is easy to understand that before enabling or disabling the individual network card polling option according to the IPMI command, you must also add the network card individual polling option in the BIOS configuration interface and configure the IPMI command set for the network card individual polling option.

需要说明的是,根据IPMI命令启用或关闭所网卡单独轮询选项和上一实施例中步骤S101接收设备轮询指令并未既定的执行关系,即可以先接收设备轮询指令再接收IPMI命令,也可以先接收IPMI命令再接收设备轮询指令,甚至二者可以同时接收,但通常在步骤S101前执行。由于二者作用不同,即设备轮询指令用于指导轮询开始,而IPMI指令用于实现网卡单独轮询选项的控制,即开始轮询后,依旧需要根据IPMI指令的内容选择执行上一实施例中的步骤S103或者步骤S104。It should be noted that there is no established execution relationship between enabling or disabling the independent polling option of the network card according to the IPMI command and receiving the device polling command in step S101 in the previous embodiment. That is, you can receive the device polling command first and then receive the IPMI command. The IPMI command can also be received first and then the device polling command can be received, or even both can be received at the same time, but it is usually executed before step S101. Due to the different functions of the two, that is, the device polling command is used to guide the start of polling, while the IPMI command is used to control the individual polling options of the network card. That is, after starting polling, you still need to select and execute the previous implementation based on the content of the IPMI command. Step S103 or step S104 in the example.

IPMI指令用于操控网卡单独轮询选项的启用状态,本实施例对于其具体结构和内容不作限定,优选的,可以参见图2,图2为本申请提供的一种IPMI指令的结构和内容示意图。图2所示的IPMI指令包括多组字节,其中request dat中的0代表disabled,表示未启动,而1表示Boot only,仅针对网卡设备的单独轮询。当然本领域技术人员还可以采用其他形式或结构的IPMI指令,均应在本申请的保护范围内。The IPMI command is used to control the enabled status of the network card's individual polling option. This embodiment does not limit its specific structure and content. Preferably, see Figure 2, which is a schematic diagram of the structure and content of an IPMI command provided by this application. . The IPMI command shown in Figure 2 includes multiple groups of bytes, where 0 in the request dat represents disabled, indicating that it is not started, and 1 represents Boot only, which is only for individual polling of the network card device. Of course, those skilled in the art can also use other forms or structures of IPMI instructions, which should all fall within the protection scope of this application.

通过IPMI指令,可以便于对服务器的运维,该IPMI指令指带外IPMI指令,其可以由服务器自身生成,也可以通过其他终端设备向服务器发送,用于变更服务器启动时BIOS的轮询方式。则结合上一实施例,作为本申请的部分实施例,在BIOS接收到轮询之后,可以检测是否接收到IPMI命令,若未接收到则根据当前网卡单独轮询选项的启用结果进行轮询,若接收到,则根据IPMI指令中针对网卡单独轮询选项的启用结果进行轮询。The operation and maintenance of the server can be facilitated through the IPMI command. The IPMI command refers to the out-of-band IPMI command. It can be generated by the server itself or sent to the server through other terminal devices to change the polling method of the BIOS when the server starts. Combined with the previous embodiment, as part of the embodiments of this application, after the BIOS receives the polling, it can detect whether the IPMI command is received. If not, polling is performed according to the enabling result of the current network card independent polling option. If received, polling is performed based on the enablement result of the separate polling option for the network card in the IPMI command.

下面对本申请实施例提供的一种网卡设备轮询系统进行介绍,下文描述的网卡设备轮询系统与上文描述的网卡设备轮询方法可相互对应参照。The following is an introduction to a network card device polling system provided by an embodiment of the present application. The network card device polling system described below and the network card device polling method described above can be mutually referenced.

参见图3,图3为本申请实施例所提供的一种网卡设备轮询系统结构示意图,本申请还提供一种网卡设备轮询系统,包括:Referring to Figure 3, Figure 3 is a schematic structural diagram of a network card device polling system provided by an embodiment of the present application. The present application also provides a network card device polling system, including:

指令接收模块100,用于接收设备轮询指令;The instruction receiving module 100 is used to receive device polling instructions;

判断模块200,用于判断BIOS配置界面中网卡单独轮询选项是否启用;The judgment module 200 is used to judge whether the network card independent polling option in the BIOS configuration interface is enabled;

单独轮询模块300,用于所述判断模块的判断结果为是时,搜寻启动设备中的网卡设备并将所述网卡设备作为唯一启动项;A separate polling module 300 is used to search for the network card device in the startup device and use the network card device as the only startup item when the judgment result of the judgment module is yes;

正常轮询模块400,用于所述判断模块的判断结果为否时,轮询所有启动设备并启动服务器。The normal polling module 400 is used to poll all startup devices and start the server when the judgment result of the judgment module is no.

基于上述实施例,作为优选的实施例,还可以包括:Based on the above embodiments, as a preferred embodiment, it may also include:

指令配置模块,用于根据所述IPMI命令启用或关闭所网卡单独轮询选项。An instruction configuration module is used to enable or disable individual polling options for all network cards according to the IPMI command.

基于上述实施例,作为优选的实施例,还包括:Based on the above embodiments, as a preferred embodiment, it also includes:

选项配置模块,用于在所述BIOS配置界面添加所述网卡单独轮询选项,并为所述网卡单独轮询选项配置IPMI指令集。An option configuration module is configured to add the network card independent polling option in the BIOS configuration interface, and configure an IPMI instruction set for the network card independent polling option.

基于上述实施例,作为优选的实施例,正常轮询模块400包括:Based on the above embodiments, as a preferred embodiment, the normal polling module 400 includes:

启动单元,用于按照启动设备的设备编号顺序轮询所有启动设备并启动服务器。The startup unit is used to poll all startup devices in order of their device numbers and start the server.

基于上述实施例,作为优选的实施例,还包括:Based on the above embodiments, as a preferred embodiment, it also includes:

系统部署模块,用于启动所述网卡设备,连接远程服务器;从所述远程服务器下载并安装引导镜像。The system deployment module is used to start the network card device and connect to the remote server; download and install the boot image from the remote server.

基于上述实施例,作为优选的实施,还包括:Based on the above embodiment, as a preferred implementation, it also includes:

系统配置模块,用于所述系统部署模块执行完毕后,关闭所述网卡单独轮询选项,并配置默认启动设备。A system configuration module is used to turn off the independent polling option of the network card and configure a default startup device after the system deployment module is executed.

本申请还提供了一种计算机可读存储介质,其上存有计算机程序,该计算机程序被执行时可以实现上述实施例所提供的步骤。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。This application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the steps provided in the above embodiments can be implemented. The storage medium may include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program code.

本申请还提供了一种服务器,可以包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时,可以实现上述实施例所提供的步骤。当然所述服务器还可以包括各种网络接口,电源等组件。This application also provides a server, which may include a memory and a processor. A computer program is stored in the memory. When the processor calls the computer program in the memory, the steps provided in the above embodiments can be implemented. Of course, the server may also include various network interfaces, power supplies and other components.

说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例提供的系统而言,由于其与实施例提供的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application. It should be noted that for those of ordinary skill in the art, several improvements and modifications can be made to the present application without departing from the principles of the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or sequence between operations. Furthermore, the terms "comprises," "comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.

Claims (7)

1.一种网卡设备轮询方法,其特征在于,包括:1. A network card device polling method, characterized by including: 接收设备轮询指令;Receive device polling instructions; 判断BIOS配置界面中网卡单独轮询选项是否启用;Determine whether the separate polling option for the network card in the BIOS configuration interface is enabled; 若是,搜寻启动设备中的网卡设备并将所述网卡设备作为唯一启动项;If so, search for the network card device in the startup device and use the network card device as the only startup item; 若否,轮询所有启动设备并启动服务器;If not, poll all boot devices and start the server; 其中,所述的网卡设备轮询方法,还包括:Among them, the network card device polling method also includes: 根据IPMI命令启用或关闭所述网卡单独轮询选项;Enable or disable the network card individual polling option according to IPMI commands; 所述根据IPMI命令启用或关闭所述网卡单独轮询选项之前,还包括:Before enabling or disabling the network card individual polling option according to the IPMI command, it also includes: 在所述BIOS配置界面添加所述网卡单独轮询选项,并为所述网卡单独轮询选项配置IPMI指令集。Add the network card independent polling option in the BIOS configuration interface, and configure an IPMI command set for the network card independent polling option. 2.根据权利要求1所述的网卡设备轮询方法,其特征在于,轮询所有启动设备并启动服务器包括:2. The network card device polling method according to claim 1, characterized in that polling all startup devices and starting the server includes: 按照启动设备的设备编号顺序轮询所有启动设备并启动服务器。Polls all boot devices in order of their device number and starts the server. 3.根据权利要求1所述的网卡设备轮询方法,其特征在于,搜寻网卡设备并将所述网卡设备作为唯一启动项之后,还包括:3. The network card device polling method according to claim 1, characterized in that after searching for the network card device and using the network card device as the only startup item, it further includes: 启动所述网卡设备,连接远程服务器;Start the network card device and connect to the remote server; 从所述远程服务器下载并安装引导镜像。Download and install the boot image from the remote server. 4.根据权利要求3所述的网卡设备轮询方法,其特征在于,从所述远程服务器下载并安装引导镜像之后,还包括:4. The network card device polling method according to claim 3, characterized in that, after downloading and installing the boot image from the remote server, it further includes: 关闭所述网卡单独轮询选项,并配置默认启动设备。Turn off the individual network card polling option and configure the default boot device. 5.一种网卡设备轮询系统,其特征在于,包括:5. A network card device polling system, characterized by including: 指令接收模块,用于接收设备轮询指令;Instruction receiving module, used to receive device polling instructions; 判断模块,用于判断BIOS配置界面中网卡单独轮询选项是否启用;The judgment module is used to judge whether the independent polling option of the network card in the BIOS configuration interface is enabled; 单独轮询模块,用于所述判断模块的判断结果为是时,搜寻启动设备中的网卡设备并将所述网卡设备作为唯一启动项;A separate polling module is used to search for the network card device in the startup device and use the network card device as the only startup item when the judgment result of the judgment module is yes; 正常轮询模块,用于所述判断模块的判断结果为否时,轮询所有启动设备并启动服务器;A normal polling module, used to poll all startup devices and start the server when the judgment result of the judgment module is no; 其中,所述网卡设备轮询系统,还包括:Among them, the network card device polling system also includes: 指令配置模块,用于根据IPMI命令启用或关闭所述网卡单独轮询选项;An instruction configuration module, used for enabling or disabling the network card individual polling option according to an IPMI command; 所述网卡设备轮询系统,还包括:The network card device polling system also includes: 选项配置模块,用于在所述BIOS配置界面添加所述网卡单独轮询选项,并为所述网卡单独轮询选项配置IPMI指令集。An option configuration module is configured to add the network card independent polling option in the BIOS configuration interface, and configure an IPMI instruction set for the network card independent polling option. 6.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-4任一项所述的网卡设备轮询方法的步骤。6. A computer-readable storage medium with a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the network card device polling method according to any one of claims 1-4 are implemented. . 7.一种服务器,其特征在于,包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时实现如权利要求1-4任一项所述的网卡设备轮询方法的步骤。7. A server, characterized in that it includes a memory and a processor. A computer program is stored in the memory. When the processor calls the computer program in the memory, it implements the method described in any one of claims 1-4. The steps of the network card device polling method.
CN202110325991.0A 2021-03-26 2021-03-26 A network card equipment polling method, system and related devices Active CN113517996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110325991.0A CN113517996B (en) 2021-03-26 2021-03-26 A network card equipment polling method, system and related devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110325991.0A CN113517996B (en) 2021-03-26 2021-03-26 A network card equipment polling method, system and related devices

Publications (2)

Publication Number Publication Date
CN113517996A CN113517996A (en) 2021-10-19
CN113517996B true CN113517996B (en) 2024-03-26

Family

ID=78062049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110325991.0A Active CN113517996B (en) 2021-03-26 2021-03-26 A network card equipment polling method, system and related devices

Country Status (1)

Country Link
CN (1) CN113517996B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791874A (en) * 2021-11-16 2021-12-14 苏州浪潮智能科技有限公司 Configuration method, apparatus, computer device and storage medium for virtual machine booting
CN114885032B (en) * 2022-04-29 2023-07-14 苏州浪潮智能科技有限公司 Method, device, equipment and medium for generating and displaying equipment information
CN114840263B (en) * 2022-05-31 2023-07-14 苏州浪潮智能科技有限公司 A network card management method, device, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999362A (en) * 2012-12-04 2013-03-27 浪潮电子信息产业股份有限公司 Method for modifying sequence of boot options of basic input/output system (BIOS)
EP2645252A1 (en) * 2012-03-29 2013-10-02 Fujitsu Limited Information processing system and virtual address setting method
CN106855819A (en) * 2017-01-01 2017-06-16 国云科技股份有限公司 A method for automatically deploying an operating system
CN107682198A (en) * 2017-10-20 2018-02-09 盛科网络(苏州)有限公司 A kind of network communication equipment
CN108549551A (en) * 2018-04-13 2018-09-18 浪潮(北京)电子信息产业有限公司 A kind of the startup method, apparatus and equipment of server network interface card
CN109698772A (en) * 2018-12-14 2019-04-30 郑州云海信息技术有限公司 A kind of method and system for verifying network interface card PXE functional stabilization
CN111124508A (en) * 2019-11-29 2020-05-08 苏州浪潮智能科技有限公司 Method and device for adjusting PXE (PCI extensions for instrumentation) starting sequence of network card
CN111221581A (en) * 2019-12-27 2020-06-02 苏州浪潮智能科技有限公司 Network card starting method, equipment and storage medium
CN111294279A (en) * 2020-02-03 2020-06-16 苏州浪潮智能科技有限公司 Device and method for setting backup port of network aggregation group in PXE environment
CN112328312A (en) * 2020-11-06 2021-02-05 上海云轴信息科技有限公司 Method and equipment for realizing diskless startup of bare computer equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7953793B2 (en) * 2009-01-08 2011-05-31 International Business Machines Corporation Distributed preboot execution environment (PXE) server booting
CN102457405A (en) * 2010-10-26 2012-05-16 鸿富锦精密工业(深圳)有限公司 PXE testing device and PXE testing method thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2645252A1 (en) * 2012-03-29 2013-10-02 Fujitsu Limited Information processing system and virtual address setting method
CN102999362A (en) * 2012-12-04 2013-03-27 浪潮电子信息产业股份有限公司 Method for modifying sequence of boot options of basic input/output system (BIOS)
CN106855819A (en) * 2017-01-01 2017-06-16 国云科技股份有限公司 A method for automatically deploying an operating system
CN107682198A (en) * 2017-10-20 2018-02-09 盛科网络(苏州)有限公司 A kind of network communication equipment
CN108549551A (en) * 2018-04-13 2018-09-18 浪潮(北京)电子信息产业有限公司 A kind of the startup method, apparatus and equipment of server network interface card
CN109698772A (en) * 2018-12-14 2019-04-30 郑州云海信息技术有限公司 A kind of method and system for verifying network interface card PXE functional stabilization
CN111124508A (en) * 2019-11-29 2020-05-08 苏州浪潮智能科技有限公司 Method and device for adjusting PXE (PCI extensions for instrumentation) starting sequence of network card
CN111221581A (en) * 2019-12-27 2020-06-02 苏州浪潮智能科技有限公司 Network card starting method, equipment and storage medium
CN111294279A (en) * 2020-02-03 2020-06-16 苏州浪潮智能科技有限公司 Device and method for setting backup port of network aggregation group in PXE environment
CN112328312A (en) * 2020-11-06 2021-02-05 上海云轴信息科技有限公司 Method and equipment for realizing diskless startup of bare computer equipment

Also Published As

Publication number Publication date
CN113517996A (en) 2021-10-19

Similar Documents

Publication Publication Date Title
CN113517996B (en) A network card equipment polling method, system and related devices
JP3916806B2 (en) Remote loading execution method, remote loading execution system, information processing apparatus, management apparatus, and computer-readable recording medium
US8171276B2 (en) Minimal startup mode for performing multiple-reboot configuration
CN101420326B (en) Method, system and apparatus for implementing failure restoration and data backup
CN101794235B (en) Diskless computer starting method based on operating system network drive
US6944653B2 (en) Zero-click deployment of data processing systems
US20030055919A1 (en) One-click deployment of data processing systems
TWI492064B (en) Cloud system and the boot up and deployment method for the cloud system
CN108170451B (en) Method and system for controlling BIOS version upgrading by server BMC
WO2017185954A1 (en) Method, host, and system for implementing usb device management
CN105955742A (en) BIOS refreshing method, service system and BIOS refreshing system
CN106897093A (en) A kind of dispositions method and device of windows operating systems
CN111475175B (en) Operating system installation and booting method, device and medium based on ARM server
WO2023098052A1 (en) Server operation and maintenance method and apparatus, and device and storage medium
CN114115917A (en) Operating system installation method and device
WO2017219861A1 (en) Method and device for controlling system start-up mode
US20190205109A1 (en) Computer system, baseboard management controller, and os installation method
CN112948008A (en) Ironic based physical bare computer management method
CN114237751B (en) Information configuration method and device
CN115129517B (en) A BIOS option failure recovery method, device, equipment and storage medium
WO2024007800A1 (en) Cloud terminal system upgrade method and apparatus, and cloud terminal and storage medium
CN113868128B (en) Method and device for testing PXE (PCI express) guide function and storage medium
CN116360885A (en) Start control method, start control device, substrate management controller, management equipment and medium
CN115167947A (en) An operating system installation method, device and medium
CN109634685B (en) Starting and stopping method and related device for PXE function of PCH gigabit Ethernet

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