CN117437437A - Method, device, equipment, medium and program product for determining state of machine room server - Google Patents
Method, device, equipment, medium and program product for determining state of machine room server Download PDFInfo
- Publication number
- CN117437437A CN117437437A CN202311248039.0A CN202311248039A CN117437437A CN 117437437 A CN117437437 A CN 117437437A CN 202311248039 A CN202311248039 A CN 202311248039A CN 117437437 A CN117437437 A CN 117437437A
- Authority
- CN
- China
- Prior art keywords
- server
- cabinet
- determining
- image
- asset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000007689 inspection Methods 0.000 claims abstract description 22
- 238000004590 computer program Methods 0.000 claims description 47
- 230000005540 biological transmission Effects 0.000 claims description 18
- 238000013507 mapping Methods 0.000 claims description 17
- 239000003086 colorant Substances 0.000 claims description 14
- 230000002159 abnormal effect Effects 0.000 claims description 10
- 238000012544 monitoring process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/325—Display of status information by lamps or LED's
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/764—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Quality & Reliability (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application relates to a method, a device, equipment, a medium and a program product for determining the state of a machine room server, relates to the technical field of machine room monitoring, and can be used in the technical field of finance and science or other related fields. The method comprises the following steps: under the condition that the current time meets a preset inspection period, controlling each camera in a machine room to acquire cabinet images of a cabinet where a corresponding server is located; acquiring cabinet images acquired by each camera; and determining the running state of each server in the machine room according to each cabinet image. According to the method, the camera in the machine room is used for collecting the cabinet image of the cabinet where the server is located, so that the running state of each server in the machine room can be determined according to the information in the cabinet image, namely, each server in the machine room is not required to be inspected manually at regular time, and the inspection efficiency of the server is improved.
Description
Technical Field
The present disclosure relates to the field of machine room monitoring technologies, and in particular, to a method, an apparatus, a device, a medium, and a program product for determining a server state of a machine room.
Background
The number of the cabinets in the machine room is large, and a plurality of servers are stored in each cabinet and used for storing, calculating, exchanging data and the like. After the server runs for a period of time, the fault of the size of the server is unavoidable, and in order to realize the normal running of each server in the machine room, the server needs to be inspected.
In the related art, corresponding personnel are usually arranged in a machine room, and each server in the machine room is inspected to determine whether the operation of each server is in a normal state.
However, the related art has a technical problem of low inspection efficiency of the server.
Disclosure of Invention
Based on the above, it is necessary to provide a method, device, equipment, medium and program product for determining the state of a server in a machine room, which are capable of determining the running state of each server in the machine room according to the information in the cabinet image by collecting the cabinet image of the cabinet where the server is located through the camera in the machine room, that is, the inspection of each server in the machine room is not required by manual timing, and the inspection efficiency of the server is improved.
In a first aspect, an embodiment of the present application provides a method for determining a state of a server in a machine room. The method comprises the following steps:
Under the condition that the current time meets a preset inspection period, controlling each camera in a machine room to acquire cabinet images of a cabinet where a corresponding server is located;
acquiring cabinet images acquired by each camera;
and determining the running state of each server in the machine room according to each cabinet image.
In one embodiment, determining an operation state of each server in the machine room according to each cabinet image includes:
for any cabinet image, determining asset codes and running state indicator lamp colors of each server in the cabinet image according to the cabinet image;
and determining the running state of each server according to each asset code and each running state indicator light color.
In one embodiment, determining the operational status of each server based on each asset code and each operational status indicator light color comprises:
acquiring server position information of each server;
determining the asset coding accuracy of each server according to each asset code and the position information of each server;
determining the color accuracy of the indicator lights of each server according to the color of each running state indicator light and the normal color of a preset indicator light;
and determining the running state of each server according to the accuracy of each asset code and the accuracy of each indicator light color.
In one embodiment, determining the operating status of each server based on each asset coding accuracy and each indicator light color accuracy comprises:
for any server, if the asset coding accuracy of the server is that the asset coding is correct and the color accuracy of the indicator lights of the server is that the color of the indicator lights belongs to the normal color, determining that the running state of the server is the normal state;
if the asset coding accuracy of the server is incorrect and/or the color accuracy of the indicator light of the server is that the color of the indicator light does not belong to the normal color, determining that the running state of the server is an abnormal state.
In one embodiment, determining asset coding accuracy for each server based on each asset code and each server location information comprises:
acquiring an image identifier of a cabinet image;
acquiring standard asset codes of all servers from an asset code storage library according to the position information and the image identifications of all servers;
and determining the asset coding accuracy of each server according to each asset code and each standard asset code.
In one embodiment, acquiring an image identification of a cabinet image includes:
acquiring acquisition time of a cabinet image and identification information of a camera for acquiring the cabinet image;
And determining the image identification of the cabinet image according to the acquisition time and the identification information.
In one embodiment, determining the image identifier of the cabinet image according to the acquisition time and the identification information includes:
acquiring mapping relations between identification information of different cameras and cabinet information of images acquired by all cameras;
determining cabinet information corresponding to the cameras according to the identification information and the mapping relation between the identification information of different cameras and cabinet information of the images acquired by the cameras;
and determining the image identification of the cabinet image according to the acquisition time and the cabinet information.
In one embodiment, the method further comprises:
and if the failure of the transmission of the cabinet image in any camera is detected, acquiring the cabinet image from the camera again.
In one embodiment, re-acquiring the cabinet image from the camera includes:
acquiring failure time of cabinet image transmission failure;
determining the acquisition time of the cabinet image according to the failure time and a preset uploading time interval;
and re-acquiring the cabinet image from the camera according to the acquisition time.
In a second aspect, the embodiment of the application also provides a device for determining the state of the server in the machine room. The device comprises:
The image acquisition module is used for controlling each camera in the machine room to acquire cabinet images of the cabinet where the corresponding server is located under the condition that the current time is detected to meet the preset inspection period;
the image acquisition module is used for acquiring cabinet images acquired by all cameras;
and the state determining module is used for determining the running state of each server in the machine room according to the images of each cabinet.
In a third aspect, embodiments of the present application further provide a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of any of the embodiments of the first aspect described above when the processor executes the computer program.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium. A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the embodiments of the first aspect described above.
In a fifth aspect, embodiments of the present application also provide a computer program product. A computer program product comprising a computer program which when executed by a processor performs the steps of any of the embodiments of the first aspect described above.
According to the method, the device, the equipment, the medium and the program product for determining the state of the server in the machine room, under the condition that the current time is detected to meet the preset inspection period, all cameras in the machine room are controlled to acquire cabinet images of cabinets where the corresponding servers are located, then the cabinet images acquired by all the cameras are acquired, and finally the running state of all the servers in the machine room is determined according to all the cabinet images. According to the method, the camera in the machine room is used for collecting the cabinet image of the cabinet where the server is located, so that the running state of each server in the machine room can be determined according to the information in the cabinet image, namely, each server in the machine room is not required to be inspected manually at regular time, and the inspection efficiency of the server is improved.
Drawings
FIG. 1 is an application environment diagram of a method for determining a state of a server in a machine room in one embodiment;
FIG. 2 is a flowchart of a method for determining a server status of a machine room in one embodiment;
FIG. 3 is a flow diagram of determining an operational status in one embodiment;
FIG. 4 is a flow chart of determining an operating state according to another embodiment;
FIG. 5 is a flow diagram of determining asset coding accuracy in one embodiment;
FIG. 6 is a flow diagram of acquiring an image identification of a cabinet image in one embodiment;
Fig. 7 is a flowchart of a method for determining a status of a server in a machine room in another embodiment;
fig. 8 is a schematic structural diagram of a state determining device of a machine room server in an embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for determining the state of the machine room server provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. Optionally, a visual interface may be integrated in the terminal 102, for displaying the running state of each server in the machine room. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a method for determining a server state of a machine room is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
s201, under the condition that the current time is detected to meet the preset inspection period, all cameras in the machine room are controlled to acquire cabinet images of the cabinet where the corresponding server is located.
In this embodiment of the present application, the inspection period is a period preset by a user to inspect a server in a machine room, for example, the inspection period may be set to be one hour.
Optionally, the corresponding images of which servers are collected by the cameras in the machine room may be preset. For example, the user has preconfigured the correspondence between each camera and the server and cabinet, and stores the correspondence in the acquired image relationship table. And under the condition that the current time meets the preset inspection period, calling the corresponding relation between each camera and the server as well as between each camera and the cabinet from the acquired image relation table, and controlling each camera in the machine room to acquire cabinet images of the cabinet where the corresponding server is located according to the corresponding relation between each camera and the server as well as the cabinet.
S202, acquiring cabinet images acquired by all cameras.
Optionally, after each camera acquires the cabinet image of the cabinet where the corresponding server is located, the cabinet image acquired by each camera is acquired from each camera.
And if the failure of the transmission of the cabinet image in any camera is detected, acquiring the cabinet image from the camera again. In one implementation, acquiring failure time of a cabinet image transmission failure; determining the acquisition time of the cabinet image according to the failure time and a preset uploading time interval; and re-acquiring the cabinet image from the camera according to the acquisition time.
In this embodiment of the present application, the preset uploading time interval is a time interval preset by a user for re-uploading the cabinet image, for example, the user sets to re-upload the cabinet image once every 10 minutes.
The method comprises the steps of obtaining failure time of cabinet image transmission failure and uploading times of re-uploading of cabinet images, subtracting a product of an uploading time interval and the uploading times of re-uploading of the cabinet images from the failure time of the cabinet image transmission failure, determining acquisition time of the cabinet images, and finally obtaining the cabinet images from a camera again according to the determined acquisition time. For example, the cabinet image is re-uploaded for the first time at this time, and is not re-uploaded before, that is, the number of times of re-uploading the cabinet image is 0, the preset uploading time interval is 10 minutes, the failure time of the cabinet image transmission failure is 9:00, and further, the acquisition time of the cabinet image is 9:00 can be determined, and then the cabinet image with the acquisition time of 9:00 is re-acquired from the camera. In the embodiment of the application, the cabinet image can be acquired again by introducing the uploading time interval under the condition that the current time meets the uploading time interval, so that the success rate of cabinet image transmission is improved.
S203, determining the running state of each server in the machine room according to each cabinet image.
In the embodiment of the present application, the operation state includes a normal state and an abnormal state.
Optionally, for any cabinet image, information related to the servers can be extracted from the cabinet image, and then the running state of each server in the machine room is determined according to the information related to the servers in the cabinet image. For example, the indicator light color of the running state indicator light of each server is extracted from the cabinet image, and then the running state of each server is determined according to the indicator light color of the running state indicator light. If the color of the indicator light of a certain server is green, determining that the running state of the server is a normal state; if the color of the indicator light of a certain server is not green, determining that the running state of the server is an abnormal state, wherein if the color of the indicator light is red, the server is in an alarm state at the moment; if the color of the indicator light is colorless, namely the indicator light is not on, the server is in a power-off state at the moment.
According to the machine room server state determining method, under the condition that the current time is detected to meet the preset inspection period, all cameras in the machine room are controlled to collect cabinet images of cabinets where corresponding servers are located, then cabinet images collected by all cameras are obtained, and finally the running state of all servers in the machine room is determined according to all cabinet images. According to the method, the camera in the machine room is used for collecting the cabinet image of the cabinet where the server is located, so that the running state of each server in the machine room can be determined according to the information in the cabinet image, namely, each server in the machine room is not required to be inspected manually at regular time, and the inspection efficiency of the server is improved.
The running status indicator of the server may generally indicate whether the server is operating properly, and in order to further determine the running status of the server, it is necessary to check the asset code of the server as well. Based on this, an alternative way of determining the operational status of the servers in the machine room is provided. As shown in fig. 3, the steps may be included as follows:
s301, for any cabinet image, determining asset codes and running state indicator lamp colors of each server in the cabinet image according to the cabinet image.
S302, determining the running state of each server according to each asset code and each running state indicator light color.
In this embodiment, the asset code of the server is a code set for uniquely determining each server in the machine room.
Optionally, for any cabinet image, performing image processing on the cabinet image to extract asset codes and running state indicator lamp colors of each server in the cabinet image; and further, for any server, determining the running state of the server according to the asset code and the running state indicator lamp color of the server. For example, the cabinet image is processed using a target detection algorithm to obtain asset codes and running status indicator light colors for each server in the cabinet image.
In the embodiment of the application, an optional mode is provided for quickly determining the running state of the server, and the running state of each server can be determined by introducing the asset code of the server and combining the running state indicator lamp color of the server.
If the asset coding of the server is incorrect, even if the running state indicator lamp of the server is displayed normally, the server needs to be further checked to prevent the accuracy of the subsequent server fault diagnosis from being affected, namely the running state of the server is determined jointly by the asset coding accuracy of the server and the color accuracy of the running state indicator lamp. Based on this, in one embodiment, another alternative way of determining the operational status of each server is provided. As shown in fig. 4, the steps may be included as follows:
s401, server position information of each server is acquired.
S402, determining the asset coding accuracy of each server according to each asset code and each server position information.
S403, determining the color accuracy of the indicator lights of each server according to the color of each running state indicator light and the normal color of the preset indicator light.
S404, determining the running state of each server according to the accuracy of each asset code and the accuracy of each indicator light color.
In the embodiment of the application, the server location information indicates location information of each server in the rack image, for example, a certain server is located in a 1 st position in an a01 rack in the rack image, where a01 indicates that the rack is located in a first position in a column. The normal color of the preset indicator light can be green, and the rest colors do not belong to the normal colors, such as orange, red, colorless and the like.
Optionally, server position information of each server is obtained according to the cabinet image, then asset coding accuracy of each server is determined based on certain analysis logic by combining the server position information of each server and asset coding, then the color of each running state indicator lamp is compared with the normal color of a preset indicator lamp, the color accuracy of the indicator lamp of each server is determined, and finally the running state of each server is determined according to the asset coding accuracy and the color accuracy of each indicator lamp. In one implementation manner, for any server, if the asset coding accuracy of the server is that the asset coding is correct and the color accuracy of the indicator light of the server is that the color of the indicator light belongs to a normal color, determining that the running state of the server is a normal state; if the asset coding accuracy of the server is incorrect and/or the color accuracy of the indicator light of the server is that the color of the indicator light does not belong to the normal color, determining that the running state of the server is an abnormal state.
In the embodiment of the application, the running state of each server is determined by introducing the asset coding accuracy and the indicator light color accuracy, so that an optional mode is provided for quickly determining the running state of the server.
It is necessary to determine whether the asset code of each server is accurate, i.e., it is necessary to compare with the standard asset code of each server. Based on this, in one embodiment, an alternative way of determining asset coding accuracy for each server is provided. As shown in fig. 5, the steps may be included as follows:
s501, acquiring an image identifier of a cabinet image.
S502, according to the position information and the image identification of each server, acquiring the standard asset codes of each server from an asset code storage library.
S503, determining the asset coding accuracy of each server according to each asset code and each standard asset code.
In the embodiment of the application, the image identifier may be pre-stored in an image repository, and may be determined for the image acquisition time in combination with the acquired object information. One implementation way is that the collection time of the cabinet image and the cabinet information of the cabinet included in the cabinet image are spliced; the cabinet information may be a column a cabinet.
Optionally, the corresponding relation between the standard asset codes of each server and the server is stored in the asset code storage library, the image identification of the cabinet image can be obtained from the image storage library, then the standard asset codes of each server are screened out from the asset code storage library according to the server position information of each server and the image identification of the cabinet image, and finally the asset codes are compared with the standard asset codes to determine the asset code accuracy of each server. For example, when the standard asset codes of the servers are stored in the asset code repository, the cabinet information of the cabinet where each server is located and the position information of the server in the cabinet are stored in the asset code repository, and when the standard asset codes of the servers are acquired, namely the standard asset codes of the servers need to be acquired according to the position information of the servers and the cabinet information of the cabinet where the servers are located, and when the cabinet information is stored in the image identifier, the standard asset codes of the servers are acquired from the mapping relation in the asset code repository according to the position information of the servers and the image identifier.
In the embodiment of the application, the asset coding accuracy of each server is determined by introducing the image identification of the cabinet image and the standard asset coding of each server, and data support is provided for the follow-up determination of the running state of each server.
In order to obtain the standard asset code of each server, the cabinet information in the image identification needs to be closely related to the camera for collecting the cabinet image, so that the camera information needs to be introduced to determine the image identification of the cabinet image. In one embodiment, an alternative way of acquiring an image identification of a cabinet image is provided. As shown in fig. 6, the steps may be included as follows:
s601, acquiring acquisition time of the cabinet image and identification information of a camera for acquiring the cabinet image.
S602, determining the image identification of the cabinet image according to the acquisition time and the identification information.
In one implementation, a mapping relationship between identification information of different cameras and cabinet information of images acquired by each camera is acquired; determining cabinet information corresponding to the cameras according to the identification information and the mapping relation between the identification information of different cameras and cabinet information of the images acquired by the cameras; and determining the image identification of the cabinet image according to the acquisition time and the cabinet information.
Optionally, acquiring the acquisition time of the cabinet image, the identification information corresponding to the cameras for acquiring the cabinet image, and the mapping relation between the identification information of the different cameras and the cabinet information of the images acquired by the cameras, so as to screen the cabinet information corresponding to the cameras for acquiring the cabinet image from the mapping relation between the identification information of the different cameras and the cabinet information of the images acquired by the cameras according to the identification information of the cameras for acquiring the cabinet image, and splicing the acquisition time and the cabinet information recently to obtain the image identification of the cabinet image.
In the embodiment of the application, the image identification of the cabinet image is obtained by introducing the acquisition time of the cabinet image and the identification information of the camera, so that data support is provided for the follow-up determination of the asset coding accuracy of each server.
In addition, in one embodiment, the embodiment of the application further provides an optional example of a machine room server state determining method. As shown in connection with fig. 7, includes:
s701, under the condition that the current time is detected to meet the preset inspection period, controlling each camera in the machine room to acquire cabinet images of the cabinet where the corresponding server is located.
S702, acquiring cabinet images acquired by all cameras.
S703, for any cabinet image, determining the asset code and the running state indicator lamp color of each server in the cabinet image according to the cabinet image.
S704, server position information of each server and an image identification of the cabinet image are acquired.
S705, according to the position information and the image identification of each server, the standard asset codes of each server are obtained from the asset code storage library.
S706, determining the asset coding accuracy of each server according to each asset code and each standard asset code.
And S707, determining the color accuracy of the indicator lights of each server according to the color of each running state indicator light and the normal color of the preset indicator light.
S708, determining the running state of each server according to the accuracy of each asset code and the accuracy of each indicator light color.
Optionally, for any server, if the asset coding accuracy of the server is that the asset coding is correct, and the color accuracy of the indicator light of the server is that the color of the indicator light belongs to a normal color, determining that the running state of the server is a normal state; if the asset coding accuracy of the server is incorrect and/or the color accuracy of the indicator light of the server is that the color of the indicator light does not belong to the normal color, determining that the running state of the server is an abnormal state.
The above processes of S701 to S708 may refer to the descriptions of the above method embodiments, and the implementation principle and technical effects are similar, and are not repeated herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a machine room server state determining device for implementing the above related machine room server state determining method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the device for determining the server state of one or more machine rooms provided below may refer to the limitation of the method for determining the server state of the machine room described above, which is not repeated herein.
In one embodiment, as shown in fig. 8, there is provided a machine room server state determining apparatus 1, including: an image acquisition module 10, an image acquisition module 20, and a state determination module 30, wherein:
the image acquisition module 10 is used for controlling each camera in the machine room to acquire cabinet images of the cabinet where the corresponding server is located under the condition that the current time is detected to meet the preset inspection period;
the image acquisition module 20 is used for acquiring cabinet images acquired by each camera;
and the state determining module 30 is used for determining the running state of each server in the machine room according to the images of each cabinet.
In one embodiment, the status determination module 30 may be configured to:
For any cabinet image, determining asset codes and running state indicator lamp colors of each server in the cabinet image according to the cabinet image; and determining the running state of each server according to each asset code and each running state indicator light color.
In one embodiment, the state determining module 30 is further configured to:
acquiring server position information of each server; determining the asset coding accuracy of each server according to each asset code and the position information of each server; determining the color accuracy of the indicator lights of each server according to the color of each running state indicator light and the normal color of a preset indicator light; and determining the running state of each server according to the accuracy of each asset code and the accuracy of each indicator light color.
In one embodiment, the state determining module 30 is further configured to:
for any server, if the asset coding accuracy of the server is that the asset coding is correct and the color accuracy of the indicator lights of the server is that the color of the indicator lights belongs to the normal color, determining that the running state of the server is the normal state; if the asset coding accuracy of the server is incorrect and/or the color accuracy of the indicator light of the server is that the color of the indicator light does not belong to the normal color, determining that the running state of the server is an abnormal state.
In one embodiment, the state determining module 30 is further configured to:
acquiring an image identifier of a cabinet image; acquiring standard asset codes of all servers from an asset code storage library according to the position information and the image identifications of all servers; and determining the asset coding accuracy of each server according to each asset code and each standard asset code.
In one embodiment, the state determining module 30 is further configured to:
acquiring acquisition time of a cabinet image and identification information of a camera for acquiring the cabinet image; and determining the image identification of the cabinet image according to the acquisition time and the identification information.
In one embodiment, the state determining module 30 is further configured to:
acquiring mapping relations between identification information of different cameras and cabinet information of images acquired by all cameras; determining cabinet information corresponding to the cameras according to the identification information and the mapping relation between the identification information of different cameras and cabinet information of the images acquired by the cameras; and determining the image identification of the cabinet image according to the acquisition time and the cabinet information.
In one embodiment, the machine room server status determining apparatus 1 is further configured to:
And if the failure of the transmission of the cabinet image in any camera is detected, acquiring the cabinet image from the camera again.
In one embodiment, the machine room server status determining apparatus 1 is further configured to:
acquiring failure time of cabinet image transmission failure; determining the acquisition time of the cabinet image according to the failure time and a preset uploading time interval; and re-acquiring the cabinet image from the camera according to the acquisition time.
All or part of the modules in the machine room server state determining device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing computer room server state determination data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by the processor, implements a machine room server state determination method.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
under the condition that the current time meets a preset inspection period, controlling each camera in a machine room to acquire cabinet images of a cabinet where a corresponding server is located;
acquiring cabinet images acquired by each camera;
and determining the running state of each server in the machine room according to each cabinet image.
In one embodiment, when the processor executes logic in the computer program for determining the running state of each server in the machine room according to each cabinet image, the following steps may be implemented:
for any cabinet image, determining asset codes and running state indicator lamp colors of each server in the cabinet image according to the cabinet image; and determining the running state of each server according to each asset code and each running state indicator light color.
In one embodiment, when the processor executes logic in the computer program to determine the operating status of each server based on each asset code and each operating status indicator light color, the following steps may be implemented:
acquiring server position information of each server; determining the asset coding accuracy of each server according to each asset code and the position information of each server; determining the color accuracy of the indicator lights of each server according to the color of each running state indicator light and the normal color of a preset indicator light; and determining the running state of each server according to the accuracy of each asset code and the accuracy of each indicator light color.
In one embodiment, when the processor executes logic in the computer program for determining the running state of each server according to each asset coding accuracy and each indicator light color accuracy, the following steps may be implemented:
for any server, if the asset coding accuracy of the server is that the asset coding is correct and the color accuracy of the indicator lights of the server is that the color of the indicator lights belongs to the normal color, determining that the running state of the server is the normal state; if the asset coding accuracy of the server is incorrect and/or the color accuracy of the indicator light of the server is that the color of the indicator light does not belong to the normal color, determining that the running state of the server is an abnormal state.
In one embodiment, when the processor executes logic in the computer program to determine the asset coding accuracy of each server based on each asset code and each server location information, the following steps may be implemented:
acquiring an image identifier of a cabinet image; acquiring standard asset codes of all servers from an asset code storage library according to the position information and the image identifications of all servers; and determining the asset coding accuracy of each server according to each asset code and each standard asset code.
In one embodiment, when the processor executes logic in the computer program to obtain the image identifier of the cabinet image, the following steps may be implemented:
acquiring acquisition time of a cabinet image and identification information of a camera for acquiring the cabinet image; and determining the image identification of the cabinet image according to the acquisition time and the identification information.
In one embodiment, when the processor executes logic in the computer program for determining the image identifier of the cabinet image according to the acquisition time and the identifier information, the following steps may be implemented:
acquiring mapping relations between identification information of different cameras and cabinet information of images acquired by all cameras; determining cabinet information corresponding to the cameras according to the identification information and the mapping relation between the identification information of different cameras and cabinet information of the images acquired by the cameras; and determining the image identification of the cabinet image according to the acquisition time and the cabinet information.
In one embodiment, the processor when executing the computer program further performs the steps of:
and if the failure of the transmission of the cabinet image in any camera is detected, acquiring the cabinet image from the camera again.
In one embodiment, when the processor executes logic in the computer program to re-acquire the cabinet image from the camera, the following steps may be implemented:
acquiring failure time of cabinet image transmission failure; determining the acquisition time of the cabinet image according to the failure time and a preset uploading time interval; and re-acquiring the cabinet image from the camera according to the acquisition time.
The principles and processes of implementing the above-mentioned computer device in each embodiment may be referred to the description in the embodiment of the method for determining the state of the server in the machine room in the foregoing embodiment, which is not repeated herein.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
under the condition that the current time meets a preset inspection period, controlling each camera in a machine room to acquire cabinet images of a cabinet where a corresponding server is located;
acquiring cabinet images acquired by each camera;
And determining the running state of each server in the machine room according to each cabinet image.
In one embodiment, when the logic in the computer program for determining the running state of each server in the machine room is executed by the processor according to each cabinet image, the following steps may be implemented:
for any cabinet image, determining asset codes and running state indicator lamp colors of each server in the cabinet image according to the cabinet image; and determining the running state of each server according to each asset code and each running state indicator light color.
In one embodiment, the logic in the computer program for determining the operating status of each server based on each asset code and each operating status indicator light color, when executed by the processor, may implement the steps of:
acquiring server position information of each server; determining the asset coding accuracy of each server according to each asset code and the position information of each server; determining the color accuracy of the indicator lights of each server according to the color of each running state indicator light and the normal color of a preset indicator light; and determining the running state of each server according to the accuracy of each asset code and the accuracy of each indicator light color.
In one embodiment, the logic in the computer program for determining the operating status of each server based on each asset coding accuracy and each indicator light color accuracy may be implemented as follows:
for any server, if the asset coding accuracy of the server is that the asset coding is correct and the color accuracy of the indicator lights of the server is that the color of the indicator lights belongs to the normal color, determining that the running state of the server is the normal state; if the asset coding accuracy of the server is incorrect and/or the color accuracy of the indicator light of the server is that the color of the indicator light does not belong to the normal color, determining that the running state of the server is an abnormal state.
In one embodiment, the logic in the computer program for determining the asset coding accuracy of each server based on each asset code and each server location information, when executed by the processor, may implement the steps of:
acquiring an image identifier of a cabinet image; acquiring standard asset codes of all servers from an asset code storage library according to the position information and the image identifications of all servers; and determining the asset coding accuracy of each server according to each asset code and each standard asset code.
In one embodiment, the logic for acquiring the image identification of the cabinet image in the computer program, when executed by the processor, may implement the steps of:
acquiring acquisition time of a cabinet image and identification information of a camera for acquiring the cabinet image; and determining the image identification of the cabinet image according to the acquisition time and the identification information.
In one embodiment, the logic for determining the image identifier of the cabinet image according to the acquisition time and the identifier information in the computer program may implement the following steps when executed by the processor:
acquiring mapping relations between identification information of different cameras and cabinet information of images acquired by all cameras; determining cabinet information corresponding to the cameras according to the identification information and the mapping relation between the identification information of different cameras and cabinet information of the images acquired by the cameras; and determining the image identification of the cabinet image according to the acquisition time and the cabinet information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the failure of the transmission of the cabinet image in any camera is detected, acquiring the cabinet image from the camera again.
In one embodiment, the logic in the computer program to re-acquire the cabinet image from the camera is executed by the processor to implement the following steps:
Acquiring failure time of cabinet image transmission failure; determining the acquisition time of the cabinet image according to the failure time and a preset uploading time interval; and re-acquiring the cabinet image from the camera according to the acquisition time.
The principles and processes of implementing the foregoing embodiments of the computer readable storage medium may be referred to the description of the embodiments of the method for determining the state of a server in a machine room in the foregoing embodiments, which are not repeated herein.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
under the condition that the current time meets a preset inspection period, controlling each camera in a machine room to acquire cabinet images of a cabinet where a corresponding server is located;
acquiring cabinet images acquired by each camera;
and determining the running state of each server in the machine room according to each cabinet image.
In one embodiment, when the logic in the computer program for determining the running state of each server in the machine room is executed by the processor according to each cabinet image, the following steps may be implemented:
for any cabinet image, determining asset codes and running state indicator lamp colors of each server in the cabinet image according to the cabinet image; and determining the running state of each server according to each asset code and each running state indicator light color.
In one embodiment, the logic in the computer program for determining the operating status of each server based on each asset code and each operating status indicator light color, when executed by the processor, may implement the steps of:
acquiring server position information of each server; determining the asset coding accuracy of each server according to each asset code and the position information of each server; determining the color accuracy of the indicator lights of each server according to the color of each running state indicator light and the normal color of a preset indicator light; and determining the running state of each server according to the accuracy of each asset code and the accuracy of each indicator light color.
In one embodiment, the logic in the computer program for determining the operating status of each server based on each asset coding accuracy and each indicator light color accuracy may be implemented as follows:
for any server, if the asset coding accuracy of the server is that the asset coding is correct and the color accuracy of the indicator lights of the server is that the color of the indicator lights belongs to the normal color, determining that the running state of the server is the normal state; if the asset coding accuracy of the server is incorrect and/or the color accuracy of the indicator light of the server is that the color of the indicator light does not belong to the normal color, determining that the running state of the server is an abnormal state.
In one embodiment, the logic in the computer program for determining the asset coding accuracy of each server based on each asset code and each server location information, when executed by the processor, may implement the steps of:
acquiring an image identifier of a cabinet image; acquiring standard asset codes of all servers from an asset code storage library according to the position information and the image identifications of all servers; and determining the asset coding accuracy of each server according to each asset code and each standard asset code.
In one embodiment, the logic for acquiring the image identification of the cabinet image in the computer program, when executed by the processor, may implement the steps of:
acquiring acquisition time of a cabinet image and identification information of a camera for acquiring the cabinet image; and determining the image identification of the cabinet image according to the acquisition time and the identification information.
In one embodiment, the logic for determining the image identifier of the cabinet image according to the acquisition time and the identifier information in the computer program may implement the following steps when executed by the processor:
acquiring mapping relations between identification information of different cameras and cabinet information of images acquired by all cameras; determining cabinet information corresponding to the cameras according to the identification information and the mapping relation between the identification information of different cameras and cabinet information of the images acquired by the cameras; and determining the image identification of the cabinet image according to the acquisition time and the cabinet information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the failure of the transmission of the cabinet image in any camera is detected, acquiring the cabinet image from the camera again.
In one embodiment, the logic in the computer program to re-acquire the cabinet image from the camera is executed by the processor to implement the following steps:
acquiring failure time of cabinet image transmission failure; determining the acquisition time of the cabinet image according to the failure time and a preset uploading time interval; and re-acquiring the cabinet image from the camera according to the acquisition time.
The principles and processes of implementing the foregoing embodiments of the computer program product provided in the foregoing embodiments may be referred to in the foregoing embodiments of the method for determining a state of a server in a machine room, which are not described herein again.
The data (including, but not limited to, data for analysis, data stored, data presented, etc.) referred to in this application are information and data that are authorized or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.
Claims (13)
1. The method for determining the state of the server in the machine room is characterized by comprising the following steps:
under the condition that the current time meets a preset inspection period, controlling each camera in a machine room to acquire cabinet images of a cabinet where a corresponding server is located;
acquiring cabinet images acquired by the cameras;
and determining the running state of each server in the machine room according to each cabinet image.
2. The method of claim 1, wherein determining the operational status of each server in the machine room based on each cabinet image comprises:
for any cabinet image, determining asset codes and running state indicator lamp colors of each server in the cabinet image according to the cabinet image;
and determining the running state of each server according to each asset code and each running state indicator light color.
3. The method of claim 2, wherein said determining the operational status of each of said servers based on each of said asset codes and each of said operational status indicator colors comprises:
acquiring server position information of each server;
determining asset coding accuracy of each server according to each asset code and each server position information;
determining the color accuracy of the indicator lights of the servers according to the colors of the running state indicator lights and the preset normal colors of the indicator lights;
and determining the running state of each server according to the asset coding accuracy and the color accuracy of each indicator light.
4. The method of claim 3, wherein said determining an operational status of each of said servers based on each of said asset coding accuracy and each of said indicator light color accuracy comprises:
For any server, if the asset coding accuracy of the server is that the asset coding is correct and the color accuracy of the indicator lights of the server is that the color of the indicator lights is normal, determining that the running state of the server is normal;
and if the asset coding accuracy of the server is incorrect and/or the color accuracy of the indicator light of the server is that the color of the indicator light does not belong to the normal color, determining that the running state of the server is an abnormal state.
5. The method of claim 3, wherein said determining asset coding accuracy for each of said servers based on each of said asset codes and each of said server location information comprises:
acquiring an image identifier of the cabinet image;
acquiring standard asset codes of the servers from an asset code storage library according to the position information of the servers and the image identifications;
and determining the asset coding accuracy of each server according to each asset code and each standard asset code.
6. The method of claim 5, wherein the acquiring the image identification of the cabinet image comprises:
Acquiring acquisition time of the cabinet image and identification information of a camera for acquiring the cabinet image;
and determining the image identification of the cabinet image according to the acquisition time and the identification information.
7. The method of claim 6, wherein the determining the image identification of the cabinet image based on the acquisition time and the identification information comprises:
acquiring mapping relations between identification information of different cameras and cabinet information of images acquired by all cameras;
determining cabinet information corresponding to the cameras according to the identification information and the mapping relation between the identification information of the different cameras and cabinet information of the images acquired by the cameras;
and determining the image identification of the cabinet image according to the acquisition time and the cabinet information.
8. The method according to any one of claims 1-7, further comprising:
and if the failure of the transmission of the cabinet image in any camera is detected, acquiring the cabinet image from the camera again.
9. The method of claim 8, wherein the re-acquiring the cabinet image from the camera comprises:
Acquiring failure time of the cabinet image transmission failure;
determining the acquisition time of the cabinet image according to the failure time and a preset uploading time interval;
and re-acquiring the cabinet image from the camera according to the acquisition time.
10. A machine room server state determining apparatus, the apparatus comprising:
the image acquisition module is used for controlling each camera in the machine room to acquire cabinet images of the cabinet where the corresponding server is located under the condition that the current time is detected to meet the preset inspection period;
the image acquisition module is used for acquiring cabinet images acquired by the cameras;
and the state determining module is used for determining the running state of each server in the machine room according to each cabinet image.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 9 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 9.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311248039.0A CN117437437A (en) | 2023-09-26 | 2023-09-26 | Method, device, equipment, medium and program product for determining state of machine room server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311248039.0A CN117437437A (en) | 2023-09-26 | 2023-09-26 | Method, device, equipment, medium and program product for determining state of machine room server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117437437A true CN117437437A (en) | 2024-01-23 |
Family
ID=89545276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311248039.0A Pending CN117437437A (en) | 2023-09-26 | 2023-09-26 | Method, device, equipment, medium and program product for determining state of machine room server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117437437A (en) |
-
2023
- 2023-09-26 CN CN202311248039.0A patent/CN117437437A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112395157A (en) | Audit log obtaining method and device, computer equipment and storage medium | |
CN106371958A (en) | Server fault diagnosis system and method | |
CN115482340A (en) | Three-dimensional scene modeling method and device, computer equipment and storage medium | |
CN117155772B (en) | Alarm information enrichment method, device, equipment and storage medium | |
CN110324588B (en) | Video analysis warning event information storage method based on dictionary structure | |
CN115454781B (en) | Data visualization display method and system based on enterprise architecture system | |
CN117437437A (en) | Method, device, equipment, medium and program product for determining state of machine room server | |
CN117194191A (en) | Log monitoring alarm method, device, computer equipment and storage medium | |
CN116168462A (en) | Safety hidden danger identification method, device and equipment based on intelligent inspection equipment | |
CN114067964B (en) | Medical image data processing method, device, computer equipment and storage medium | |
CN114198863A (en) | Fault detection method and device for air conditioner in machine room, computer equipment and storage medium | |
CN114629690A (en) | Equipment safety baseline compliance detection method and device and computer equipment | |
CN117149481A (en) | Abnormality repairing method, abnormality repairing device, computer device and storage medium | |
CN116610664B (en) | Data monitoring method, device, computer equipment, storage medium and product | |
CN108052405A (en) | Method and device for checking spatial data | |
CN117097599B (en) | Network service detection method, device, computer equipment and storage medium | |
CN117194157A (en) | Monitoring index checking method, device, equipment, medium and program product | |
CN113225506B (en) | Video data analysis method and device | |
CN112835991B (en) | System, method, device and storage medium for monitoring data | |
CN117221171A (en) | Interface call abnormality detection method, device, computer equipment and storage medium | |
CN116577586A (en) | Power equipment fault monitoring method, device, computer equipment and storage medium | |
CN118646649A (en) | Node parameter management method, device, computer equipment, storage medium and product | |
CN118569989A (en) | Transaction abnormal data detection method, apparatus, computer device, readable storage medium, and program product | |
CN116094148A (en) | Distribution substation room state display method and device and nonvolatile storage medium | |
CN116860865A (en) | Data accuracy detection method, apparatus, device, storage medium, and program product |
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 |