A method, device, equipment and readable medium for out-of-band operating system deployment
Through device template import, export and real-time screenshot processing, multiple restrictions in batch automatic deployment of out-of-band operating systems are solved, and efficient and accurate operating system deployment and result reporting are achieved.
Patent Information
- Application Number
- CN202110875841.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-30
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2041-07-30
AI Technical Summary
In the batch automatic deployment of out-of-band operating systems, there are problems such as model limitations, bulky maintenance, deployment feasibility limitations, kickstart file generation limitations, deployment mode singularity, and incomplete acquisition of deployment results.
Through device template import and export, the device status is judged in a classified manner, and a model is formed to evaluate the feasibility of out-of-band OS deployment, providing users with a low-required kickstart customization platform, and obtaining real-time data of operating system deployment through real-time screenshot processing.
It realizes the convenience of device management, improves the feasibility and accuracy of operating system deployment, provides users with efficient progress and result reporting, avoids useless work, and simplifies the customization of kickstart files.
Smart Images

Figure CN113626039B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of operating system deployment, and in particular to a method, device, equipment and readable medium for out-of-band operating system deployment. Background Art
[0002] In recent years, with the development of technology, server operation and maintenance technology has become an indispensable link at this stage. At present, most companies need to perform batch server operation and maintenance after purchasing servers. The first and foremost, the batch deployment of OS (Operating System) has become a critical step. Because only after the deployment of the operating system can the server play its role, and users can use the server to implement their own business or perform data storage and backup operations. However, users have to consider security and give up in-band network methods such as pxe (Preboot eXecution Environment) for batch automatic deployment of operating systems. Therefore, for some users, out-of-band batch deployment of operating systems has become a hot method, which is secure and can achieve the goal of operating system deployment.
[0003] The operation and maintenance tools currently on the market have many limitations for out-of-band batch automatic deployment of operating systems. For example, they have limitations on machine models, bulk equipment selection and maintenance, feasibility of equipment for operating system deployment, kickstart file generation, single out-of-band deployment, and the inability to obtain complete and correct deployment results. These limitations cause various problems in out-of-band batch automatic deployment of operating systems. Summary of the invention
[0004] In view of this, the purpose of the embodiment of the present invention is to propose a method, device, equipment and readable medium for out-of-band operating system deployment, which makes it more convenient to import and export equipment templates for equipment management; by classifying different equipment conditions, forming a model according to different parameter influences, and obtaining the actual equipment conditions to bring the model into the output of the feasibility of out-of-band OS deployment of the current equipment, the user is warned to avoid doing useless work; a low-requirement kickstart customization platform is provided to the user in a more concise manner; and the analysis and processing of the OS deployment process and results provide users with more efficient and accurate progress and result reporting. It has a relatively broad application scenario and is a solution with potential economic value.
[0005] Based on the above purpose, one aspect of an embodiment of the present invention provides a method for out-of-band operating system deployment, including the following steps: maintaining the information of several devices to be deployed on a preset device template and importing the device template; judging whether each of the devices to be deployed can perform out-of-band operating system deployment based on the information in the device template; if the devices to be deployed can perform out-of-band operating system deployment, customizing a configuration file for the devices to be deployed, and packaging an image based on the configuration file; mounting the image in an out-of-band manner and performing operating system deployment; and obtaining a screenshot of the operating system deployment interface of the devices to be deployed in real time, and performing image processing and text recognition on the screenshot to obtain real-time data of operating system deployment.
[0006] In some embodiments, obtaining a screenshot of the operating system deployment interface of the device to be deployed in real time, and performing image processing and text recognition on the screenshot to obtain real-time data of the operating system deployment includes: capturing the operating system deployment interface in real time through an out-of-band screenshot interface, and uploading the captured screenshot to an image repository for classified storage based on serial number and time; performing image information text recognition analysis on the screenshot in the image repository through an image algorithm, and formatting the analysis results to obtain real-time data of the operating system deployment.
[0007] In some embodiments, performing image information text recognition analysis on the screenshots in the image repository through an image algorithm includes: extracting sequence features in the image convolution features of the screenshots through a CRNN algorithm; and aligning the recognized text through a CTC algorithm.
[0008] In some embodiments, determining whether each of the to-be-deployed devices can perform out-of-band operating system deployment based on the information in the device template includes: determining whether the to-be-deployed device is a deployable device, a risky device, or an undeployable device based on the information in the device template; if the to-be-deployed device is a deployable device, confirming that the to-be-deployed device can perform out-of-band operating system deployment; if the to-be-deployed device is a risky device, informing the user and determining whether the out-of-band operating system deployment can be performed based on the user's instructions; if the to-be-deployed device is an undeployable device, assuming that the to-be-deployed device cannot perform out-of-band operating system deployment.
[0009] In some embodiments, judging whether each of the devices to be deployed can be deployed with an out-of-band operating system based on the information in the device template includes: judging the level of factors affecting the deployment of the out-of-band operating system based on the information in the device template; if the level of factors affecting the deployment of the out-of-band operating system is a first-level influencing factor, alerting the user to perform maintenance; if the level of factors affecting the deployment of the out-of-band operating system is a second-level influencing factor, collecting the second-level influencing factors of the devices to be deployed, and making a level judgment based on a second-level influencing factor model, sending the judgment result to the user and waiting for the user's instructions; if the level of factors affecting the deployment of the out-of-band operating system is a third-level influencing factor, analyzing and predicting the third-level influencing factors of the devices to be deployed to judge whether there is a risk.
[0010] In some embodiments, the information of several devices to be deployed is maintained on a preset device template, and importing the device template includes: creating a device template based on the out-of-band IP, user name, password, system IP to be configured, subnet mask, network management, and host name; maintaining the information of several devices to be deployed on the device template.
[0011] In some implementations, the method further includes: acquiring the real-time data in real time, and reporting the real-time data to a user.
[0012] On the other hand, an embodiment of the present invention provides an apparatus for out-of-band operating system deployment, including: a first module, configured to maintain information of a number of devices to be deployed on a preset device template, and import the device template; a second module, configured to determine whether each of the devices to be deployed can perform out-of-band operating system deployment based on information in the device template; a third module, configured to customize a configuration file for the device to be deployed if the deployment device can perform out-of-band operating system deployment, and perform image packaging based on the configuration file; a fourth module, configured to mount the image in an out-of-band manner and perform operating system deployment; and a fifth module, configured to obtain a screenshot of the operating system deployment interface of the device to be deployed in real time, and perform image processing and text recognition on the screenshot to obtain real-time data of the operating system deployment.
[0013] According to another aspect of the embodiments of the present invention, there is provided a computer device, comprising: at least one processor; and a memory, wherein the memory stores computer instructions executable on the processor, and the instructions implement the steps of the above method when executed by the processor.
[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.
[0015] The present invention has the following beneficial technical effects: the import and export of device templates makes device management more convenient; by classifying different conditions of the device, forming a model according to the influence of different parameters, and obtaining the actual situation of the device to bring it into the model output, the feasibility of out-of-band OS deployment of the current device is warned to the user, thereby avoiding useless work; a more concise kickstart customization platform with low requirements is provided to the user; for the analysis and processing of the OS deployment process and results, a more efficient and accurate progress and result report is provided to the user. It has a relatively broad application scenario and is a solution with potential economic value. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of an embodiment of a method for out-of-band operating system deployment provided by the present invention;
[0018] Figure 2 A schematic diagram of an embodiment of an apparatus for out-of-band operating system deployment provided by the present invention;
[0019] Figure 3 A schematic diagram of an embodiment of a computer device provided by the present invention;
[0020] Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0021] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0022] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0023] Based on the above objectives, a first aspect of an embodiment of the present invention provides an embodiment of a method for out-of-band operating system deployment. Figure 1 FIG. 2 is a schematic diagram of an embodiment of a method for out-of-band operating system deployment provided by the present invention. Figure 1 As shown, the embodiment of the present invention includes the following steps:
[0024] S01. Maintain the information of several devices to be deployed on a preset device template and import the device template;
[0025] S02, judging whether out-of-band operating system deployment can be performed on each device to be deployed based on the information in the device template;
[0026] S03. If the device to be deployed can perform out-of-band operating system deployment, customize a configuration file for the device to be deployed, and perform image packaging based on the configuration file;
[0027] S04, mounting the image in an out-of-band manner and deploying the operating system; and
[0028] S05. Obtain a screenshot of the operating system deployment interface of the device to be deployed in real time, and perform image processing and text recognition on the screenshot to obtain real-time data of the operating system deployment.
[0029] In this embodiment, it includes a device template download and import module, a device detection module, a kickstart file customization module, a batch OS deployment module, a CRNN analysis module, and an OS deployment information reporting module. The device template download and import module is used to conveniently process batch devices and perform OS batch deployment; the device detection module is used to detect whether the current device supports OS deployment, and detect in advance to avoid useless work; the kickstart file customization module is used to provide users with configuration files for automatic OS deployment; the batch OS deployment module is used to execute batch OS deployment tasks; the CRNN analysis module accurately and efficiently analyzes the OS deployment process and results; the OS deployment information reporting module is used to report the OS deployment process and results analyzed by CRNN to the user.
[0030] In some embodiments of the present invention, obtaining a screenshot of the operating system deployment interface of the device to be deployed in real time, and performing image processing and text recognition on the screenshot to obtain real-time data of the operating system deployment includes: capturing the operating system deployment interface in real time through an out-of-band screenshot interface, and uploading the captured screenshot to an image repository for classified storage based on serial number and time; performing image information text recognition analysis on the screenshots in the image repository through an image algorithm, and formatting the analysis results to obtain real-time data of the operating system deployment.
[0031] In this embodiment, the CRNN analysis module enables users to understand the process, progress and results of OS deployment in real time. First, the OS deployment interface is captured in real time through the device's out-of-band screenshot interface, and the image is uploaded to the image repository. The images are classified and stored according to the upload sequence number and time.
[0032] In some embodiments of the present invention, performing image information text recognition analysis on screenshots in an image repository using an image algorithm includes: extracting sequence features in image convolution features of the screenshots using a CRNN algorithm; and aligning the recognized text using a CTC algorithm.
[0033] In this embodiment, a stack-shaped deep bidirectional structure is used in CRNN; the image is scaled to 32*W*3 (W represents any length) with a fixed aspect ratio; then it becomes 1*(W / 4)*512 after passing through CRNN, and T=(W / 4) is set for LSTM to input the features into LSTM. Then LSTM further extracts the sequence features in the image convolution features, and finally introduces CTC to solve the problem of character alignment failure; the CRNN analysis module detects the images in the storage library and performs image information text recognition analysis, and the analyzed data is formatted and then cached according to different devices.
[0034] In some embodiments of the present invention, determining whether each device to be deployed can perform out-of-band operating system deployment based on information in a device template includes: determining whether the device to be deployed is a deployable device, a risky device, or an undeployable device based on information in the device template; if the device to be deployed is a deployable device, confirming that the device to be deployed can perform out-of-band operating system deployment; if the device to be deployed is a risky device, informing the user and determining whether the out-of-band operating system deployment can be performed based on user instructions; if the device to be deployed is an undeployable device, it is deemed that the device to be deployed cannot perform out-of-band operating system deployment.
[0035] In this embodiment, the device detection module is used to detect and screen devices that cannot be deployed out of band, and users are notified in advance to avoid wasted work. The device detection module starts to detect after the user imports the device. The device detection is ultimately divided into three categories: devices that can be deployed with OS, devices that have risks in OS deployment, and devices that cannot be deployed with OS.
[0036] In some embodiments of the present invention, judging whether out-of-band operating system deployment can be performed on each device to be deployed based on information in the device template includes: judging the level of factors affecting out-of-band operating system deployment based on information in the device template; if the level of factors affecting out-of-band operating system deployment is a first-level influencing factor, alerting the user to perform maintenance; if the level of factors affecting out-of-band operating system deployment is a second-level influencing factor, collecting the second-level influencing factors of the device to be deployed, and performing level judgment based on the second-level influencing factor model, sending the judgment result to the user and waiting for user instructions; if the level of factors affecting out-of-band operating system deployment is a third-level influencing factor, analyzing and predicting the third-level influencing factors of the device to be deployed to determine whether there is a risk.
[0037] In this embodiment, important factors affecting the deployment of the operating system are analyzed, such as RAID, hard disk, out-of-band network status, accuracy of server username and password, and server performance (memory, CPU, etc.). The above factors are classified, such as out-of-band network and service password accuracy, which will definitely cause the failure of the deployment of the operating system as the first-level factor f1, RAID, hard disk and other factors with relatively large impacts are classified as the second-level factor f2, and server performance and other factors with relatively small impacts are classified as the third-level factor f3.
[0038] The first-level influencing factors are manually maintained by the user, so the device can be imported for verification. The f1 factor can be verified to immediately warn the user after importing and modify and maintain the problem.
[0039] The secondary influencing factors collect information about the device f2 factors when the user issues the OS batch deployment task. A large amount of data will be used to investigate the f2 factors, and different values of the f2 factors will be randomly matched and combined to simulate OS deployment, and finally an f2 factor model will be formed. The model is divided into input parameters and output parameters. The input parameters are the actual device f2 influencing factors, and the output parameters are the OS deployment success level. The success levels are divided into high, medium, and low. The model analyzes the device OS deployment success rate through input parameter matching. The success rate will set a success rate range when the model is created in the early stage, for example, 100-70 is high, 70-40 is medium, and less than 40 is low. The return value will be used to warn the customer and give the reason for the warning. The user can choose to continue or terminate the installation based on his own judgment at the first level of the warning.
[0040] The third-level influencing factors are collected in real time after the device is imported. When users perform batch OS deployment, the server f3 factors in the latest period will be analyzed. Based on the analysis of this period, the server performance trend during the OS deployment period can be predicted. If there is a risk, the server will inform the user in advance and prompt the risk. The user can choose to give up or force OS deployment according to their own situation.
[0041] In some embodiments of the present invention, the information of several devices to be deployed is maintained on a preset device template, and importing the device template includes: creating a device template based on the out-of-band IP, user name, password, system IP to be configured, subnet mask, network management, and host name; maintaining the information of several devices to be deployed on the device template.
[0042] In this embodiment, the device template download and import module is used to download the device template in the visual interface, and the devices that are about to be deployed in batches of out-of-band OS are maintained in the device template. This includes the out-of-band IP, user name, password, system IP to be configured, subnet mask, gateway, host name, etc. After the device template is maintained, the device is imported with one click. The user can view the countdown devices in the visual interface and edit a certain device, etc., providing users with a convenient and fast device maintenance method.
[0043] In some embodiments of the present invention, the method further includes: acquiring real-time data in real time, and reporting the real-time data to a user.
[0044] In this embodiment, the information data of the crnn analysis module is reported to the user in real time through the OS deployment information reporting module, so as to avoid the black box operation that the user cannot understand the process, progress and results of OS deployment. The data analyzed and processed by CRNN is reported to the user in real time from the cache storage, and the user can view the OS deployment status in real time on the visual interface.
[0045] In some embodiments of the present invention, customizing a configuration file for a device to be deployed includes: providing a custom file interface for a user through a visual interface.
[0046] In the present embodiment, the kickstart file customization module is used to simulate the installation visual interface of the real system, and each step provides the user with reasonable suggestions based on our installation experience. Many users do not know much about the configuration of the automatic deployment file of the operating system, and often the files configured by themselves always have different problems during the installation process. The kickstart file customization module finally generates the automatic installation configuration file required by the user. At the same time, a file editable interface is provided for operation and maintenance personnel with certain experience, and the user can edit the kickstart file through a visual file editor.
[0047] In some embodiments of the present invention, mounting the image in an out-of-band manner and performing operating system deployment includes: mounting the image in an out-of-band manner according to the device to be deployed, restarting and performing operating system deployment.
[0048] In this embodiment, the batch OS deployment module is used to package the kickstart file customized by the user, and the IP and hostname configuration scripts generated according to the device import information into a new image. The out-of-band image is mounted according to the out-of-band mounting method of the device, and after the image is mounted, the system is restarted and the operating system is automatically deployed.
[0049] It should be particularly pointed out that the various steps in the various embodiments of the above-mentioned out-of-band operating system deployment method can be cross-linked, replaced, added, and deleted. Therefore, these reasonable permutations, combinations and transformations of the out-of-band operating system deployment method should also fall within the scope of protection of the present invention, and the scope of protection of the present invention should not be limited to the embodiments.
[0050] Based on the above purpose, a second aspect of an embodiment of the present invention provides a device for out-of-band operating system deployment. Figure 2 FIG. 2 is a schematic diagram of an embodiment of an out-of-band operating system deployment device provided by the present invention. Figure 2 As shown, an embodiment of the present invention includes the following modules: a first module S11, configured to maintain the information of several devices to be deployed on a preset device template and import the device template; a second module S12, configured to determine whether each device to be deployed can perform out-of-band operating system deployment based on the information in the device template; a third module S13, configured to customize a configuration file for the device to be deployed if the deployed device can perform out-of-band operating system deployment, and to package the image based on the configuration file; a fourth module S14, configured to mount the image in an out-of-band manner and perform operating system deployment; and a fifth module S15, configured to obtain a screenshot of the operating system deployment interface of the device to be deployed in real time, and perform image processing and text recognition on the screenshot to obtain real-time data of the operating system deployment.
[0051] Based on the above purpose, a third aspect of an embodiment of the present invention provides a computer device. Figure 3 FIG. 2 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 3 As shown, the embodiment of the present invention includes the following apparatus: at least one processor S21; and a memory S22, wherein the memory S22 stores computer instructions S23 that can be executed on the processor, and the instructions implement the steps of the above method when executed by the processor.
[0052] The present invention also provides a computer-readable storage medium. Figure 4 FIG. 2 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 4 As shown, the computer-readable storage medium stores S31 a computer program S32 for executing the above method when executed by a processor.
[0053] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program of the method for out-of-band operating system deployment can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiment can achieve the same or similar effect as any of the corresponding aforementioned method embodiments.
[0054] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.
[0055] In addition, the above method steps and system units may also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
[0056] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0057] In one or more exemplary designs, the function can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the function can be stored on a computer-readable medium or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transfer a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special computer. As an example and not limiting, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of an instruction or data structure and can be accessed by a general or special computer or a general or special processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwaves are used to send software from a website, server or other remote source, the above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwaves are all included in the definition of the medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0058] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0059] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0060] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0061] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0062] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for out-of-band operating system deployment, characterized in that: The following steps are involved: Maintaining information of several devices to be deployed on a preset device template, and importing the device template; Determining whether out-of-band operating system deployment can be performed on each of the to-be-deployed devices based on the information in the device template; If the device to be deployed can perform out-of-band operating system deployment, customize a configuration file for the device to be deployed, and perform image packaging based on the configuration file; Mounting the image out-of-band and deploying the operating system; as well as The screenshot of the operating system deployment interface of the device to be deployed is obtained in real time, and the screenshot is subjected to image processing and text recognition to obtain real-time data of the operating system deployment.
2. The method for out-of-band operating system deployment according to claim 1, characterized in that: Acquiring a screenshot of the operating system deployment interface of the device to be deployed in real time, and performing image processing and text recognition on the screenshot to obtain real-time data of the operating system deployment includes: The operating system deployment interface is captured in real time through the out-of-band screenshot interface, and the captured screenshots are uploaded to the image repository for classification and storage based on serial number and time; The screenshots in the image repository are subjected to image information text recognition analysis through an image algorithm, and the analysis results are formatted to obtain real-time data for operating system deployment.
3. The method for out-of-band operating system deployment according to claim 2, characterized in that: Performing image information text recognition analysis on the screenshots in the image repository by using an image algorithm includes: Extracting sequence features from the image convolution features of the screenshot by using a CRNN algorithm; The recognized text is aligned using the CTC algorithm.
4. The method for out-of-band operating system deployment according to claim 1, characterized in that: Judging whether each of the to-be-deployed devices can be deployed with an out-of-band operating system based on the information in the device template includes: Determining whether the to-be-deployed device is a deployable device, a risky device, or an undeployable device based on the information in the device template; If the device to be deployed is a deployable device, confirming that the device to be deployed can perform out-of-band operating system deployment; If the device to be deployed is a risky device, the user is informed and it is determined whether out-of-band operating system deployment can be performed based on the user's instructions; If the device to be deployed is a non-deployable device, it is considered that the device to be deployed cannot perform out-of-band operating system deployment.
5. The method for out-of-band operating system deployment according to claim 1, characterized in that: Judging whether each of the to-be-deployed devices can be deployed with an out-of-band operating system based on the information in the device template includes: Determining the level of factors affecting out-of-band operating system deployment based on the information in the device template; If the factor affecting out-of-band OS deployment is a Level 1 factor, the user will be warned to perform maintenance. If the level of the factor affecting the deployment of the out-of-band operating system is a secondary influencing factor, the secondary influencing factors of the device to be deployed are collected, and the level is determined based on the secondary influencing factor model, and the determination result is sent to the user and the user's instruction is waited for; If the level of the factor affecting the deployment of the out-of-band operating system is a third-level influencing factor, the third-level influencing factor of the device to be deployed is analyzed and predicted to determine whether there is a risk.
6. The method for out-of-band operating system deployment according to claim 1, characterized in that: Maintaining information of several devices to be deployed on a preset device template and importing the device template includes: Create a device template based on out-of-band IP, username, password, system IP to be configured, subnet mask, network management, and host name; The information of several devices to be deployed is maintained on the device template.
7. The method for out-of-band operating system deployment according to claim 1, characterized in that: Also includes: The real-time data is acquired in real time and reported to the user.
8. An out-of-band operating system deployment device, characterized in that: include: The first module is configured to maintain information of a number of devices to be deployed on a preset device template and import the device template; The second module is configured to determine whether each of the to-be-deployed devices can be deployed with an out-of-band operating system based on the information in the device template; The third module is configured to customize a configuration file for the device to be deployed if the deployment device can perform out-of-band operating system deployment, and perform image packaging based on the configuration file; A fourth module is configured to mount the image in an out-of-band manner and perform operating system deployment; as well as The fifth module is configured to obtain a screenshot of the operating system deployment interface of the device to be deployed in real time, and perform image processing and text recognition on the screenshot to obtain real-time data of the operating system deployment.
9. A computer device, characterized in that: include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Firmware deployment method and apparatus
CN106020867A
Method and system for configuring BMC, equipment and medium
CN112003908A