CN112764991A - Method, system, device and medium for managing BMC based on image identification - Google Patents

Method, system, device and medium for managing BMC based on image identification Download PDF

Info

Publication number
CN112764991A
CN112764991A CN202110068987.0A CN202110068987A CN112764991A CN 112764991 A CN112764991 A CN 112764991A CN 202110068987 A CN202110068987 A CN 202110068987A CN 112764991 A CN112764991 A CN 112764991A
Authority
CN
China
Prior art keywords
bmc
threshold
instruction
sdr
server
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.)
Withdrawn
Application number
CN202110068987.0A
Other languages
Chinese (zh)
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 CN202110068987.0A priority Critical patent/CN112764991A/en
Publication of CN112764991A publication Critical patent/CN112764991A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a method for identifying and managing BMC based on images, which comprises the following steps: the method comprises the steps of uploading a standard picture, setting continuous point parameters, intercepting a real-time picture of a display card of the server, carrying out similarity verification on the standard picture according to the continuous point parameters, obtaining similarity parameters according to verification results, generating and sending an SDR threshold instruction according to the similarity parameters, receiving the SDR threshold instruction by the BMC, and controlling the server to execute operation according to the SDR threshold instruction.

Description

Method, system, device and medium for managing BMC based on image identification
Technical Field
The invention relates to the technical field of image recognition, in particular to a method, a system, equipment and a medium for managing BMC based on image recognition.
Background
In the prior art, a temperature sensor is generally adopted to test the ambient temperature, whether the temperature of a CPU is too high is detected, a timer of a watchdog circuit is combined, a BMC is controlled to shut down or restart a server system, over-temperature protection is achieved, the existing BMC sensor data generally adopts a static SDR design mode, the SDR document is generally designed by a research and development designer when developing and designing a product, but the traditional implementation mode has the following defects:
firstly, the method comprises the following steps: the approach of relying only on temperature to achieve regulatory requirements is too single and highly dependent on physical characteristics.
Secondly, the method comprises the following steps: the temperature management alarm can be judged only through manual visual identification, and the server system is manually restarted or shut down.
Thirdly, the method comprises the following steps: in practical application, the server system needs to be restarted, shut down and notified to the administrator, the display interface of the server client and the abnormal image of the operating system are diversified, and the client requirements may not be met if the static threshold of the sensor is set.
Disclosure of Invention
The invention mainly solves the problem that storage volumes are incompatible in multipath when the online data of heterogeneous storage volumes are migrated.
In order to solve the technical problems, the invention adopts a technical scheme that: the method for managing BMC based on image identification is provided, and comprises the following steps:
uploading a standard picture, and setting continuous point parameters;
intercepting a real-time picture of the server display card, carrying out similarity verification on the real-time picture and the standard picture according to the continuous point parameters, and obtaining a similarity parameter according to a verification result;
generating an SDR threshold instruction according to the similarity parameter and sending the SDR threshold instruction;
and the BMC receives the SDR threshold instruction and controls the server to execute operation according to the SDR threshold instruction.
Further, the SDR threshold instructions comprise upper non-critical threshold instructions, upper critical threshold instructions, and upper unrecoverable threshold instructions.
Further, if the instruction is the upper-layer non-critical threshold instruction, the server executes warning operation; if the upper-layer key threshold instruction is received, the server executes a restarting operation; and if the command is the upper layer unrecoverable threshold command, the server executes system shutdown operation.
Further, uploading a standard picture through BMC WebUI, and setting continuous point parameters through BMC IPMI.
And further, the real-time picture is blocked and compared with the blocks at the corresponding positions of the standard picture, if the comparison result meets the continuous point parameters, the key point is added by 1, all the blocks are compared to obtain a total key point, and the similarity parameter is generated according to a formula.
Further, counting the number of the blocks of the real-time picture and generating a total number of the blocks, according to a formula: and generating the similarity parameter by the similarity parameter which is the total key points/total blocks.
The invention also provides a system for managing BMC based on image identification, which is applied to a server and comprises: the system comprises a CSU module, a BMC, an SDR threshold module, a partition module and a KVM module;
the CSU module is used for timing and sending a timing completion instruction to the BMC;
the BMC is used for storing standard pictures and controlling the KVM module to intercept real-time pictures of a display card of the server according to the timing completion instruction;
the partition module partitions a real-time picture, performs similarity verification on the standard picture and the real-time picture and generates a comparison result, and the partition module generates a similarity parameter according to the comparison result and sends the similarity parameter to the SDR threshold module;
and the SDR threshold module generates an SDR threshold instruction and sends the SDR threshold instruction to the BMC.
Further, the SDR threshold instruction comprises an upper non-key threshold instruction, an upper key threshold instruction and an upper unrecoverable threshold instruction, and if the SDR threshold module generates the upper non-key threshold instruction, the BMC controls the server to execute an alarm operation; if the SDR threshold module generates the upper key threshold instruction, the BMC controls the server to execute a restart operation; and if the SDR threshold module generates the upper-layer unrecoverable threshold instruction, the BMC controls the server to execute restarting operation.
The invention also provides a device for managing BMC based on image identification, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the method of prefetching the target address as described when executing the computer program.
The invention also provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, implements any of the method steps for managing a BMC based on image recognition.
The invention has the beneficial effects that:
1. the image-based BMC identification and management method can expand the management function of the BMC in the prior art, performs server error correction and fault self-checking from the image identification perspective, and adopts program automation contrast influence, so that the manpower consumption can be reduced, and the problem that a user side manually identifies server system software errors or system errors is solved.
2. The system for identifying and managing BMC based on images can realize automatic identification of errors of a server system or software, expand management requirements of a user side, can acquire system alarm, restart or shutdown conditions more flexibly and more accurately than a traditional method by adding the CSU, can know about impending problems more early and can respond quickly.
3. The device for managing BMC based on image identification can realize the timing control of CSU, and can calculate through a formula corresponding to the similarity parameter to obtain the difference and the similarity between a standard picture and a real-time picture, thereby completing the control of a server.
4. The medium for identifying and managing the BMC based on the image can realize the storage of a standard picture and the calculation of a similarity parameter, can also acquire a real-time picture of a display card of a server, blocks the picture, and compares sub-pixels of the pixels after the blocking to obtain the similarity.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a method for managing BMC based on image recognition according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a system for managing a BMC based on image recognition according to embodiment 2 of the present invention;
fig. 3 is a schematic diagram of an apparatus for managing a BMC based on image recognition according to embodiment 3 of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the description of the present invention, for example, BMC (baseboard Management controller) is a baseboard Management controller, ipmi (intelligent Platform Management interface) is an intelligent Platform Management interface, BMC WebUI is a web page Management interface provided by BMC, sdr (sensor Data record) is a sensor Data record, csu (capture Screen unit) is a Screen capture unit, and kvm (keyboard Video mouse) is an IP-based remote keyboard display connection.
Example 1
The embodiment of the present invention provides a method for managing BMC based on image recognition, please refer to fig. 1, which includes the following steps;
in the prior art, software used by a user end may cause abnormal system operation or send out a restart and shutdown notification abnormally, but a watchdog circuit cannot be triggered by a software layer or an operating system layer error, so that the user-defined picture is compared with the current picture in an influence manner, and an alarm notification is triggered by comparing the similarity.
The user can set parameters such as an image comparison time parameter, a key image threshold value and image similarity, and the current image and the image uploaded by the user side are compared at regular time by using a KVM (keyboard and mouse) technology, wherein the KVM technology is based on an IP (Internet protocol) remote keyboard and mouse display connection line, an image of a server can be recorded and intercepted in real time through a display card, an FS (file system) sensor is established, and when the image similarity reaches the FS sensor threshold value, actions such as notification, restart or shutdown are triggered.
S1, setting parameters and uploading key pictures:
the client uploads the key picture displayed on the display card by the server exception through the BMC WebUI, and sets CSU and KF through BMC IPMI or WebUIthreshold、FsimilarityParameter, CSU parameter is clock parameter, responsible for timing, and after the technology is completed, it sends out instruction, KFthresholdFor key picture pixel threshold parameter, this parameter can compare the key picture with the captured picture, and can judge the difference between the read picture and the key picture, and send an instruction according to the difference, FsimilarityFor picture similarity threshold, by KFthresholdAnd comparing with the key picture pixel, performing formula calculation, judging through a set picture similarity threshold, and executing a related series of operations.
S2, dynamically configuring an SDR threshold:
according to FsimilarityCarrying out relevant operation setting on the parameters, and designing the parameters as a threshold gradient through a multiplier;
upper layer non-critical threshold Fsimilarity*0.75;
Upper critical threshold value of Fsimilarity*0.9;
Upper unrecoverable threshold Fsimilarity*1.0。
S3, initialization configuration:
restarting the server and installing the newly configured SDR as the alarm basis, and reading the time trigger condition of the CSU value of the temporary storage by the BMC.
S4, capturing a picture and calculating:
the BMC regularly intercepts the current server screen picture according to the CSU time condition, carries out comparison verification according to the pixels of the picture, divides the screen picture into a plurality of unit blocks in equal size, carries out comparison analysis on the sub-pixels of the picture in the unit blocks, wherein the unit pixel of the embodiment is composed of one red, two green and one blue, carries out comparison analysis on the sub-pixels in the unit blocks, and judges whether the same value of the sub-pixels in the unit blocks is larger than KF (Kalman filter) or notthresholdAdding one to the key point KP parameter, accumulating all the block units to obtain the key point KPtotal,KPtotalDivided by the total unit block F of the picturetotalA value between 0 and 1 can be obtained, which is the picture similarity, and the formula is as follows: fsimilarity=KPtotal/Ftotal
S5, BMC check Fsimilarity
BMC check FsimilarityIf the alarm threshold is reached, triggering the alarm threshold, after triggering the alarm threshold, the BMC performs action according to the threshold condition, and when the alarm threshold reaches an upper non-key threshold, the BMC executes the alarm action; when the key threshold value of the upper layer is reached, the BMC executes the system restarting action; and when the upper layer unrecoverable threshold value is reached, the BMC executes the system shutdown action.
Example 2
An embodiment of the present invention provides a system for managing BMC based on image recognition, please refer to fig. 2, which includes;
CSU module 21, BMC22, SDR threshold module 23, partition module 24 and KVM module 25;
setting F in the SDR threshold module 23similarityParameter and KFthresholdA parameter;
setting interception time in the CSU module 21;
the BMC22 is used for uploading key pictures set by a user and verifying the running state of the server received by the display card in real time read by the KVM module 25;
user setting F by BMC22 IPMI or WebUIsimilarityAnd KFthresholdA parameter;
the SDR threshold module 23 is configured, and when the data received by the SDR threshold module 23 reaches a specified threshold, the SDR threshold module 23 controls the BMC to perform a processing procedure, in this embodiment, the SDR has three thresholds, as follows:
upper layer non-critical threshold Fsimilarity*0.75;
Upper critical threshold value of Fsimilarity*0.9;
Upper unrecoverable threshold Fsimilarity*1.0。
When these thresholds are reached, SDR enables BMC, which performs the following operations:
when the upper layer non-critical threshold value is reached, the BMC22 executes an alarm action; when the upper-layer key threshold value is reached, the BMC22 executes a system restart action; when the upper unrecoverable threshold is reached, the BMC22 performs a system shutdown action.
The BMC22 is connected with the CSU module 21, the BMC receives a clock instruction of the CSU module 21, when the CSU module 21 receives a clock instruction, the BMC22 controls the KVM module 25 to intercept a display card picture, the partition module 24 partitions the display card picture, divides the read picture into a plurality of partition units, performs sub-pixel comparison on the partition units, compares a key picture uploaded by a user with the picture read by the display card, and if the same rate of sub-pixels in the partition unit of a unit and the sub-pixels at corresponding positions in the partition unit corresponding to the key picture reaches KFthresholdAdding 1 to the key point KP value, comparing all the partition units to obtain the total number KPtotal,KPtotalDividing the image by all the partition units to obtain a value between 0 and 1, which is the image similarity FsimilarityThe partitioning module 24 uses the following formula Fsimilarity=KPtotal/FtotalCalculating the picture similarity FsimilarityAnd the picture similarity is sent to the CSU module 21, the CSU module 21 enables the BMC22 according to the threshold information, and the BMC22 performs an operation of an alarm, a system restart, or a system shutdown.
Referring to fig. 3, an apparatus for managing BMC based on image recognition according to an embodiment of the present invention includes:
a memory 31 for storing a computer program;
a processor 32 for implementing the steps of the method for managing a BMC based on image recognition described above when executing the computer program.
In addition to the above memory and processor, a host adapter card, such as a network card, a Fibre Channel card, etc., is included for connecting to a third-party storage system and to a host server.
Based on the same inventive concept as the method in the foregoing embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for managing BMC based on image recognition as disclosed in the foregoing.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for managing BMC based on image identification is characterized by comprising the following steps:
uploading a standard picture, and setting continuous point parameters;
intercepting a real-time picture of the server display card, carrying out similarity verification on the real-time picture and the standard picture according to the continuous point parameters, and obtaining a similarity parameter according to a verification result;
generating an SDR threshold instruction according to the similarity parameter and sending the SDR threshold instruction;
and the BMC receives the SDR threshold instruction and controls the server to execute operation according to the SDR threshold instruction.
2. The method of claim 1, wherein the image-based discrimination between BMC and BMC includes: the SDR threshold instructions include an upper non-critical threshold instruction, an upper critical threshold instruction, and an upper unrecoverable threshold instruction.
3. The method of claim 2, wherein the image-based discrimination for managing BMC comprises: the step of the BMC receiving the SDR threshold instruction and controlling the server to execute the operation according to the SDR threshold instruction further comprises: if the instruction is the upper-layer non-critical threshold instruction, the server executes warning operation; if the upper-layer key threshold instruction is received, the server executes a restarting operation; and if the command is the upper layer unrecoverable threshold command, the server executes system shutdown operation.
4. The method of claim 1, wherein the image-based discrimination between BMC and BMC includes: the step of uploading the standard picture and setting the parameters of the continuous points further comprises the following steps: uploading a standard picture through BMC WebUI, and setting continuous point parameters through BMC IPMI.
5. The method of claim 1, wherein the image-based discrimination between BMC and BMC includes: the step of capturing the real-time picture of the server display card, performing similarity verification on the real-time picture and the standard picture according to the continuous point parameters, and obtaining the similarity parameters according to the verification result further comprises the following steps: and partitioning the real-time picture, comparing the real-time picture with the blocks at the corresponding positions of the standard picture, adding 1 to the key point if the comparison result meets the continuous point parameter, comparing all the partitions to obtain a total key point, and generating the similarity parameter according to a formula.
6. The method of claim 5, wherein the image-based discrimination for managing BMC comprises: the step of generating the similarity parameter according to a formula further comprises: counting the number of the blocks of the real-time picture and generating the total number of the blocks, according to a formula: and generating the similarity parameter by the similarity parameter which is the total key points/total blocks.
7. A system for managing BMC based on image identification is applied to a server, and is characterized by comprising: the system comprises a CSU module, a BMC, an SDR threshold module, a partition module and a KVM module;
the CSU module is used for timing and sending a timing completion instruction to the BMC;
the BMC is used for storing standard pictures and controlling the KVM module to intercept real-time pictures of a display card of the server according to the timing completion instruction;
the partition module partitions a real-time picture, performs similarity verification on the standard picture and the real-time picture and generates a comparison result, and the partition module generates a similarity parameter according to the comparison result and sends the similarity parameter to the SDR threshold module;
and the SDR threshold module generates an SDR threshold instruction and sends the SDR threshold instruction to the BMC.
8. The system for image-based discrimination management BMC of claim 7 wherein: the SDR threshold instruction comprises an upper non-key threshold instruction, an upper key threshold instruction and an upper unrecoverable threshold instruction, and if the SDR threshold module generates the upper non-key threshold instruction, the BMC controls the server to execute an alarm operation; if the SDR threshold module generates the upper key threshold instruction, the BMC controls the server to execute a restart operation; and if the SDR threshold module generates the upper-layer unrecoverable threshold instruction, the BMC controls the server to execute restarting operation.
9. An apparatus for managing BMC based on image recognition, comprising:
a memory for storing a computer program;
a processor for implementing the method steps of managing a BMC based on image recognition according to any of claims 1 to 6 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the method steps of managing BMC based on image recognition according to any one of claims 1 to 6.
CN202110068987.0A 2021-01-19 2021-01-19 Method, system, device and medium for managing BMC based on image identification Withdrawn CN112764991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110068987.0A CN112764991A (en) 2021-01-19 2021-01-19 Method, system, device and medium for managing BMC based on image identification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110068987.0A CN112764991A (en) 2021-01-19 2021-01-19 Method, system, device and medium for managing BMC based on image identification

Publications (1)

Publication Number Publication Date
CN112764991A true CN112764991A (en) 2021-05-07

Family

ID=75703079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110068987.0A Withdrawn CN112764991A (en) 2021-01-19 2021-01-19 Method, system, device and medium for managing BMC based on image identification

Country Status (1)

Country Link
CN (1) CN112764991A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935451A (en) * 2014-03-19 2015-09-23 中国移动通信集团公司 Fault detection method and device
CN111290918A (en) * 2020-02-26 2020-06-16 苏州浪潮智能科技有限公司 Server running state monitoring method and device and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935451A (en) * 2014-03-19 2015-09-23 中国移动通信集团公司 Fault detection method and device
CN111290918A (en) * 2020-02-26 2020-06-16 苏州浪潮智能科技有限公司 Server running state monitoring method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US9619314B2 (en) Management system and management program
CN108427616B (en) Background program monitoring method and monitoring device
WO2023115999A1 (en) Device state monitoring method, apparatus, and device, and computer-readable storage medium
US10397281B2 (en) Method, system and server for self-healing of electronic apparatus
WO2017048288A1 (en) Image based fault state determination
TWI510917B (en) Server management system and method thereof
CN114666473A (en) Video monitoring method, system, terminal and storage medium for farmland protection
TWI669624B (en) Webpage content self-protection method and associated server
US9430318B2 (en) Health monitoring and recovery for infrastructure devices
CN108156127B (en) Network attack mode judging device, judging method and computer readable storage medium thereof
CN114184885A (en) Fault detection method, device and storage medium
EP2913771A1 (en) Cluster license server
US10754753B1 (en) Performance of virtual machine instances using machine recognition of screenshot images
US20210357499A1 (en) Restoration of firmware subsystems based on manufacturing states
US9137587B2 (en) System event assisted live keyboard, video and mouse (KVM) capture
CN112764991A (en) Method, system, device and medium for managing BMC based on image identification
CN106254104B (en) Method and device for acquiring installation state
JP2020035297A (en) Apparatus state monitor and program
US8359220B2 (en) Technical support routing among members of a technical support group
CN114064401A (en) Method and device for positioning hard disk fault, electronic equipment and storage medium
TWI685740B (en) Method for remotely clearing abnormal status of racks applied in data center
US20200159646A1 (en) Information processing apparatus
JP6477524B2 (en) Server device, screen information acquisition method, and BMC
CN115242615B (en) Server operation management method and device, electronic equipment and storage medium
TWI685736B (en) Method for remotely clearing abnormal status of racks applied in data center

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210507

WW01 Invention patent application withdrawn after publication