CN103970572B - A kind of server component upgrade method, equipment and system - Google Patents
A kind of server component upgrade method, equipment and system Download PDFInfo
- Publication number
- CN103970572B CN103970572B CN201410216499.XA CN201410216499A CN103970572B CN 103970572 B CN103970572 B CN 103970572B CN 201410216499 A CN201410216499 A CN 201410216499A CN 103970572 B CN103970572 B CN 103970572B
- Authority
- CN
- China
- Prior art keywords
- server component
- component
- server
- upgrade
- upgrading
- 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 31
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
本发明提供了一种部件升级方法、设备和系统,其中,所述方法包括:通过通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID);在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID确定该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件与该部件ID通过所述与服务器部件连接的接口发送至服务器部件。本发明简化了多种服务器部件升级过程。
The present invention provides a component upgrade method, device and system, wherein the method includes: receiving various server component upgrade image files and server component upgrade configuration files from an external device through a Universal Serial Bus (USB) interface, the The configuration file includes: the address of each server component upgrade image file and the identification (ID) of the corresponding server component; after receiving the upgrade instruction, obtain the ID of the server component connected through the interface, and determine the upgrade of the server component according to the server component ID Image file address, according to the upgrade image file address to obtain the upgrade image file of the server component, and send the obtained server component upgrade image file and the component ID to the server component through the interface connected to the server component. The present invention simplifies the upgrade process of various server components.
Description
技术领域technical field
本发明涉及服务器部件升级领域,尤其涉及一种服务器部件升级方法、设备和系统。The invention relates to the field of upgrading server components, in particular to a method, device and system for upgrading server components.
背景技术Background technique
现有服务器部件种类繁多,升级包各有不同,并且不同的服务器部件升级时接收升级包的接口种类也不尽相同,目前已知的接口种类包括:串口、USB口、RJ45网线接口。There are many types of existing server components, and the upgrade packages are different, and the types of interfaces for receiving the upgrade packages when different server components are upgraded are also different. The currently known interface types include: serial port, USB port, and RJ45 network cable interface.
如果服务器的购买方发现自己的服务器存在多种部件需要升级,需要分别从各个部件的生产商获取部件升级包,升级过程费时、复杂;并且由于每个升级包对应的服务器部件不易识别,让不具备专业技术知识的普通用户进行部件升级难度大。现有的做法是将服务器返厂,或者请求服务器厂商派专业技术人员上门升级服务器部件,不论哪种部件升级方式,均为服务器升级带来了不便。If the purchaser of the server finds that there are multiple components in his server that need to be upgraded, he needs to obtain the component upgrade package from the manufacturer of each component separately. The upgrade process is time-consuming and complicated; It is very difficult for ordinary users with professional technical knowledge to upgrade components. The existing method is to return the server to the factory, or ask the server manufacturer to send professional technicians to upgrade the server components. No matter which component upgrade method is used, it will bring inconvenience to the server upgrade.
发明内容Contents of the invention
本发明提供了一种服务器部件升级方法、设备和系统,以解决如何简化多种服务器部件升级过程的技术问题。The invention provides a server component upgrading method, equipment and system to solve the technical problem of how to simplify the upgrading process of various server components.
为解决上述技术问题,本发明一种服务器部件升级方法,所述方法包括:In order to solve the above technical problems, the present invention provides a server component upgrade method, the method comprising:
通过通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID);Receive multiple server component upgrade image files and server component upgrade configuration files from external devices through the Universal Serial Bus (USB) interface, and the configuration files include: the address of each server component upgrade image file and the identification (ID) of the corresponding server component );
在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID确定该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件与该部件ID通过所述与服务器部件连接的接口发送至服务器部件。After receiving the upgrade instruction, obtain the ID of the server component connected through the interface, determine the upgrade image file address of the server component according to the server component ID, obtain the server component upgrade image file according to the upgrade image file address, and obtain the server component The upgrade image file and the component ID are sent to the server component through the interface connected to the server component.
进一步地,所述获取通过接口连接的服务器部件的ID,包括:Further, said obtaining the ID of the server component connected through the interface includes:
通过接口向与接口直接连接的服务器部件发送获取其ID以及与其连接的其他服务器部件ID的请求;Send a request to obtain its ID and the IDs of other server components connected to it to the server component directly connected to the interface through the interface;
或,or,
依次将服务器部件ID通过接口发送至与该接口直接连接的服务器部件,请求该服务器部件验证发送的服务器部件ID是否为其ID或与其连接的其他服务器部件的ID。The server component ID is sent to the server component directly connected to the interface through the interface in turn, and the server component is requested to verify whether the sent server component ID is its ID or the ID of other server components connected to it.
为解决上述技术问题,本发明还提供了一种服务器部件升级方法,所述方法包括:In order to solve the above technical problems, the present invention also provides a server component upgrade method, the method comprising:
服务器部件升级设备通过通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID);The server component upgrade device receives multiple server component upgrade image files and server component upgrade configuration files from external devices through the Universal Serial Bus (USB) interface, and the configuration files include: the address of each server component upgrade image file and the corresponding server component the identification (ID);
服务器部件升级设备在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID确定该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件和该部件ID通过所述与服务器部件连接的接口发送至所述ID标识的服务器部件;After receiving the upgrade instruction, the server component upgrade device obtains the ID of the server component connected through the interface, determines the upgrade image file address of the server component according to the server component ID, obtains the server component upgrade image file according to the upgrade image file address, and The obtained server component upgrade image file and the component ID are sent to the server component identified by the ID through the interface connected to the server component;
服务器部件在判断出接收到的部件ID为自身ID时,利用接收到的部件升级镜像文件进行部件升级。When the server component determines that the received component ID is its own ID, it uses the received component upgrade image file to perform component upgrade.
进一步地,服务器部件升级设备获取通过接口连接的服务器部件的ID,包括:Further, the server component upgrade device obtains the ID of the server component connected through the interface, including:
服务器部件升级设备向与接口直接连接的服务器部件发送获取其ID以及与其连接的其他服务器部件ID的请求,服务器部件接收到该请求后,将自身的服务器部件ID以及与自身连接的其他服务器ID发送至所述服务器部件升级设备。The server component upgrade device sends a request to obtain its ID and other server component IDs connected to the server component directly connected to the interface. After receiving the request, the server component sends its own server component ID and other server IDs connected to itself. Upgrade the device to the server component.
进一步地,服务器部件升级设备获取通过接口连接的服务器部件的ID,包括:Further, the server component upgrade device obtains the ID of the server component connected through the interface, including:
服务器部件升级设备依次将服务器部件ID通过接口发送至与该接口直接连接的服务器部件,请求该服务器部件验证发送的服务器部件ID是否为其ID或与其连接的其他服务器部件的ID,The server component upgrade device sends the server component ID through the interface to the server component directly connected to the interface in turn, and requests the server component to verify whether the sent server component ID is its ID or the ID of other server components connected to it,
与接口直接连接的服务器部件接收到来自服务器部件升级设备的ID后,将该ID与自身ID进行匹配,如果匹配,向服务器部件升级设备发送匹配通知;如果不匹配,继续将来自服务器部件升级设备的ID与自身连接的其他服务器部件的ID进行匹配,如果匹配,向服务器部件升级设备发送匹配通知。After the server component directly connected to the interface receives the ID from the server component upgrade device, it matches the ID with its own ID. If it matches, it sends a matching notification to the server component upgrade device; if it does not match, it continues to upgrade the device from the server component. The ID of the server is matched with the IDs of other server components connected to itself, and if matched, a matching notification is sent to the server component upgrade device.
进一步地,服务器部件在判断出接收到的部件ID为自身ID时,利用接收到的部件升级镜像文件进行部件升级,包括:Further, when the server component determines that the received component ID is its own ID, it uses the received component upgrade image file to perform component upgrade, including:
与服务器部件升级设备通过接口直接连接的服务器部件接收到部件升级镜像文件和部件ID后,若判断出服务器部件升级设备发送的部件ID不为自身ID,则将该部件升级镜像文件和部件ID转发与其直接连接的服务器部件;若判断出服务器部件升级设备发送的部件ID为自身ID,则利用接收到的部件升级镜像文件进行部件升级;After the server component directly connected to the server component upgrade device through the interface receives the component upgrade image file and component ID, if it is judged that the component ID sent by the server component upgrade device is not its own ID, it forwards the component upgrade image file and component ID The server component directly connected with it; if it is judged that the component ID sent by the server component upgrade device is its own ID, then use the received component upgrade image file to perform component upgrade;
所述与其直接连接的服务器部件在接收到部件升级镜像文件和部件ID后,若判断出服务器部件升级设备发送的部件ID为自身ID,则利用接收到的部件升级镜像文件进行部件升级;若判断出服务器部件升级设备发送的部件ID不为自身ID,则继续将该部件升级镜像文件和部件ID转发给与其直接连接的其他服务器部件,直至找到与服务器部件升级设备发送的部件ID匹配的服务器部件。The server component directly connected with it is after receiving the component upgrade image file and the component ID, if it is judged that the component ID sent by the server component upgrade device is its own ID, then utilize the received component upgrade image file to carry out component upgrade; If the component ID sent by the server component upgrade device is not its own ID, then continue to forward the component upgrade image file and component ID to other server components directly connected to it until the server component matching the component ID sent by the server component upgrade device is found .
为解决上述技术问题,本发明还提供了一种服务器部件升级设备,所述设备包括存储单元、接口单元和升级单元;In order to solve the above technical problems, the present invention also provides a server component upgrade device, which includes a storage unit, an interface unit and an upgrade unit;
所述接口单元,用于通过其中的通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID);以及通过接口与外部服务器部件连接;The interface unit is used to receive a variety of server component upgrade image files and server component upgrade configuration files from an external device through a universal serial bus (USB) interface therein, and the configuration files include: each server component upgrade image file The address and the identification (ID) of the corresponding server component; and connecting with the external server component through the interface;
所述存储单元,用于存储通过所述USB接口接收的多种服务器部件升级镜像文件以及服务器部件升级配置文件;The storage unit is used to store various server component upgrade image files and server component upgrade configuration files received through the USB interface;
所述升级单元,用于在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID从存储单元获取该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址从存储单元获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件与该部件ID通过与服务器部件连接的接口发送至服务器部件。The upgrade unit is used to obtain the ID of the server component connected through the interface after receiving the upgrade instruction, obtain the upgrade image file address of the server component from the storage unit according to the server component ID, and obtain the upgrade image file address of the server component from the storage unit according to the upgrade image file address. The unit acquires the server component upgrade image file, and sends the acquired server component upgrade image file and the component ID to the server component through the interface connected to the server component.
进一步地,所述升级单元,用于获取通过接口连接的服务器部件的ID,包括:Further, the upgrading unit is configured to obtain the ID of the server component connected through the interface, including:
通过接口向与该接口直接连接的服务器部件发送获取其ID以及与其连接的其他服务器部件ID的请求;Send a request to obtain its ID and the IDs of other server components connected to it to the server component directly connected to the interface through the interface;
或,or,
依次将从存储单元读取的服务器部件ID通过接口发送至与该接口直接连接的服务器部件,请求该服务器部件验证发送的服务器部件ID是否为其ID或与其连接的其他服务器部件的ID。The server component ID read from the storage unit is sent to the server component directly connected to the interface through the interface in turn, and the server component is requested to verify whether the sent server component ID is its ID or the ID of other server components connected to it.
为解决上述技术问题,本发明还提供了一种服务器部件升级系统,所述系统包括服务器部件升级设备以及服务器部件,其中,In order to solve the above technical problems, the present invention also provides a server component upgrade system, the system includes server component upgrade equipment and server components, wherein,
服务器部件升级设备,用于通过通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID);以及在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID确定该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件和该部件ID通过与服务器部件连接的接口发送至所述ID标识的服务器部件;Server component upgrade equipment, for receiving multiple server component upgrade image files and server component upgrade configuration files from external devices through the Universal Serial Bus (USB) interface, the configuration file includes: the address of each server component upgrade image file and The identification (ID) of corresponding server part; And after receiving upgrade instruction, obtain the ID of the server part connected by interface, determine the upgrade image file address of this server part according to server part ID, obtain server according to described upgrade image file address Component upgrade image file, the obtained server component upgrade image file and the component ID are sent to the server component identified by the ID through the interface connected to the server component;
服务器部件,用于在判断出接收到的部件ID为自身ID时,利用接收到的部件升级镜像文件进行部件升级。The server component is configured to use the received component upgrade image file to perform component upgrade when judging that the received component ID is its own ID.
进一步地,服务器部件升级设备,用于获取通过接口连接的服务器部件的ID,包括:Further, the server component upgrade device is used to obtain the ID of the server component connected through the interface, including:
服务器部件升级设备,用于向与接口直接连接的服务器部件发送获取其ID以及与其连接的其他服务器部件ID的请求;以及接收服务器部件发送的服务器部件ID;The server component upgrade device is used to send to the server component directly connected to the interface a request to obtain its ID and other server component IDs connected to it; and receive the server component ID sent by the server component;
服务器部件,用于接收到该请求后,将自身的服务器部件ID以及与自身连接的其他服务器ID发送至所述服务器部件升级设备。The server component is configured to send its own server component ID and other server IDs connected to itself to the server component upgrading device after receiving the request.
进一步地,服务器部件升级设备,用于获取通过接口连接的服务器部件的ID,包括:Further, the server component upgrade device is used to obtain the ID of the server component connected through the interface, including:
服务器部件升级设备,用于依次将服务器部件ID通过接口发送至与该接口直接连接的服务器部件,请求该服务器部件验证发送的服务器部件ID是否为其ID或与其连接的其他服务器部件的ID;以及接收服务器部件发送的匹配通知;The server component upgrade device is used to send the server component ID to the server component directly connected to the interface through the interface in turn, requesting the server component to verify whether the sent server component ID is its ID or the ID of other server components connected to it; and receiving matching notifications sent by the server component;
服务器部件,用于接收到来自服务器部件升级设备的ID后,将该ID与自身ID进行匹配,如果匹配,向服务器部件升级设备发送匹配通知;如果不匹配,继续将来自服务器部件升级设备的ID与自身连接的其他服务器部件的ID进行匹配,如果匹配,向服务器部件升级设备发送匹配通知。The server component is used to match the ID with its own ID after receiving the ID from the server component upgrade device, and if it matches, send a matching notification to the server component upgrade device; if it does not match, continue to update the ID from the server component upgrade device It is matched with the IDs of other server components connected to itself, and if matched, a matching notification is sent to the server component upgrade device.
进一步地,服务器部件,用于在判断出接收到的部件ID为自身ID时,利用接收到的部件升级镜像文件进行部件升级,包括:Further, the server component is configured to use the received component upgrade image file to perform component upgrade when judging that the received component ID is its own ID, including:
与服务器部件升级设备通过接口直接连接的服务器部件,用于接收到部件升级镜像文件和部件ID后,若判断出服务器部件升级设备发送的部件ID不为自身ID,则将该部件升级镜像文件和部件ID转发与其直接连接的服务器部件;若判断出服务器部件升级设备发送的部件ID为自身ID,则利用接收到的部件升级镜像文件进行部件升级;The server component directly connected to the server component upgrade device through an interface is used to upgrade the component image file and component ID if it is determined that the component ID sent by the server component upgrade device is not its own ID after receiving the component upgrade image file and component ID. The component ID is forwarded to the server component directly connected with it; if it is judged that the component ID sent by the server component upgrade device is its own ID, then the component upgrade image file is used to upgrade the component;
与服务器部件升级设备非通过接口直接连接的服务器部件,用于在接收到部件升级镜像文件和部件ID后,若判断出服务器部件升级设备发送的部件ID为自身ID,则利用接收到的部件升级镜像文件进行部件升级;若判断出服务器部件升级设备发送的部件ID不为自身ID,则继续将该部件升级镜像文件和部件ID转发与其直接连接的其他服务器部件,直至找到与服务器部件升级设备发送的部件ID匹配的服务器部件。The server component that is not directly connected to the server component upgrade device through an interface is used to upgrade the component using the received component ID if it is determined that the component ID sent by the server component upgrade device is its own ID after receiving the component upgrade image file and component ID. Image file for component upgrade; if it is judged that the component ID sent by the server component upgrade device is not its own ID, then continue to forward the component upgrade image file and component ID to other server components directly connected to it until it finds the component ID sent by the server component upgrade device. The part ID matches the server part.
上述技术方案中,可以存储多种服务器部件升级镜像文件,实现了服务器部件升级镜像文件的集中存储;并且上述技术方案中的服务器部件升级设备在通过接口与外部的服务器部件连接的情况下,如果接收到升级指令,可自动向外部服务器部件发送部件升级镜像文件,简化了升级过程。In the above technical solution, various server component upgrade image files can be stored, and the centralized storage of server component upgrade image files is realized; and the server component upgrade device in the above technical solution is connected to an external server component through an interface, if After receiving the upgrade instruction, the component upgrade image file can be automatically sent to the external server component, which simplifies the upgrade process.
附图说明Description of drawings
图1为本实施例的服务器部件升级方法流程图;Fig. 1 is the flowchart of the method for upgrading server components in this embodiment;
图2为本实施例的服务器部件升级设备组成模块图。FIG. 2 is a block diagram of the server component upgrade device in this embodiment.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
图1为本实施例的服务器部件升级方法流程图。FIG. 1 is a flow chart of the method for upgrading server components in this embodiment.
S101通过通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID),其中服务器部件的ID在服务器出厂时已被定义;S101 receives a variety of server component upgrade image files and server component upgrade configuration files from an external device through a Universal Serial Bus (USB) interface, and the configuration file includes: the address of each server component upgrade image file and the identification of the corresponding server component ( ID), wherein the ID of the server component has been defined when the server leaves the factory;
S102在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID确定该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件与该部件ID通过所述与服务器部件连接的接口发送至服务器部件;S102 After receiving the upgrade instruction, obtain the ID of the server component connected through the interface, determine the upgrade image file address of the server component according to the server component ID, obtain the server component upgrade image file according to the upgrade image file address, and obtain the server The component upgrade image file and the component ID are sent to the server component through the interface connected to the server component;
所述获取通过接口连接的服务器部件的ID,包括:The acquisition of the ID of the server component connected through the interface includes:
通过所述接口向与接口直接连接的服务器部件发送获取其ID以及与其连接的其他服务器部件ID的请求;Send a request to obtain its ID and other server component IDs connected to it to the server component directly connected to the interface through the interface;
或,or,
依次将服务器部件ID通过接口发送至与该接口直接连接的服务器部件,请求该服务器部件验证发送的服务器部件ID是否为其ID或与其连接的其他服务器部件的ID;The server component ID is sent to the server component directly connected to the interface through the interface in turn, and the server component is requested to verify whether the sent server component ID is its ID or the ID of other server components connected to it;
与接口直接连接的服务器部件可在上电后和与其连接的其他服务器部件交互获取所述其他服务器部件的ID,如果部件之间的连接关系是确定的,也可在服务器出厂时,将所述其他服务器部件的ID写入与接口直接连接的服务器部件内。The server component directly connected to the interface can interact with other server components connected to it to obtain the ID of the other server component after power-on, and if the connection relationship between the components is determined, the The IDs of other server components are written in the server components directly connected to the interface.
上述技术方案中,可以存储多种服务器部件升级镜像文件,实现了服务器部件升级镜像文件的集中存储;并且上述技术方案中的服务器部件升级设备在通过接口与外部的服务器部件连接的情况下,如果接收到升级指令,可自动向外部服务器部件发送部件升级镜像文件,简化了升级过程。In the above technical solution, various server component upgrade image files can be stored, and the centralized storage of server component upgrade image files is realized; and the server component upgrade device in the above technical solution is connected to an external server component through an interface, if After receiving the upgrade instruction, the component upgrade image file can be automatically sent to the external server component, which simplifies the upgrade process.
本实施例还给出了服务器部件升级设备和服务器部件交互的部件升级方法流程。This embodiment also provides the flow of the component upgrading method in which the server component upgrading device interacts with the server component.
步骤一:服务器部件升级设备通过通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID);Step 1: the server component upgrade device receives multiple server component upgrade image files and server component upgrade configuration files from an external device through a Universal Serial Bus (USB) interface, and the configuration file includes: the address of each server component upgrade image file and The identification (ID) of the corresponding server component;
步骤二:服务器部件升级设备在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID确定该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件和该部件ID通过所述与服务器部件连接的接口发送至所述ID标识的服务器部件;Step 2: After receiving the upgrade instruction, the server component upgrade device obtains the ID of the server component connected through the interface, determines the upgrade image file address of the server component according to the server component ID, and obtains the server component upgrade image according to the upgrade image file address file, sending the acquired server component upgrade image file and the component ID to the server component identified by the ID through the interface connected to the server component;
服务器部件升级设备获取通过接口连接的服务器部件的ID,包括:The server component upgrading device obtains the ID of the server component connected through the interface, including:
服务器部件升级设备向与接口直接连接的服务器部件发送获取其ID以及与其连接的其他服务器部件ID的请求,服务器部件接收到该请求后,将自身的服务器部件ID以及与自身连接的其他服务器ID发送至所述服务器部件升级设备;The server component upgrade device sends a request to obtain its ID and other server component IDs connected to the server component directly connected to the interface. After receiving the request, the server component sends its own server component ID and other server IDs connected to itself. upgrading equipment to said server component;
或or
服务器部件升级设备依次将服务器部件ID通过接口发送至与该接口直接连接的服务器部件,请求该服务器部件验证发送的服务器部件ID是否为其ID或与其连接的其他服务器部件的ID,The server component upgrade device sends the server component ID through the interface to the server component directly connected to the interface in turn, and requests the server component to verify whether the sent server component ID is its ID or the ID of other server components connected to it,
与接口直接连接的服务器部件接收到来自服务器部件升级设备的ID后,将该ID与自身ID进行匹配,如果匹配,向服务器部件升级设备发送匹配通知;如果不匹配,继续将来自服务器部件升级设备的ID与自身连接的其他服务器部件的ID进行匹配,如果匹配,向服务器部件升级设备发送匹配通知;After the server component directly connected to the interface receives the ID from the server component upgrade device, it matches the ID with its own ID. If it matches, it sends a matching notification to the server component upgrade device; if it does not match, it continues to upgrade the device from the server component. The ID is matched with the IDs of other server components connected to itself, and if matched, a matching notification is sent to the server component upgrade device;
步骤三:服务器部件在判断出接收到的部件ID为自身ID时,利用接收到的部件升级镜像文件进行部件升级;Step 3: When the server component determines that the received component ID is its own ID, it uses the received component upgrade image file to perform component upgrade;
与服务器部件升级设备通过接口直接连接的服务器部件接收到部件升级镜像文件和部件ID后,若判断出服务器部件升级设备发送的部件ID不为自身ID,则将该部件升级镜像文件和部件ID转发与其直接连接的服务器部件;若判断出服务器部件升级设备发送的部件ID为自身ID,则利用接收到的部件升级镜像文件进行部件升级;After the server component directly connected to the server component upgrade device through the interface receives the component upgrade image file and component ID, if it is judged that the component ID sent by the server component upgrade device is not its own ID, it forwards the component upgrade image file and component ID The server component directly connected with it; if it is judged that the component ID sent by the server component upgrade device is its own ID, then use the received component upgrade image file to perform component upgrade;
所述与其直接连接的服务器部件在接收到部件升级镜像文件和部件ID后,若判断出服务器部件升级设备发送的部件ID为自身ID,则利用接收到的部件升级镜像文件进行部件升级;若判断出服务器部件升级设备发送的部件ID不为自身ID,则继续将该部件升级镜像文件和部件ID转发给与其直接连接的其他服务器部件,直至找到与服务器部件升级设备发送的部件ID匹配的服务器部件。The server component directly connected with it is after receiving the component upgrade image file and the component ID, if it is judged that the component ID sent by the server component upgrade device is its own ID, then utilize the received component upgrade image file to carry out component upgrade; If the component ID sent by the server component upgrade device is not its own ID, then continue to forward the component upgrade image file and component ID to other server components directly connected to it until the server component matching the component ID sent by the server component upgrade device is found .
图2为本实施例的服务器部件升级设备组成模块图。FIG. 2 is a block diagram of the server component upgrade device in this embodiment.
该服务器升级设备包括:存储单元、接口单元和升级单元,其中,The server upgrade device includes: a storage unit, an interface unit and an upgrade unit, wherein,
所述接口单元,用于通过其中的通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID);以及通过接口与外部服务器部件连接;The interface unit is used to receive a variety of server component upgrade image files and server component upgrade configuration files from an external device through a universal serial bus (USB) interface therein, and the configuration files include: each server component upgrade image file The address and the identification (ID) of the corresponding server component; and connecting with the external server component through the interface;
所述存储单元,用于存储所述USB接口单元接收的多种服务器部件升级镜像文件以及服务器部件升级配置文件;The storage unit is used to store various server component upgrade image files and server component upgrade configuration files received by the USB interface unit;
所述升级单元,用于在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID从存储单元获取该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址从存储单元获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件与该部件ID通过与服务器部件连接的接口发送至服务器部件;The upgrade unit is used to obtain the ID of the server component connected through the interface after receiving the upgrade instruction, obtain the upgrade image file address of the server component from the storage unit according to the server component ID, and obtain the upgrade image file address of the server component from the storage unit according to the upgrade image file address. The unit obtains the server component upgrade image file, and sends the obtained server component upgrade image file and the component ID to the server component through the interface connected to the server component;
上述升级单元,用于获取通过接口连接的服务器部件的ID,包括:The above upgrade unit is used to obtain the ID of the server component connected through the interface, including:
通过接口向与该接口直接连接的服务器部件发送获取其ID以及与其连接的其他服务器部件ID的请求;Send a request to obtain its ID and the IDs of other server components connected to it to the server component directly connected to the interface through the interface;
或,or,
依次将从存储单元读取的服务器部件ID通过接口发送至与该接口直接连接的服务器部件,请求该服务器部件验证发送的服务器部件ID是否为其ID或与其连接的其他服务器部件的ID。The server component ID read from the storage unit is sent to the server component directly connected to the interface through the interface in turn, and the server component is requested to verify whether the sent server component ID is its ID or the ID of other server components connected to it.
上述技术方案中,可以存储多种服务器部件升级镜像文件,实现了服务器部件升级镜像文件的集中存储;并且上述技术方案中的服务器部件升级设备在通过接口与外部的服务器部件连接的情况下,如果接收到升级指令,可自动向外部服务器部件发送部件升级镜像文件,简化了升级过程。In the above technical solution, various server component upgrade image files can be stored, and the centralized storage of server component upgrade image files is realized; and the server component upgrade device in the above technical solution is connected to an external server component through an interface, if After receiving the upgrade instruction, the component upgrade image file can be automatically sent to the external server component, which simplifies the upgrade process.
本实施例还给出了一种服务器部件升级系统,该系统包括服务器部件升级设备与服务器部件,其中:This embodiment also provides a server component upgrade system, the system includes server component upgrade equipment and server components, wherein:
服务器部件升级设备,用于通过通用串行总线(USB)接口从外部设备接收多种服务器部件升级镜像文件以及服务器部件升级配置文件,所述配置文件包括:每个服务器部件升级镜像文件的地址以及对应服务器部件的标识(ID);以及在接收到升级指示后,获取通过接口连接的服务器部件的ID,根据服务器部件ID确定该服务器部件的升级镜像文件地址,根据所述升级镜像文件地址获取服务器部件升级镜像文件,将获取的服务器部件升级镜像文件和该部件ID通过与服务器部件连接的接口发送至所述ID标识的服务器部件;Server component upgrade equipment, for receiving multiple server component upgrade image files and server component upgrade configuration files from external devices through the Universal Serial Bus (USB) interface, the configuration file includes: the address of each server component upgrade image file and The identification (ID) of corresponding server part; And after receiving upgrade instruction, obtain the ID of the server part connected by interface, determine the upgrade image file address of this server part according to server part ID, obtain server according to described upgrade image file address Component upgrade image file, the obtained server component upgrade image file and the component ID are sent to the server component identified by the ID through the interface connected to the server component;
部件升级设备,用于获取通过接口连接的服务器部件的ID,包括:The component upgrade device is used to obtain the ID of the server component connected through the interface, including:
服务器部件升级设备,用于向与接口直接连接的服务器部件发送获取其ID以及与其连接的其他服务器部件ID的请求;以及接收服务器部件发送的服务器部件ID;服务器部件,用于接收到该请求后,将自身的服务器部件ID以及与自身连接的其他服务器ID发送至所述服务器部件升级设备;The server component upgrade device is used to send a request to the server component directly connected to the interface to obtain its ID and the ID of other server components connected to it; and receive the server component ID sent by the server component; the server component is used to receive the request. , sending its own server component ID and other server IDs connected to itself to the server component upgrade device;
或者,or,
服务器部件升级设备,用于依次将服务器部件ID通过接口发送至与该接口直接连接的服务器部件,请求该服务器部件验证发送的服务器部件ID是否为其ID或与其连接的其他服务器部件的ID;以及接收服务器部件发送的匹配通知;服务器部件,用于接收到来自服务器部件升级设备的ID后,将该ID与自身ID进行匹配,如果匹配,向服务器部件升级设备发送匹配通知;如果不匹配,继续将来自服务器部件升级设备的ID与自身连接的其他服务器部件的ID进行匹配,如果匹配,向服务器部件升级设备发送匹配通知;The server component upgrade device is used to send the server component ID to the server component directly connected to the interface through the interface in turn, requesting the server component to verify whether the sent server component ID is its ID or the ID of other server components connected to it; and Receive the matching notification sent by the server component; the server component is used to match the ID with its own ID after receiving the ID from the server component upgrade device, and if it matches, send a matching notification to the server component upgrade device; if it does not match, continue Match the ID from the server component upgrade device with the IDs of other server components connected to itself, and if matched, send a matching notification to the server component upgrade device;
服务器部件,用于在判断出接收到的部件ID为自身ID时,利用接收到的部件升级镜像文件进行部件升级;The server component is used to upgrade the component using the received component upgrade image file when it is determined that the received component ID is its own ID;
其中,与服务器部件升级设备通过接口直接连接的服务器部件,用于接收到部件升级镜像文件和部件ID后,若判断出服务器部件升级设备发送的部件ID不为自身ID,则将该部件升级镜像文件和部件ID转发与其直接连接的服务器部件;若判断出服务器部件升级设备发送的部件ID为自身ID,则利用接收到的部件升级镜像文件进行部件升级;Among them, the server component directly connected to the server component upgrade device through an interface is used to upgrade the component image file and the component ID if it is judged that the component ID sent by the server component upgrade device is not its own ID. The file and part ID are forwarded to the server part directly connected with it; if it is judged that the part ID sent by the server part upgrade device is its own ID, then the part upgrade is carried out by using the received part upgrade image file;
与服务器部件升级设备非通过接口直接连接的服务器部件,用于在接收到部件升级镜像文件和部件ID后,若判断出服务器部件升级设备发送的部件ID为自身ID,则利用接收到的部件升级镜像文件进行部件升级;若判断出服务器部件升级设备发送的部件ID不为自身ID,则继续将该部件升级镜像文件和部件ID转发与其直接连接的其他服务器部件,直至找到与服务器部件升级设备发送的部件ID匹配的服务器部件。The server component that is not directly connected to the server component upgrade device through an interface is used to upgrade the component using the received component ID if it is determined that the component ID sent by the server component upgrade device is its own ID after receiving the component upgrade image file and component ID. Image file for component upgrade; if it is judged that the component ID sent by the server component upgrade device is not its own ID, then continue to forward the component upgrade image file and component ID to other server components directly connected to it until it finds the component ID sent by the server component upgrade device. The part ID matches the server part.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the above embodiments can also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiments can be implemented in the form of hardware, or can be implemented in the form of software function modules. The form is realized. The present invention is not limited to any specific combination of hardware and software.
需要说明的是,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。It should be noted that the present invention can also have other various embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these Corresponding changes and deformations should belong to the scope of protection of the appended claims of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410216499.XA CN103970572B (en) | 2014-05-21 | 2014-05-21 | A kind of server component upgrade method, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410216499.XA CN103970572B (en) | 2014-05-21 | 2014-05-21 | A kind of server component upgrade method, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103970572A CN103970572A (en) | 2014-08-06 |
CN103970572B true CN103970572B (en) | 2017-05-31 |
Family
ID=51240109
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410216499.XA Active CN103970572B (en) | 2014-05-21 | 2014-05-21 | A kind of server component upgrade method, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103970572B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104834537B (en) | 2014-12-30 | 2018-04-27 | 沈阳东软医疗系统有限公司 | Data processing method, server and client |
CN107181635A (en) * | 2017-07-31 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and system of upgrade server external equipment |
CN108446133A (en) * | 2018-03-29 | 2018-08-24 | 广东美的暖通设备有限公司 | Firmware upgrade control method, firmware upgrade control system and electric appliance |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6360366B1 (en) * | 1996-09-05 | 2002-03-19 | Managesoft Corporation | Systems and methods for automatic application version upgrading and maintenance |
CN101867694A (en) * | 2010-05-21 | 2010-10-20 | 中兴通讯股份有限公司 | Method and system for upgrading interactive internet protocol television (IPTV) set top box (STB) |
CN102193807A (en) * | 2010-03-19 | 2011-09-21 | 联想(北京)有限公司 | Method for upgrading image file, server and computer network system |
CN102546818A (en) * | 2012-02-13 | 2012-07-04 | 成都欣点科技有限公司 | Method and system for upgrading embedded equipment in batches |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8041937B2 (en) * | 2008-10-02 | 2011-10-18 | Lenovo (Singapore) Pte., Ltd. | Multiple guest O.S. boot for server component setup |
-
2014
- 2014-05-21 CN CN201410216499.XA patent/CN103970572B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6360366B1 (en) * | 1996-09-05 | 2002-03-19 | Managesoft Corporation | Systems and methods for automatic application version upgrading and maintenance |
CN102193807A (en) * | 2010-03-19 | 2011-09-21 | 联想(北京)有限公司 | Method for upgrading image file, server and computer network system |
CN101867694A (en) * | 2010-05-21 | 2010-10-20 | 中兴通讯股份有限公司 | Method and system for upgrading interactive internet protocol television (IPTV) set top box (STB) |
CN102546818A (en) * | 2012-02-13 | 2012-07-04 | 成都欣点科技有限公司 | Method and system for upgrading embedded equipment in batches |
Also Published As
Publication number | Publication date |
---|---|
CN103970572A (en) | 2014-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111159085B (en) | A kind of automatic configuration method of PCIE bandwidth, server motherboard and server | |
US11483214B2 (en) | Synchronizing data between cloud manager and providers | |
TWI453594B (en) | Bios firmware updating method and electronic device | |
TWI497404B (en) | Bridging non-network interfaces and network interfaces | |
TWI548233B (en) | Server, server management system and server management method | |
CN103067445B (en) | Method and device of software upgrading of distributed system | |
CN105955781B (en) | An EMMC upgrade method, upgrade device and terminal | |
CN104144073A (en) | Master-slave device environment deployment method and master-slave device environment deployment system | |
CN106375442B (en) | Method and device for cross-platform management of equipment information | |
CN103970572B (en) | A kind of server component upgrade method, equipment and system | |
WO2015127850A1 (en) | Data upgrading method and central server | |
CN104780058A (en) | Electronic equipment configuration method and system | |
CN107566518A (en) | The method and apparatus of management equipment information during installation file | |
CN110365508B (en) | Method for instantiating virtual network function and network function virtualization orchestrator | |
KR20180050001A (en) | Firmware upgrade system and method for IoT | |
CN102713844A (en) | Methods, systems and devices for executing software applications | |
US10521841B2 (en) | Method and apparatus for integrating an e-commerce provider with third-party vendors | |
US9742874B2 (en) | Control device, and method for transfer control | |
JP2019047273A5 (en) | ||
CN112052067B (en) | Virtualized container startup and information maintenance method, electronic device and storage medium | |
CN105740180B (en) | The virtual machine cut-in method and device of USB device | |
CN114584463A (en) | Server management method, system, device and computer readable storage medium | |
JP5677219B2 (en) | Storage device, storage method, and device for storing storage device | |
CN108733607B (en) | Connection communication method and device | |
JP6222358B2 (en) | Information processing system, connection support method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |