CN106406921B - Method and device for installing patch - Google Patents

Method and device for installing patch Download PDF

Info

Publication number
CN106406921B
CN106406921B CN201510456764.6A CN201510456764A CN106406921B CN 106406921 B CN106406921 B CN 106406921B CN 201510456764 A CN201510456764 A CN 201510456764A CN 106406921 B CN106406921 B CN 106406921B
Authority
CN
China
Prior art keywords
server
patch
installation
task
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510456764.6A
Other languages
Chinese (zh)
Other versions
CN106406921A (en
Inventor
李万龙
罗朝亮
胡林红
郑松坚
李海文
许钺
林强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510456764.6A priority Critical patent/CN106406921B/en
Publication of CN106406921A publication Critical patent/CN106406921A/en
Application granted granted Critical
Publication of CN106406921B publication Critical patent/CN106406921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for installing patches, and belongs to the field of communication. The method comprises the following steps: receiving server configuration information sent by a server in a data center, wherein the server configuration information is used for applying for installing patches; generating a patch installation task according to the applied server configuration information of each server, wherein the patch installation task comprises patch time and a task identifier; generating a corresponding relation between the task identification and an information set, wherein the information set comprises server configuration information of each applied server; when the patch time included by the patch installation task is reached, acquiring a corresponding information set according to a task identifier included by the patch installation task; and sending a patch installation program and an installation instruction to each server according to the server configuration information of each server in the information set, wherein the installation instruction is used for triggering each server to install patches according to the patch installation program. The invention can improve the efficiency of installing the patch.

Description

Method and device for installing patch
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for installing a patch.
Background
The data center is composed of a large number of servers, the operating systems installed by the servers are windows operating systems of microsoft corporation, microsoft corporation publishes patches about the windows operating systems on the tuesdays of the second week of each month, and in order to improve the security of the data center, after microsoft corporation publishes the patches, each server of the data center needs to install the patches.
Currently, after microsoft released a patch, for an un-hosted data center, the operation and maintenance personnel of the data center manually download and install the patch on each server in the data center. Since the number of servers typically included in a data center is very large, there may be hundreds or thousands of servers. At present, the patches are downloaded and installed manually by operation and maintenance personnel, and long time is needed for installing the patches for each server, so that the efficiency of installing the patches is extremely low.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method and a device for installing a patch. The technical scheme is as follows:
a method of installing a patch, the method comprising:
receiving server configuration information sent by a server in a data center, wherein the server configuration information is used for applying for installing patches;
generating a patch installation task according to the applied server configuration information of each server, wherein the patch installation task comprises patch time and a task identifier; generating a corresponding relation between the task identifier and an information set, wherein the information set comprises server configuration information of each server applying for the task identifier;
when the patch time included by the patch installation task is reached, acquiring a corresponding information set according to a task identifier included by the patch installation task;
and sending a patch installation program and an installation instruction to each server according to the server configuration information of each server in the information set, wherein the installation instruction is used for triggering each server to install patches according to the patch installation program.
An apparatus to install a patch, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving server configuration information sent by a server in a data center, and the server configuration information is used for applying for installing patches;
the generation module is used for generating a patch installation task according to the applied server configuration information of each server, wherein the patch installation task comprises patch time and a task identifier; generating a corresponding relation between the task identifier and an information set, wherein the information set comprises server configuration information of each server applying for the task identifier;
the acquisition module is used for acquiring a corresponding information set according to a task identifier included by the patch installation task when the patch time included by the patch installation task is reached;
and the sending module is used for sending a patch installation program and an installation instruction to each server according to the server configuration information of each server in the information set, wherein the installation instruction is used for triggering each server to install patches according to the patch installation program.
In the embodiment of the invention, each server needing to install the patch applies for installing the patch, then the patch installing task is generated according to each applied server, and the patch is installed for the applied server when the patch time included in the patch installing task is up, so that the patches can be installed for the servers in the data center in batches, and the patch installing efficiency is improved.
Drawings
FIG. 1-1 is a diagram of a management system architecture according to an embodiment of the present invention;
fig. 1-2 are flowcharts of a method for installing a patch according to embodiment 1 of the present invention;
fig. 2-1 is a flowchart of a method for installing a patch according to embodiment 2 of the present invention;
fig. 2-2 is a schematic view of an interface structure provided in embodiment 2 of the present invention;
FIGS. 2-3 are schematic views of another interface structure provided in example 2 of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for installing a patch according to embodiment 3 of the present invention;
fig. 4 is a schematic structural diagram of a management station according to embodiment 4 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1-1, an architecture diagram of a management system according to an embodiment of the present invention includes:
the system comprises a management station, a database, a patch installation queue and a plurality of controllers, wherein the management system is used for controlling each server in the data center to install the patch.
The management site is used for receiving server configuration information sent by a server in the data center, the server configuration information is used for applying for installing a patch, and a patch installation task is generated according to the server configuration information of the applied server, and the patch installation task comprises a task identifier, a patch time and a blacklist. The patch time is entered by the management site by the technician and the blacklist includes server identifications of servers that cannot install the patch at the patch time.
The management site is further configured to form an information set from the server configuration information of each server that applies for, store the task identifier and the information set in a corresponding relationship between the task identifier and the information set in the database, and queue the patch installation task from the tail of the patch installation queue to store the patch installation task in the patch installation queue.
And the management station is also used for monitoring the patch installation task of which the patch installation queue is positioned at the head of the queue, when the patch time included by the patch installation task is monitored to arrive, the patch installation task includes a task identifier and a blacklist, and a corresponding information set is obtained from the corresponding relation between the task identifier and the information set in the database according to the task identifier. And removing the server configuration information of the server corresponding to each server identifier in the blacklist from the information set to obtain the server configuration information of each server which can be provided with the patch, and then distributing the server configuration information of each server to each controller in the plurality of controllers respectively.
Each controller receives server configuration information distributed to each server, logs in each server according to a login account and a login password included in the server configuration information of each server, and then sends a patch installation command and a patch installation program to each server. Each server receives the command for installing the patch and the patch installation program, runs the patch installation program, and installs the patch according to the patch installation program.
The patch required to be installed by the server is stored in a patch library, the patch library comprises patches developed by a patch developer and a patch list, and the patch list is used for storing the corresponding relation between patch identification and storage time. After a patch developer develops a patch, the patch is stored in a patch library, the current time is obtained as the storage time of the patch, and the corresponding relation between the patch identifier of the patch and the storage time is stored in a patch list. When installing the patch, the server acquires a patch list from the patch library, acquires a patch identifier of the patch stored at a time after a first time from the patch list, wherein the first time is the last time when the server installs the patch, and downloads and installs the corresponding patch from the patch library according to the acquired patch identifier of each patch.
Example 1
Referring to fig. 1-2, an embodiment of the present invention provides a method for installing a patch, including:
step 101: server configuration information sent by a server in the data center is received, and the server configuration information is used for applying for installing the patch.
Step 102: generating a patch installation task according to the applied server configuration information of each server, wherein the patch installation task comprises patch time and a task identifier; and generating a corresponding relation between the task identifier and an information set, wherein the information set comprises server configuration information of each applied server.
Step 103: and when the patch time included by the patch installation task is reached, acquiring a corresponding information set according to the task identifier included by the patch installation task.
Step 104: and sending a patch installation program and a patch installation instruction to each server according to the server configuration information of each server in the information set, wherein the patch installation instruction is used for triggering each server to install patches according to the patch installation program.
In the embodiment of the invention, each server needing to install the patch applies for installing the patch, then the patch installing task is generated according to each applied server, and the patch is installed for the applied server when the patch time included in the patch installing task is up, so that the patches can be installed for the servers in the data center in batches, and the patch installing efficiency is improved.
Example 2
Referring to fig. 2-1, an embodiment of the present invention provides a method for installing a patch, including:
step 201: the management system receives server configuration information sent by a server, wherein the server configuration information is used for requesting to install a patch, and the server configuration information at least comprises a login account, a login password and a server identifier of the server.
Wherein the server is any server in the data center. When a new patch appears, the corresponding responsible person of the server judges whether the patch needs to be installed on the server, if so, the responsible person triggers the server to send the server configuration information to the management system so as to request the management system to generate a patch installation task for installing the patch for the server.
Referring to the management system shown in the figure, the management system includes a management site for generating and distributing patch installation tasks. The servers in the data center send the configuration information of the servers to the management site, and the management site is requested to generate a patch installation task for installing the patch. Accordingly, the management site in the management system receives the server configuration information sent by the server.
Further, the server configuration information may further include a contact address of the responsible person, where the contact address may be a mobile phone number, a chat account number, and the like of the responsible person. The server identification may be a MAC address or an IP address of the server, etc. The contact is used to notify the principal after the patch has been installed for the server.
For each other server in the data center, when a new patch appears, the responsible person corresponding to each other server decides to install the patch, and sends server configuration information to the management site according to the flow.
Step 202: the management system generates a patch task according to server configuration information of a server applied in the data center, wherein the patch task comprises patch time, a blacklist and a task identifier, and the blacklist comprises the server identifier of the server which cannot install the patch in the patch time.
After a management site in the management system receives server configuration information sent by each server in the data center, a technician can determine patch time and input the patch time to the management site.
In addition, each server in the data center provides service to users in different time periods each day, so each server in the data center corresponds to a service time range. The management system comprises a database, wherein the database comprises a corresponding relation between the server identification and the service time range, and the corresponding relation is used for storing the server identification and the service time range of each server in the data center.
The method comprises the following steps: the method comprises the steps that a management site receives patch time input by technicians, a service time range including the patch time is obtained from the corresponding relation between a server identifier and the service time range included in a database according to the patch time, and a corresponding server identifier is obtained from the corresponding relation between the server identifier and the service time range included in the database according to the obtained service time range; and taking intersection of the obtained server identifications and the server identifications of the applied servers, forming a blacklist by the server identifications obtained by taking the intersection, then distributing task identifications by the management site, and generating a patch task comprising the patch time, the blacklist and the patch time.
In this embodiment, server identifiers of servers that provide services at the patch time are grouped into a blacklist, and thus, when the patch time arrives, patches may not be installed on servers corresponding to server identifiers included in the blacklist.
Further, in this embodiment, after the management site generates the patch installation task, the patch installation task is stored in a patch queue, that is, the patch installation task is enqueued from the head of the patch queue.
Among them, it should be noted that: in the patch queue, the patch installation task at the head of the queue has the longest storage time in the patch queue, and the included patch time is closest to the current time; the patch installation task at the tail of the queue has the shortest storage time in the patch queue, and the included patch time is the longest time from the current time.
Step 203: the management system stores the corresponding relation between the task identification and an information set, wherein the information set comprises the server configuration information of each applied server.
And the database of the management system comprises the corresponding relation between the task identification and the information set. The management site in the management system forms the server configuration information of each applied server into an information set, and then stores the task identifier and the information set in the corresponding relation between the task identifier and the information set in the database.
Step 204: and when the patch time of the patch installation task is reached, the management system acquires a corresponding information set from the corresponding relation between the task identifier and the information set according to the task identifier of the patch installation task.
The management station in the management system monitors the patch installation task at the head of the queue in the patch queue, if the patch time included in the patch installation task at the head of the queue is monitored to be reached, the patch installation task at the head of the queue is dequeued, and a corresponding information set is obtained from the corresponding relation between the task identifier and the information set in the database according to the task identifier included in the patch installation task.
Step 205: and the management system determines the server configuration information of each server capable of installing the patch according to the blacklist and the information set included in the patch installation task.
Specifically, the management site in the management system removes, from the information set, server configuration information corresponding to the server identifier included in the blacklist, and the server configuration information of each remaining server in the information set is server configuration information of a server capable of installing a patch.
If the patch is installed on the server corresponding to the server identifier in the blacklist, the server corresponding to the server identifier in the blacklist is restarted after the patch is installed, so that the service provided for the user is interrupted, and therefore the patch cannot be installed on the servers. However, each server capable of installing the patch may be in an idle state without providing a service to the user at the patch time, and thus there is no case of interrupting the service, and thus the patch can be installed on such a server.
Step 206: the management system respectively logs in each server according to the login account and the login password included in the determined server configuration information of each server, and respectively sends patch installation instructions to each server after the login of each server is successful, wherein the patch installation instructions are used for triggering the server to install patches.
Specifically, a management station in the management system distributes the determined servers to controllers included in the management system on average; for each controller, the controller receives server configuration information allocated to the server, logs in each server according to a login account and a login password included in the server configuration information of each allocated server, and sends a patch installation program and a patch installation instruction to each server after logging in each server.
The patch installer is used for the server to install the patch. For each server, the server receives the patch installation program and the patch installation instruction, after the patch installation program is operated, a patch list is obtained from a patch library, the patch list is used for storing patch identifications and storage time of all patches in the patch library, the patch identification of the patch with the storage time after the first time is obtained from the patch list, the first time is the time when the server last installs the patch, and the corresponding patch is downloaded and installed from the patch library according to the obtained patch identification of each patch.
Among them, it should be noted that: each patch in the patch library is a patch developed by a patch developer. After a patch developer develops a patch, the patch is stored in the patch library, the current time is obtained as the storage time of the patch, and the corresponding relation between the storage time and the patch identifier of the patch is stored in a patch list.
Among them, it should be noted that: for each server, in the process of installing the patch by the server, the server obtains installation information of the patch, where the installation information includes a patch identifier, progress information and/or status information of the patch, the progress information may be the percentage of the patch that is being installed and installed, and has not been installed and/or installed, and the status information may include success or failure of installation of the patch. The server sends the installation information to a data server included in the management system. The data server receives the installation information sent by the server, acquires the server identification of the server, and stores the corresponding relation between the server identification and the installation information in a database.
In this embodiment, a technician may query the installation information of each server on the management site, referring to the interface diagram shown in fig. 2-2, and the technician may input a server identifier of a certain server that needs to be queried in the interface; then the management site obtains the server identification from the interface, obtains the installation information of the server from the corresponding relation between the server identification and the installation information in the database according to the server identification, and displays the installation information of the server.
Further, when the server installs the patch, the server also acquires abnormal information about abnormality occurring in the installation process, and sends the acquired abnormal information to the data server, and the data server receives the abnormal information and stores the server identifier of the server and the abnormal information in the corresponding relationship between the server identifier of the database and the abnormal information.
If a technician wants to inquire the installation information or the abnormal information of a certain server, the technician submits a server identifier of the certain server on a management site, and the management site inquires the installation information of the certain server from the corresponding relation between the server identifier and the installation information in a database according to the server identifier of the certain server; or inquiring the abnormal information of the server from the corresponding relation between the server identification and the abnormal information in the database according to the server identification of the server.
Further, in this embodiment, the controller in the management system may also periodically send an inquiry message to the server corresponding to the controller, determine that the server does not crash if the inquiry response sent by the server is received within the preset time after the inquiry message is sent, and determine that the server crashes if the developed inquiry response sent by the server is not received within the preset time after the inquiry message is sent. The controller then sends the notification message to the management site, where the notification message carries the server identifier of the server.
The management site receives the notification message, acquires the service configuration information of the server from the information set according to the server identifier of the server carried by the notification message, and sends prompt information to a responsible person corresponding to the server according to a responsible person mode corresponding to the server included in the server configuration information, wherein the prompt information is used for notifying the responsible person that the server crashes. After the responsible person receives the prompt message, the server can be restarted to enable the server to be normal.
In the embodiment of the invention, each server needing to install the patch applies for installing the patch, then the patch installing task is generated according to each applied server, and the patch is installed for the applied server when the patch time included in the patch installing task is up, so that the patches can be installed for the servers in the data center in batches, and the patch installing efficiency is improved.
Example 3
Referring to fig. 3, an embodiment of the present invention provides an apparatus for installing a patch, including:
a receiving module 301, configured to receive server configuration information sent by a server in a data center, where the server configuration information is used to apply for installing a patch;
a generating module 302, configured to generate a patch installation task according to the server configuration information of each server that applies for, where the patch installation task includes a patch time and a task identifier; generating a corresponding relation between the task identifier and an information set, wherein the information set comprises server configuration information of each server applying for the task identifier;
an obtaining module 303, configured to obtain, when a patch time included in the patch installation task arrives, a corresponding information set according to a task identifier included in the patch installation task;
a sending module 304, configured to send a patch installer and an installation instruction to each server according to server configuration information of each server in the information set, where the installation instruction is used to trigger each server to install a patch according to the patch installer.
Optionally, the patch installation task further includes a blacklist, where the blacklist includes a server identifier of a server that cannot install the patch at the patch time;
the generating module 302 includes:
the system comprises an acquisition unit, a service time range acquisition unit and a service time setting unit, wherein the acquisition unit is used for receiving patch time and acquiring a server identifier of a server providing service at the patch time according to the corresponding relation between the server identifier and the service time range;
the intersection unit is used for taking intersection between the server identification of each server applied for the application and the acquired server identification, and forming a blacklist by the server identification obtained by taking the intersection;
and the forming unit is used for distributing task identifiers and forming patch installation tasks by the patch time, the blacklist and the task identifiers.
Optionally, the server configuration information includes a login account and a login password;
the sending module 304 includes:
a removing unit, configured to remove, from the information set, server configuration information corresponding to the server identifier included in the blacklist, to obtain server configuration information of a server capable of installing a patch;
the patch installation device comprises a login unit, a processing unit and a processing unit, wherein the login unit is used for respectively logging in each server according to server configuration information of each server capable of installing patches, wherein the server configuration information comprises a login account and a login password;
and the sending unit is used for sending the patch installation program and the installation instruction to each server after the server is successfully logged in.
Further, the apparatus further comprises:
and the storage module is used for receiving installation information sent by each server in the process of installing the patch, acquiring the server identification of each server, and storing the corresponding relation between the server identification of each server and the installation information.
Further, the apparatus further comprises:
and the query module is used for receiving the server identification of the server to be queried, querying the installation information of the server from the corresponding relation between the server identification and the installation information according to the server identification, and displaying the installation information of the server.
In the embodiment of the invention, each server needing to install the patch applies for installing the patch, then the patch installing task is generated according to each applied server, and the patch is installed for the applied server when the patch time included in the patch installing task is up, so that the patches can be installed for the servers in the data center in batches, and the patch installing efficiency is improved.
Example 4
Referring to fig. 4, a schematic structural diagram of a management site according to an embodiment of the present invention is shown, where the management site is configured to implement the method for installing a patch provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the management station 900 may include RF (Radio Frequency) circuitry 110, memory 120 including one or more computer-readable storage media, input unit 130, display unit 140, sensor 150, audio circuitry 160, WiFi (wireless fidelity) module 170, processor 180 including one or more processing cores, and power supply 190. Those skilled in the art will appreciate that the management site architecture shown in fig. 4 does not constitute a limitation of the management site and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the management station 900, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to the user and various graphical user interfaces of the management site 900, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 4, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The management site 900 may also include at least one sensor 150, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the management station 900 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be further configured by the management station 900, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the management station 900. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then transmits the audio data to, for example, another management site via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an ear bud jack to provide communication of peripheral headphones with the management station 900.
WiFi belongs to short-distance wireless transmission technology, and the management station 900 can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 170, and it provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the management station 900, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the management station 900, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the management station 900 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The management station 900 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the management station 900 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the management station 900 is a touch screen display, the management station 900 further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
receiving server configuration information sent by a server in a data center, wherein the server configuration information is used for applying for installing patches;
generating a patch installation task according to the applied server configuration information of each server, wherein the patch installation task comprises patch time and a task identifier; generating a corresponding relation between the task identifier and an information set, wherein the information set comprises server configuration information of each server applying for the task identifier;
when the patch time included by the patch installation task is reached, acquiring a corresponding information set according to a task identifier included by the patch installation task;
and sending a patch installation program and an installation instruction to each server according to the server configuration information of each server in the information set, wherein the installation instruction is used for triggering each server to install patches according to the patch installation program.
Optionally, the patch installation task further includes a blacklist, where the blacklist includes a server identifier of a server that cannot install the patch at the patch time;
the generating of the patch installation task according to the applied server configuration information of each server includes:
receiving patch time, and acquiring a server identifier of a server providing service at the patch time according to the corresponding relation between the server identifier and the service time range;
taking intersection of the server identification of each server and the acquired server identification, and forming a blacklist by the server identification obtained by taking the intersection;
distributing task identifiers, and forming patch installation tasks by the patch time, the blacklist and the task identifiers.
Optionally, the server configuration information includes a login account and a login password;
the sending a patch installation program and an installation instruction to each server according to the server configuration information of each server in the information set includes:
removing server configuration information corresponding to the server identification included in the blacklist from the information set to obtain server configuration information of a server capable of installing the patch;
respectively logging in each server according to server configuration information of each server capable of installing patches, wherein the server configuration information comprises a login account and a login password;
and after logging in each server successfully, sending a patch installation program and an installation instruction to each server respectively.
Further, after the sending the patch installation program and the installation instruction to each server according to the server configuration information of each server in the information set, the method further includes:
and receiving installation information sent by each server in the process of installing the patch, acquiring the server identification of each server, and storing the corresponding relation between the server identification of each server and the installation information.
Further, after storing the corresponding relationship between the server identifier and the installation information of each server, the method further includes:
receiving a server identification of a server needing to be inquired, inquiring the installation information of the server from the corresponding relation between the server identification and the installation information according to the server identification, and displaying the installation information of the server.
In the embodiment of the invention, each server needing to install the patch applies for installing the patch, then the patch installing task is generated according to each applied server, and the patch is installed for the applied server when the patch time included in the patch installing task is up, so that the patches can be installed for the servers in the data center in batches, and the patch installing efficiency is improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A method of installing a patch, the method comprising:
receiving server configuration information sent by a server in a data center, wherein the server configuration information is used for applying for installing patches;
generating a patch installation task according to the applied server configuration information of each server, wherein the patch installation task comprises patch time, task identification and a blacklist, and the blacklist comprises server identification of servers which cannot install the patch at the patch time; generating a corresponding relation between the task identifier and an information set, wherein the information set comprises server configuration information of each server applying for the task identifier;
when the patch time included by the patch installation task is reached, acquiring a corresponding information set according to a task identifier included by the patch installation task;
sending a patch installation program and an installation instruction to each server according to server configuration information of each server except the blacklist in the information set, wherein the installation instruction is used for triggering each server to install patches according to the patch installation program;
the generating of the patch installation task according to the applied server configuration information of each server includes:
receiving patch time, and acquiring a server identifier of a server providing service at the patch time according to the corresponding relation between the server identifier and a service time range, wherein the server corresponding to the server identifier needs to provide service at the patch time;
taking intersection of the server identification of each server and the acquired server identification, and forming a blacklist by the server identification obtained by taking the intersection;
distributing task identifiers, and forming patch installation tasks by the patch time, the blacklist and the task identifiers.
2. The method of claim 1, wherein the server configuration information includes a login account number and a login password;
the sending a patch installation program and an installation instruction to each server according to the server configuration information of each server in the information set includes:
removing server configuration information corresponding to the server identification included in the blacklist from the information set to obtain server configuration information of a server capable of installing the patch;
respectively logging in each server according to server configuration information of each server capable of installing patches, wherein the server configuration information comprises a login account and a login password;
and after logging in each server successfully, sending a patch installation program and an installation instruction to each server respectively.
3. The method as claimed in claim 1, wherein after sending the patch installer and the installation instruction to each server according to the server configuration information of each server in the information set, further comprising:
and receiving installation information sent by each server in the process of installing the patch, acquiring the server identification of each server, and storing the corresponding relation between the server identification of each server and the installation information.
4. The method of claim 3, wherein after storing the correspondence between the server identifier and the installation information of each server, further comprising:
receiving a server identification of a server needing to be inquired, inquiring the installation information of the server from the corresponding relation between the server identification and the installation information according to the server identification, and displaying the installation information of the server.
5. An apparatus for installing a patch, the apparatus comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving server configuration information sent by a server in a data center, and the server configuration information is used for applying for installing patches;
the system comprises a generating module, a processing module and a processing module, wherein the generating module is used for generating a patch installation task according to the applied server configuration information of each server, the patch installation task comprises patch time, task identification and a blacklist, and the blacklist comprises server identification of servers which cannot install patches at the patch time; generating a corresponding relation between the task identifier and an information set, wherein the information set comprises server configuration information of each server applying for the task identifier;
the acquisition module is used for acquiring a corresponding information set according to a task identifier included by the patch installation task when the patch time included by the patch installation task is reached;
a sending module, configured to send a patch installation program and an installation instruction to each server according to server configuration information of each server in the information set except for the blacklist, where the installation instruction is used to trigger each server to install a patch according to the patch installation program;
wherein the generating module comprises:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for receiving patch time and acquiring a server identifier of a server providing service at the patch time according to the corresponding relation between the server identifier and a service time range, and the server corresponding to the server identifier needs to provide service at the patch time;
the intersection unit is used for taking intersection between the server identification of each server applied for the application and the acquired server identification, and forming a blacklist by the server identification obtained by taking the intersection;
and the forming unit is used for distributing task identifiers and forming patch installation tasks by the patch time, the blacklist and the task identifiers.
6. The apparatus of claim 5, wherein the server configuration information comprises a login account number and a login password;
the sending module comprises:
a removing unit, configured to remove, from the information set, server configuration information corresponding to the server identifier included in the blacklist, to obtain server configuration information of a server capable of installing a patch;
the patch installation device comprises a login unit, a processing unit and a processing unit, wherein the login unit is used for respectively logging in each server according to server configuration information of each server capable of installing patches, wherein the server configuration information comprises a login account and a login password;
and the sending unit is used for sending the patch installation program and the installation instruction to each server after the server is successfully logged in.
7. The apparatus of claim 5, wherein the apparatus further comprises:
and the storage module is used for receiving installation information sent by each server in the process of installing the patch, acquiring the server identification of each server, and storing the corresponding relation between the server identification of each server and the installation information.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the query module is used for receiving the server identification of the server to be queried, querying the installation information of the server from the corresponding relation between the server identification and the installation information according to the server identification, and displaying the installation information of the server.
9. A computer-readable storage medium for storing a computer program which is loaded by a processor for performing the method according to any one of claims 1 to 4.
CN201510456764.6A 2015-07-29 2015-07-29 Method and device for installing patch Active CN106406921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510456764.6A CN106406921B (en) 2015-07-29 2015-07-29 Method and device for installing patch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510456764.6A CN106406921B (en) 2015-07-29 2015-07-29 Method and device for installing patch

Publications (2)

Publication Number Publication Date
CN106406921A CN106406921A (en) 2017-02-15
CN106406921B true CN106406921B (en) 2020-02-28

Family

ID=58009209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510456764.6A Active CN106406921B (en) 2015-07-29 2015-07-29 Method and device for installing patch

Country Status (1)

Country Link
CN (1) CN106406921B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786544B (en) * 2017-09-29 2018-08-17 贵州白山云科技有限公司 A kind of the task status processing method and system of message
US11216292B2 (en) 2018-08-27 2022-01-04 Google Llc Adapting client application of feature phone based on experiment parameters

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838602A (en) * 2005-03-22 2006-09-27 日本电气株式会社 Server system and online software update method
CN102609281A (en) * 2012-02-24 2012-07-25 中国电子科技集团公司第十五研究所 Distributed software patch updating method and distributed software patch updating system
CN103365683A (en) * 2012-03-28 2013-10-23 国际商业机器公司 Method and system for end-to-end patch automation and integration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838602A (en) * 2005-03-22 2006-09-27 日本电气株式会社 Server system and online software update method
CN102609281A (en) * 2012-02-24 2012-07-25 中国电子科技集团公司第十五研究所 Distributed software patch updating method and distributed software patch updating system
CN103365683A (en) * 2012-03-28 2013-10-23 国际商业机器公司 Method and system for end-to-end patch automation and integration

Also Published As

Publication number Publication date
CN106406921A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US10516640B2 (en) Group message updating and displaying method, apparatus, and terminal
CN107391259B (en) Resource processing method and device, computer readable storage medium and mobile terminal
EP3306865A1 (en) Communication message sending method and device
CN106874077B (en) Process running method and device
CN106936676B (en) Household equipment control method and device
CN108039963B (en) Container configuration method and device and storage medium
CN103544033A (en) Method, device and associated equipment for rolling back application program
CN107800585B (en) Network communication method and device, and message pushing method and device
CN109039989B (en) Address resolution protocol spoofing detection method, host and computer-readable storage medium
CN106953898B (en) Method and device for acquiring software package
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN107025574B (en) Promotion information display method and device
CN109144596B (en) Quick starting method, device, terminal, server and system
CN108092839B (en) Method and device for establishing network connection
CN107317828B (en) File downloading method and device
CN106406921B (en) Method and device for installing patch
CN114124924A (en) Method, equipment and system for determining configuration information
CN113039517B (en) Audio resource calling method and device and electronic equipment
CN107148011B (en) Method, device and system for executing target service
CN106445594B (en) System application installation method and device and terminal equipment
CN106209601B (en) State update message pushing method and device
CN108234275B (en) Method and device for releasing communication information
CN106330875B (en) Message display method and device
CN113852450A (en) Message push feedback method and device, electronic equipment and storage medium
CN113961380A (en) Cross-application repair method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant