CN116627445A - Method, device and product for identifying progress of server out-of-band installation of operating system - Google Patents

Method, device and product for identifying progress of server out-of-band installation of operating system Download PDF

Info

Publication number
CN116627445A
CN116627445A CN202310890069.5A CN202310890069A CN116627445A CN 116627445 A CN116627445 A CN 116627445A CN 202310890069 A CN202310890069 A CN 202310890069A CN 116627445 A CN116627445 A CN 116627445A
Authority
CN
China
Prior art keywords
progress
installation
operating system
fingerprint
model library
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.)
Granted
Application number
CN202310890069.5A
Other languages
Chinese (zh)
Other versions
CN116627445B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310890069.5A priority Critical patent/CN116627445B/en
Publication of CN116627445A publication Critical patent/CN116627445A/en
Application granted granted Critical
Publication of CN116627445B publication Critical patent/CN116627445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/751Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Multimedia (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to the technical field of servers and discloses a method, a device and a product for identifying the progress of out-of-band installation of an operating system of a server. Continuously acquiring progress pictures in the installation process of an operating system according to a first interval time; after the installation of the operating system is completed, processing the progress picture to generate a progress fingerprint value; and generating a corresponding installation progress according to the progress fingerprint value of each progress picture, and constructing an operating system installation model library. When the server performs out-of-band installation of the operating system, acquiring a screenshot of a current installation display picture in the server; and matching the corresponding installation progress in an operating system installation model library according to the screenshot of the installation display picture. By adopting the method, the operation and maintenance personnel can acquire the installation progress of the operation system in real time, accurately and intuitively in the process of installing the operation system on the server, so that the installation process is better monitored, and the user experience in the operation and maintenance process is improved.

Description

Method, device and product for identifying progress of server out-of-band installation of operating system
Technical Field
The present application relates to the field of server technologies, and in particular, to a method, an apparatus, and a product for identifying a progress of server out-of-band installation of an operating system.
Background
In the daily operation and maintenance of the server, the work of processing the server to put on shelf takes a lot of time, and the installation of the operating system in the process of putting on shelf of the server takes a considerable proportion of the time. The server loading process involves batch installation of the operating system, and currently, the server batch installation operating system is mainly installed through two implementation modes, namely in-band technology installation and out-of-band technology installation.
In-band installation refers to that an operating system installation image file is issued to a physical server in-band through a PXE (Preboot eXecution Environment, pre-boot execution environment) technology, and then deployment is automatically completed through image. The out-of-band installation refers to the installation and deployment of an operating system by installing an image file through a BMC (Baseboard Manager Controller, baseboard management controller) of a server management platform and then automatically completing the installation and deployment of the operating system through the installation of the image file. Because of the way of installing the operating system out of band, the installation process of the operating system completely passes through the out-of-band network and cannot invade the service network of the machine room, so that the operating system has the advantages of being good in safety and not occupying the bandwidth of the service network. Therefore, when the operating system is installed in batch on the server, an out-of-band installation method is generally adopted.
However, in the current process of installing an operating system in an out-of-band manner, there are some problems of inconvenient use. Because the in-band network and the out-of-band network are completely isolated, when the operating system is installed in the out-of-band installation mode, the installation progress of the server cannot be obtained in real time, and whether the server is restarted can be judged only by reading the sensor log of the server, so that the server is used as a basis for identifying whether the system installation is completed. However, the progress in the installation process is not displayed to the operation and maintenance personnel in real time, and the method for judging whether the installation of the operating system is completed or not by judging whether the server is restarted or not is inaccurate in judging the completion of the installation of the operating system, and the situation that the server is restarted but the operating system is not successfully installed exists. Therefore, a method needs to be found, so that an operation and maintenance person can accurately acquire the installation progress of the operating system in real time, and the installation process of the operating system outside the server band can be better monitored.
Disclosure of Invention
In view of the above, the present application aims to provide a method, apparatus and product for identifying the progress of installing an operating system outside a server band, so as to solve the problem that the installation progress cannot be obtained in real time and whether the operating system is installed or not cannot be accurately known in the process of installing the operating system outside the server band.
In order to achieve the above purpose, the technical scheme of the application is as follows:
an embodiment of the present application provides a method for constructing an operating system installation model library, where the method includes:
continuously acquiring progress pictures in the installation process of the operating system according to the first interval time;
after the operating system is installed, processing the progress picture to generate a progress fingerprint value;
generating an installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures;
constructing an operating system installation model library according to all progress fingerprint values and the corresponding installation progress; the operating system installation model library is used for identifying the installation progress of the server out-of-band installation operating system.
Optionally, processing the progress picture to generate a progress fingerprint value, including:
converting the progress picture into a gray scale picture;
calculating the gray average value of all pixels in the gray map;
comparing the gray value of each pixel in the gray map with the gray average value;
and generating the progress fingerprint value according to the comparison result of the gray values.
Optionally, generating the progress fingerprint value according to the comparison result of the gray values includes:
Traversing each pixel of the gray map;
when the gray value of the pixel is larger than or equal to the gray average value, determining that the character corresponding to the pixel is 1;
when the gray value of the pixel is smaller than the gray average value, determining that the character corresponding to the pixel is 0;
and generating the progress fingerprint value according to the characters corresponding to all the pixels in the gray level diagram.
Optionally, generating the progress fingerprint value according to the characters corresponding to all the pixels in the gray scale map includes:
splicing characters corresponding to all pixels in the gray level diagram to generate the progress fingerprint value; the order of the stitching is determined according to the positions of the pixels in the gray scale map.
Optionally, generating the installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures includes:
combining progress fingerprint values of all the progress pictures according to the grabbing sequence to generate a fingerprint time sequence array;
and determining the installation progress corresponding to each fingerprint value according to the total number of the progress pictures and the position of each progress fingerprint value in the fingerprint time sequence array.
Optionally, determining the installation progress corresponding to each fingerprint value according to the total number of progress pictures and the position of each progress fingerprint value in the fingerprint time sequence array includes:
Setting the total progress as 100%;
traversing the fingerprint time sequence array, and calculating the installation progress corresponding to the progress fingerprint value according to the total number of the progress fingerprint values in the fingerprint time sequence array and the positions of the progress fingerprint values in the fingerprint time sequence array:
installation progress = total progress/(total number of progress fingerprint values x location).
Optionally, the method for constructing the operating system installation model library further comprises:
and before processing the progress pictures, performing de-duplication on all the acquired progress pictures.
Optionally, before converting the progress picture into the gray scale picture, the method further includes:
converting the size equal proportion of the progress picture into a first size; the first size is a size which is reduced according to the size equal proportion of the progress picture.
Optionally, before converting the progress picture into the gray scale picture, the method further includes:
converting the size of the progress picture into a second size; the second size is a size with equal length and width after the size of the progress picture is reduced.
Optionally, the method for constructing the operating system installation model library further comprises:
and constructing different operating system installation model libraries according to different types of operating systems, wherein each type of operating system corresponds to one operating system installation model library.
A second aspect of the embodiment of the present application provides a method for identifying a progress of installing an operating system outside a server band, where the method includes:
when a server performs out-of-band installation of an operating system, acquiring a screenshot of a current installation display picture in the server;
according to the screenshot, matching a corresponding installation progress in an operating system installation model library; the operating system installation model library is an operating system installation model library constructed according to the method provided by the first aspect of the embodiment of the application.
Optionally, matching the corresponding installation progress in the operating system installation model library according to the screenshot includes:
processing the screenshot to generate a fingerprint value;
matching the similarity between the fingerprint value of the screenshot and the progress fingerprint value in the operating system installation model library to obtain a matching result;
and determining the current installation progress of the server according to the matching result.
Optionally, performing similarity matching on the fingerprint value of the screenshot and the progress fingerprint value in the operating system installation model library includes:
traversing progress fingerprint values in the operating system installation model library;
comparing the fingerprint value of the screenshot with each progress fingerprint value by bits to determine the bit number of the character difference between the two values;
And if the number of the different digits of the characters is smaller than or equal to the set similarity threshold value, determining the progress fingerprint value as a matching result.
Optionally, obtaining a screenshot of a current installation display screen in the server includes:
continuously acquiring a screenshot of a current installation display picture in the server according to the second interval time; the second interval is set to be greater than the first interval.
Optionally, before matching the corresponding installation progress in the operating system installation model library according to the screenshot, the method further includes:
and determining an operating system installation model library for matching according to the type of the operating system currently installed by the server.
Optionally, the method for identifying the progress of the server out-of-band installation of the operating system further includes:
displaying the installation progress in a server management platform in a numerical form;
or, the installation progress is displayed in a server management platform in the form of a progress bar.
A third aspect of the embodiments of the present application provides an apparatus for building an operating system installation model library, for implementing the method for building an operating system installation model library provided in the first aspect of the embodiments of the present application, where the apparatus includes:
The first picture acquisition module is configured to continuously acquire progress pictures in the installation process of the operating system according to the first interval time;
the first picture processing module is configured to process the progress picture after the operating system is installed, and a progress fingerprint value is generated;
the progress generation module is configured to generate an installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures;
the model library construction module is configured to construct an operating system installation model library according to all progress fingerprint values and the corresponding installation progress; the operating system installation model library is used for identifying the installation progress of the server out-of-band installation operating system.
A fourth aspect of an embodiment of the present application provides an apparatus for identifying a server out-of-band installation operating system progress, for implementing the method for identifying a server out-of-band installation operating system progress provided by the second aspect of the embodiment of the present application, where the apparatus includes:
the second picture acquisition module is configured to acquire a screenshot of a current installation display picture in the server when the server performs out-of-band installation of the operating system;
The matching module is configured to match the corresponding installation progress in the operating system installation model library according to the screenshot; the operating system installation model library is an operating system installation model library constructed according to the method provided by the first aspect of the embodiment of the application.
A fifth aspect of the embodiments of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements steps in a method of building an operating system installation model library as provided in the first aspect of the embodiments of the present application, or steps in a method of identifying a server out-of-band installation operating system progress as provided in the second aspect.
A sixth aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements steps in a method for building an operating system installation model library as provided in the first aspect of the embodiments of the present application, or steps in a method for identifying a server out-of-band installation operating system progress as provided in the second aspect.
According to the method for identifying the progress of the server out-of-band installation of the operating system, firstly, the installation progress picture of the operating system in the installation process is obtained, the progress fingerprint values are generated according to the installation progress picture, and the installation progress corresponding to each progress fingerprint value is generated according to all the obtained progress fingerprint values. In the process of installing the operating system by the server, acquiring a current installation picture screenshot of the server and generating a fingerprint value by the picture, matching the fingerprint value with a similar progress fingerprint value from an operating system installation model library, namely matching the fingerprint value with a progress picture similar to the screenshot, and further acquiring an installation progress corresponding to the similar progress fingerprint value, namely the current installation progress in the server.
According to the method, when the operating system is installed outside the band of the server, the current installation picture screenshot is captured in real time through the out-of-band technology and the image recognition technology, and fingerprint values of similar progress pictures are matched in the operating system installation model library, so that the current installation progress in the server is determined, an operation and maintenance person can acquire the installation progress of the operating system in real time, accurately and intuitively, the installation process is monitored better, the user experience in the operation and maintenance process of the server is improved, and when an accident occurs in the operation and maintenance process, the operation and maintenance person can find out and process in time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for building an operating system installation model library according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for identifying the progress of installing an operating system out-of-band of a server according to an embodiment of the application;
FIG. 3 is a schematic diagram of an apparatus for building an operating system installation model library according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an apparatus for identifying the progress of installing an operating system out-of-band of a server according to an embodiment of the present application;
FIG. 5 is a flowchart of acquiring an installation progress according to an installation display screen shot according to an embodiment of the present application;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
In the application, firstly, the display picture of the operating system in the normal installation process is grabbed, and an operating system installation model library is constructed. The operating system installation model library is used for storing the installation progress corresponding to the progress picture in the installation process. The captured progress pictures are stored in an operating system installation model library in the form of progress fingerprint values after being processed. And generating corresponding installation progress for all the progress fingerprint values, and storing the corresponding progress fingerprint values and the installation progress in an operating system installation model library. When the server installs the operating system outside the band, the corresponding installation progress, namely the current installation progress of the server, can be matched in a pre-built operating system installation model library according to the current installation display picture of the server.
The application will be described in detail below with reference to the drawings in connection with embodiments.
FIG. 1 is a flow chart of a method for building an operating system installation model library according to an embodiment of the present application. As shown in fig. 1, the method includes:
s11: continuously acquiring progress pictures in the installation process of the operating system according to the first interval time;
s12: after the operating system is installed, processing the progress picture to generate a progress fingerprint value;
s13: generating an installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures;
s14: constructing an operating system installation model library according to all progress fingerprint values and the corresponding installation progress; the operating system installation model library is used for identifying the installation progress of the server out-of-band installation operating system.
In this embodiment, the progress pictures of the installation process of the operating system are continuously grabbed according to the first interval time, and the progress picture group with the time sequence is obtained, wherein the first interval time can be set according to the requirement. For example, taking the Windows system installation as an example, setting the first interval time to be 1 minute, a progress picture is grabbed every one minute during the Windows system installation until the system installation is completed. And processing the captured progress pictures to generate progress fingerprint values. Since the progress pictures are continuously captured at the first interval time, a time sequence relationship is provided between the captured progress pictures.
In this embodiment, the installation process is uniformly grabbed by setting a fixed first interval time, so that the grabbed progress pictures are linearly arranged in time, and the calculation complexity of calculating the installation progress according to the position where the index value in the index time sequence array is located is simplified.
Optionally, processing the progress picture to generate a progress fingerprint value, including:
converting the progress picture into a gray scale picture;
calculating the gray average value of all pixels in the gray map;
comparing the gray value of each pixel in the gray map with the gray average value;
and generating the progress fingerprint value according to the comparison result of the gray values.
In this embodiment, the captured progress picture is converted into the gray level picture, so that the color of the image is simplified, the calculated amount is reduced, and the calculation resources are saved. After the progress picture is converted into the gray scale picture, the gray scale value of each pixel and the gray scale average value of all pixels in the progress picture are calculated. In this embodiment, this process may be implemented by OpenCV (Open Source Computer Vision Library ). And comparing the gray value of each pixel in the gray image with the gray average value, and generating a progress fingerprint value according to the comparison result of the gray values, wherein the progress fingerprint value can uniquely identify the progress image.
Optionally, generating the progress fingerprint value according to the comparison result of the gray values includes:
traversing each pixel of the gray map;
when the gray value of the pixel is larger than or equal to the gray average value, determining that the character corresponding to the pixel is 1;
when the gray value of the pixel is smaller than the gray average value, determining that the character corresponding to the pixel is 0;
and generating the progress fingerprint value according to the characters corresponding to all the pixels in the gray level diagram.
In one embodiment, the gray value and the gray average value of each pixel can be determined by traversing each pixel of the gray map, a specific symbol is generated according to the comparison result, and a fingerprint value capable of uniquely identifying the gray map is generated according to the symbols corresponding to all the pixels in the gray map.
In this embodiment, the characters "0" and "1" are used as symbols for distinguishing the gray value and the gray average value of the pixels, and the symbol corresponding to each pixel is determined according to the judgment result of the gray value and the gray average value of each pixel in the gray map, if the gray value of the current pixel is smaller than the gray average value, the pixel is marked as "0", otherwise the current pixel is marked as "1".
Optionally, generating the progress fingerprint value according to the characters corresponding to all the pixels in the gray scale map includes:
splicing characters corresponding to all pixels in the gray level diagram to generate the progress fingerprint value; the order of the stitching is determined according to the positions of the pixels in the gray scale map.
In one embodiment, the characters corresponding to all pixels in the gray scale map may be stitched together in a certain order to generate the fingerprint value. For example, according to the position of each pixel in the pixel matrix of the gray level image, the positions of all the pixels in the gray level image are traversed from left to right according to the S-shaped sequence from top to bottom and from bottom to top, and the characters corresponding to each pixel are spliced to generate a character string, which is the fingerprint value of the installation display screen shot.
For example, the 1 st character in the character string with the pixel at the position (1, 1) in the gray-scale image as the fingerprint value, the 2 nd character in the character string with the pixel at the position (1, 2) as the fingerprint value, and the 3 rd character in the character string with the pixel at the position (1, 3) as the fingerprint value.
It should be noted that, the concatenation mode of the fingerprint array strings provided in this embodiment is only one example of string generation, and in practical application, fingerprint values may be generated by setting different string concatenation modes according to needs.
Optionally, generating the installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures includes:
combining progress fingerprint values of all the progress pictures according to the grabbing sequence to generate a fingerprint time sequence array;
and determining the installation progress corresponding to each fingerprint value according to the total number of the progress pictures and the position of each progress fingerprint value in the fingerprint time sequence array.
In this embodiment, all the generated progress fingerprint values are combined according to the progress picture capturing time sequence to form a fingerprint time sequence array. For example, in the progress pictures captured at the first interval time of 1 minute, the progress fingerprint value generated by the progress picture captured at the capture time of 2 minutes is also at the 2 nd position in the fingerprint time sequence array. According to the position of each progress fingerprint value in the fingerprint time sequence array and the number of the progress fingerprint values included in the fingerprint time sequence array, the installation progress corresponding to each fingerprint value, namely the installation progress corresponding to each progress picture, can be determined.
Optionally, determining the installation progress corresponding to each fingerprint value according to the total number of progress pictures and the position of each progress fingerprint value in the fingerprint time sequence array includes:
setting the total progress as 100%;
traversing the fingerprint time sequence array, and calculating the installation progress corresponding to the progress fingerprint value according to the total number of the progress fingerprint values in the fingerprint time sequence array and the positions of the progress fingerprint values in the fingerprint time sequence array:
installation progress = total progress/(total number of progress fingerprint values x location).
In one embodiment, the installation progress is calculated from a progress fingerprint value generated from progress pictures captured at a first interval. The total installation progress is set to be 100%, and due to the fact that time sequence relations exist among the progress pictures, the progress fingerprint values in the fingerprint time sequence array also have time sequence relations, namely the progress fingerprint values are evenly arranged in time. Therefore, according to the position of the progress fingerprint value in the fingerprint time sequence array and the total number of the progress fingerprint values in the fingerprint time sequence array, the installation progress corresponding to any progress fingerprint value can be obtained through expression calculation.
For example, if there are 10 fingerprint values in the fingerprint time sequence array, the installation progress corresponding to the progress fingerprint value of the position row 2 is: installation progress = 100% = 10 x 2, i.e. the installation progress corresponding to the progress fingerprint number of the position row 2 is 20%.
Optionally, the method for constructing the operating system installation model library further comprises:
and before processing the progress pictures, performing de-duplication on all the acquired progress pictures.
In one embodiment, because the time intervals for capturing the progress pictures are different, repeated pictures may be captured, so that before the captured progress pictures are processed to generate the progress fingerprint values, picture deduplication needs to be performed first, so that each installation progress obtained through calculation is guaranteed to correspond to different progress pictures, that is, the progress fingerprint values for performing similarity matching are guaranteed to be different, and therefore accuracy of the current installation progress of the finally obtained server is improved.
Optionally, before converting the progress picture into the gray scale picture, the method further includes:
converting the size equal proportion of the progress picture into a first size; the first size is a size which is reduced according to the size equal proportion of the progress picture.
In one embodiment, in order to further reduce the amount of computation and save the computation resources, before converting the progress picture into the gray level picture, the size of the progress picture is scaled down, and the fingerprint value is generated by using the scaled down picture. It is worth noting that, while reducing the amount of calculation, it is necessary to ensure that the fingerprint value generated by the progress picture after the size reduction achieves acceptable accuracy when performing the similarity matching, and the size of the progress picture after the size reduction is set on the basis of ensuring the accuracy of the similarity matching result. The accuracy can be determined according to the matching result in practical application.
Optionally, before converting the progress picture into the gray scale picture, the method further includes:
converting the size of the progress picture into a second size; the second size is a size with equal length and width after the size of the progress picture is reduced.
In one embodiment, the obtained progress picture is reduced in size to a picture with the same length and width dimensions. The reduced size has the same length and width, namely no matter what aspect ratio of the progress picture is, the progress picture is changed into a square picture after conversion, so that the arrangement can be used for simplifying the processing steps of the picture size without considering the direction of the picture in the process of processing the picture size, and the calculation resources are saved.
For example, in this embodiment, a progress picture is converted into a square picture of 32 pixels in length and width, and then the picture is converted into a grayscale image for processing. The python language is adopted, and operations such as modification of picture size, gray conversion and gray value calculation are performed through OpenCV. A picture of length and width 32 pixels includes 1024 pixels, and the following codes can be referred to for calculating a gray average value of 1024 pixels and determining a character corresponding to each pixel in the gray map:
# s is pixel and initial value is 0, hash_str is hash value initial value is '', gray represents the gray image generated in the last step, avg is the average gray value to be calculated
s = 0
# traversal accumulation pixel
for i in range(32):
for j in range(32):
s = s + gray[i, j]
# average gray level
avg = s / 1024
Generating hash value of picture with # gray scale larger than average value of 1 and 0
hash_str = ' '
for i in range(8):
for j in range(8):
if gray[i, j] > avg:
hash_str = hash_str + '1'
else:
hash_str = hash_str + '0'
In the above code, 1024 pixels of the gray-scale picture are traversed, the gray-scale average value of the gray-scale picture is calculated, the gray-scale value of each pixel is compared with the gray-scale average value, and the character corresponding to each pixel is determined, that is, when the gray-scale value of the pixel is greater than or equal to the gray-scale average value, the character corresponding to the pixel is recorded as "1", and when the gray-scale value of the pixel is less than the gray-scale average value, the character corresponding to the pixel is recorded as "0".
After determining the characters corresponding to each pixel, the characters are spliced together according to a certain sequence to generate a fingerprint value, and in this embodiment, the length of the character string of the generated fingerprint value is 1024.
Optionally, the method for constructing the operating system installation model library further comprises:
and constructing different operating system installation model libraries according to different types of operating systems, wherein each type of operating system corresponds to one operating system installation model library.
In one embodiment, since the types of the installable operating systems are more, and the installation time length and the installation progress picture of different operating systems are different, different operating system installation model libraries can be constructed according to different types of operating systems, so that different types of operating systems are adapted to cover the types of the operating systems installed in the server, and user experience in the operation and maintenance process is improved.
Based on the same inventive concept, an embodiment of the application provides a method for identifying the progress of installing an operating system outside a server band. Referring to fig. 2, fig. 2 is a flowchart illustrating a method for identifying a server out-of-band operating system installation progress according to an embodiment of the present application. As shown in fig. 2, the method includes:
s21: when a server performs out-of-band installation of an operating system, acquiring a screenshot of a current installation display picture in the server;
s22: according to the screenshot, matching a corresponding installation progress in an operating system installation model library; the operating system installation model library is an operating system installation model library constructed according to the method for constructing an operating system installation model library provided in the above embodiment.
In this embodiment, the current installation progress of the server is determined according to the installation display screen of the current installation operating system of the server, the screenshot of the current installation display screen in the server is matched with the progress picture stored in the operating system installation model library in a similarity manner through an image recognition method, and the current installation progress of the server is determined according to the matched progress picture. In this embodiment, the current installation progress of the operating system of the server is accurately obtained in real time by using a pre-built operating system installation model library and an image recognition method, so that the installation process is better monitored, and the user experience in the operation and maintenance process of the server is improved.
In this embodiment, the step of generating the fingerprint value according to the screenshot of the current installation display screen of the server is the same as the step of generating the progress fingerprint value according to the progress picture, and the same processing is performed on the screenshot, including the processing of gray scale map conversion, gray scale average calculation, and determining the corresponding characters of the pixels and character concatenation to generate the character string.
Optionally, matching the corresponding installation progress in the operating system installation model library according to the screenshot includes:
processing the screenshot to generate a fingerprint value;
matching the similarity between the fingerprint value of the screenshot and the progress fingerprint value in the operating system installation model library to obtain a matching result;
and determining the current installation progress of the server according to the matching result.
In this embodiment, when performing similarity matching, a screenshot of the installation display screen is converted into a fingerprint value, similarity matching is performed through the fingerprint value, a progress fingerprint value matched with the fingerprint value is obtained, an installation progress corresponding to the progress fingerprint value is further obtained, and the current installation progress of the server is determined. In this embodiment, the step of converting the screenshot into the fingerprint value is the same as the step of processing the progress picture to generate the progress fingerprint value in the above embodiment, and will not be described herein.
Fig. 5 is a flowchart of acquiring an installation progress according to an installation display according to an embodiment of the present application. As shown in fig. 5, the flow of acquiring the installation progress is as follows:
firstly, acquiring a screenshot of a current installation display picture in a server through a server management platform, and then generating a fingerprint value according to screenshot processing of the installation display picture;
traversing a fingerprint time sequence array in an operating system installation model library, sequentially comparing whether the fingerprint value is similar to each progress fingerprint value in the fingerprint time sequence array or not until the similar progress fingerprint value is matched, and taking the similar progress fingerprint value as a matching result;
and obtaining the installation progress corresponding to the progress fingerprint value as the current installation progress of the server, and ending the flow.
Optionally, performing similarity matching on the fingerprint value of the screenshot and the progress fingerprint value in the operating system installation model library includes:
traversing progress fingerprint values in the operating system installation model library;
comparing the fingerprint value of the screenshot with each progress fingerprint value by bits to determine the bit number of the character difference between the two values;
and if the number of the different digits of the characters is smaller than or equal to the set similarity threshold value, determining the progress fingerprint value as a matching result.
In this embodiment, when matching is performed, starting from the first progress fingerprint value in the fingerprint timing array of the operating system installation model library, the fingerprint value of the current installation display screen shot is compared with the progress fingerprint value in a bit-wise manner. The progress fingerprint value and the screenshot fingerprint value are generated in the same mode, the lengths of the two character strings are consistent, and the positions of the pixels corresponding to each bit in the character strings are also corresponding, so that the characters of each bit in the two character strings can be compared, and the number of digits different from each other can be determined.
For example, a character of a certain bit corresponding to the fingerprint value of the screenshot is 1, and a character of the progress fingerprint value on the bit is 0, and the two are different on the bit.
After the comparison of the fingerprint value of the screenshot and each bit of the progress fingerprint value is completed, the bit number with different characters is obtained, and the bit number with different characters is compared with the set similarity threshold value. When the number of the different digits of the characters is smaller than the set similarity threshold, the progress fingerprint value of the current comparison is determined to be matched with the fingerprint value of the screenshot, namely, the progress picture of the current comparison is similar to the screenshot, and the progress fingerprint value is taken as a matching result.
In this embodiment, by setting the similarity threshold, the accuracy of the matching result may be further improved, so that the current installation progress of the operating system in the server may be more accurately known. The similarity threshold can be adjusted according to the accuracy of the matching result of the fingerprint values, when more than one progress picture is matched, the similarity threshold can be properly reduced, the progress fingerprint value corresponding to the most similar progress picture is obtained as the matching result, and the matching accuracy is improved. Typically, the similarity threshold may be set to 5.
For example, when the similarity threshold is 5, if there is a bit with 4 inconsistent characters between the current progress fingerprint value compared with the current installation screen shot, the installation progress corresponding to the progress fingerprint value is taken as the installation progress corresponding to the shot.
Optionally, obtaining a screenshot of a current installation display screen in the server includes:
continuously acquiring a screenshot of a current installation display picture in the server according to the second interval time; the second interval is set to be greater than the first interval.
In one embodiment, a second interval time is set, and screen shots of display images in the installation process of the operating system in the server are continuously grabbed according to the second interval time, so that the installation progress of the operating system in the server can be continuously monitored, and when the installation progress is unchanged in a period of time, an operation and maintenance person can timely find and examine possible problems.
It should be noted that the second time interval needs to be greater than the first time interval to ensure that the fingerprint value generated by each screenshot taken during the installation of the operating system by the server can be matched to a similar progress fingerprint value in the corresponding operating system installation model library. For example, the first interval may be set to 1 minute and the second interval may be set to 2 minutes.
Optionally, before matching the corresponding installation progress in the operating system installation model library according to the screenshot, the method further includes:
and determining an operating system installation model library for matching according to the type of the operating system currently installed by the server.
In one embodiment, the matching of the model library is performed according to the type of the operating system being installed in the server, the same type of operating system installation model library is determined, and then the similarity matching of fingerprint values is performed. For example, when a Windows system is installed in the server, a Windows system installation model library is selected for similarity matching of fingerprint values.
Optionally, the method for identifying the progress of the server out-of-band installation of the operating system further includes:
displaying the installation progress in a server management platform in a numerical form;
Or, the installation progress is displayed in a server management platform in the form of a progress bar.
In this embodiment, after the current installation progress of the server is obtained, the installation progress may be displayed in the server management platform, so that operation and maintenance personnel can check the installation progress conveniently, and the installation progress may be displayed in a numerical mode, for example, 20%, or may be displayed in a form of a progress bar.
Based on the same inventive concept, an embodiment of the present application provides an apparatus for constructing an operating system installation model library, which is used to implement the method for constructing an operating system installation model library provided in the above embodiment. Referring to FIG. 3, FIG. 3 is a schematic diagram of an apparatus 100 for building an operating system installation model library according to an embodiment of the present application. As shown in fig. 3, the apparatus includes:
a first picture obtaining module 101 configured to continuously obtain progress pictures in the installation process of the operating system according to a first interval time;
the first picture processing module 102 is configured to process the progress picture after the installation of the operating system is completed, and generate a progress fingerprint value;
the progress generating module 103 is configured to generate an installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures;
The model library construction module 104 is configured to construct an operating system installation model library according to all progress fingerprint values and the corresponding installation progress; the operating system installation model library is used for identifying the installation progress of the server out-of-band installation operating system.
Optionally, the first picture processing module 102 includes:
a conversion module configured to convert the progress picture into a grayscale image;
the gray level calculation module is configured to calculate the gray level average value of all pixels in the gray level map;
a fingerprint generation module configured to compare a gray value of each pixel in the gray map with the gray average value;
and generating the progress fingerprint value according to the comparison result of the gray values.
Optionally, the fingerprint generation module is further configured to perform the steps of:
traversing each pixel of the gray map;
when the gray value of the pixel is larger than or equal to the gray average value, determining that the character corresponding to the pixel is 1;
when the gray value of the pixel is smaller than the gray average value, determining that the character corresponding to the pixel is 0;
and generating the progress fingerprint value according to the characters corresponding to all the pixels in the gray level diagram.
Optionally, the fingerprint generation module further comprises:
the splicing module is configured to splice characters corresponding to all pixels in the gray level diagram to generate the progress fingerprint value; the order of the stitching is determined according to the positions of the pixels in the gray scale map.
Optionally, the progress generating module 103 is further configured to perform the following steps:
combining progress fingerprint values of all the progress pictures according to the grabbing sequence to generate a fingerprint time sequence array;
and determining the installation progress corresponding to each fingerprint value according to the total number of the progress pictures and the position of each progress fingerprint value in the fingerprint time sequence array.
Optionally, the progress generating module 103 further includes:
a progress calculation module configured to set a total progress to 100%;
traversing the fingerprint time sequence array, and calculating the installation progress corresponding to the progress fingerprint value according to the total number of the progress fingerprint values in the fingerprint time sequence array and the positions of the progress fingerprint values in the fingerprint time sequence array:
installation progress = total progress/(total number of progress fingerprint values x location).
Optionally, the apparatus for building an operating system installation model library 100 further includes:
And the de-duplication module is configured to de-duplicate all the acquired progress pictures before processing the progress pictures.
Optionally, the first picture processing module 102 further includes:
the first size modification module is configured to convert the size equal proportion of the screenshot into a first size before converting the progress picture into a gray scale picture; the first size is a size scaled down according to the size of the screenshot.
Optionally, the first picture processing module 102 further includes:
a second size modification module configured to convert the size of the screenshot to a second size before converting the progress picture to a grayscale picture; the second dimension is a dimension equal to the length and the width of the screen shot after the second dimension is reduced according to the dimension of the screen shot.
Optionally, the apparatus for building an operating system installation model library 100 is further configured to build different operating system installation model libraries according to different types of operating systems, each type of operating system corresponding to one operating system installation model library.
Based on the same inventive concept, an embodiment of the present application provides an apparatus for identifying a progress of an operating system installed out of band of a server, which is used for implementing the method for identifying a progress of an operating system installed out of band of a server provided in the above embodiment. Referring to fig. 4, fig. 4 is a schematic diagram of an apparatus 200 for identifying a server out-of-band installation operating system schedule according to an embodiment of the present application. As shown in fig. 4, the apparatus includes:
A second picture obtaining module 201, configured to obtain a screenshot of a current installation display screen in a server when the server performs out-of-band installation of an operating system;
a matching module 202 configured to match corresponding installation progress in an operating system installation model library according to the screenshot; the operating system installation model library is an operating system installation model library constructed according to the method for constructing an operating system installation model library provided in the above embodiment.
Optionally, the matching module 202 is further configured to perform the following steps:
processing the screenshot to generate a fingerprint value;
matching the similarity between the fingerprint value of the screenshot and the progress fingerprint value in the operating system installation model library to obtain a matching result;
and determining the current installation progress of the server according to the matching result.
Optionally, the matching module 202 further includes:
comparing sub-templates configured to traverse progress fingerprint values in the operating system installation model library;
comparing the fingerprint value of the screenshot with each progress fingerprint value by bits to determine the bit number of the character difference between the two values;
and the output sub-module is configured to determine the progress fingerprint value as a matching result if the number of bits of the different characters is smaller than or equal to a set similarity threshold value.
Optionally, the second image obtaining module 201 is further configured to continuously obtain a screenshot of a current installation display screen in the server according to a second interval time; the second interval is set to be greater than the first interval.
Optionally, the apparatus 200 for identifying the server out-of-band installation operating system progress further includes:
and the model library confirming module is configured to determine an operating system installation model library for matching according to the type of the operating system currently installed by the server.
Optionally, the apparatus 200 for identifying the server out-of-band installation operating system progress further includes:
the display module is configured to display the installation progress in a server management platform in a numerical form;
or, the installation progress is displayed in a server management platform in the form of a progress bar.
Based on the same inventive concept, an embodiment of the present application provides a readable storage medium having stored thereon a computer program, which when executed by a processor, implements steps in a method for constructing an operating system installation model library according to any of the above embodiments of the present application, or steps in a method for identifying a server out-of-band installation operating system progress.
Based on the same inventive concept, an embodiment of the present application provides an electronic device. Referring to fig. 6, fig. 6 is a schematic diagram of an electronic device 600 according to an embodiment of the application. As shown in fig. 6, the electronic device includes:
the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor is executed to implement the steps in the method for constructing the operating system installation model library or the steps in the method for identifying the progress of the server out-of-band installation of the operating system according to any embodiment of the application.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the application.
For the purposes of simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will recognize that the present application is not limited by the order of acts described, as some acts may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will recognize that the embodiments described in the specification are all of the preferred embodiments, and that the acts and components referred to are not necessarily required by the present application.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The method, the device and the product for identifying the progress of the server out-of-band installation of the operating system provided by the application are described in detail, and specific examples are applied to the explanation of the principle and the implementation mode of the application, and the explanation of the above examples is only used for helping to understand the method and the core idea of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (20)

1. A method of constructing an operating system installation model library, comprising:
continuously acquiring progress pictures in the installation process of the operating system according to the first interval time;
after the operating system is installed, processing the progress picture to generate a progress fingerprint value;
generating an installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures;
constructing an operating system installation model library according to all progress fingerprint values and the corresponding installation progress; the operating system installation model library is used for identifying the installation progress of the server out-of-band installation operating system.
2. The method of constructing an operating system installation model library according to claim 1, wherein processing the progress picture to generate a progress fingerprint value comprises:
converting the progress picture into a gray scale picture;
calculating the gray average value of all pixels in the gray map;
comparing the gray value of each pixel in the gray map with the gray average value;
and generating the progress fingerprint value according to the comparison result of the gray values.
3. The method of constructing an operating system installation model library according to claim 2, wherein generating the progress fingerprint value according to the comparison result of the gray values comprises:
Traversing each pixel of the gray map;
when the gray value of the pixel is larger than or equal to the gray average value, determining that the character corresponding to the pixel is 1;
when the gray value of the pixel is smaller than the gray average value, determining that the character corresponding to the pixel is 0;
and generating the progress fingerprint value according to the characters corresponding to all the pixels in the gray level diagram.
4. The method for constructing an operating system installation model library according to claim 3, wherein generating the progress fingerprint value according to characters corresponding to all pixels in the gray scale map comprises:
splicing characters corresponding to all pixels in the gray level diagram to generate the progress fingerprint value; the order of the stitching is determined according to the positions of the pixels in the gray scale map.
5. The method for constructing an operating system installation model library according to claim 1, wherein generating an installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures comprises:
combining progress fingerprint values of all the progress pictures according to the grabbing sequence to generate a fingerprint time sequence array;
and determining the installation progress corresponding to each fingerprint value according to the total number of the progress pictures and the position of each progress fingerprint value in the fingerprint time sequence array.
6. The method of constructing an operating system installation model library according to claim 5, wherein determining an installation progress corresponding to each fingerprint value according to a total number of progress pictures and a position of each progress fingerprint value in the fingerprint timing array comprises:
setting the total progress as 100%;
traversing the fingerprint time sequence array, and calculating the installation progress corresponding to the progress fingerprint value according to the total number of the progress fingerprint values in the fingerprint time sequence array and the positions of the progress fingerprint values in the fingerprint time sequence array:
installation progress = total progress/(total number of progress fingerprint values x location).
7. The method of constructing an operating system installation model library according to claim 1, wherein all of the obtained progress pictures are deduplicated before the progress pictures are processed.
8. The method of constructing an operating system installation model library according to claim 2, further comprising, before converting the progress picture into a grayscale picture:
converting the size equal proportion of the progress picture into a first size; the first size is a size which is reduced according to the size equal proportion of the progress picture.
9. The method of constructing an operating system installation model library according to claim 2, further comprising, before converting the progress picture into a grayscale picture:
converting the size of the progress picture into a second size; the second size is a size with equal length and width after the size of the progress picture is reduced.
10. The method of constructing an operating system installation model library of claim 1, further comprising:
and constructing different operating system installation model libraries according to different types of operating systems, wherein each type of operating system corresponds to one operating system installation model library.
11. A method for identifying the progress of installing an operating system out-of-band of a server, comprising:
when a server performs out-of-band installation of an operating system, acquiring a screenshot of a current installation display picture in the server;
according to the screenshot, matching a corresponding installation progress in an operating system installation model library; the operating system installation model library is an operating system installation model library constructed according to the method of any one of claims 1-10.
12. The method of claim 11, wherein matching the corresponding installation progress in the operating system installation model library according to the screenshot comprises:
Processing the screenshot to generate a fingerprint value;
matching the similarity between the fingerprint value of the screenshot and the progress fingerprint value in the operating system installation model library to obtain a matching result;
and determining the current installation progress of the server according to the matching result.
13. The method of claim 12, wherein matching the fingerprint value of the screenshot to the progress fingerprint value in the operating system installation model library comprises:
traversing progress fingerprint values in the operating system installation model library;
comparing the fingerprint value of the screenshot with each progress fingerprint value by bits to determine the bit number of the character difference between the two values;
and if the number of the different digits of the characters is smaller than or equal to the set similarity threshold value, determining the progress fingerprint value as a matching result.
14. The method for identifying a server out-of-band installation operating system schedule of claim 11, wherein obtaining a screenshot of a current installation display in the server comprises:
continuously acquiring a screenshot of a current installation display picture in the server according to the second interval time; the second interval is set to be greater than the first interval.
15. The method of claim 11, further comprising, prior to matching the corresponding installation progress in the operating system installation model library according to the screenshot:
and determining an operating system installation model library for matching according to the type of the operating system currently installed by the server.
16. The method of identifying server out-of-band operating system installation progress of claim 11, further comprising:
displaying the installation progress in a server management platform in a numerical form;
or, the installation progress is displayed in a server management platform in the form of a progress bar.
17. An apparatus for constructing an operating system installation model library for implementing the method of any one of claims 1-10, comprising:
the first picture acquisition module is configured to continuously acquire progress pictures in the installation process of the operating system according to the first interval time;
the first picture processing module is configured to process the progress picture after the operating system is installed, and a progress fingerprint value is generated;
the progress generation module is configured to generate an installation progress corresponding to each progress fingerprint value according to the progress fingerprint values of all the acquired progress pictures;
The model library construction module is configured to construct an operating system installation model library according to all progress fingerprint values and the corresponding installation progress; the operating system installation model library is used for identifying the installation progress of the server out-of-band installation operating system.
18. An apparatus for identifying a server out-of-band installation operating system schedule for implementing the method of any one of claims 11-16, comprising:
the second picture acquisition module is configured to acquire a screenshot of a current installation display picture in the server when the server performs out-of-band installation of the operating system;
the matching module is configured to match the corresponding installation progress in the operating system installation model library according to the screenshot; the operating system installation model library is an operating system installation model library constructed according to the method of any one of claims 1-10.
19. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor performs the steps of the method of constructing an operating system installation model library according to any of claims 1-10, or the steps of the method of identifying server out-of-band installation operating system progress according to any of claims 11-16.
20. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, performs the steps of the method of constructing an operating system installation model library according to any one of claims 1-10 or the steps of the method of identifying server out-of-band installation operating system progress according to any one of claims 11-16.
CN202310890069.5A 2023-07-19 2023-07-19 Method, device and product for identifying progress of server out-of-band installation of operating system Active CN116627445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310890069.5A CN116627445B (en) 2023-07-19 2023-07-19 Method, device and product for identifying progress of server out-of-band installation of operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310890069.5A CN116627445B (en) 2023-07-19 2023-07-19 Method, device and product for identifying progress of server out-of-band installation of operating system

Publications (2)

Publication Number Publication Date
CN116627445A true CN116627445A (en) 2023-08-22
CN116627445B CN116627445B (en) 2023-09-29

Family

ID=87590585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310890069.5A Active CN116627445B (en) 2023-07-19 2023-07-19 Method, device and product for identifying progress of server out-of-band installation of operating system

Country Status (1)

Country Link
CN (1) CN116627445B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170153779A1 (en) * 2015-11-30 2017-06-01 International Business Machines Corporation Progress bar updated based on crowd sourced statistics
CN113626039A (en) * 2021-07-30 2021-11-09 济南浪潮数据技术有限公司 Method, device, equipment and readable medium for deploying out-of-band operating system
CN115357736A (en) * 2022-08-29 2022-11-18 中国银行股份有限公司 Picture matching method, device, storage medium and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170153779A1 (en) * 2015-11-30 2017-06-01 International Business Machines Corporation Progress bar updated based on crowd sourced statistics
CN113626039A (en) * 2021-07-30 2021-11-09 济南浪潮数据技术有限公司 Method, device, equipment and readable medium for deploying out-of-band operating system
CN115357736A (en) * 2022-08-29 2022-11-18 中国银行股份有限公司 Picture matching method, device, storage medium and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐琳;王顺阳;王永刚;张天冉;董月娇;: "一种基于视频图像识别的服务器故障辅助诊断***", 科技通报, no. 08 *

Also Published As

Publication number Publication date
CN116627445B (en) 2023-09-29

Similar Documents

Publication Publication Date Title
CN109376256B (en) Image searching method and device
CN110008997B (en) Image texture similarity recognition method, device and computer readable storage medium
CN110955590A (en) Interface detection method, image processing method, device, electronic equipment and storage medium
KR102187741B1 (en) Metadata crowd sourcing system and method
CN112738640B (en) Method and device for determining subtitles of video stream and readable storage medium
CN111198815A (en) User interface compatibility testing method and device
CN117372424B (en) Defect detection method, device, equipment and storage medium
CN116627445B (en) Method, device and product for identifying progress of server out-of-band installation of operating system
CN111325078A (en) Face recognition method, face recognition device and storage medium
CN112416301A (en) Deep learning model development method and device and computer readable storage medium
CN112215221A (en) Automatic vehicle frame number identification method
CN111815698A (en) Artificial intelligence monocular 3D point cloud generation method, device, terminal and storage medium
CN116627460A (en) Firmware upgrading method and device
CN115908977A (en) Image data labeling method and device, electronic equipment and storage medium
CN112560789B (en) Image object detection method, device, electronic equipment and storage medium
CN111612157B (en) Training method, character recognition device, storage medium and electronic equipment
CN113901898A (en) Image stable sampling method, device, equipment and medium in face recognition scene
CN113591752A (en) Equipment oil leakage monitoring method based on convolutional neural network and related equipment
CN113642353A (en) Training method of face detection model, storage medium and terminal equipment
CN111277724A (en) Detection method and device for abnormal operation application, electronic equipment and storage medium
CN112150529A (en) Method and device for determining depth information of image feature points
CN111225297A (en) Broadband passive optical network port resource remediation method and system
CN117113439B (en) Safe anti-tampering storage method and system for data of automobile data recorder
CN116739608B (en) Bank user identity verification method and system based on face recognition mode
CN114677691B (en) Text recognition method, device, electronic equipment and storage medium

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