Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device, and a medium for monitoring each component in a server operating mode, which can conveniently monitor a load condition of each component, improve convenience and efficiency of monitoring a utilization rate of each component, and ensure stability of an operation and maintenance system. The specific scheme is as follows:
a method for monitoring each component in a server working mode comprises the following steps:
detecting software installed and developed under an operating system detects the load condition of each component in real time and transmits the load condition to the BMC;
the BMC transmits the load condition of each part to a display device of a front panel of the chassis through a serial bus;
and the display device of the front panel of the case dynamically displays the load condition of each part.
Preferably, in the method for monitoring each component in the server operating mode provided in the embodiment of the present invention, the detecting software detects the load condition of each component in real time and transmits the load condition to the BMC, and specifically includes:
the detection software detects the load condition of each component in real time after calling the detection command of the operating system;
and the detection software transmits the detected load condition of each component to the BMC through the ipmi.
Preferably, in the method for monitoring each component in the server operating mode provided in the embodiment of the present invention, the method further includes:
the BMC sets a load threshold value of each component;
and when the load condition of each component exceeds the load threshold value, controlling a SEL or a system indicator lamp to alarm abnormally.
Preferably, in the method for monitoring each component in the server operating mode provided in the embodiment of the present invention, the method further includes:
and after receiving the load condition of each part, the BMC displays the utilization rate of each part through a BMC web interface.
Preferably, in the method for monitoring each component in the server operating mode provided in the embodiment of the present invention, the display device on the front panel of the chassis is a nixie tube or an LED lamp;
when the nixie tube is a five-digit nixie tube, the front three digits represent the utilization rate of each part, and the rear two digits represent the category of the part;
each LED lamp represents 5-10% of utilization rate, and the utilization rate and the component category of each component are distinguished according to different flashing heights and colors of the LED lamps.
Preferably, in the method for monitoring components in the server operating mode provided by the embodiment of the present invention, the serial bus includes I2C or GPIO.
The embodiment of the invention also provides a device for monitoring each component in the server working mode, which comprises:
the detection software is installed under the operating system and used for detecting the load condition of each part in real time and transmitting the load condition to the BMC;
the BMC is used for transmitting the load condition of each part to the display device of the front panel of the case through the serial bus;
and the display device of the front panel of the case is used for dynamically displaying the load condition of each part.
Preferably, in the monitoring device for each component in the server operating mode provided in the embodiment of the present invention, the BMC is further configured to set a load threshold of each component, and control the SEL or the system indicator to perform an abnormal alarm when the load condition of each component exceeds the load threshold.
The embodiment of the present invention further provides a monitoring device for each component in the server operating mode, which includes a processor and a memory, wherein when the processor executes a computer program stored in the memory, the monitoring device implements the monitoring method for each component in the server operating mode provided in the embodiment of the present invention.
The embodiment of the present invention further provides a computer-readable storage medium for storing a computer program, where the computer program, when executed by a processor, implements the method for monitoring each component in the above server operating mode, as provided in the embodiment of the present invention.
According to the technical scheme, the method for monitoring each part in the server working mode comprises the following steps: detecting software installed and developed under an operating system detects the load condition of each component in real time and transmits the load condition to the BMC; the BMC transmits the load condition of each part to a display device of a front panel of the case through a serial bus; and the display device of the front panel of the case dynamically displays the load condition of each part.
By the monitoring method provided by the invention, a customer maintainer can directly check the load state of each component through the state of the front panel of the case, so that the operation condition and the use condition of each component can be conveniently monitored, the monitoring method is flexible and efficient, friendly customer experience and problem solving timeliness are provided, the convenience and the efficiency of the maintainer in monitoring the utilization rate of each component can be further improved, the stability of an operation and maintenance system is ensured, and the market competitiveness is improved. In addition, the invention also provides a corresponding device, equipment and a computer readable storage medium aiming at the monitoring method, so that the monitoring method has higher practicability, and the device, the equipment and the computer readable storage medium have corresponding advantages.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The invention provides a method for monitoring each component in a server working mode, which comprises the following steps as shown in figure 1:
s101, detecting software installed and developed under an operating system detects the load condition of each component in real time and transmits the load condition to BMC;
in practical application, the components may include a CPU, a memory, a hard disk, a network card, an HDD, and the like;
s102, the BMC transmits the load condition of each part to a display device of a front panel of the case through a serial bus;
in practical application, the BMC is connected with a display device of a front panel of the chassis through a serial bus;
s103, dynamically displaying the load condition of each component by the display device of the front panel of the case.
It can be understood that by the monitoring method, during research and development or production, the load states of all parts of the case can be directly checked through the state of the front panel, the running states and the load conditions of all parts of the prototype can be more clearly identified, the method is convenient and efficient, and the convenience and the efficiency of monitoring the utilization rate of resources such as a CPU (central processing unit), an internal memory, a hard disk and the like in a server by maintenance personnel are improved.
In the method for monitoring each component in the server operating mode provided by the embodiment of the invention, firstly, detection software which is installed and developed under an operating system detects the load condition of each component in real time and transmits the load condition to the BMC; then, the BMC transmits the load condition of each part to a display device of a front panel of the case through a serial bus; and finally, the display device of the front panel of the case dynamically displays the load condition of each part. By using the monitoring method, a customer maintainer can directly check the load state of each part through the state of the front panel of the case, the operation condition and the use condition of each part are conveniently monitored, the monitoring method is flexible and efficient, friendly customer experience and problem solving timeliness are provided, the convenience and the efficiency of the maintainer in monitoring the utilization rate of each part can be improved, the stability of an operation and maintenance system is ensured, the product characteristics are increased, and the market competitiveness is improved.
In a specific implementation, in the method for monitoring each component in the server operating mode provided in the embodiment of the present invention, the step S101 of detecting the load condition of each component in real time by software and transmitting the load condition to the BMC specifically includes: the detection software detects the load condition of each component in real time after calling a detection command of the operating system, and transmits the detected load condition of each component to the BMC through the ipmi. Specifically, a developed APP program is installed under a prototype OS, and the program can record the load conditions of components such as a CPU, a memory, a hard disk, a network card and an HDD by calling a monitoring command of an operating system; the APP program communicates with the BMC through the network ipmi, and transmits the collected component use condition to the BMC.
Further, in a specific implementation, in the monitoring method for each component in the server operating mode provided in the embodiment of the present invention, after step S101 is executed, as shown in fig. 2, the method may further include:
s201, setting a load threshold value of each component by BMC; when the load condition of each component exceeds a load threshold value, the SEL or a system indicator lamp is controlled to give an abnormal alarm.
Further, in a specific implementation, in the method for monitoring each component in the server operating mode provided in the embodiment of the present invention, after performing step S101, as shown in fig. 2, the method may further include:
s202, after receiving the load condition of each component, the BMC displays the utilization rate of each component through a BMC web interface.
It should be noted that the order of step S102, step S103, step S201, and step S202 may be determined according to actual situations, and is not limited herein.
In specific implementation, in the method for monitoring each component in the server operating mode provided by the embodiment of the invention, the display device on the front panel of the chassis may be a nixie tube or an LED lamp; wherein, the nixie tube can be selected from four to five nixie tubes; when the nixie tube is a five-digit nixie tube, the first three digits represent the utilization rate of each part, and the last two digits represent the part category, such as a CPU (central processing unit) and a 02 memory when the nixie tube is 01, and the circular printing is carried out; each LED lamp represents 5-10% of utilization rate, and the utilization rate and the component category of each component are distinguished according to different flashing heights and colors of the LED lamps.
In a specific implementation, in the monitoring method for each component in the server operating mode provided by the embodiment of the present invention, the serial bus may include I2C or GPIO. Specifically, the BMC chip loads the collected components through I2C or GPIO, and the display device which is transmitted to the front panel of the chassis at regular time can be displayed in the form of a digital tube or an LED lamp.
It should be noted that the method can be associated with a cloud network, combines with corresponding software products, and sells together with a hardware server, thereby improving economic benefits. That is to say, the method can also be applied to other electronic products, can also be used for placing other identification parts of the server, or can be interconnected with cloud equipment, the load condition is transmitted to a mobile phone or a mailbox terminal of operation and maintenance personnel at regular time, and the operation and maintenance personnel can monitor the operation state of the server by using the mobile equipment at any time.
Based on the same inventive concept, the embodiment of the present invention further provides a monitoring device for each component in the server operating mode, and because the principle of solving the problem of the monitoring device is similar to the aforementioned monitoring method for each component in the server operating mode, the implementation of the monitoring device can refer to the implementation of the monitoring method for each component in the server operating mode, and repeated details are not repeated.
In specific implementation, the monitoring device for each component in the server operating mode provided by the embodiment of the present invention may specifically include:
the detection software is installed under the operating system and used for detecting the load condition of each part in real time and transmitting the load condition to the BMC;
the BMC is used for transmitting the load condition of each part to the display device of the front panel of the case through the serial bus;
and the display device of the front panel of the case is used for dynamically displaying the load condition of each part.
In the monitoring device for each component in the server working mode provided by the embodiment of the invention, the load condition of each component can be clearly identified through the interaction of the detection software, the BMC and the front panel of the case, the efficiency of monitoring the running state of the server by maintenance personnel is improved, the stable running of a machine is ensured, and the monitoring device is convenient and efficient.
Further, in specific implementation, in the monitoring device of each component in the server operating mode provided in the embodiment of the present invention, the BMC may be further configured to set a load threshold of each component, and control the SEL or the system indicator to perform an abnormal alarm when the load condition of each component exceeds the load threshold.
Correspondingly, the embodiment of the invention also discloses a monitoring device for each component in the server working mode, which comprises a processor and a memory; the monitoring method for each component in the server working mode disclosed in the foregoing embodiment is implemented when the processor executes the computer program stored in the memory.
For more specific processes of the above method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Further, the present invention also discloses a computer readable storage medium for storing a computer program; the computer program, when executed by the processor, implements the method for monitoring components in the server mode of operation disclosed above.
For more specific processes of the above method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the equipment and the storage medium disclosed by the embodiment correspond to the method disclosed by the embodiment, so that the description is relatively simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The embodiment of the invention provides a method for monitoring each component in a server working mode, which comprises the following steps: detecting software installed and developed under an operating system detects the load condition of each component in real time and transmits the load condition to the BMC; the BMC transmits the load condition of each part to a display device of a front panel of the case through a serial bus; and the display device of the front panel of the case dynamically displays the load condition of each part. Through the monitoring method, a customer maintainer can directly check the load state of each part through the state of the front panel of the case, the operation condition and the use condition of each part are conveniently monitored, the monitoring method is flexible and efficient, friendly customer experience and problem solving timeliness are provided, the convenience and the efficiency of the maintainer in monitoring the utilization rate of each part can be improved, the stability of an operation and maintenance system is ensured, and the market competitiveness is improved. In addition, the invention also provides a corresponding device, equipment and a storage medium aiming at the monitoring method, so that the monitoring method has higher practicability, and the device, the equipment and the storage medium have corresponding advantages.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, the device, the equipment and the medium for monitoring each component in the server working mode provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.