[go: up one dir, main page]

CN105183528A - Server bios upgrading method and system - Google Patents

Server bios upgrading method and system Download PDF

Info

Publication number
CN105183528A
CN105183528A CN201510718536.1A CN201510718536A CN105183528A CN 105183528 A CN105183528 A CN 105183528A CN 201510718536 A CN201510718536 A CN 201510718536A CN 105183528 A CN105183528 A CN 105183528A
Authority
CN
China
Prior art keywords
bios
server
upgrade
source server
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510718536.1A
Other languages
Chinese (zh)
Inventor
孙永杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510718536.1A priority Critical patent/CN105183528A/en
Publication of CN105183528A publication Critical patent/CN105183528A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明公开了一种升级服务器bios的方法,构建源服务器;在所述源服务器中设置bios升级模块,包括:利用PXE网卡启动,向源服务器中的DHCP发送地址请求;利用获取的IP信息,通过所述源服务器中的TFTP加载所述bios升级模块;利用所述bios升级模块进行服务器bios升级;该方法能够批量的进行服务器bios升级,节省了大量的资源人力,极大地提升了升级速率,降低了运维成本;本发明还公开了一种升级服务器bios的系统。

The invention discloses a method for upgrading the bios of a server, constructing a source server; setting a bios upgrade module in the source server, including: using a PXE network card to start, sending an address request to DHCP in the source server; using the acquired IP information, Load the bios upgrade module through TFTP in the source server; use the bios upgrade module to upgrade the server bios; this method can perform server bios upgrades in batches, save a lot of resources and manpower, and greatly improve the upgrade rate. The operation and maintenance cost is reduced; the invention also discloses a system for upgrading server bios.

Description

一种升级服务器bios的方法及系统A method and system for upgrading server bios

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种升级服务器bios的方法及系统。The invention relates to the technical field of computers, in particular to a method and system for upgrading server bios.

背景技术Background technique

随着计算机技术以及集成电路技术的飞速发展,高性能的服务器越来越成为经济社会发展的需要。随之而来的就是大量的服务器维护相关工作。而服务器bios升级就是服务器日常维护中必不可少的工作之一。传统的bios升级通常是单台服务器,使用dos或者linux内核启动,进入操作系统环境后执行相应升级命令,完成bios的升级。而当有大批量的服务器需要bios升级的时候,传统的bios升级做法就显得更加费事费力。With the rapid development of computer technology and integrated circuit technology, high-performance servers have increasingly become the needs of economic and social development. Followed by a lot of server maintenance related work. The server bios upgrade is one of the essential tasks in the daily maintenance of the server. The traditional bios upgrade is usually a single server, which starts with the dos or linux kernel, and executes the corresponding upgrade command after entering the operating system environment to complete the bios upgrade. And when there are a large number of servers that need bios upgrades, the traditional method of bios upgrades is even more troublesome.

发明内容Contents of the invention

本发明的目的是提供一种升级服务器bios的方法及系统,该方法及系统能够批量的进行服务器bios升级,节省了大量的资源人力,极大地提升了升级速率,降低了运维成本。The object of the present invention is to provide a method and system for upgrading server bios. The method and system can perform server bios upgrade in batches, save a lot of resources and manpower, greatly improve the upgrade rate, and reduce operation and maintenance costs.

为解决上述技术问题,本发明提供一种升级服务器bios的方法,包括:In order to solve the above technical problems, the present invention provides a method for upgrading server bios, comprising:

构建源服务器,并在所述源服务器中设置bios升级模块;Build a source server, and set a bios upgrade module in the source server;

利用PXE网卡启动,向源服务器中的DHCP发送地址请求;Use the PXE network card to start and send an address request to the DHCP in the source server;

利用获取的IP信息,通过所述源服务器中的TFTP加载所述bios升级模块;Utilize the obtained IP information to load the bios upgrade module through TFTP in the source server;

利用所述bios升级模块进行服务器bios升级。The server bios is upgraded by using the bios upgrade module.

其中,利用获取的IP信息,通过所述源服务器中的TFTP加载所述bios升级模块包括:Wherein, utilizing the obtained IP information, loading the bios upgrade module through TFTP in the source server includes:

根据获取的IP信息,获取bootstrap文件的位置信息,并利用所述位置信息,通过所述源服务器中的TFTP获取所述bootstrap文件;Obtain the location information of the bootstrap file according to the obtained IP information, and use the location information to obtain the bootstrap file through TFTP in the source server;

执行所述bootstrap文件,并根据执行结果,通过所述源服务器中的TFTP加载内核及bios升级文件。Execute the bootstrap file, and load the kernel and bios upgrade files through TFTP in the source server according to the execution result.

其中,利用所述bios升级模块进行服务器bios升级包括:Wherein, using the bios upgrade module to upgrade the server bios includes:

根据所述内核中的bios升级工具,运行所述bios升级文件中的bios升级自动执行脚本进行服务器bios升级。According to the bios upgrade tool in the kernel, run the bios upgrade automatic execution script in the bios upgrade file to upgrade the server bios.

其中,构建源服务器包括:Among them, building the source server includes:

源服务器安装tftp-server服务、DHCP服务及ftp服务,并指定TFTP的IP地址为所述源服务器IP地址;The source server installs tftp-server service, DHCP service and ftp service, and specifies that the IP address of TFTP is the source server IP address;

启动并开启所述tftp-server服务、所述DHCP服务及所述ftp服务。Start and open the tftp-server service, the DHCP service and the ftp service.

其中,在所述源服务器中设置bios升级模块包括:Wherein, setting the bios upgrade module in the source server includes:

创建linux启动内核及文件系统;Create a linux boot kernel and file system;

在所述linux启动内核中安装所述bios升级工具;Install the bios upgrade tool in the linux boot kernel;

在所述文件系统的目录中的相应位置放入所述bios升级文件;Put the bios upgrade file into the corresponding position in the directory of the file system;

并在所述bios升级文件中,根据输入的bios升级命令,生成bios升级自动执行脚本。And in the bios upgrade file, generate a bios upgrade automatic execution script according to the input bios upgrade command.

本发明提供一种升级服务器bios的系统,包括:The present invention provides a system for upgrading server bios, including:

源服务器,用于设置bios升级模块;目标服务器,用于进行bios升级;The source server is used to set the bios upgrade module; the target server is used to perform the bios upgrade;

其中,所述目标服务器,包括:Wherein, the target server includes:

地址获取模块,用于利用PXE网卡启动,向源服务器中的DHCP发送地址请求;The address obtaining module is used to utilize the PXE network card to start and send an address request to DHCP in the source server;

加载模块,用于利用获取的IP信息,通过所述源服务器中的TFTP加载所述bios升级模块;A loading module, configured to load the bios upgrade module through TFTP in the source server by utilizing the acquired IP information;

升级模块,用于利用所述bios升级模块进行服务器bios升级。An upgrade module, configured to use the bios upgrade module to upgrade the server bios.

其中,所述加载模块包括:Wherein, the loading module includes:

获取单元,用于根据获取的IP信息,获取bootstrap文件的位置信息,并利用所述位置信息,通过所述源服务器中的TFTP获取所述bootstrap文件;An acquisition unit, configured to acquire the location information of the bootstrap file according to the obtained IP information, and use the location information to obtain the bootstrap file through TFTP in the source server;

加载单元,用于执行所述bootstrap文件,并根据执行结果,通过所述源服务器中的TFTP加载内核及bios升级文件。The loading unit is used to execute the bootstrap file, and load the kernel and bios upgrade files through TFTP in the source server according to the execution result.

其中,所述升级模块包括:Wherein, the upgrade module includes:

升级单元,用于根据所述内核中的bios升级工具,运行所述bios升级文件中的bios升级自动执行脚本进行服务器bios升级。The upgrade unit is used to run the bios upgrade automatic execution script in the bios upgrade file to upgrade the server bios according to the bios upgrade tool in the kernel.

其中,所述源服务器具有指定单元,用于指定PXE引导程序的文件名。Wherein, the source server has a specifying unit for specifying the file name of the PXE boot program.

其中,所述源服务器包括:Wherein, the source server includes:

创建单元,用于创建linux启动内核及文件系统;Create a unit for creating a linux boot kernel and file system;

安装单元,用于在所述linux启动内核中安装所述bios升级工具;The installation unit is used to install the bios upgrade tool in the linux boot kernel;

脚本生成单元,用于在所述文件系统的目录中的相应位置放入所述bios升级文件;并在所述bios升级文件中,根据输入的bios升级命令,生成bios升级自动执行脚本。The script generation unit is used to put the bios upgrade file into the corresponding position in the directory of the file system; and in the bios upgrade file, generate a bios upgrade automatic execution script according to the input bios upgrade command.

本发明所提供的升级服务器bios的方法,构建源服务器;在所述源服务器中设置bios升级模块,包括:利用PXE网卡启动,向源服务器中的DHCP发送地址请求;利用获取的IP信息,通过所述源服务器中的TFTP加载所述bios升级模块;利用所述bios升级模块进行服务器bios升级;The method for upgrading the bios of the server provided by the present invention is to construct a source server; a bios upgrade module is set in the source server, including: using a PXE network card to start, sending an address request to DHCP in the source server; using the obtained IP information, through TFTP in the source server loads the bios upgrade module; utilizes the bios upgrade module to perform server bios upgrade;

该方法通过在源服务器中设置bios升级模块,使得需要进行bios升级的服务器都可以通过与源服务器建立连接后,通过源服务器中的bios升级模块对自身的bios进行升级;因此可以方便的进行批量的升级,将所有需要进行bios升级服务器与源服务器连接后就可以进行升级;因此该方法能够批量的进行服务器bios升级,节省了大量的资源人力,极大地提升了升级速率,降低了运维成本。In this method, by setting the bios upgrade module in the source server, all servers that need to perform bios upgrade can upgrade their own bios through the bios upgrade module in the source server after establishing a connection with the source server; therefore, batches can be conveniently performed The upgrade can be performed after connecting all servers that need to be upgraded with the source server; therefore, this method can perform server bios upgrades in batches, saving a lot of resources and manpower, greatly improving the upgrade rate, and reducing operation and maintenance costs. .

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings on the premise of not paying creative efforts.

图1为本发明实施例所提供的升级服务器bios的方法的流程图;Fig. 1 is the flowchart of the method for upgrading server bios provided by the embodiment of the present invention;

图2为本发明实施例所提供的升级服务器bios的系统的结构框图;Fig. 2 is the structural block diagram of the system of upgrading server bios provided by the embodiment of the present invention;

图3为本发明实施例所提供的目标服务器的结构框图。FIG. 3 is a structural block diagram of a target server provided by an embodiment of the present invention.

具体实施方式Detailed ways

本发明的核心是提供一种升级服务器bios的方法及系统,该方法及系统能够批量的进行服务器bios升级,节省了大量的资源人力,极大地提升了升级速率,降低了运维成本。The core of the present invention is to provide a method and system for upgrading server bios. The method and system can perform server bios upgrade in batches, save a lot of resources and manpower, greatly improve the upgrade rate, and reduce operation and maintenance costs.

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参考图1,图1为本发明实施例所提供的升级服务器bios的方法的流程图;该方法可以包括:Please refer to Fig. 1, Fig. 1 is the flowchart of the method for upgrading server bios provided by the embodiment of the present invention; The method may include:

s100、构建源服务器,并在所述源服务器中设置bios升级模块;s100, constructing a source server, and setting a bios upgrade module in the source server;

其中,需要构建一个源服务器,其作用是为了使得其他需要升级的服务器可以从这里下载需要进行升级的文件等。这样其他需要升级的服务器就可以根据下载的文件进行bios升级,即基本输入输出系统升级。Among them, a source server needs to be built, and its function is to enable other servers that need to be upgraded to download files that need to be upgraded from here. In this way, other servers that need to be upgraded can perform bios upgrades according to the downloaded files, that is, basic input output system upgrades.

因此,构建源服务器的两个关键点是,首先要可以设置好通讯即可以与其他服务器进行通讯,另一个是具有其他服务器可以下载的bios升级模块。Therefore, the two key points for building a source server are: firstly, it must be able to communicate with other servers, and the other is to have a bios upgrade module that other servers can download.

首先,搭建源服务器,可选的,源服务器安装tftp-server服务、DHCP服务及ftp服务,并指定TFTP的IP地址为所述源服务器IP地址;First, set up the source server, optionally, the source server installs tftp-server service, DHCP service and ftp service, and specifies that the IP address of TFTP is the source server IP address;

其中,其中,tftp-server服务为多线程服务,DHCP服务为动态主机配置服务,ftp服务为文件传输服务,TFTP服务为网络配置服务。Among them, the tftp-server service is a multi-thread service, the DHCP service is a dynamic host configuration service, the ftp service is a file transfer service, and the TFTP service is a network configuration service.

其中,可以在源服务器中安装RedHatEnterpriseLinux6.x版本的操作系统,在该操作系统的基础上为源服务器安装tftp-server服务、DHCP服务及ftp服务,并指定TFTP的IP地址为源服务器本机的IP地址。Among them, you can install RedHatEnterpriseLinux6. IP address.

启动并开启所述tftp-server服务、所述DHCP服务及所述ftp服务。Start and open the tftp-server service, the DHCP service and the ftp service.

其中,利用这些服务与需要bios升级的服务器进行数据交互。Among them, these services are used to perform data interaction with servers that require bios upgrades.

其次,设置bios升级模块,可选的,创建linux启动内核及文件系统;Secondly, set the bios upgrade module, optionally, create a linux boot kernel and file system;

在所述linux启动内核中安装所述bios升级工具;Install the bios upgrade tool in the linux boot kernel;

在所述文件系统的目录中的相应位置放入所述bios升级文件;Put the bios upgrade file into the corresponding position in the directory of the file system;

并在所述bios升级文件中,根据输入的bios升级命令,生成bios升级自动执行脚本。And in the bios upgrade file, generate a bios upgrade automatic execution script according to the input bios upgrade command.

其中,为linux启动内核安装bios相应升级工具。并将bios升级文件放入相应目录,创建bios升级自动执行脚本。该脚本记录bios升级的相应命令。脚本根据所需数据生成bios升级命令,并在内核引导完成后自动执行。Among them, install the bios corresponding upgrade tool for the linux boot kernel. And put the bios upgrade file into the corresponding directory, and create a bios upgrade automatic execution script. This script records the corresponding commands for bios upgrade. The script generates the bios upgrade command based on the required data and executes it automatically after the kernel boot is complete.

即当出现bios升级的情况,先给源服务器进行升级,并保存了升级步骤,生成bios升级自动执行脚本,在其他服务器下载该自动执行脚本时,可以进行自动升级。可以与其它服务器通过局域网或者是公网进行连接,为其它服务器提供镜像部署模板。That is, when a bios upgrade occurs, first upgrade the source server, save the upgrade steps, generate a bios upgrade automatic execution script, and automatically upgrade when other servers download the automatic execution script. It can be connected to other servers through a local area network or public network to provide mirror deployment templates for other servers.

s110、利用PXE网卡启动,向源服务器中的DHCP发送地址请求;s110, use the PXE network card to start, and send an address request to DHCP in the source server;

其中,通过PXE启动并加载操作系统,要实现自动bios升级,首先要与源服务器进行通讯,即向源服务器中的DHCP发送地址请求。其中,PXE为预启动执行环境。Among them, to start and load the operating system through PXE, to realize automatic bios upgrade, firstly, communicate with the source server, that is, send an address request to DHCP in the source server. Wherein, PXE is a pre-boot execution environment.

s120、利用获取的IP信息,通过所述源服务器中的TFTP加载所述bios升级模块;s120. Using the acquired IP information, load the bios upgrade module through TFTP in the source server;

其中,根据IP信息与源服务器建立通讯,通过所述源服务器中的TFTP加载所述bios升级模块;Wherein, establishing communication with the source server according to the IP information, loading the bios upgrade module through TFTP in the source server;

可选的,利用获取的IP信息,通过所述源服务器中的TFTP加载所述bios升级模块可以包括:Optionally, using the acquired IP information, loading the bios upgrade module through TFTP in the source server may include:

根据获取的IP信息,获取bootstrap文件的位置信息,并利用所述位置信息,通过所述源服务器中的TFTP获取所述bootstrap文件;Obtain the location information of the bootstrap file according to the obtained IP information, and use the location information to obtain the bootstrap file through TFTP in the source server;

执行所述bootstrap文件,并根据执行结果,通过所述源服务器中的TFTP加载内核及bios升级文件。Execute the bootstrap file, and load the kernel and bios upgrade files through TFTP in the source server according to the execution result.

s130、利用所述bios升级模块进行服务器bios升级。s130. Using the bios upgrade module to upgrade the server bios.

其中,根据bios升级模块中的文件对服务器进行bios升级。Wherein, the bios of the server is upgraded according to the files in the bios upgrade module.

其中,可选的,利用所述bios升级模块进行服务器bios升级可以包括:Wherein, optionally, using the bios upgrade module to upgrade the server bios may include:

根据所述内核中的bios升级工具,运行所述bios升级文件中的bios升级自动执行脚本进行服务器bios升级。According to the bios upgrade tool in the kernel, run the bios upgrade automatic execution script in the bios upgrade file to upgrade the server bios.

下面提供上述方法的一个具体实施过程:A specific implementation process of the above method is provided below:

第一,从自己的PXE网卡启动,向源服务器中的DHCP服务器索取IP。First, boot from your own PXE network card and request an IP from the DHCP server in the source server.

第二,DHCP服务器返回分给客户机IP以及bootstrap文件的放置位置,从该位置通过TFTP服务获取bootstrap文件。其中,bootstrap文件为前端框架文件。Second, the DHCP server returns the IP address assigned to the client and the location of the bootstrap file, from which the bootstrap file is obtained through the TFTP service. Among them, the bootstrap file is the front-end framework file.

第三,目标服务器取得bootstrap文件后之执行该文件。Third, the target server executes the file after obtaining the bootstrap file.

第四,根据bootstrap的执行结果,通过TFTP服务器加载内核和文件系统。Fourth, load the kernel and file system through the TFTP server according to the execution result of the bootstrap.

第五,运行文件系统中的bios升级脚本,根据之前升级过的bios信息进行bios升级。完成bios升级。Fifth, run the bios upgrade script in the file system, and perform bios upgrade according to the previously upgraded bios information. Complete the bios upgrade.

基于上述技术方案,本发明是实施例提供的升级服务器bios的方法,该方法通过在源服务器中设置bios升级模块,使得需要进行bios升级的服务器都可以通过与源服务器建立连接后,通过源服务器中的bios升级模块对自身的bios进行升级;因此可以方便的进行批量的升级,将所有需要进行bios升级服务器与源服务器连接后就可以进行升级;因此该方法能够批量的进行服务器bios升级,节省了大量的资源人力,极大地提升了升级速率,降低了运维成本。Based on the above-mentioned technical solution, the present invention is a method for upgrading server bios provided by an embodiment. By setting a bios upgrade module in the source server, all servers that need to perform bios upgrade can establish a connection with the source server and pass the source server. The bios upgrade module in the module upgrades its own bios; therefore, batch upgrades can be conveniently performed, and upgrades can be performed after connecting all servers that require bios upgrades to the source server; therefore, this method can perform server bios upgrades in batches, saving A large number of resources and manpower have greatly improved the upgrade rate and reduced operation and maintenance costs.

本发明实施例提供了升级服务器bios的方法,可以通过上述方法能够批量的进行服务器bios升级,节省了大量的资源人力,极大地提升了升级速率,降低了运维成本。The embodiment of the present invention provides a method for upgrading the server bios, and the server bios can be upgraded in batches through the above method, which saves a lot of resources and manpower, greatly improves the upgrade rate, and reduces the operation and maintenance cost.

下面对本发明实施例提供的升级服务器bios的系统进行介绍,下文描述的升级服务器bios的系统与上文描述的升级服务器bios的方法可相互对应参照。The system for upgrading the server bios provided by the embodiment of the present invention is introduced below, and the system for upgrading the server bios described below and the method for upgrading the server bios described above can be referred to in correspondence with each other.

请参考图2,图2为本发明实施例所提供的升级服务器bios的系统的结构框图;该系统可以包括:Please refer to Fig. 2, Fig. 2 is the block diagram of the system of upgrading server bios provided by the embodiment of the present invention; The system may include:

源服务器100,用于设置bios升级模块;The source server 100 is used to set the bios upgrade module;

其中,在源服务器100通过局域网或者公网与其他目标服务器200相连,并为目标服务器200提供镜像部署模板。Wherein, the source server 100 is connected to other target servers 200 through a local area network or a public network, and provides a mirror image deployment template for the target servers 200 .

目标服务器200,用于进行bios升级;The target server 200 is used for bios upgrade;

其中,目标服务器200通过网络连接源服务器下载镜像启动后,自动执行脚本并按照当前bios策略进行bios升级,完成目标服务器200的bios升级功能。Wherein, after the target server 200 is connected to the source server through the network to download the image and starts, the script is automatically executed and the bios is upgraded according to the current bios policy, and the bios upgrade function of the target server 200 is completed.

其中,目标服务器的个数可以根据实际情况进行确定。Wherein, the number of target servers may be determined according to actual conditions.

其中,请参考图3,所述目标服务器200可以包括:Wherein, referring to FIG. 3, the target server 200 may include:

地址获取模块210,用于利用PXE网卡启动,向源服务器中的DHCP发送地址请求;The address acquisition module 210 is used to start using the PXE network card to send an address request to DHCP in the source server;

加载模块220,用于利用获取的IP信息,通过所述源服务器中的TFTP加载所述bios升级模块;The loading module 220 is used to load the bios upgrade module through TFTP in the source server by using the obtained IP information;

升级模块230,用于利用所述bios升级模块进行服务器bios升级。An upgrade module 230, configured to use the bios upgrade module to upgrade the server bios.

其中,所述加载模块220可以包括:Wherein, the loading module 220 may include:

获取单元,用于根据获取的IP信息,获取bootstrap文件的位置信息,并利用所述位置信息,通过所述源服务器中的TFTP获取所述bootstrap文件;An acquisition unit, configured to acquire the location information of the bootstrap file according to the obtained IP information, and use the location information to obtain the bootstrap file through TFTP in the source server;

加载单元,用于执行所述bootstrap文件,并根据执行结果,通过所述源服务器中的TFTP加载内核及bios升级文件。The loading unit is used to execute the bootstrap file, and load the kernel and bios upgrade files through TFTP in the source server according to the execution result.

其中,所述升级模块230可以包括:Wherein, the upgrade module 230 may include:

升级单元,用于根据所述内核中的bios升级工具,运行所述bios升级文件中的bios升级自动执行脚本进行服务器bios升级。The upgrade unit is used to run the bios upgrade automatic execution script in the bios upgrade file to upgrade the server bios according to the bios upgrade tool in the kernel.

其中,所述源服务器100具有指定单元,用于指定PXE引导程序的文件名。Wherein, the source server 100 has a specifying unit for specifying the file name of the PXE boot program.

其中,所述源服务器100可以包括:Wherein, the source server 100 may include:

创建单元,用于创建linux启动内核及文件系统;Create a unit for creating a linux boot kernel and file system;

安装单元,用于在所述linux启动内核中安装所述bios升级工具;The installation unit is used to install the bios upgrade tool in the linux boot kernel;

脚本生成单元,用于在所述文件系统的目录中的相应位置放入所述bios升级文件;并在所述bios升级文件中,根据输入的bios升级命令,生成bios升级自动执行脚本。The script generation unit is used to put the bios upgrade file into the corresponding position in the directory of the file system; and in the bios upgrade file, generate a bios upgrade automatic execution script according to the input bios upgrade command.

基于上述技术方案,本发明实施例提供的升级服务器bios的系统,该系统能够用源服务器作为DHCP和TFTP服务器进行镜像部署服务器。需要升级bios的目标服务器通过局域网或者公网与源服务器互联互通。目标服务器通过PXE启动并加载linux系统,自动执行bios升级自动执行脚本实现硬盘bios的升级功能;因此,能够批量的进行服务器bios升级,节省了大量的资源人力,极大地提升了升级速率,降低了运维成本。Based on the above technical solution, the embodiment of the present invention provides a system for upgrading the bios of a server, which can use the source server as a DHCP and TFTP server to perform image deployment server. The target server that needs to upgrade the bios is interconnected with the source server through the LAN or the public network. The target server starts and loads the linux system through PXE, automatically executes bios upgrade and automatically executes the script to realize the upgrade function of the hard disk bios; therefore, the server bios upgrade can be performed in batches, which saves a lot of resources and manpower, greatly improves the upgrade rate, and reduces the Operation and maintenance costs.

说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上对本发明所提供的升级服务器bios的方法及系统进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method and system for upgrading server bios provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (10)

1. a method of upgrade server bios, is characterized in that, comprising:
Build source server, and bios upgraded module is set in described source server;
Utilize PXE network interface card to start, send Address requests to the DHCP in source server;
Utilize the IP information obtained, load described bios upgraded module by the TFTP in described source server;
Described bios upgraded module is utilized to carry out server bios upgrading.
2. the method for claim 1, is characterized in that, utilizes the IP information obtained, loads described bios upgraded module comprise by the TFTP in described source server:
According to the IP information obtained, obtain the positional information of bootstrap file, and utilize described positional information, obtain described bootstrap file by the TFTP in described source server;
Perform described bootstrap file, and according to execution result, load kernel and bios upgrade file by the TFTP in described source server.
3. method as claimed in claim 2, is characterized in that, utilizes described bios upgraded module to carry out server bios upgrading and comprises:
According to the bios upgrading tool in described kernel, the bios upgrading run in described bios upgrade file automatically performs script and carries out server bios upgrading.
4. method as claimed in claim 3, is characterized in that, builds source server and comprises:
Source server installs tftp-server service, DHCP service and ftp service, and specifies the IP address of TFTP to be described source server IP address;
Start and open described tftp-server service, described DHCP service and described ftp and serve.
5. method as claimed in claim 4, is characterized in that, arrange bios upgraded module and comprise in described source server:
Create linux and start kernel and file system;
Start in kernel at described linux and described bios upgrading tool is installed;
Described bios upgrade file is put in relevant position in the catalogue of described file system;
And in described bios upgrade file, according to the bios upgrade command of input, generate bios upgrading and automatically perform script.
6. a system of upgrade server bios, is characterized in that, comprising:
Source server, for arranging bios upgraded module; Destination server, for carrying out bios upgrading;
Wherein, described destination server, comprising:
Address acquisition module, for utilizing PXE network interface card to start, sends Address requests to the DHCP in source server;
Load-on module, for utilizing the IP information of acquisition, loads described bios upgraded module by the TFTP in described source server;
Upgraded module, carries out server bios upgrading for utilizing described bios upgraded module.
7. system as claimed in claim 6, it is characterized in that, described load-on module comprises:
Acquiring unit, for according to the IP information obtained, obtains the positional information of bootstrap file, and utilizes described positional information, obtain described bootstrap file by the TFTP in described source server;
Loading unit, for performing described bootstrap file, and according to execution result, loads kernel and bios upgrade file by the TFTP in described source server.
8. system as claimed in claim 7, it is characterized in that, described upgraded module comprises:
Upgrade unit, for according to the bios upgrading tool in described kernel, the bios upgrading run in described bios upgrade file automatically performs script and carries out server bios upgrading.
9. system as claimed in claim 8, it is characterized in that, described source server has designating unit, is used to specify the filename of PXE boot.
10. as claimed in claim 9 from figure, it is characterized in that, described source server comprises:
Creating unit, starts kernel and file system for creating linux;
Installation unit, installs described bios upgrading tool for starting in kernel at described linux;
Script generation unit, puts into described bios upgrade file for the relevant position in the catalogue of described file system; And in described bios upgrade file, according to the bios upgrade command of input, generate bios upgrading and automatically perform script.
CN201510718536.1A 2015-10-29 2015-10-29 Server bios upgrading method and system Pending CN105183528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510718536.1A CN105183528A (en) 2015-10-29 2015-10-29 Server bios upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510718536.1A CN105183528A (en) 2015-10-29 2015-10-29 Server bios upgrading method and system

Publications (1)

Publication Number Publication Date
CN105183528A true CN105183528A (en) 2015-12-23

Family

ID=54905626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510718536.1A Pending CN105183528A (en) 2015-10-29 2015-10-29 Server bios upgrading method and system

Country Status (1)

Country Link
CN (1) CN105183528A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126273A (en) * 2016-06-16 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of method of upgrading BIOS
CN106227562A (en) * 2016-07-22 2016-12-14 浪潮电子信息产业股份有限公司 Method for automatically upgrading BIOS (basic input output System) of complete machine cabinet of Smart Rack in batch
CN106250176A (en) * 2016-07-22 2016-12-21 浪潮电子信息产业股份有限公司 Method for refreshing BIOS (basic input output System) under Linux operating system of 8-path server
CN106325920A (en) * 2016-08-11 2017-01-11 汉柏科技有限公司 Method and network equipment for implementing automatic upgrade of BIOS (Basic Input Output System)
CN107517223A (en) * 2017-09-29 2017-12-26 郑州云海信息技术有限公司 A method and system for remotely updating Mellanox network card software
CN107943496A (en) * 2017-11-17 2018-04-20 郑州云海信息技术有限公司 A kind of device and method of whole machine cabinet server batch updating firmware
CN108733398A (en) * 2018-05-15 2018-11-02 联想(北京)有限公司 A kind of processing method and processing device of software upgrading

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1598783A (en) * 2003-09-15 2005-03-23 联想(北京)有限公司 Refresh method of network computer BIOS
CN101604246A (en) * 2009-07-16 2009-12-16 浪潮电子信息产业股份有限公司 A method for automatic batch refreshing of general motherboard bios
US20130290694A1 (en) * 2012-04-30 2013-10-31 Cisco Technology, Inc. System and method for secure provisioning of virtualized images in a network environment
CN103777979A (en) * 2014-01-08 2014-05-07 合肥联宝信息技术有限公司 Method and device for recovering BIOD through cloud end
US20140372744A1 (en) * 2013-06-14 2014-12-18 Futurewei Technologies, Inc. Bootstrapping From A Remote Disk Image Via A Network
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
CN104732151A (en) * 2015-03-17 2015-06-24 浪潮集团有限公司 Remote safety batch BIOS updating method under Linux system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1598783A (en) * 2003-09-15 2005-03-23 联想(北京)有限公司 Refresh method of network computer BIOS
CN101604246A (en) * 2009-07-16 2009-12-16 浪潮电子信息产业股份有限公司 A method for automatic batch refreshing of general motherboard bios
US20130290694A1 (en) * 2012-04-30 2013-10-31 Cisco Technology, Inc. System and method for secure provisioning of virtualized images in a network environment
US20140372744A1 (en) * 2013-06-14 2014-12-18 Futurewei Technologies, Inc. Bootstrapping From A Remote Disk Image Via A Network
CN103777979A (en) * 2014-01-08 2014-05-07 合肥联宝信息技术有限公司 Method and device for recovering BIOD through cloud end
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
CN104732151A (en) * 2015-03-17 2015-06-24 浪潮集团有限公司 Remote safety batch BIOS updating method under Linux system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126273A (en) * 2016-06-16 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of method of upgrading BIOS
CN106126273B (en) * 2016-06-16 2019-05-10 浪潮(北京)电子信息产业有限公司 A Method of Upgrading BIOS
CN106227562A (en) * 2016-07-22 2016-12-14 浪潮电子信息产业股份有限公司 Method for automatically upgrading BIOS (basic input output System) of complete machine cabinet of Smart Rack in batch
CN106250176A (en) * 2016-07-22 2016-12-21 浪潮电子信息产业股份有限公司 Method for refreshing BIOS (basic input output System) under Linux operating system of 8-path server
CN106325920A (en) * 2016-08-11 2017-01-11 汉柏科技有限公司 Method and network equipment for implementing automatic upgrade of BIOS (Basic Input Output System)
CN107517223A (en) * 2017-09-29 2017-12-26 郑州云海信息技术有限公司 A method and system for remotely updating Mellanox network card software
CN107943496A (en) * 2017-11-17 2018-04-20 郑州云海信息技术有限公司 A kind of device and method of whole machine cabinet server batch updating firmware
CN108733398A (en) * 2018-05-15 2018-11-02 联想(北京)有限公司 A kind of processing method and processing device of software upgrading
CN108733398B (en) * 2018-05-15 2021-06-15 联想(北京)有限公司 Software upgrading processing method and device

Similar Documents

Publication Publication Date Title
CN105183528A (en) Server bios upgrading method and system
CN103297504B (en) The method of physics bare machine rapid deployment operating system in a kind of cloud data center
CN105183529A (en) Method for refreshing server firmware, target server, source server and system
CN110908753B (en) Intelligent fusion cloud desktop server, client and system
CN106911729B (en) Remote installation method of operating system suitable for domestic processor
CN104639378A (en) Automatic server deployment method based on PXE (pre-boot execution environment)
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
US11030047B2 (en) Information handling system and method to restore system firmware to a selected restore point
CN103608773A (en) Deployment system for multi-node applications
CN111181787B (en) A BMC parameter configuration method, device, equipment and medium
CN102662884B (en) Device driving program configuration method based on network
CN111475172B (en) Bare metal deployment method and device
CN107391193A (en) A kind of client, the system and method for configuration server
US20190205109A1 (en) Computer system, baseboard management controller, and os installation method
CN107943496A (en) A kind of device and method of whole machine cabinet server batch updating firmware
CN108900656A (en) A kind of method and device of batch deployment
CN103777979A (en) Method and device for recovering BIOD through cloud end
CN107360042A (en) A kind of server management method and device
CN104468811B (en) Upgrade method and device
CN106708573B (en) A system and method for automatic installation of Hadoop cluster
CN106020867A (en) Firmware deployment method and apparatus
CN108881504A (en) A kind of hardware information automatic acquiring method and device
CN111338699A (en) Computer mainboard initialization method and device, computer equipment and storage medium
CN110187895A (en) Operating system deployment method, apparatus, device, and computer-readable storage medium
CN108388449A (en) A kind of method of data center's update linux system trawl performance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151223