CN111221557A - Method and device for refreshing server BMC in batch - Google Patents

Method and device for refreshing server BMC in batch Download PDF

Info

Publication number
CN111221557A
CN111221557A CN202010041899.7A CN202010041899A CN111221557A CN 111221557 A CN111221557 A CN 111221557A CN 202010041899 A CN202010041899 A CN 202010041899A CN 111221557 A CN111221557 A CN 111221557A
Authority
CN
China
Prior art keywords
server
client
refreshed
refreshing
bmc
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
CN202010041899.7A
Other languages
Chinese (zh)
Inventor
王笠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010041899.7A priority Critical patent/CN111221557A/en
Publication of CN111221557A publication Critical patent/CN111221557A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention provides a method for refreshing server BMC in batches, which comprises the following steps: the invention also provides a device for refreshing the server BMC in batches, which effectively solves the problem of operation limitation caused by the fact that the information of the server to be refreshed cannot be accurately obtained in the prior art, effectively improves the efficiency and the accuracy of batch refreshing of the server, can monitor the running condition of the server in the server by the second process, restarts the server by the second process after the server in the server abnormally exits, and ensures the normal and effective refreshing of the client server.

Description

Method and device for refreshing server BMC in batch
Technical Field
The invention relates to the field of BMC refreshing design, in particular to a method and a device for refreshing server BMC in batches.
Background
In recent years, the nation proposes an autonomous controllable development strategy, and the localization of a server is an important link of autonomous control. The development of the domestic server starts late, the key technology is blocked by foreign momentum, and the usability and the performance of the domestic server have larger differences than those of X86 and Power platforms. The supporting software and tools of the localization server have a great gap compared with X86 and Power platforms.
Currently, the Feiteng 2000+ based servers need to be refreshed remotely through web pages or refreshing tools, but the servers need to be known in advance and then the refreshing action is performed manually.
However, in practical application, the server of the BMC to be refreshed may need to be refreshed at any time, and information of the server to be refreshed cannot be accurately obtained, so that the method is not suitable for a production line operation mode, and the refreshing operation has certain limitation.
Disclosure of Invention
The invention aims to solve the problems in the prior art, innovatively provides a method and a device for refreshing server BMC in batches, effectively solves the problem of operation limitation caused by the fact that the information of the server to be refreshed cannot be accurately acquired in the prior art, and effectively improves the efficiency and the accuracy of server batch refreshing.
The first aspect of the present invention provides a method for batch refreshing server BMCs, including:
the method comprises the following steps that a server-side server and a client-side server establish communication connection, wherein the server-side server is a server which is refreshed, and the client-side server is a server to be refreshed;
the method comprises the steps that a server-side server monitors refresh requests of a client-side server in real time, and creates a plurality of first processes after receiving the refresh requests sent by the client-side server, wherein the number of the first processes is the same as that of the client-side servers to be refreshed, and each first process corresponds to the refresh request of one client-side server to be refreshed;
and the first process carries out batch refreshing on the client server according to the refreshing request of the client server and sends the refreshing result to the corresponding client server.
With reference to the first aspect, in a first possible implementation manner of the first aspect, before the step of monitoring, by the server, the refresh request of the client server in real time, the method further includes: and the server-side server creates a second process, the second process is used for monitoring the running condition of the server-side server in real time, and the second process restarts the server-side server after the server-side server abnormally exits.
Further, the second process starts earlier than the first process.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the refresh request of the client server includes a BMC IP of the client server, BMC version information, a file to be refreshed, and a check code of the file to be refreshed.
Further, the check code of the file to be refreshed is an MD5 value.
The second aspect of the present invention provides an apparatus for batch refreshing server BMC, including:
the communication module is used for establishing communication connection between the server side server and the client side server, wherein the server side server is a server which is refreshed, and the client side server is a server to be refreshed;
the server-side server monitors the refresh request of the client-side server in real time, and creates a plurality of first processes after receiving the refresh request sent by the client-side server, wherein the number of the first processes is the same as that of the client-side servers to be refreshed, and each first process corresponds to the refresh request of one client-side server to be refreshed;
and the first process carries out batch refreshing on the client server according to the refreshing request of the client server and sends the refreshing result to the corresponding client server.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: and the server side server creates a second process, the second process is used for monitoring the running condition of the server side server in real time, and the second process restarts the server side server after the server side server abnormally exits.
Further, the second process starts earlier than the first process.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the refresh request of the client server includes a BMC IP of the client server, BMC version information, a file to be refreshed, and a check code of the file to be refreshed.
Further, the check code of the file to be refreshed is an MD5 value.
The technical scheme adopted by the invention comprises the following technical effects:
1. the method and the device effectively solve the problem of operation limitation caused by the fact that the information of the server to be refreshed cannot be accurately acquired in the prior art, and effectively improve the efficiency and the accuracy of batch refreshing of the server.
2. According to the method and the system, the second process is introduced, the starting time of the second process is earlier than that of the first process, the running condition of the server at the server side can be monitored, and the server at the server side is restarted by the second process after the server at the server side abnormally exits, so that the normal and effective operation of refreshing the server at the client side is ensured.
3. The refreshing request of the client server is sent according to different conditions of each client server, so that the method and the device adapt to customized requirements, and batch refreshing can be performed according to specific conditions such as the model and the version of each client server.
4. The check code of the file to be refreshed is the MD5 value, so that whether the file downloading is successful or complete can be checked, if the check is failed, the file is not refreshed, and the file is refreshed only after the check is passed, thereby ensuring the success rate and the accuracy and the reliability of the refreshing.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without any creative effort.
FIG. 1 is a schematic flow diagram of a process according to an embodiment of the present invention;
FIG. 2 is a schematic flow diagram of a second method embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a third embodiment of an apparatus according to the present invention;
fig. 4 is a schematic structural diagram of a fourth apparatus according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
Example one
As shown in fig. 1, the present invention provides a method for batch refreshing server BMC, including:
s1, establishing communication connection between the server and the client server, wherein the server is a refreshed server and the client server is a server to be refreshed;
s2, the server side server monitors the refresh request of the client side server in real time, and creates a plurality of first processes after receiving the refresh request sent by the client side server, wherein the number of the first processes is the same as that of the client side servers to be refreshed, and each first process corresponds to the refresh request of one client side server to be refreshed;
and S3, the first process carries out batch refreshing on the client server according to the refreshing request of the client server and sends the refreshing result to the corresponding client server.
In step S1, a server refresh script is set in the server, that is, the bmcserver program is encapsulated as the server refresh script, a client server refresh script is set in the client server, that is, the bmcflash program is encapsulated as the client server refresh script, and the specific implementation manner of establishing the communication connection between the server and the client server is as follows: the server side server refreshing script and the client side server refreshing script can establish communication connection through a network, wherein the server side server is a server which is completed in refreshing, and the client side server is a server to be refreshed.
In step S2, the refresh request of the client server includes the client server BMC IP, the BMC version information, the file to be refreshed, and the check code of the file to be refreshed. Specifically, a client server refreshes a script to search for a serial number, an order, a machine type, a production instruction and BMC IP information of the client server, sequentially searches for maintenance information in a database according to the order- > instruction- > machine type sequence, and acquires a BMC version, BMC version information, a file to be refreshed and a check code of the file to be refreshed, wherein the BMC version, the BMC version information, the file to be refreshed and the check code of the file to be refreshed are required to be refreshed by the client server; each server has a serial number (identification), the serial number is associated with a production order number, the production order number is associated with a machine type and production instruction content, and the information is stored in a database. Before the client server needs to be refreshed, the model, the BMC version needing to be refreshed, the file to be refreshed and the check code of the file to be refreshed can be maintained in the database in advance, so that the client server can refresh the script to obtain the BMC version, the BMC version information, the file to be refreshed and the check code of the file to be refreshed, which are needed to be refreshed by the client server. Specifically, the check code of the file to be refreshed is an MD5 value, so that whether the file downloading is successful or not can be checked, whether the file downloading is complete or not can be checked, if the file downloading is failed to check, the file downloading is not refreshed, and the file downloading can be refreshed only after the file downloading passes the check, so that the success rate and the accuracy and reliability of the refreshing are ensured.
Because the serial number, the order, the model, the production instruction and the BMC IP information of each client server are different, the BMC version information, the file to be refreshed and the check code of the file to be refreshed of each client server are different, the refreshing request sent by the client server is different, the refreshing request of the client server is sent according to different conditions of each client server, the customization requirements are met, and batch refreshing can be carried out according to specific conditions such as the model and the version of each client server.
A client server refreshing script sends a client server refreshing request in a Socket (TCP/IP protocol) mode; after receiving a request sent by a client server refreshing script, a server refreshing script creates a plurality of first processes, wherein the number of the first processes is the same as that of the client servers to be refreshed, and each first process corresponds to a refreshing request of one client server to be refreshed;
in step S3, the multiple first processes are concurrently executed processes, the first process created by the server-side server refresh script performs batch refresh on the client-side server according to the refresh request of the client-side server, and returns the refresh result to the client-side server refresh script through the Socket (tcp/ip protocol) original path. And the client server refreshing script receives a refreshing feedback result of the server refreshing script, and the refreshing process is ended.
The method and the device effectively solve the problem of operation limitation caused by the fact that the information of the server to be refreshed cannot be accurately acquired in the prior art, and effectively improve the efficiency and the accuracy of batch refreshing of the server.
Example two
As shown in fig. 2, the technical solution of the present invention further provides a method for batch refreshing server BMCs, including:
s1, establishing communication connection between the server and the client server, wherein the server is a refreshed server and the client server is a server to be refreshed;
s2, the server side server creates a second process, the second process is used for monitoring the running condition of the server side server in real time, and the second process restarts the server side server after the server side server abnormally exits;
s3, the server side server monitors the refresh request of the client side server in real time, and creates a plurality of first processes after receiving the refresh request sent by the client side server, wherein the number of the first processes is the same as that of the client side servers to be refreshed, and each first process corresponds to the refresh request of one client side server to be refreshed;
and S4, the first process carries out batch refreshing on the client server according to the refreshing request of the client server and sends the refreshing result to the corresponding client server.
In step S2, the start time of the second process is earlier than that of the first process, the second process may be installed in the/etc/rc.d directory of the Linux system, the boot automatic start service is set, and the second process is also automatically started after the server is booted; after the second process is started, running a server at the server side to refresh the script; and the second process background monitors whether the server refreshing script normally runs or not in real time, and after the server refreshing script abnormally exits, the second process records an abnormal exiting log and restarts the server.
According to the method and the system, the second process is introduced, the starting time of the second process is earlier than that of the first process, the running condition of the server at the server side can be monitored, and the server at the server side is restarted by the second process after the server at the server side abnormally exits, so that the normal and effective operation of refreshing the server at the client side is ensured.
EXAMPLE III
As shown in fig. 3, the technical solution of the present invention further provides a device for batch refreshing server BMC, including:
the communication module 101 is used for establishing communication connection between a server and a client server, wherein the server is a server which is refreshed, and the client server is a server to be refreshed;
the first creating module 102 is used for monitoring the refresh request of the client server in real time by the server, and creating a plurality of first processes after receiving the refresh request sent by the client server, wherein the number of the first processes is the same as that of the client servers to be refreshed, and each first process corresponds to the refresh request of one client server to be refreshed;
and the refreshing module 103 is used for refreshing the client servers in batches by the first process according to the refreshing request of the client servers and sending the refreshing result to the corresponding client servers.
The refreshing request of the client server comprises a client server BMC IP, BMC version information, a file to be refreshed and a check code of the file to be refreshed. The check code of the file to be refreshed is an MD5 value.
The method and the device effectively solve the problem of operation limitation caused by the fact that the information of the server to be refreshed cannot be accurately acquired in the prior art, and effectively improve the efficiency and the accuracy of batch refreshing of the server.
The refreshing request of the client server is sent according to different conditions of each client server, so that the method and the device adapt to customized requirements, and batch refreshing can be performed according to specific conditions such as the model and the version of each client server.
The check code of the file to be refreshed is the MD5 value, so that whether the file downloading is successful or complete can be checked, if the check is failed, the file is not refreshed, and the file is refreshed only after the check is passed, thereby ensuring the success rate and the accuracy and the reliability of the refreshing.
Example four
As shown in fig. 4, the technical solution of the present invention further provides a device for batch refreshing server BMC, including:
the communication module 101 is used for establishing communication connection between a server and a client server, wherein the server is a server which is refreshed, and the client server is a server to be refreshed;
and a second creating module 102, in which the server creates a second process, the second process is used for monitoring the running condition of the server in real time, and the second process restarts the server after the server exits abnormally.
The first creating module 103 is used for monitoring the refresh request of the client server in real time by the server, and creating a plurality of first processes after receiving the refresh request sent by the client server, wherein the number of the first processes is the same as that of the client servers to be refreshed, and each first process corresponds to the refresh request of one client server to be refreshed;
and the refreshing module 104 is used for refreshing the client servers in batches by the first process according to the refreshing request of the client servers and sending the refreshing result to the corresponding client servers.
Specifically, the second process starts earlier than the first process.
According to the method and the system, the second process is introduced, the starting time of the second process is earlier than that of the first process, the running condition of the server at the server side can be monitored, and the server at the server side is restarted by the second process after the server at the server side abnormally exits, so that the normal and effective operation of refreshing the server at the client side is ensured.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (10)

1. A method for refreshing server BMC in batch is characterized by comprising the following steps:
the method comprises the following steps that a server-side server and a client-side server establish communication connection, wherein the server-side server is a server which is refreshed, and the client-side server is a server to be refreshed;
the method comprises the steps that a server-side server monitors refresh requests of a client-side server in real time, and creates a plurality of first processes after receiving the refresh requests sent by the client-side server, wherein the number of the first processes is the same as that of the client-side servers to be refreshed, and each first process corresponds to the refresh request of one client-side server to be refreshed;
and the first process carries out batch refreshing on the client server according to the refreshing request of the client server and sends the refreshing result to the corresponding client server.
2. The method of batch refreshing server BMC as claimed in claim 1, wherein the step of the server monitoring the refresh request of the client server in real time further comprises: and the server-side server creates a second process, the second process is used for monitoring the running condition of the server-side server in real time, and the second process restarts the server-side server after the server-side server abnormally exits.
3. The method of batch refreshing server BMC of claim 2, wherein the second process is started earlier than the first process.
4. The method of batch refreshing server BMC as claimed in claim 1, wherein the client server refresh request includes client server BMC IP, BMC version information, file to be refreshed, and check code of file to be refreshed.
5. The method for batch refreshing of the server BMC according to claim 4, wherein the check code of the file to be refreshed is an MD5 value.
6. An apparatus for batch refreshing server BMC, comprising:
the communication module is used for establishing communication connection between the server side server and the client side server, wherein the server side server is a server which is refreshed, and the client side server is a server to be refreshed;
the server-side server monitors the refresh request of the client-side server in real time, and creates a plurality of first processes after receiving the refresh request sent by the client-side server, wherein the number of the first processes is the same as that of the client-side servers to be refreshed, and each first process corresponds to the refresh request of one client-side server to be refreshed;
and the first process carries out batch refreshing on the client server according to the refreshing request of the client server and sends the refreshing result to the corresponding client server.
7. The apparatus for batch refreshing server BMC of claim 6, further comprising: and the server side server creates a second process, the second process is used for monitoring the running condition of the server side server in real time, and the second process restarts the server side server after the server side server abnormally exits.
8. The apparatus for batch refreshing server BMC of claim 7, wherein the second process is started earlier than the first process.
9. The apparatus according to claim 1, wherein the client server BMC refresh request includes a client server BMC IP, BMC version information, a file to be refreshed, and a check code of the file to be refreshed.
10. The apparatus for batch refreshing server BMC as claimed in claim 9, wherein the check code of the file to be refreshed is MD5 value.
CN202010041899.7A 2020-01-15 2020-01-15 Method and device for refreshing server BMC in batch Pending CN111221557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010041899.7A CN111221557A (en) 2020-01-15 2020-01-15 Method and device for refreshing server BMC in batch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010041899.7A CN111221557A (en) 2020-01-15 2020-01-15 Method and device for refreshing server BMC in batch

Publications (1)

Publication Number Publication Date
CN111221557A true CN111221557A (en) 2020-06-02

Family

ID=70826714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010041899.7A Pending CN111221557A (en) 2020-01-15 2020-01-15 Method and device for refreshing server BMC in batch

Country Status (1)

Country Link
CN (1) CN111221557A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461647A (en) * 2014-12-22 2015-03-25 浪潮电子信息产业股份有限公司 Implementation method for remotely refreshing server power modules in batch
CN105490870A (en) * 2015-11-20 2016-04-13 浪潮电子信息产业股份有限公司 Method for monitoring operation state of Linux server in batch
CN109218349A (en) * 2017-06-29 2019-01-15 北京微影时代科技有限公司 A kind of method and device of management server cluster

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461647A (en) * 2014-12-22 2015-03-25 浪潮电子信息产业股份有限公司 Implementation method for remotely refreshing server power modules in batch
CN105490870A (en) * 2015-11-20 2016-04-13 浪潮电子信息产业股份有限公司 Method for monitoring operation state of Linux server in batch
CN109218349A (en) * 2017-06-29 2019-01-15 北京微影时代科技有限公司 A kind of method and device of management server cluster

Similar Documents

Publication Publication Date Title
US10152382B2 (en) Method and system for monitoring virtual machine cluster
US20130103977A1 (en) Fault tolerance for tasks using stages to manage dependencies
CN106681924A (en) Software testing method and software testing system
CN112506702A (en) Data center disaster tolerance method, device, equipment and storage medium
CN111917451B (en) Data transmission method and device, satellite module and storage medium
CN101771563B (en) Method for monitoring network service program
JP2008217735A (en) Fault analysis system, method and program
CN112769922A (en) Device and method for self-starting micro-service cluster
CN108199901B (en) Hardware repair reporting method, system, device, hardware management server and storage medium
CN111221557A (en) Method and device for refreshing server BMC in batch
CN113608789A (en) Server chip configuration file starting device
CN112564980A (en) Service monitoring method and system based on micro-service architecture
CN104158906A (en) Server agent manipulation system and manipulation method
CN111309388A (en) Automatic rollback system and method for system software version of device
CN113542318A (en) Equipment fault repairing method
CN109257218B (en) Island self-healing method of network system based on SNMP protocol
JP5015410B2 (en) Method and apparatus for two-phase commit in data distribution to a web farm
CN114331092A (en) Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment
CN113821390A (en) Switch debugging method and device, server and computer readable storage medium
CN111290766A (en) Knowledge base-based software batch deployment method and device
CN114647454B (en) Installation method and system based on PXE service
CN111752773B (en) Method and device for realizing power-on self-check verification of clustered system
CN111131462A (en) Method for executing terminal instruction through protocol
CN113076234B (en) HTML5 page real-time monitoring method
CN113886218B (en) Method, device, equipment and readable medium for verifying BIOS refreshing

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