[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110187895B - Operating system deployment method, device, equipment and computer-readable storage medium - Google Patents

Operating system deployment method, device, equipment and computer-readable storage medium Download PDF

Info

Publication number
CN110187895B
CN110187895B CN201910444837.8A CN201910444837A CN110187895B CN 110187895 B CN110187895 B CN 110187895B CN 201910444837 A CN201910444837 A CN 201910444837A CN 110187895 B CN110187895 B CN 110187895B
Authority
CN
China
Prior art keywords
operating system
target client
identification code
preset value
deployment
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
CN201910444837.8A
Other languages
Chinese (zh)
Other versions
CN110187895A (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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910444837.8A priority Critical patent/CN110187895B/en
Publication of CN110187895A publication Critical patent/CN110187895A/en
Application granted granted Critical
Publication of CN110187895B publication Critical patent/CN110187895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the field of financial science and technology, and discloses an operating system deployment method, device, equipment and a computer readable storage medium, wherein the method comprises the following steps: when a system deployment instruction for a target client is received, acquiring a device identification code of the target client; acquiring an operating system identifier corresponding to the equipment identification code according to a preset mapping relation; and clearing the data in the target client, and installing the operating system corresponding to the operating system identification into the target client. The invention realizes that the client user autonomously deploys the operating system without special personnel, thereby reducing the labor cost for deploying the operating system; the automation of the operating system deployment is realized through the mapping relation between the equipment identification code and the operating system, the working structure is optimized, and the deployment efficiency of the operating system is improved.

Description

Operating system deployment method, device, equipment and computer-readable storage medium
Technical Field
The present invention relates to the field of financial technology (Fintech), and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for deploying an operating system.
Background
With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied to the financial field, and the traditional financial industry is gradually changing to financial technology (Fintech), but higher requirements are also put forward on the technologies due to the requirements of security and real-time performance of the financial industry.
In the traditional operating system deployment, different professional technicians are needed to configure different devices, so that a deployment implementation team is large in scale and low in efficiency, communication coordination among the different technicians is complex, understanding deviation easily exists, and obstacles are brought to deployment; in addition, the traditional deployment mode needs a large amount of manual configuration operation, the deployment process is complicated, the period is long, errors are easy to occur, the deployed products are not consistent, the later operation and maintenance cost is high, and batch deployment of the operating system is difficult to realize.
The operating system deployment mode needs special personnel to carry out system deployment operation, the system deployment efficiency is low due to manual intervention, and the operating system deployment cost is greatly improved.
Disclosure of Invention
The invention mainly aims to provide an operating system deployment method, an operating system deployment device, operating system deployment equipment and a computer readable storage medium, and aims to solve the technical problem that the operating system deployment efficiency is low in the prior art.
In order to achieve the above object, the present invention provides an operating system deployment method, including:
when a system deployment instruction for a target client is received, acquiring a device identification code of the target client;
acquiring an operating system identifier corresponding to the equipment identification code according to a preset mapping relation;
and clearing the data in the target client, and installing the operating system corresponding to the operating system identification into the target client.
Optionally, the step of acquiring the device identification code of the target client when receiving the system deployment instruction to the target client includes:
when a system deployment instruction of a target client is received, analyzing a Basic Input Output System (BIOS) of the target client to obtain an equipment identification code of the target client.
Optionally, before the step of obtaining the operating system identifier corresponding to the device identification code according to the preset mapping relationship, the method further includes:
when a mapping relation setting instruction is received, acquiring a device identification code and an operating system identifier carried by the mapping relation setting instruction;
and storing the association of the equipment identification code and the operating system identification carried by the mapping relation setting instruction as a preset mapping relation.
Optionally, before the step of removing the data in the target client and installing the operating system corresponding to the operating system identifier carried in the system selection instruction into the target client, the method further includes:
when a user-defined installation instruction of the target client is received, searching a system loading program NTDLR file in the target client, and determining a disk where the NTDLR file is located;
the step of clearing the data in the target client and installing the operating system corresponding to the operating system identification into the target client comprises the following steps:
and clearing data in the disk where the NTDLR file is located, and installing the operating system corresponding to the operating system identification into the disk where the NTDLR file in the target client is located.
Optionally, before the step of clearing the data in the target client and installing the operating system corresponding to the operating system identifier in the target client, the method further includes:
judging whether the number of the operating system identifications corresponding to the equipment identification codes is larger than or equal to a first preset value or not;
if the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a second preset value, executing the following steps: and clearing data in the target client, and installing the operating system corresponding to the operating system identification into the target client, wherein the first preset value is larger than the second preset value.
Optionally, after the step of determining whether the number of the operating system identifiers corresponding to the device identification code is greater than or equal to a first preset value, the method further includes:
and if the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a third preset value, sending an alarm prompt to the target client, wherein the third preset value is less than the first preset value.
Optionally, after the step of determining whether the number of the operating system identifiers corresponding to the device identification code is greater than or equal to a first preset value, the method further includes:
if the number of the operating system identifications corresponding to the equipment identification code is larger than or equal to a first preset value, displaying the operating system identifications corresponding to the equipment identification code on the target client for selection;
when a system selection instruction of the target client is received, acquiring an operating system identifier carried by the system selection instruction;
and clearing the data in the target client, and installing the operating system corresponding to the operating system identification carried by the system selection instruction into the target client.
Further, to achieve the above object, the present invention further provides an operating system deployment apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an equipment identification code of a target client when receiving a system deployment instruction of the target client;
the second acquisition module is used for acquiring the operating system identifier corresponding to the equipment identification code according to a preset mapping relation;
and the system installation module is used for clearing the data in the target client and installing the operating system corresponding to the operating system identifier into the target client.
Further, to achieve the above object, the present invention further provides an operating system deployment device, where the operating system deployment device includes a memory, a processor, and an operating system deployment program stored in the memory and executable on the processor, and the operating system deployment program, when executed by the processor, implements the steps of the operating system deployment method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium, on which an operating system deployment program is stored, which when executed by a processor implements the steps of the operating system deployment method as described above.
The method comprises the steps of acquiring an equipment identification code of a target client when a system deployment instruction of the target client is received; acquiring an operating system identifier corresponding to the equipment identification code according to a preset mapping relation; and clearing the data in the target client, and installing the operating system corresponding to the operating system identification into the target client. The invention realizes that the client user autonomously deploys the operating system without special personnel, thereby reducing the labor cost for deploying the operating system; the automation of the operating system deployment is realized through the mapping relation between the equipment identification code and the operating system, the working structure is optimized, and the deployment efficiency of the operating system is improved.
Drawings
FIG. 1 is a schematic structural diagram of a hardware operating environment of a device according to an embodiment of an OS deployment device of the present invention;
FIG. 2 is a flowchart illustrating a first exemplary method of deploying an operating system according to the present invention;
FIG. 3 is a functional block diagram of an operating system deployment device according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, in the existing operating system deployment, different specialized technical personnel are required to configure different devices, so that the deployment implementation team has a large scale and low efficiency, and the communication coordination among the different technical personnel is complex, and the understanding deviation is easy to exist, which brings obstacles to the deployment work; in addition, the traditional deployment mode needs a large amount of manual configuration operation, the deployment process is complex, the period is long, errors are easy to occur, the deployed products are not consistent, the later operation and maintenance cost is high, and the batch deployment of the operating system is difficult to realize. The operating system deployment mode needs special personnel to carry out system deployment operation, the system deployment efficiency is low due to manual intervention, and the operating system deployment cost is greatly improved.
Based on the above-mentioned defects, the present invention provides an operating system deployment device, and referring to fig. 1, fig. 1 is a schematic structural diagram of a device hardware operating environment according to an embodiment of the operating system deployment device of the present invention.
As shown in fig. 1, the operating system deployment device may include: a processor 1001, e.g. a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the hardware architecture of the operating system deployment device shown in FIG. 1 does not constitute a limitation of operating system deployment devices, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and an operating system deployment program. The operating system is a program for managing and controlling the operating system deployment equipment and software resources, and supports the running of a network communication module, a user interface module, an operating system deployment program and other programs or software; the network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
In the hardware structure of the operating system deployment device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a target client (user side) and performing data communication with the target client; processor 1001 may call an operating system deployment program stored in memory 1005 and perform the following operations:
when a system deployment instruction for a target client is received, acquiring a device identification code of the target client;
acquiring an operating system identifier corresponding to the equipment identification code according to a preset mapping relation;
and clearing the data in the target client, and installing the operating system corresponding to the operating system identification into the target client.
Further, the step of acquiring the device identification code of the target client when receiving the system deployment instruction to the target client includes:
when a system deployment instruction of a target client is received, analyzing a Basic Input Output System (BIOS) of the target client to obtain an equipment identification code of the target client.
Further, before the step of obtaining the os identifier corresponding to the device identifier according to the preset mapping relationship, the processor 1001 is further configured to call an os deployment program stored in the memory 1005, and perform the following operations:
when a mapping relation setting instruction is received, acquiring a device identification code and an operating system identification carried by the mapping relation setting instruction;
and storing the association of the equipment identification code and the operating system identification carried by the mapping relation setting instruction as a preset mapping relation.
Further, before the step of clearing the data in the target client and installing the operating system corresponding to the operating system identifier carried by the system selection instruction into the target client, the processor 1001 is further configured to invoke an operating system deployment program stored in the memory 1005 and perform the following operations:
when a user-defined installation instruction of the target client is received, searching a system loading program NTDLR file in the target client, and determining a disk where the NTDLR file is located;
the step of clearing the data in the target client and installing the operating system corresponding to the operating system identification into the target client comprises the following steps:
and clearing data in the disk where the NTDLR file is located, and installing the operating system corresponding to the operating system identification into the disk where the NTDLR file in the target client is located.
Further, before the step of clearing the data in the target client and installing the operating system corresponding to the operating system identifier in the target client, the processor 1001 is further configured to call the operating system deployment program stored in the memory 1005, and perform the following operations:
judging whether the number of the operating system identifications corresponding to the equipment identification codes is larger than or equal to a first preset value or not;
if the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a second preset value, executing the following steps: and clearing data in the target client, and installing the operating system corresponding to the operating system identification into the target client, wherein the first preset value is larger than the second preset value.
Further, after the step of determining whether the number of the operating system identifiers corresponding to the device identification code is greater than or equal to the first preset value, the processor 1001 is further configured to call the operating system deployment program stored in the memory 1005, and perform the following operations:
and if the number of the operating system identifications corresponding to the equipment identification code is smaller than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a third preset value, sending an alarm prompt to the target client, wherein the third preset value is smaller than the first preset value.
Further, after the step of determining whether the number of the operating system identifiers corresponding to the device identification code is greater than or equal to the first preset value, the processor 1001 is further configured to call the operating system deployment program stored in the memory 1005, and perform the following operations:
if the number of the operating system identifications corresponding to the equipment identification code is larger than or equal to a first preset value, displaying the operating system identifications corresponding to the equipment identification code on the target client for selection;
when a system selection instruction of the target client is received, acquiring an operating system identifier carried by the system selection instruction;
and clearing the data in the target client, and installing the operating system corresponding to the operating system identification carried by the system selection instruction into the target client.
The specific implementation of the os deployment apparatus of the present invention is substantially the same as the following embodiments of the os deployment method, and is not described herein again.
The invention also provides an operating system deployment method.
Referring to fig. 2, fig. 2 is a flow chart illustrating a first embodiment of the operating system deployment method of the present invention.
While embodiments of the present invention provide embodiments of methods of operating system deployment, it is noted that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in an order different than here.
In the embodiments of the operating system deployment method, the execution subject is omitted for convenience of description to explain the embodiments. The operating system deployment method comprises the following steps:
the method comprises the following steps that S1, when a system deployment instruction for a target client is received, an equipment identification code of the target client is obtained;
in the existing operating system deployment, different professional technicians are needed to configure different devices, so that a deployment implementation team is large in scale and low in efficiency, communication and coordination among the different technicians are complex, understanding deviation easily exists, and obstacles are brought to deployment work; in addition, the traditional deployment mode needs a large amount of manual configuration operation, the deployment process is complicated, the period is long, errors are easy to occur, the deployed products are not consistent, the later operation and maintenance cost is high, and batch deployment of the operating system is difficult to realize. The operating system deployment mode needs special personnel to carry out system deployment operation, the system deployment efficiency is low due to manual intervention, and the operating system deployment cost is greatly improved.
With the development of internet technology, financial institutions (banks, insurance and securities institutions) have higher and higher requirements on technology, and the operating system deployment mode in the prior art also seriously affects the working efficiency and deployment cost of the financial institutions such as banks and the like.
In order to solve the technical problem that the deployment efficiency of the operating system in the prior art is low, in this embodiment, before step S1, a step of setting a mapping relationship between the device identification code and the operating system is further included, that is: when a mapping relation setting instruction is received, acquiring a device identification code and an operating system identifier carried by the mapping relation setting instruction; and storing the association of the equipment identification code and the operating system identification carried by the mapping relation setting instruction as a preset mapping relation. By setting the mapping relationship between the device identification codes and the operating systems, each device identification code has an operating system corresponding to the device identification code, wherein the number of the operating systems corresponding to a certain device identification code can be 1 or more.
Before the system deployment is carried out on the client, the client needs to be powered on, and communication connection is established between the client and the operating system deployment device.
When the operating system deployment instruction of the target client is received, the operating system deployment device acquires the equipment identification code of the target client according to the system deployment instruction. Specifically, when a System deployment instruction for a target client is received, a Basic Input Output System (BIOS) of the target client is analyzed to obtain a device identification code of the target client. Wherein the device identification code of each client is unique.
The method comprises the following steps that a BIOS of a target client is analyzed, and an equipment identification code of the target client is obtained, wherein one mode comprises two modes, namely an operating system deployment device controls the target client to enter a BIOS interface, and the equipment identification code of the target client is identified from the BIOS interface; in another embodiment, since the device identification code is written in the code of the BIOS, the device identification code of the target client may be obtained by parsing the code of the BIOS. The method for obtaining the device identification code of the target client through the BIOS is not specifically limited in this embodiment.
S2, acquiring an operating system identifier corresponding to the equipment identification code according to a preset mapping relation;
in this embodiment, after the device identification code of the target client is obtained, the operating system identifier corresponding to the device identification code of the target client is obtained according to the preset mapping relationship between the device identification code and the operating system identifier.
And S3, clearing the data in the target client, and installing the operating system corresponding to the operating system identification into the target client.
In this embodiment, after the operating system identifier corresponding to the device identifier of the target client is obtained, the data in the target client is cleared, the operating system corresponding to the operating system identifier is obtained, and the operating system corresponding to the operating system identifier is installed in the target client. The device identification code and the preset mapping relationship of the operating system identifier and the operating system may be stored in a database of the operating system deployment device, or may be stored in a storage device communicatively connected to the operating system deployment device, and the two manners may be implemented by one of them, or may be implemented by combining them together, which is not limited in this embodiment.
In the embodiment, when a system deployment instruction for a target client is received, an equipment identification code of the target client is acquired; acquiring an operating system identifier corresponding to the equipment identification code according to a preset mapping relation; and clearing the data in the target client, and installing the operating system corresponding to the operating system identification into the target client. The operating system can be deployed independently by the user in the client of the financial institution such as a bank without special personnel, so that the labor cost for deploying the operating system is reduced; the automation of the operating system deployment is realized through the mapping relation between the equipment identification code and the operating system, the working structure is optimized, and the deployment efficiency of the operating system is improved.
Further, a second embodiment of the operating system deployment method of the present invention is proposed, wherein before the step S1, the method further includes:
step S11, when a mapping relation setting instruction is received, acquiring an equipment identification code and an operating system identification carried by the mapping relation setting instruction;
in this embodiment, a step of setting a mapping relationship between the device identification code and the operating system is further included before step S1, and a manager configures a corresponding operating system for the client according to factors such as a device lot, a device model, a device belonging department, and the like, so that the device identification code of each client has an operating system corresponding to the device identification code, where the number of the operating systems corresponding to a certain device identification code may be 1 or more.
And S12, storing the association of the equipment identification code and the operating system identification carried by the mapping relation setting instruction as a preset mapping relation.
Specifically, a manager sends a mapping relation setting instruction to an operating system deployment device, the mapping relation setting instruction carries an equipment identification code of a client to be configured, and the manager configures a corresponding operating system identifier for the client according to factors such as equipment batch, equipment model, equipment department, and the like, and after the operating system deployment device acquires the equipment identification code and the operating system identifier from the mapping relation setting instruction, the operating system deployment device associates and stores the equipment identification code and the operating system identifier as a preset mapping relation. The device identification code and the preset mapping relationship of the operating system identifier and the operating system may be stored in a database of the operating system deployment apparatus, or may be stored in a storage apparatus in communication connection with the operating system deployment apparatus, and the two manners may be implemented by selecting one of them, or implemented by combining them, which is not limited in this embodiment.
Further, the step S1 includes:
step S13, when a system deployment instruction of a target client is received, analyzing a Basic Input Output System (BIOS) of the target client to obtain an equipment identification code of the target client.
The BIOS (Basic Input Output System) is a set of programs that are fixed on a ROM (Random Access Memory) chip on a main board of a computer, and stores the most important Basic Input and Output programs of the computer, a self-test program after power-on, and a System self-start program, and can read and write specific information set by the System from a CMOS (Complementary Metal Oxide Semiconductor). Its primary function is to provide the lowest level, most direct hardware setup and control for the computer. In addition, the BIOS provides some system parameters to the operating system.
In this embodiment, when a system deployment instruction for a target client is received, a BIOS of the target client is analyzed to obtain an equipment identification code of the target client. Wherein the device identification code of each client is unique.
The method comprises the following steps that a BIOS of a target client is analyzed, and an equipment identification code of the target client is obtained, wherein one mode comprises two modes, namely an operating system deployment device controls the target client to enter a BIOS interface, and the equipment identification code of the target client is identified from the BIOS interface; in another embodiment, since the device identification code is written in the code of the BIOS, the device identification code of the target client may be obtained by parsing the code of the BIOS. The method for obtaining the device identification code of the target client through the BIOS is not specifically limited in this embodiment.
Further, before the step S3, the method further includes:
step S31, when receiving the user-defined installation instruction of the target client, searching a system loading program NTDLR file in the target client, and determining a disk where the NTDLR file is located;
NTLDR is called NT Loader, is a system file with hidden and read-only properties, is located in the root directory of the system disk, and is used to load the boot file of the operating system.
In this embodiment, a custom installation manner of an operating system is provided, and specifically, when a user only needs to reinstall the operating system without clearing data in the entire client, the user may store data that needs to be retained in the client to a disk where a non-operating system is located, that is, a disk where a non-NTDLR file is located, and then send a custom installation instruction to an operating system deployment device, and after receiving the custom installation instruction, the operating system deployment device searches for a system loader NTDLR file in a target client and determines a disk where the NTDLR file is located.
Further, the step S3 includes:
step S32, clearing the data in the disk where the NTDLR file is located, and installing the operating system corresponding to the operating system identification in the disk where the NTDLR file is located in the target client.
In this embodiment, after determining the disk where the NTDLR file is located, data removal is performed on the disk where the NTDLR file is located, while data of other disks is retained, that is, data of other disks is not removed, and then the operating system corresponding to the operating system identifier is installed in the disk where the NTDLR file in the target client is located.
Further, if the user needs not only to reinstall the operating system, but also to clear the data in the entire client, the user does not need to send a custom installation instruction to the operating system deployment device, and the operating system deployment device defaults to clear the data in all the disks of the target client after obtaining the operating system identifier corresponding to the device identifier, and then installs the operating system corresponding to the operating system identifier in the target client.
In the embodiment, the equipment identification code is analyzed from the BIOS of the target client, and then the automatic acquisition of the operating system is realized through the mapping relation between the equipment identification code and the operating system, so that special personnel are not required to deploy the operating system, and the labor cost for deploying the operating system is reduced; the disk where the operating system is located is determined by searching the disk where the NTDLR file is located, so that accurate positioning and reloading of the disk where the operating system is located are achieved, data of the non-system disk are kept, and therefore user-defined installation of the operating system is achieved, and user experience is improved.
Further, a third embodiment of the operating system deployment method according to the present invention is proposed, wherein before the step S3, the method further includes:
step S33, judging whether the number of the operating system identifications corresponding to the equipment identification codes is larger than or equal to a first preset value;
and if the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a second preset value, executing the step S3.
In this embodiment, to increase richness and flexibility of operating system deployment, step S3 is preceded by: judging whether the number of the acquired operating system identifications corresponding to the equipment identification codes is larger than or equal to a first preset value or not; and if the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a second preset value, clearing data in the target client and installing the operating system corresponding to the operating system identification into the target client.
Optionally, the first preset value is 2, and the second preset value is 1. At this time, if the operating system corresponding to the device identification code can be uniquely determined, the data in the target client is cleared, and the operating system uniquely corresponding to the operating system identification is installed in the target client.
Further, after the step S33, the method further includes:
step S34, if the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a third preset value, sending an alarm prompt to the target client, wherein the third preset value is less than the first preset value. In this embodiment, if the number of the operating system identifiers corresponding to the device identification code is smaller than a first preset value and the number of the operating system identifiers corresponding to the device identification code is equal to a third preset value, which indicates that the operation of the target client is illegal, an alarm prompt is sent to the target client.
Optionally, the third preset value is 0.
Further, after the step S33, the method further includes:
step S35, if the number of the operating system identifications corresponding to the equipment identification code is greater than or equal to a first preset value, displaying the operating system identifications corresponding to the equipment identification code on the target client for selection;
in this embodiment, if it is determined that the number of the operating system identifiers corresponding to the device identifier is greater than or equal to the first preset value, it is determined that there are multiple operating systems corresponding to the device identifier, and in order to increase flexibility of operating system deployment, the multiple operating system identifiers corresponding to the device identifier are displayed on the target client for selection by the user of the target client.
Step S36, when receiving the system selection instruction of the target client, acquiring an operating system identifier carried by the system selection instruction;
the method comprises the steps that a user of a target client selects an operating system identifier according to needs, a system selection instruction carrying the operating system identifier selected by the user is sent to an operating system deployment device, and the operating system deployment device obtains the operating system identifier carried by the system selection instruction when receiving the system selection instruction.
And step S37, clearing the data in the target client, and installing the operating system corresponding to the operating system identifier carried by the system selection instruction into the target client.
And after the operating system identification selected by the user is obtained, clearing the data in the target client, and installing the operating system corresponding to the operating system identification selected by the user into the target client. The data in the target client may be only the disk data where the NTDLR file is located, and the data of other disks is retained in the above embodiment, or may be the data in the whole client, which is determined specifically according to the user instruction.
It should be noted that, even if a certain disk is deleted in the operating system in the prior art, because the system file is not deleted, the system file is repeated with another operating system at this time, and in this case, it cannot be accurately determined which disk of the operating system is deleted.
In the embodiment, when a plurality of operating system identifiers corresponding to the equipment identification code exist, the operating system identifiers corresponding to the equipment identification code are displayed on the target client for selection, and a user can select the operating system as required, so that the flexibility of operating system deployment is improved, and the user experience is improved.
The invention also provides an operating system deployment device.
Referring to fig. 3, fig. 3 is a functional module diagram of a first embodiment of an operating system deployment device according to the present invention. The operating system deployment device comprises:
a first obtaining module 10, configured to obtain an equipment identification code of a target client when a system deployment instruction for the target client is received;
a second obtaining module 20, configured to obtain, according to a preset mapping relationship, an operating system identifier corresponding to the device identification code;
and the system installation module 30 is configured to clear data in the target client and install the operating system corresponding to the operating system identifier in the target client.
Further, the first obtaining module is further configured to:
when a system deployment instruction of a target client is received, analyzing a Basic Input Output System (BIOS) of the target client to obtain an equipment identification code of the target client.
Further, the operating system deployment apparatus further includes:
the third obtaining module is used for obtaining the equipment identification code and the operating system identification carried by the mapping relation setting instruction when the mapping relation setting instruction is received;
and the relationship setting module is used for storing the association of the equipment identification code and the operating system identification carried by the mapping relationship setting instruction as a preset mapping relationship.
Further, the operating system deployment apparatus further includes:
the searching module is used for searching a system loading program NTDLR file in the target client and determining a disk where the NTDLR file is located when receiving a custom installation instruction of the target client;
further, the system installation module is further configured to:
and clearing data in the disk where the NTDLR file is located, and installing the operating system corresponding to the operating system identification into the disk where the NTDLR file in the target client is located.
Further, the operating system deployment apparatus further includes:
the first judgment module is used for judging whether the number of the operating system identifications corresponding to the equipment identification codes is larger than or equal to a first preset value or not;
the system installation module is further configured to clear data in the target client and install the operating system corresponding to the operating system identifier into the target client when the number of the operating system identifiers corresponding to the device identifier is smaller than a first preset value and the number of the operating system identifiers corresponding to the device identifier is equal to a second preset value, where the first preset value is greater than the second preset value.
Further, the operating system deployment apparatus further includes:
and the alarm module is used for sending an alarm prompt to the target client when the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a third preset value, wherein the third preset value is less than the first preset value.
Further, the operating system deployment apparatus further includes:
the display module is used for displaying the operating system identification corresponding to the equipment identification code on the target client for selection if the number of the operating system identifications corresponding to the equipment identification code is greater than or equal to a first preset value;
the identification acquisition module is used for acquiring an operating system identification carried by a system selection instruction when the system selection instruction of the target client is received;
the system installation module is further configured to clear data in the target client and install an operating system corresponding to the operating system identifier carried in the system selection instruction to the target client.
The specific implementation of the os deployment apparatus of the present invention is substantially the same as the embodiments of the os deployment method described above, and is not described herein again.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium has stored thereon an operating system deployment program which, when executed by the processor, implements the steps of the operating system deployment method as described above.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of the above-mentioned embodiments of the operating system deployment method, and is not described herein again.
The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.

Claims (7)

1. An operating system deployment method, characterized by comprising:
when a system deployment instruction for a target client is received, acquiring a device identification code of the target client;
acquiring an operating system identifier corresponding to the equipment identification code according to a preset mapping relation;
clearing data in the target client, and installing an operating system corresponding to the operating system identification into the target client;
before the step of clearing the data in the target client and installing the operating system corresponding to the operating system identifier in the target client, the method further includes:
when a user-defined installation instruction of the target client is received, searching a system loader NTDLR file in the target client, and determining a disk where the NTDLR file is located; the user stores data to be reserved in the client to a disk where the non-NTDLR file is located;
the step of clearing the data in the target client and installing the operating system corresponding to the operating system identification into the target client comprises the following steps:
clearing data in a disk where the NTDLR file is located, and installing an operating system corresponding to the operating system identifier in the disk where the NTDLR file is located in the target client;
before the step of clearing the data in the target client and installing the operating system corresponding to the operating system identifier into the target client, the method further includes:
judging whether the number of the operating system identifications corresponding to the equipment identification codes is larger than or equal to a first preset value or not; the first preset value is 2;
if the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a second preset value, executing the following steps: clearing data in the target client, and installing an operating system corresponding to the operating system identification into the target client, wherein the first preset value is larger than the second preset value; the second preset value is 1;
after the step of judging whether the number of the operating system identifiers corresponding to the device identification code is greater than or equal to a first preset value, the method further comprises:
and if the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a third preset value, sending an alarm prompt to the target client, wherein the third preset value is less than the first preset value.
2. The method of operating system deployment according to claim 1, wherein the step of obtaining a device identification code of a target client upon receiving a system deployment instruction to the target client comprises:
when a system deployment instruction of a target client is received, analyzing a Basic Input Output System (BIOS) of the target client to obtain an equipment identification code of the target client.
3. The method for deploying operating systems according to claim 1, wherein the step of obtaining the operating system identifier corresponding to the device identification code according to the preset mapping relationship is preceded by the step of:
when a mapping relation setting instruction is received, acquiring a device identification code and an operating system identification carried by the mapping relation setting instruction;
and storing the association of the equipment identification code and the operating system identification carried by the mapping relation setting instruction as a preset mapping relation.
4. The method for operating system deployment according to claim 1, wherein said step of determining whether the number of operating system identifiers corresponding to said device identification code is greater than or equal to a first predetermined value further comprises:
if the number of the operating system identifications corresponding to the equipment identification code is larger than or equal to a first preset value, displaying the operating system identifications corresponding to the equipment identification code on the target client for selection;
when a system selection instruction of the target client is received, acquiring an operating system identifier carried by the system selection instruction;
and clearing the data in the target client, and installing the operating system corresponding to the operating system identification carried by the system selection instruction into the target client.
5. An operating system deployment apparatus, the operating system deployment apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an equipment identification code of a target client when receiving a system deployment instruction of the target client;
the second acquisition module is used for acquiring the operating system identifier corresponding to the equipment identification code according to a preset mapping relation;
the system installation module is used for clearing data in the target client and installing the operating system corresponding to the operating system identification into the target client;
before the step of clearing the data in the target client and installing the operating system corresponding to the operating system identifier into the target client, the method further includes:
when a user-defined installation instruction of the target client is received, searching a system loader NTDLR file in the target client, and determining a disk where the NTDLR file is located; the user stores data to be reserved in the client to a disk where the non-NTDLR file is located;
the step of clearing the data in the target client and installing the operating system corresponding to the operating system identification into the target client comprises the following steps:
clearing data in a disk where the NTDLR file is located, and installing an operating system corresponding to the operating system identifier in the disk where the NTDLR file is located in the target client;
further, the operating system deployment apparatus further includes:
the first judgment module is used for judging whether the number of the operating system identifications corresponding to the equipment identification code is larger than or equal to a first preset value or not; the first preset value is 2;
the system installation module is further used for clearing data in the target client and installing the operating system corresponding to the operating system identifier into the target client when the number of the operating system identifiers corresponding to the equipment identifier is smaller than a first preset value and the number of the operating system identifiers corresponding to the equipment identifier is equal to a second preset value, wherein the first preset value is larger than the second preset value; the second preset value is 1;
further, the operating system deployment apparatus further includes:
and the warning module is used for sending a warning prompt to the target client when the number of the operating system identifications corresponding to the equipment identification code is less than a first preset value and the number of the operating system identifications corresponding to the equipment identification code is equal to a third preset value, wherein the third preset value is less than the first preset value.
6. An operating system deployment device, comprising a memory, a processor, and an operating system deployment program stored on the memory and executable on the processor, the operating system deployment program, when executed by the processor, implementing the steps of the operating system deployment method as claimed in any one of claims 1 to 4.
7. A computer-readable storage medium, having stored thereon an operating system deployment program that, when executed by a processor, performs the steps of the operating system deployment method of any of claims 1-4.
CN201910444837.8A 2019-05-24 2019-05-24 Operating system deployment method, device, equipment and computer-readable storage medium Active CN110187895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910444837.8A CN110187895B (en) 2019-05-24 2019-05-24 Operating system deployment method, device, equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910444837.8A CN110187895B (en) 2019-05-24 2019-05-24 Operating system deployment method, device, equipment and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110187895A CN110187895A (en) 2019-08-30
CN110187895B true CN110187895B (en) 2023-01-24

Family

ID=67717920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910444837.8A Active CN110187895B (en) 2019-05-24 2019-05-24 Operating system deployment method, device, equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110187895B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659076B (en) * 2019-09-26 2023-06-27 无锡睿勤科技有限公司 Method and device for installing and deploying operating system
CN110764789B (en) * 2019-10-09 2023-07-18 Oppo(重庆)智能科技有限公司 Process control method and device, storage medium and electronic equipment
CN111045696A (en) * 2019-12-16 2020-04-21 深圳忆联信息系统有限公司 Method and device for automatically installing single machine operation system, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110036A (en) * 2007-08-22 2008-01-23 中兴通讯股份有限公司 Method and device for batch installing operating system
CN102053845A (en) * 2009-11-10 2011-05-11 纬创资通股份有限公司 Electronic device for automatically and continuously mounting operating system and related method and system thereof
CN104850442A (en) * 2015-05-27 2015-08-19 杭州昆海信息技术有限公司 Operating system mounting method and device
CN108847950A (en) * 2018-04-02 2018-11-20 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6854112B2 (en) * 2001-08-29 2005-02-08 International Business Machines Corporation System and method for the automatic installation and configuration of an operating system
TWI267785B (en) * 2004-09-15 2006-12-01 Acer Inc Installation method and the re-installation method of an operation system
CN103294500A (en) * 2012-03-05 2013-09-11 联想(北京)有限公司 Information processing method and electronic equipment
CN103677887B (en) * 2012-09-26 2017-06-27 联想(北京)有限公司 A kind of information processing method and a kind of electronic equipment
US9098303B2 (en) * 2013-09-04 2015-08-04 Red Hat, Inc. Portable computing device providing operating system for host devices
CN109582439B (en) * 2018-11-26 2023-04-07 深圳前海微众银行股份有限公司 DCN deployment method, device, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110036A (en) * 2007-08-22 2008-01-23 中兴通讯股份有限公司 Method and device for batch installing operating system
CN102053845A (en) * 2009-11-10 2011-05-11 纬创资通股份有限公司 Electronic device for automatically and continuously mounting operating system and related method and system thereof
CN104850442A (en) * 2015-05-27 2015-08-19 杭州昆海信息技术有限公司 Operating system mounting method and device
CN108847950A (en) * 2018-04-02 2018-11-20 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium

Also Published As

Publication number Publication date
CN110187895A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN102880532B (en) Cloud technology-based test system and method
CN110187895B (en) Operating system deployment method, device, equipment and computer-readable storage medium
US7743242B2 (en) Method and system for automatic generation of operating system boot images
US7823023B2 (en) Test framework for testing an application
US7886292B2 (en) Methodology of individualized software deployment for hardware-independent personal computer mass development
US9037843B2 (en) Managing a target computing device
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN111245898A (en) Network equipment online method, device, server and storage medium
CN107608695B (en) Hard disk firmware upgrading method and device and server
CN103164238A (en) Method for automatically and continuously installing operating system
CN106850330B (en) Intelligent cloud desktop performance test system and method
US7293168B2 (en) System and method for initially configuring and booting a device using a device identifier
CN109871221B (en) System for quickly installing and deploying mobile application software for mobile terminal equipment
CN112181762A (en) Software project application basic environment deployment and three-remote visualization processing method
CN109597764A (en) A kind of test method and relevant apparatus of catalogue quota
CN110247801A (en) A kind of monitoring system and method for pair of cluster host
CN113918452A (en) Industrial software compatibility testing method under multi-country productization platform
US9317273B2 (en) Information processing apparatus and information processing method
CN105868957A (en) Continuous integration method and device
CN113031970A (en) Automatic installation and deployment method and system
CN111090458B (en) Gray release system and application release method based on gray release system
EP2605127B1 (en) Processing Framework For Generating Pre-Configuration Packages
CN109669699B (en) Application program distribution method, wireless controller and wireless access point
CN116360800B (en) Deployment method and device of code branching environment and electronic equipment
US12039319B1 (en) Automatic deployment of updates for edge device software components based on edge usage limits

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
GR01 Patent grant
GR01 Patent grant