CN112835592A - Equipment reinstallation method and system, console, server and electronic equipment - Google Patents
Equipment reinstallation method and system, console, server and electronic equipment Download PDFInfo
- Publication number
- CN112835592A CN112835592A CN201911164962.XA CN201911164962A CN112835592A CN 112835592 A CN112835592 A CN 112835592A CN 201911164962 A CN201911164962 A CN 201911164962A CN 112835592 A CN112835592 A CN 112835592A
- Authority
- CN
- China
- Prior art keywords
- target device
- reloading
- server
- target
- reinstallation
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000013515 script Methods 0.000 claims abstract description 50
- 238000004891 communication Methods 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 230000002093 peripheral effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4416—Network booting; Remote initial program loading [RIPL]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention relates to the technical field of computers, and discloses a device reinstallation method and system, a console, a server and electronic equipment. The invention provides a device reloading method, which is applied to a server in a device reloading system, wherein the device reloading system comprises a console, at least one target device to be reloaded and the server in communication connection with the at least one target device to be reloaded, and the method comprises the following steps: receiving system mirror images and reinstallation scripts which correspond to the target devices and are sent by a console; respectively executing the reloading scripts corresponding to the target devices, wherein the reloading scripts comprise restarting instructions and are used for controlling the corresponding target devices to restart; after receiving the file acquisition request of each target device, each system mirror image is sent to the corresponding target device for each target device to carry out system reinstallation, and efficient automatic reinstallation of multiple devices can be achieved.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a device reinstallation method and system, a console, a server and electronic equipment.
Background
When the operating system of a certain device needs to be reinstalled, in the related technology, the image file is stored in a U disk or an optical disk, and the operating system of the target device is manually reinstalled; or the device is provided with a Baseboard Management Controller (BMC), another device with an operating system without a fault communicates with the device through IPMI (Intelligent Platform Management Interface), so that the device is started through the BMC (baseboard Management controller) (namely network card starting), and a mirror image file is obtained from the device without the fault for system reinstallation.
The inventor finds that at least the following problems exist in the prior art: the system is reassembled through the mirror image files in the U disk or the optical disk, the requirement on human intervention is high, the reassembly efficiency is low, and the remote reassembly of a single device is not suitable for the scene of large-batch device maintenance.
Disclosure of Invention
The invention aims to provide a batch reloading method and a control platform for target equipment, the target equipment and a storage medium, which can realize efficient and automatic reloading of a plurality of pieces of equipment.
In order to solve the above technical problem, an embodiment of the present invention provides an apparatus reinstallation method, which is applied to a server in an apparatus reinstallation system, where the apparatus reinstallation system includes a console, at least one target apparatus to be reinstalled, and a server in communication connection with the at least one target apparatus to be reinstalled, and the method includes the following steps: receiving system mirror images and reinstallation scripts which correspond to the target devices and are sent by a console; respectively executing the reloading scripts corresponding to the target devices, wherein the reloading scripts comprise restarting instructions and are used for controlling the corresponding target devices to restart; and after receiving the file acquisition request of each target device, sending each system image to the corresponding target device for each target device to perform system reinstallation.
The embodiment of the invention also provides a device reloading method, which is applied to a console in a device reloading system, wherein the device reloading system comprises the console, at least one target device to be reloaded and a server in communication connection with the at least one target device to be reloaded, and the method comprises the following steps: determining each target device to be reinstalled; and sending the system mirror image and the reloading script corresponding to each target device to a server matched with each target device, wherein the reloading script corresponding to each target device is executed by the server respectively so as to restart each target device, and after receiving a file acquisition request of each target device, each system mirror image is sent to the corresponding target device so as to be used for reloading the system of each target device.
The embodiment of the invention also provides a system reloading method, which is applied to target equipment to be reloaded in an equipment reloading system, wherein the equipment reloading system comprises a console, at least one target equipment to be reloaded and a server in communication connection with the at least one target equipment to be reloaded, and the method comprises the following steps: after the server is remotely restarted, sending a file acquisition request to the server to acquire a system mirror image; and carrying out system reinstallation according to the system mirror image.
The embodiment of the invention also provides a device reloading system, which comprises a console, at least one target device to be reloaded and a server in communication connection with the at least one target device to be reloaded; the console is used for sending the system mirror image and the reloading script which respectively correspond to each target device to the server; the server is used for respectively executing the reloading scripts corresponding to the target devices so as to restart the target devices; each target device is used for sending a file acquisition request to the server; the server is also used for sending each system mirror image to the corresponding target equipment after receiving the file acquisition request; and each target device is also used for reloading the system after receiving the corresponding system mirror image.
An embodiment of the present invention further provides a server, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the appliance reloading method as applied to the server in the appliance reloading system as described above.
An embodiment of the present invention also provides a console, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform a device reloading method as applied to a console in a device reloading system as described above.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the system reloading method.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is used for realizing the equipment reloading method or the system reloading method when being executed by a processor.
Compared with the prior art, the embodiment of the invention provides an equipment reloading system, which comprises a console, at least one target equipment to be reloaded and a server in communication connection with the at least one target equipment to be reloaded; in the equipment reloading system, the server receives the system mirror image and the reloading script which are respectively corresponding to each target equipment and are sent by the console, and executes the reloading script which is respectively corresponding to each target equipment, so that the target equipment can be remotely restarted; and after receiving the file acquisition request of each target device, sending each system image to the corresponding target device, and enabling the terminal device to acquire the system image without manual intervention and reinstall the system. The implementation mode of the invention can realize the batch reloading of a plurality of terminal devices, the whole reloading process does not need human intervention, and the reloading efficiency is high.
In addition, the reinstallation script also comprises DHCP configuration information configured for each target device, and the server is communicated with each target device through a DHCP service; after each system mirror image is sent to the corresponding target device for the system reinstallation of each target device to be reinstalled, the method further comprises the following steps: and deleting the DHCP configuration information of each target device. The method comprises the steps of configuring DHCP configuration information for each target device, namely identifying each target device to prevent the device from being wrongly installed, starting a DHCP service to communicate with the target device when the terminal device needs to communicate, deleting the DHCP information of each target device after installation is finished, and avoiding the phenomenon that the same reinstallation device continuously obtains reinstallation scripts from a server through the DHCP service, so that the same device is prevented from being reinstalled for many times.
In addition, after deleting the DHCP configuration information of the target device, the method further includes: and detecting whether the target equipment is communicated with the target equipment, and if the target equipment cannot be communicated with the target equipment within preset time, judging that the remote reinstallation of the target equipment fails. After the DHCP information of the system is deleted, the remote connectivity of the target equipment is detected, if the target equipment cannot be connected, the fact that a method capable of communicating with the target equipment does not exist is shown, namely the target equipment does not successfully carry out system reinstallation, and the method can effectively monitor whether the target equipment successfully carries out system reinstallation.
In addition, the reinstallation script further includes a configuration file of the corresponding target device, the system configuration parameters required by the reinstallation of the target device are obtained from the configuration file, and the system configuration parameters in the configuration file are the system configuration parameters in the original operating system of the corresponding target device. Because the system configuration parameters need to be manually filled in the general system reloading process, the data in the original system of the reloading equipment are reserved by the scheme, so that the system can be directly reloaded according to the parameters in the acquired configuration file in the system reloading process without manual participation, and therefore, an operator can complete the system reloading without mastering the related technical knowledge of an operating system, and great convenience is brought to operation and maintenance work.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a flow chart of a method for reloading a device according to a first embodiment of the present application;
FIG. 2 is a flow chart of a method for reloading a device according to a second embodiment of the present application;
FIG. 3 is a flow chart of a system reloading method provided in accordance with a third embodiment of the present application;
FIG. 4 is a schematic diagram of a system for reloading a device according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a server provided according to a fifth embodiment of the present invention;
FIG. 6 is a schematic diagram of a console provided in accordance with a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present invention relates to a device reinstalling method. The embodiment is applied to a server in an equipment reloading system, the equipment reloading system comprises a console, at least one target equipment to be reloaded and the server in communication connection with the at least one target equipment to be reloaded, and the method comprises the following steps: receiving system mirror images and reinstallation scripts which correspond to the target devices and are sent by a console; respectively executing the reloading scripts corresponding to the target devices, wherein the reloading scripts comprise restarting instructions and are used for controlling the corresponding target devices to restart; after receiving the file acquisition request of each target device, each system mirror image is sent to the corresponding target device for each target device to carry out system reinstallation, and efficient automatic reinstallation of multiple devices can be achieved.
As shown in fig. 1, in the device reinstallation system provided in this embodiment, a plurality of servers may be provided, each server being in communication connection with one or more reinstallation devices to implement a batch reinstallation; for convenience of description, the work flow of the server side is specifically described by taking only one server as an example in the present embodiment, and the following description is only provided for the convenience of understanding and is not necessary for implementing the present embodiment.
And step 101, receiving system images and reinstallation scripts, which correspond to the target devices and are sent by the console, respectively.
Specifically, the console stores network card information of each target device, and through the information, a server capable of communicating with the target device through an IPMI (Intelligent Platform Management Interface) can be found. And after the console determines the server matched with the target equipment, the system mirror image and the reloading script related to the target equipment can be issued to the server. It should be noted that, in the console, the image files of the operating systems of the respective versions are stored, and in actual implementation, the image files of the appropriate versions can be set for the respective targets according to actual requirements and sent to the server.
In this embodiment, the communication between the server and the console can be realized by a remote method, and the first method is that the console sends a remote login request to the server, so as to realize the remote communication between the console and the server; the second method is to install agent components at the server side and periodically send task requests to the console, and the second method can solve the problem that the console cannot access the server, and the server side can access the unidirectional network scene of the console.
And 102, respectively executing the reloading scripts corresponding to the target devices, wherein the reloading scripts comprise restarting instructions and are used for controlling the corresponding target devices to restart.
Specifically, the reload script is a piece of execution code by which the server controls the reloading of the respective target devices. After the reinstallation script corresponding to each target device is obtained, the server can start a sub-process for each target device to execute the reinstallation script, the reinstallation script corresponding to each target device at least comprises a restart instruction for the target device, and the server sends the restart instruction to the target device, so that the target device can be restarted. It should be noted that the target device can be restarted by a restart instruction sent by the server, mainly because each target device is installed with a Baseboard Management Controller (BMC), the BMC is a non-agent management subsystem operating in the system alone, and the server can start to operate as long as there is a BMC and an IPMI firmware, and can realize communication with the target device through an IPMI mechanism, thereby realizing the start of the target device.
And 103, after receiving the file acquisition request of each target device, sending each system image to the corresponding target device for the system reinstallation of each target device.
Specifically, after being started, each target device actively sends a file acquisition request to the server, and after receiving the file acquisition request, the server sends the respective image file of each target device to the corresponding target device. It should be noted that, the server may obtain the MAC address of each PXE network card of the target device through the console, and in the process of executing the re-installing script, corresponding DHCP information (DHCP, Dynamic Host Configuration Protocol) is configured for the MAC address of each target device, that is, PXE _ IP is configured for the network card of each target device, PXE _ IP of each target device is an identifier for distinguishing each target device, when the server sends a matching system image to the target device, that is, different target devices are distinguished by the DHCP information of the target devices, the DHCP configuration information configured for each target device, namely, each target device is identified, the confusion of the image files acquired by each target device can be prevented, and moreover, the PXE technology is adopted to obtain the image file, so that a hard disk can be omitted, and the image file can be obtained more quickly than a disk device.
In actual implementation, after sending each system image to the corresponding target device for the target device to be reinstalled to perform system reinstallation, the server deletes the DHCP configuration information of each target device. And after the installation is finished, deleting the DHCP information of each target device, so that the same reinstallation device can be prevented from continuously acquiring the reinstallation script from the server through a DHCP service, and the same device can be prevented from being reinstalled for multiple times.
In addition, after deleting the DHCP configuration information of the target equipment, the server can also detect whether the target equipment is communicated with the server, and if the target equipment cannot be communicated with the server within preset time, the server judges that the remote reinstallation of the target equipment fails. In actual implementation, the starting sequence of each target device is set to be that network card starting is prior to hard disk starting. When the target device is started for the second time after the system is reassembled, because the server deletes the DHCP configuration information of the device, the target device cannot acquire the PXE _ IP from the server, namely the network card is failed to start, the target device can be automatically switched to the hard disk to start, the target device started by the hard disk is distributed with a public network IP, the server can communicate with the target device through the public network IP, and if the target device and the server cannot be communicated, the hard disk of the target device is indicated to be failed to start, and the operating system of the device can be considered to be failed to reassemble. After the DHCP information of the system is deleted, the remote connectivity of the target equipment is detected, if the target equipment cannot be connected, the fact that a method capable of communicating with the target equipment does not exist is shown, namely the target equipment does not successfully carry out system reinstallation, and the method can effectively monitor whether the target equipment successfully carries out system reinstallation.
In one example, the reinstallation script further includes a configuration file of the corresponding target device, the system configuration parameters required for reinstallation of the target device are obtained from the configuration file, and the system configuration parameters in the configuration file are system configuration parameters in an original operating system of the corresponding target device. Because the system configuration parameters need to be manually filled in the general system reloading process, the data in the original system of the reloading equipment are reserved by the scheme, so that the system can be directly reloaded according to the parameters in the acquired configuration file in the system reloading process without manual participation, and therefore, an operator can complete the system reloading without mastering the related technical knowledge of an operating system, and great convenience is brought to operation and maintenance work.
In contrast to the prior art, the present embodiment provides an apparatus reinstallation system, where the apparatus reinstallation system includes a console, at least one target apparatus to be reinstalled, and a server communicatively connected to the at least one target apparatus to be reinstalled; in the equipment reloading system, the server receives the system mirror image and the reloading script which are respectively corresponding to each target equipment and are sent by the console, and executes the reloading script which is respectively corresponding to each target equipment, so that the target equipment can be remotely restarted; and after receiving the file acquisition request of each target device, sending each system image to the corresponding target device, and enabling the terminal device to acquire the system image without manual intervention and reinstall the system. The implementation mode of the invention can realize the batch reloading of a plurality of terminal devices, the whole reloading process does not need human intervention, and the reloading efficiency is high.
A second embodiment of the present invention relates to a device reinstallation method, which is applied to the console in the device reinstallation system mentioned in the first embodiment, that is, the device reinstallation method of the present application will be described in the present embodiment from the console side, and a flowchart of the present embodiment is shown in fig. 2, and the following description is specifically made.
Specifically, when the target devices are reassembled in batches, the console can determine the target devices according to the terminals of the system to be reassembled, which are selected by a worker on a human-computer interaction interface, and can also send information such as models of the target devices to the console after other devices detect the failed target devices, so that the console can determine the target devices.
Specifically, the console stores network card information of each target device and the server, and can determine a server in the same intranet with each target device, the server is used as a server matched with the target device, and when a target system needs to be reinstalled, a system image and a reinstallation script corresponding to each target device are sent to the server matched with each target device, so that the server executes a script file and sends the system image to the corresponding target device, and system reinstallation of the target device is achieved.
A third embodiment of the present invention relates to a system reinstallation method, which is applied to the target device in the device reinstallation system mentioned in the first embodiment, that is, explained in this embodiment from the target device side, and since there are multiple target devices in actual implementation and the things done by each target device are the same, this embodiment is specifically explained by taking one target device as an example, and the flow chart of the system reinstallation method in this embodiment is shown in fig. 3.
And 302, performing system reinstallation according to the system mirror image.
Specifically, the target device and the Server are started through a PXE environment, and the mechanism works in a Client/Server network mode, and supports a workstation to download an image from a remote Server through a network, thereby supporting the start of an operating system through the network, after the target device is started, the target device actively requires the Server to allocate an IP address, and then downloads a start software packet into a local memory for execution by using a tftp (virtual file transfer protocol) or mtftp (multicast file transfer protocol) protocol, and the start software packet completes the basic software setting of a terminal (Client), thereby guiding the terminal operating system pre-installed in the Server. In this embodiment, the software package downloaded by the target device from the server is a file named ks.cfg, which is a configuration file and includes various parameters required in the system reinstallation process, and the target device may execute the ks.cfg file to obtain an image file from the server and complete the installation of the operating system.
In this embodiment, the configuration file further includes an original IP address of the target device; after the system is reinstalled, the target device configures the own public network IP according to the original IP address in the configuration file and restarts the target device for the second time. The IP setting and the original IP address of the target equipment after the system is reinstalled are kept, so that the equipment can be accessed through the original IP address after the system is reinstalled.
It is to be understood that the first, second and third embodiments of the present invention may be implemented in cooperation with each other. The related technical details mentioned in the first embodiment are still valid in the second embodiment and the third embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related technical details mentioned in the second embodiment and the third embodiment can also be applied to the first embodiment.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the present invention relates to an apparatus reloading system, as shown in fig. 4, including a console 401, at least one target apparatus 403 to be reloaded, and a server 402 communicatively connected to the at least one target apparatus 403 to be reloaded; the console 401 is configured to send a system image and a reinstallation script corresponding to each target device 403 to the server 402; the server 402 is configured to respectively execute the reloading scripts corresponding to the target devices 403, so as to restart the target devices 403; each target device 403 is configured to send a file acquisition request to the server 402; the server 402 is further configured to send each system image to the corresponding target device 403 after receiving the file acquisition request; each target device 403 is also configured to perform system reinstallation after receiving the corresponding system image.
In one example, the reinstallation script further includes DHCP configuration information configured for each target device 403, and the server 402 communicates with each target device 403 through a DHCP service; the server 402 is further configured to delete the DHCP configuration information of each target device 403 after each system image is sent to the corresponding target device 403 for system reinstallation of each target device 403 to be reinstalled.
In one example, the server 402 is further configured to detect whether the target device 403 is connected after deleting the DHCP configuration information of the target device 403, and determine that the remote reinstallation of the target device 403 has failed if the target device 403 cannot be connected within a preset time.
In an example, the reinstallation script further includes a configuration file of the corresponding target device 403, the system configuration parameters required for the reinstallation of the target device 403 are obtained from the configuration file, and the system configuration parameters in the configuration file are system configuration parameters in an original operating system of the corresponding target device 403.
In one example, the boot order of each target device 403 is that network card boot takes precedence over hard disk boot.
Since the embodiments of the three methods of the first embodiment, the second embodiment, and the third embodiment correspond to the embodiment of the present system, the present embodiment can be implemented in cooperation with the first embodiment, the second embodiment, and the third embodiment. The related technical details mentioned in the first embodiment, the second embodiment, and the third embodiment are still valid in the present embodiment, and the technical effects achieved in the first embodiment, the second embodiment, and the third embodiment can also be achieved in the present embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment, the second embodiment, and the third embodiment.
A fifth embodiment of the present invention relates to a server, and as shown in fig. 5, a server 500 includes: at least one processor 501; and a memory 502 communicatively coupled to the at least one processor 501; wherein the memory 502 stores instructions executable by the at least one processor 501, the instructions being executable by the at least one processor 501 to enable the at least one processor 501 to perform the device reloading method as applied to a server in a device reloading system as described above.
The memory 502 and the processor 501 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 501 and the memory 502 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 501 is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to the processor 501.
The processor 501 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 502 may be used to store data used by processor 501 in performing operations.
A sixth embodiment of the present invention relates to a console, and as shown in fig. 6, a console 600 includes: at least one processor 601; and a memory 602 communicatively coupled to the at least one processor 601; wherein the memory 602 stores instructions executable by the at least one processor 601, the instructions being executable by the at least one processor 601 to enable the at least one processor 601 to perform the device reloading method as applied to the server in the device reloading system as described above.
Where the memory 602 and the processor 601 are coupled by a bus, the bus may comprise any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 601 and the memory 602 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 601 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 601.
The processor 601 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. While memory 602 may be used to store data used by processor 601 in performing operations.
A seventh embodiment of the present invention relates to an electronic device, and as shown in fig. 7, a server 700 includes: at least one processor 701; and, a memory 702 communicatively coupled to the at least one processor 701; the memory 702 stores instructions executable by the at least one processor 701, where the instructions are executable by the at least one processor 701 to enable the at least one processor 701 to perform the device reloading method as applied to the server in the device reloading system, as described above.
The memory 702 and the processor 701 are coupled by a bus, which may comprise any number of interconnecting buses and bridges that couple one or more of the various circuits of the processor 701 and the memory 702. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 701 is transmitted over a wireless medium through an antenna, which receives the data and transmits the data to the processor 701.
The processor 701 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 702 may be used for storing data used by the processor 701 in performing operations.
An eighth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (16)
1. A device reinstallation method applied to a server in a device reinstallation system, the device reinstallation system including a console, at least one target device to be reinstalled, and the server communicatively connected to the at least one target device to be reinstalled, the method comprising:
receiving system mirror images and reloading scripts which are sent by the console and correspond to the target devices respectively;
respectively executing the reloading scripts corresponding to the target devices, wherein the reloading scripts comprise restarting instructions and are used for controlling the corresponding target devices to restart;
and after receiving the file acquisition request of each target device, sending each system image to the corresponding target device for the system reinstallation of each target device.
2. The apparatus reloading method as recited in claim 1,
the reloading script also comprises DHCP configuration information configured for each target device, and the server is communicated with each target device through a DHCP service;
after the sending each system image to the corresponding target device for the system reinstallation of each target device to be reinstalled, the method further includes:
and deleting the DHCP configuration information of each target device.
3. The device reassembly method of claim 2, further comprising, after said deleting the DHCP configuration information of the target device:
and detecting whether the target equipment is communicated with the target equipment, and if the target equipment cannot be communicated with the target equipment within preset time, judging that the remote reinstallation of the target equipment fails.
4. The apparatus reloading method as recited in claim 1,
the reinstallation script also includes a configuration file of the corresponding target device, the system configuration parameters required by the reinstallation of the target device are obtained from the configuration file, and the system configuration parameters in the configuration file are the system configuration parameters in the original operating system of the corresponding target device.
5. The device reinstallation method according to claim 1, wherein the boot order of the target devices is that network card boot is prior to hard disk boot.
6. A device reloading method is applied to a console in a device reloading system, wherein the device reloading system comprises the console, at least one target device to be reloaded and a server in communication connection with the at least one target device to be reloaded, and the method comprises the following steps:
determining each target device to be reinstalled;
and sending the system mirror image and the reloading script corresponding to each target device to a server matched with each target device, wherein the reloading script corresponding to each target device is executed by the server respectively so as to restart each target device, and after receiving a file acquisition request of each target device, each system mirror image is sent to the corresponding target device so as to be reloaded by each target device.
7. A system reloading method is applied to target equipment to be reloaded in an equipment reloading system, the equipment reloading system comprises a console, at least one target equipment to be reloaded and a server in communication connection with the at least one target equipment to be reloaded, and the method comprises the following steps:
after the server is remotely restarted, sending a file acquisition request to the server to acquire a system mirror image;
and carrying out system reinstallation according to the system mirror image.
8. The equipment reloading system is characterized by comprising a console, at least one target equipment to be reloaded and a server which is in communication connection with the at least one target equipment to be reloaded;
the console is used for sending the system mirror image and the reloading script which respectively correspond to each target device to the server;
the server is used for respectively executing the reloading scripts corresponding to the target devices so as to restart the target devices;
each target device is used for sending a file acquisition request to the server;
the server is further used for sending each system mirror image to corresponding target equipment after receiving the file acquisition request;
and each target device is also used for reloading the system after receiving the corresponding system mirror image.
9. The device reloading system according to claim 8,
the reloading script also comprises DHCP configuration information configured for each target device, and the server is communicated with each target device through a DHCP service;
and the server is further configured to delete the DHCP configuration information of each target device after each system image is sent to the corresponding target device for system reinstallation of each target device to be reinstalled.
10. The device reloading system according to claim 9,
the server is further configured to detect whether the target device is connected to the server after the DHCP configuration information of the target device is deleted, and determine that the remote reinstallation of the target device fails if the target device cannot be connected to the server within a preset time.
11. The device reloading system according to claim 8,
the reinstallation script also includes a configuration file of the corresponding target device, the system configuration parameters required by the reinstallation of the target device are obtained from the configuration file, and the system configuration parameters in the configuration file are the system configuration parameters in the original operating system of the corresponding target device.
12. The device reinstallation system according to claim 8, wherein the boot order of the target devices is network card boot prior to hard disk boot.
13. A server, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the apparatus reloading method as claimed in any one of claims 1 to 5.
14. A console, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the device reloading method as claimed in claim 6.
15. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the system reloading method as recited in claim 7.
16. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the device reinstallation method according to any one of claims 1 to 5 or claim 6, or implements the system reinstallation method according to claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911164962.XA CN112835592A (en) | 2019-11-25 | 2019-11-25 | Equipment reinstallation method and system, console, server and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911164962.XA CN112835592A (en) | 2019-11-25 | 2019-11-25 | Equipment reinstallation method and system, console, server and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112835592A true CN112835592A (en) | 2021-05-25 |
Family
ID=75922198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911164962.XA Pending CN112835592A (en) | 2019-11-25 | 2019-11-25 | Equipment reinstallation method and system, console, server and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112835592A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116132276A (en) * | 2022-12-26 | 2023-05-16 | 天翼云科技有限公司 | Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060117172A1 (en) * | 2004-11-12 | 2006-06-01 | Yaoxue Zhang | Method and computing system for transparence computing on the computer network |
CN103546492A (en) * | 2013-11-14 | 2014-01-29 | 国家电网公司 | Unattended operation installation system and method |
CN104580475A (en) * | 2015-01-13 | 2015-04-29 | 华为技术有限公司 | Remote control method, terminal equipment, management server and remote control system |
CN104850442A (en) * | 2015-05-27 | 2015-08-19 | 杭州昆海信息技术有限公司 | Operating system mounting method and device |
CN106572200A (en) * | 2016-11-10 | 2017-04-19 | 郑州云海信息技术有限公司 | IP address configuration method and IP address configuration device for baseboard management controller BMC |
CN107193605A (en) * | 2017-05-26 | 2017-09-22 | 上海斐讯数据通信技术有限公司 | The installation method and system of a kind of operating system |
CN107483590A (en) * | 2017-08-22 | 2017-12-15 | 郑州云海信息技术有限公司 | Cloud data system medium cloud management system and method |
-
2019
- 2019-11-25 CN CN201911164962.XA patent/CN112835592A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060117172A1 (en) * | 2004-11-12 | 2006-06-01 | Yaoxue Zhang | Method and computing system for transparence computing on the computer network |
CN103546492A (en) * | 2013-11-14 | 2014-01-29 | 国家电网公司 | Unattended operation installation system and method |
CN104580475A (en) * | 2015-01-13 | 2015-04-29 | 华为技术有限公司 | Remote control method, terminal equipment, management server and remote control system |
CN104850442A (en) * | 2015-05-27 | 2015-08-19 | 杭州昆海信息技术有限公司 | Operating system mounting method and device |
CN106572200A (en) * | 2016-11-10 | 2017-04-19 | 郑州云海信息技术有限公司 | IP address configuration method and IP address configuration device for baseboard management controller BMC |
CN107193605A (en) * | 2017-05-26 | 2017-09-22 | 上海斐讯数据通信技术有限公司 | The installation method and system of a kind of operating system |
CN107483590A (en) * | 2017-08-22 | 2017-12-15 | 郑州云海信息技术有限公司 | Cloud data system medium cloud management system and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116132276A (en) * | 2022-12-26 | 2023-05-16 | 天翼云科技有限公司 | Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016112825A1 (en) | Remote control method, terminal device, management server, and remote control system | |
CN101699401B (en) | The installation method of blade server and operating system thereof and system | |
US7007077B1 (en) | Remote maintenance method of an information processing apparatus | |
US8332490B2 (en) | Method, apparatus and program product for provisioning a computer system | |
CN109587005B (en) | Connection detection method and device, computer equipment and readable storage medium | |
US20130254759A1 (en) | Installing an operating system in a host system | |
CN107229492A (en) | Installation method, device, system, storage medium and the equipment of server system | |
US20040003082A1 (en) | System and method for prevention of boot storms in a computer network | |
CN100543688C (en) | The method of device upgrade | |
CN108958742A (en) | A kind of method of batch installing operating system, relevant device and system | |
EP2645252A1 (en) | Information processing system and virtual address setting method | |
CN112491630B (en) | Bare metal automatic deployment method and device and cloud environment platform | |
CN111338670B (en) | Robot firmware updating method and device, storage medium and robot | |
CN107395385A (en) | Method for upgrading software and device | |
CN102693142A (en) | Network adaptation method and device | |
CN112073555A (en) | Method for configuring IP address, electronic device and computer readable storage medium | |
CN108881504A (en) | A kind of hardware information automatic acquiring method and device | |
EP3496337A1 (en) | Method and device for resetting network device to factory settings, and network device | |
CN107968725B (en) | Method and device for returning and configuring configuration information of home gateway unit type terminal device | |
CN112835592A (en) | Equipment reinstallation method and system, console, server and electronic equipment | |
CN116974941A (en) | Testing method for management interface function of intelligent platform of baseboard management controller | |
US20230214207A1 (en) | Device upgrade control method and apparatus, and computer device and storage medium | |
CN115333933B (en) | Automatic management method, medium and equipment for servers on machine room | |
CN110651255B (en) | Load control method, movable platform and computer readable storage medium | |
CN116627654A (en) | Control method and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210525 |