CN112527605A - Server management method and device based on IPMI - Google Patents
Server management method and device based on IPMI Download PDFInfo
- Publication number
- CN112527605A CN112527605A CN202011536369.6A CN202011536369A CN112527605A CN 112527605 A CN112527605 A CN 112527605A CN 202011536369 A CN202011536369 A CN 202011536369A CN 112527605 A CN112527605 A CN 112527605A
- Authority
- CN
- China
- Prior art keywords
- host
- ipmi
- state
- information
- acquisition
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a server management method and a device based on IPMI, wherein the method comprises the following steps: host management information and login information maintenance: the management information of the host server is entered and maintained, and the logging-in mode information of the host impi is maintained through the management of the acquisition template; host collection: respectively collecting host configuration information, sensor indexes, system log events and host state information through timing scheduling of a collection platform, and storing the collected host configuration information, sensor indexes, system log events and host state information in a database; and (3) displaying the monitoring data result of the host: and reading the management data and the acquisition data in the database, and displaying the management information of the host and the result state of each acquisition index item in a matrix list form. The method and the device can monitor the servers supporting the IPMI specification in real time, record hardware data and system event logs of the servers of various manufacturers, and provide monitoring state data of the page display server.
Description
Technical Field
The invention relates to the field of server monitoring management, in particular to a server management method and device based on IPMI.
Background
With the continuous development of information-based construction, the scale of the server system is also larger and larger. Under the environment, the traditional server monitoring management mode cannot meet the requirement of real-time management, and has the defects of poor timeliness, incapability of tracing the reason after the server crashes, more occupied system resources and the like.
Disclosure of Invention
In order to solve the problems in the traditional server monitoring management mode, the invention provides the IPMI-based server management method and the IPMI-based server management device, which are used for providing the input management of a host server, monitoring the servers supporting the IPMI standard in real time, recording the hardware data and the system event logs of the servers of various manufacturers and providing the monitoring state data of a page display server.
In order to achieve the purpose, the invention adopts the following technical scheme:
in an embodiment of the present invention, an IPMI-based server management method is provided, where the method includes:
host management information and login information maintenance: the management information of the host server is entered and maintained, and the logging-in mode information of the host impi is maintained through the management of the acquisition template;
host collection: respectively collecting host configuration information, sensor indexes, system log events and host state information through timing scheduling of a collection platform, and storing the collected host configuration information, sensor indexes, system log events and host state information in a database;
and (3) displaying the monitoring data result of the host: and reading the management data and the acquisition data in the database, and displaying the management information of the host and the result state of each acquisition index item in a matrix list form.
Further, the maintenance of the host management information and the login information is subdivided into two substeps:
the method for recording and maintaining the host management information comprises the following steps:
(1) calling a host management information storage service interface, and storing the input data in the newly added/modified host page in a database;
(2) calling a batch import host management information storage service interface, and storing batch import file data in a database;
(3) the interface reads the host management information stored in the database through a host inquiry service interface and displays the host management information in a list form;
(4) for the selected host management information, the interface calls a host deletion service interface, and records in the database are cleared;
the entry maintenance of the host login information comprises the following steps:
(1) calling a host acquisition template service interface, and storing login mode information of the host ipmi, including a user name and a password, in a database;
(2) the interface reads the host ipmi login mode information stored in the database through a host acquisition template service interface, and displays the host ipmi login mode information in a list form.
Further, the host configuration information collection comprises:
and calling through a restful instant interface, executing an ipmi command to obtain the manufacturer, the model and the serial number of the host, and storing the ipmi command in a database.
Further, sensor index acquisition, including:
and scheduling a sensor index acquisition service interface at regular time, executing an ipmi command to acquire the temperature, the voltage and each sensor index data of the fan, and storing the sensor index data in the ES.
Further, system log event collection, comprising:
and scheduling the sensor index acquisition service interface at regular time, executing an ipmi command to acquire system event log data, and storing the system event log data in an ES (electronic storage system).
Further, the host state information collection comprises:
and scheduling an online state acquisition service interface at regular time, executing an impi command to acquire an online state, and storing the online state in the ES.
Further, the host monitors data result presentation, including:
calling a host monitoring data result query service interface, acquiring management information of the host, and state results and online states of all monitoring indexes, and displaying the management information, the state results and the online states on the interface in a list form; the severity of the state result is distinguished by indicator lights with different colors, wherein the red light is abnormal, the state result is E, the yellow light is warning, the state result is U, the gray light is failed in collection, the state result is F, the green light is normal, and the state result is S.
Further, the calculation rule of the state result is as follows:
when a certain sensor monitoring index of the host is smaller than a serious low valve or larger than a serious high valve, counting as abnormal, and recording a state result as E;
when a certain sensor monitoring index of the host is smaller than a non-severe low valve or larger than a non-severe high valve, counting as warning, and recording a state result as U;
if no host index data exists, counting as acquisition failure, and recording a state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time exceeds one day, counting as acquisition failure and recording the state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time is not more than one day, skipping to not process;
and if the conditions are not met, counting to be normal, and recording the state result as S.
In an embodiment of the present invention, an IPMI-based server management apparatus is further provided, including:
the host management information and login information maintenance module is used for inputting and maintaining the management information of the host server and maintaining the host impi login mode information through template collection management;
the host acquisition module is used for respectively acquiring the host configuration information, the sensor index, the system log event and the host state information through the timing scheduling of the acquisition platform and storing the host configuration information, the sensor index, the system log event and the host state information in a database;
and the host computer monitoring data result presentation module is used for reading the management data and the acquired data in the database and displaying the management information of the host computer and the result state of each acquisition index item in a matrix list form.
Further, the host management information and login information maintenance module is subdivided into two sub-modules:
the recording maintenance submodule of the host management information is specifically used for:
(1) calling a host management information storage service interface, and storing the input data in the newly added/modified host page in a database;
(2) calling a batch import host management information storage service interface, and storing batch import file data in a database;
(3) the interface reads the host management information stored in the database through a host inquiry service interface and displays the host management information in a list form;
(4) for the selected host management information, the interface calls a host deletion service interface, and records in the database are cleared;
the entry maintenance submodule of the host login information is specifically used for:
(1) calling a host acquisition template service interface, and storing login mode information of the host ipmi, including a user name and a password, in a database;
(2) the interface reads the host ipmi login mode information stored in the database through a host acquisition template service interface, and displays the host ipmi login mode information in a list form.
Further, the host configuration information collection comprises:
and calling through a restful instant interface, executing an ipmi command to obtain the manufacturer, the model and the serial number of the host, and storing the ipmi command in a database.
Further, sensor index acquisition, including:
and scheduling a sensor index acquisition service interface at regular time, executing an ipmi command to acquire the temperature, the voltage and each sensor index data of the fan, and storing the sensor index data in the ES.
Further, system log event collection, comprising:
and scheduling the sensor index acquisition service interface at regular time, executing an ipmi command to acquire system event log data, and storing the system event log data in an ES (electronic storage system).
Further, the host state information collection comprises:
and scheduling an online state acquisition service interface at regular time, executing an impi command to acquire an online state, and storing the online state in the ES.
Further, the host computer monitors the data result presentation module, and is specifically configured to:
calling a host monitoring data result query service interface, acquiring management information of the host, and state results and online states of all monitoring indexes, and displaying the management information, the state results and the online states on the interface in a list form; the severity of the state result is distinguished by indicator lights with different colors, wherein the red light is abnormal, the state result is E, the yellow light is warning, the state result is U, the gray light is failed in collection, the state result is F, the green light is normal, and the state result is S.
Further, the calculation rule of the state result is as follows:
when a certain sensor monitoring index of the host is smaller than a serious low valve or larger than a serious high valve, counting as abnormal, and recording a state result as E;
when a certain sensor monitoring index of the host is smaller than a non-severe low valve or larger than a non-severe high valve, counting as warning, and recording a state result as U;
if no host index data exists, counting as acquisition failure, and recording a state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time exceeds one day, counting as acquisition failure and recording the state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time is not more than one day, skipping to not process;
and if the conditions are not met, counting to be normal, and recording the state result as S.
In an embodiment of the present invention, a computer device is further provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the IPMI-based server management method is implemented.
In an embodiment of the present invention, a computer-readable storage medium storing a computer program for executing the IPMI-based server management method is also presented.
Has the advantages that:
1. as long as the server is connected with a power supply and the network is accessible, the invention can monitor various performances of the server in real time regardless of the state of an operating system.
2. When the monitored server has abnormal events such as exceeding a threshold and the like, the status indicator lamps with different colors are used for marking, so that a user can timely find and eliminate possible faults of the system, the server is ensured to operate stably and reliably for a long time, and the operation and maintenance cost of the user is effectively reduced.
Drawings
FIG. 1 is a flowchart illustrating a method for IPMI based server management according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an IPMI based server management apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described below with reference to several exemplary embodiments, which should be understood to be presented only to enable those skilled in the art to better understand and implement the present invention, and not to limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, the IPMI-based server management method and the IPMI-based server management device are provided, which support the input function of servers of different manufacturers and perform centralized and unified management on a large number of scattered servers. The user can access the device through the network at any place to monitor the managed host server in real time. And analyzing the state and the fault of the server and confirming the fault reason from the acquired system log event and the sensor index record.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Fig. 1 is a flowchart illustrating a method for managing a server based on IPMI according to an embodiment of the present invention. As shown in fig. 1, the method can be generally divided into three steps: host management information and login information maintenance, host collection and host monitoring data result presentation. The method comprises the following specific steps:
1. host management information and login information maintenance: and inputting and maintaining the management information of the host server, and maintaining the host impi login mode information through template management.
2. Host collection: and respectively acquiring the configuration information of the host, the sensor index, the system log event and the state information of the host by timing scheduling of the acquisition platform, and storing the acquired information in a database.
3. And (3) displaying the monitoring data result of the host: and reading the management data and the acquisition data in the database, and displaying the management information of the host and the result state of each acquisition index item in a matrix list form.
It should be noted that although the operations of the method of the present invention have been described in the above embodiments and the accompanying drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the operations shown must be performed, to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
For a clearer explanation of the IPMI-based server management method, a specific embodiment is described below, but it should be noted that the embodiment is only for better explaining the present invention and is not to be construed as an inappropriate limitation to the present invention.
The processing logic of each step is described below:
1. the maintenance of the host management information and the login information can be subdivided into two substeps:
the method for recording and maintaining the host management information comprises the following steps:
(1) and calling a host management information storage service interface, and storing the input data in the newly added/modified host page in a database.
(2) And calling a batch import host management information storage service interface, and storing the batch import file data in a database.
(3) The interface reads the host management information stored in the database through the host inquiry service interface and displays the host management information in a list form.
(4) For the selected host management information, the interface can call the host deletion service interface, and records in the database are cleared.
The entry maintenance of the host login information comprises the following steps:
(1) and calling a host acquisition template service interface, and storing login mode information (comprising a user name and a password) of the host ipmi in a database.
(2) The interface reads the host ipmi login mode information stored in the database through a host acquisition template service interface, and displays the host ipmi login mode information in a list form.
2. Host collection:
(1) acquiring configuration information of a host:
the host manufacturer, the model and the serial number can be obtained by calling through a restful instant interface and executing an ipmi command ipmitool-I lan plus-H192.168.118.213-U admin-P admin fru list, and the host manufacturer, the model and the serial number are stored in a database. For example:
-bash-4.1#ipmitool-I lanplus-H 192.168.130.134-U root-P zyuc@2017fru list
--mgmtip、ipmiusername、ipmipasswd
FRU Device Description:Builtin FRU Device(ID 0)
Board Mfg Date:Fri Jan 1522:03:002016
Board Mfg:DELL
Board Product:PowerEdge R730
Board Serial:CN7016361D0006
Board Part Number:0H21J3A13
product Manufacturer DELL// host Manufacturer
Product Name PowerEdge R730// host model
Product Version:01
Product Serial 220KDB2// host Serial number
(2) And (3) acquiring sensor indexes:
and scheduling a sensor index acquisition service interface (restful) at fixed time, executing an ipmi command ipmitool-I lan plus-H192.168.118.213-U admin-P admin sensor list to acquire each sensor index data of temperature, voltage and fan, and storing the sensor index data in an ES. For example:
ipmitool-I lanplus-H 192.168.118.213-U admin-P admin sensor list
CPU0_Temp|35.000|degrees C|ok|na|na|na|86.000|88.000|na
the meaning of// in the following order is: sensor, reading, hardware type, status, irreversible low threshold, severe low threshold, non-severe high threshold, irreversible high threshold. Wherein, degree C represents temperature, Volts represents voltage, RPM represents fan
CPU1_Temp|35.000|degrees C|ok|na|na|na|86.000|88.000|na
SYS_VCCIO|0.950|Volts|ok|0.690|0.770|0.850|1.170|1.250|1.330
SYS_12V|12.126|Volts|ok|9.024|9.776|10.528|13.536|14.288|15.040
(3) Collecting system log events:
and scheduling a sensor index acquisition service interface (restful) at a fixed time, executing an ipmi command ipmitool-I landplus-H192.168.118.213-U admin-P admin sel list to obtain a system log event, and storing the system log event in an ES. For example:
1|05/14/2019|14:58:44|Event Logging Disabled#0x9f|Log area reset/cleared|Asserted
2|05/14/2019|14:59:29|OS Stop/Shutdown#0xcd|OS graceful shutdown|Asserted
3|05/14/2019|14:59:29|System ACPI Power State#0x90|Legacy OFF state|Asserted
4|Pre-Init Time-stamp|OS Stop/Shutdown#0xcd|OS graceful shutdown|Asserted
5|Pre-Init Time-stamp|System ACPI Power State#0x90|Legacy OFF state|Asserted
(4) collecting host state information:
and scheduling a presence state acquisition service interface (restful) at regular time, executing an impi command ipmitool-I lan plus-H192.168.118.213-U admin-P admin power status to acquire a presence state, and storing the presence state in the ES. For example:
if the execution result is the chassis Power is on, the starting (online) is indicated; if the result is "Chassis Power is off", it indicates shutdown (not online).
3. And (3) displaying the monitoring data result of the host:
and calling a host monitoring data result query service interface, acquiring management information of the host, state results of all monitoring indexes, online state and other data, and displaying the data on the interface in a list form. The status result status uses the indicator lights with different colors to distinguish the severity of the status result status, and is used for reminding the user that the index may have abnormality and needs to be checked. The red light is abnormal (the state result is E), the yellow light is warning (the state result is U), the gray light is failed in collection (the state result is F), and the green light is normal (the state result is S). The calculation rule of the state result status refers to the following:
(1) a status is counted as E when a certain sensor monitoring indicator (SensorValues) of the host is less than a severe low valve (severlowthreshold) or greater than a severe high valve (sevehigh threshold).
(2) A warning is counted when a certain sensor monitoring indicator (SensorValues) of the host is less than a non-severe low valve (nonserverelowthreshold) or greater than a non-severe high valve (nonserverehighthreshold), and status is recorded as U.
(3) If no host index data exists, the statistics is collection failure, and status is recorded as F.
(4) If the collection time of the host index data (namely rtime of redis) is consistent with the checktime collected last time and the difference between the collection time (namely rtime of redis) and the system time exceeds one day, the collection is counted as failure, and status is recorded as F.
(5) And if the collection time of the host index data (namely rtime of redis) is consistent with the checktime collected last time and the difference between the collection time (namely rtime of redis) and the system time is not more than one day, skipping to not process.
(6) If the above conditions are not satisfied, the statistics are normal, and status is recorded as S.
Note: monitoring states of all collected indexes of the host are as follows: and judging according to the monitoring index states E, U, F and S of the sensors.
Based on the same invention concept, the invention also provides a server management device based on the IPMI. The implementation of the device can be referred to the implementation of the method, and repeated details are not repeated. The term "module," as used below, may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
FIG. 2 is a schematic diagram of an IPMI based server management apparatus according to an embodiment of the present invention. As shown in fig. 2, the apparatus can be roughly divided into three functional modules: the system comprises a host management information and login information maintenance module, a host acquisition module and a host monitoring data result presentation module. The specific functions are as follows:
the host management information and login information maintenance module 101 is used for inputting and maintaining the management information of the host server and maintaining the login mode information of the host impi through template collection management;
the host acquisition module 102 is used for respectively acquiring host configuration information, sensor indexes, system log events and host state information through timing scheduling of an acquisition platform and storing the information in a database;
and the host monitoring data result presenting module 103 is used for reading the management data and the acquired data in the database, and displaying the management information of the host and the result state of each acquisition index item in a matrix list form.
The processing logic of each functional module is described below:
the host management information and login information maintenance module 101 is subdivided into two sub-modules:
the recording maintenance submodule of the host management information is specifically used for:
(1) calling a host management information storage service interface, and storing the input data in the newly added/modified host page in a database;
(2) calling a batch import host management information storage service interface, and storing batch import file data in a database;
(3) the interface reads the host management information stored in the database through a host inquiry service interface and displays the host management information in a list form;
(4) for the selected host management information, the interface calls a host deletion service interface, and records in the database are cleared;
the entry maintenance submodule of the host login information is specifically used for:
(1) calling a host acquisition template service interface, and storing login mode information of the host ipmi, including a user name and a password, in a database;
(2) the interface reads the host ipmi login mode information stored in the database through a host acquisition template service interface, and displays the host ipmi login mode information in a list form.
The host acquisition module 102:
the host configuration information acquisition comprises the following steps:
and calling through a restful instant interface, executing an ipmi command to obtain the manufacturer, the model and the serial number of the host, and storing the ipmi command in a database.
Sensor index acquisition, including:
and scheduling a sensor index acquisition service interface at regular time, executing an ipmi command to acquire the temperature, the voltage and each sensor index data of the fan, and storing the sensor index data in the ES.
System log event collection, comprising:
and scheduling the sensor index acquisition service interface at regular time, executing an ipmi command to acquire system event log data, and storing the system event log data in an ES (electronic storage system).
Host state information acquisition, including:
and scheduling an online state acquisition service interface at regular time, executing an impi command to acquire an online state, and storing the online state in the ES.
The host monitoring data result presenting module 103 is specifically configured to:
calling a host monitoring data result query service interface, acquiring management information of the host, and state results and online states of all monitoring indexes, and displaying the management information, the state results and the online states on the interface in a list form; the severity of the state result is distinguished by indicator lights with different colors, wherein the red light is abnormal, the state result is E, the yellow light is warning, the state result is U, the gray light is failed in collection, the state result is F, the green light is normal, and the state result is S.
The calculation rule of the state result is as follows:
when a certain sensor monitoring index of the host is smaller than a serious low valve or larger than a serious high valve, counting as abnormal, and recording a state result as E;
when a certain sensor monitoring index of the host is smaller than a non-severe low valve or larger than a non-severe high valve, counting as warning, and recording a state result as U;
if no host index data exists, counting as acquisition failure, and recording a state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time exceeds one day, counting as acquisition failure and recording the state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time is not more than one day, skipping to not process;
and if the conditions are not met, counting to be normal, and recording the state result as S.
Note: monitoring states of all collected indexes of the host are as follows: and judging according to the monitoring index states E, U, F and S of the sensors.
It should be noted that although several modules of the IPMI-based server management apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module according to embodiments of the invention. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Based on the aforementioned inventive concept, as shown in fig. 3, the present invention further provides a computer apparatus 200, which includes a memory 210, a processor 220, and a computer program 230 stored on the memory 210 and operable on the processor 220, wherein the processor 220 implements the aforementioned IPMI-based server management method when executing the computer program 230.
Based on the foregoing inventive concept, the present invention also provides a computer-readable storage medium storing a computer program for executing the foregoing IPMI-based server management method.
The IPMI-based server management method and the IPMI-based server management device provided by the invention can monitor various performances of the server in real time no matter the state of an operating system as long as the server is connected with a power supply and a network is accessible. When the monitored server has abnormal events such as exceeding a threshold and the like, the status indicator lamps with different colors are used for marking, so that a user can timely find and eliminate possible faults of the system, the server is ensured to operate stably and reliably for a long time, and the operation and maintenance cost of the user is effectively reduced.
IPMI is described as follows:
ipmi (intelligent Platform Management interface), which is a new generation of universal interface standard for making hardware Management "intelligent". The IPMI may be used by a user to monitor physical characteristics of the server, such as temperature, voltage, fan operating conditions, power supply, and chassis intrusion. The IPMI is most advantageous in that it is independent of the CPU BIOS and OS, so that the user can monitor the server by powering on the power supply regardless of the power-on or power-off state. IPMI is a standard of specification, wherein the most important physical component is BMC (baseboard Management controller), an embedded Management microcontroller, which is equivalent to the "brain" managed by the whole platform, and by means of BMC, IPMI can monitor the data of each sensor and record the log of various events.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
The limitation of the protection scope of the present invention is understood by those skilled in the art, and various modifications or changes which can be made by those skilled in the art without inventive efforts based on the technical solution of the present invention are still within the protection scope of the present invention.
Claims (18)
1. A server management method based on IPMI is characterized by comprising the following steps:
host management information and login information maintenance: the management information of the host server is entered and maintained, and the logging-in mode information of the host impi is maintained through the management of the acquisition template;
host collection: respectively collecting host configuration information, sensor indexes, system log events and host state information through timing scheduling of a collection platform, and storing the collected host configuration information, sensor indexes, system log events and host state information in a database;
and (3) displaying the monitoring data result of the host: and reading the management data and the acquisition data in the database, and displaying the management information of the host and the result state of each acquisition index item in a matrix list form.
2. The IPMI-based server management method of claim 1, wherein the host management information and login information maintenance are subdivided into two sub-steps:
the method for recording and maintaining the host management information comprises the following steps:
(1) calling a host management information storage service interface, and storing the input data in the newly added/modified host page in a database;
(2) calling a batch import host management information storage service interface, and storing batch import file data in a database;
(3) the interface reads the host management information stored in the database through a host inquiry service interface and displays the host management information in a list form;
(4) for the selected host management information, the interface calls a host deletion service interface, and records in the database are cleared;
the entry maintenance of the host login information comprises the following steps:
(1) calling a host acquisition template service interface, and storing login mode information of the host ipmi, including a user name and a password, in a database;
(2) the interface reads the host ipmi login mode information stored in the database through a host acquisition template service interface, and displays the host ipmi login mode information in a list form.
3. The IPMI-based server management method of claim 1, wherein the host configuration information collection comprises:
and calling through a restful instant interface, executing an ipmi command to obtain the manufacturer, the model and the serial number of the host, and storing the ipmi command in a database.
4. The IPMI-based server management method of claim 1, wherein the sensor index collection comprises:
and scheduling a sensor index acquisition service interface at regular time, executing an ipmi command to acquire the temperature, the voltage and each sensor index data of the fan, and storing the sensor index data in the ES.
5. The IPMI-based server management method of claim 1, wherein the system log event collection comprises:
and scheduling the sensor index acquisition service interface at regular time, executing an ipmi command to acquire system event log data, and storing the system event log data in an ES (electronic storage system).
6. The IPMI-based server management method of claim 1, wherein the host state information collection comprises:
and scheduling an online state acquisition service interface at regular time, executing an impi command to acquire an online state, and storing the online state in the ES.
7. The IPMI-based server management method of claim 1, wherein the host monitors data result presentation comprising:
calling a host monitoring data result query service interface, acquiring management information of the host, and state results and online states of all monitoring indexes, and displaying the management information, the state results and the online states on the interface in a list form; the severity of the state result is distinguished by indicator lights with different colors, wherein the red light is abnormal, the state result is E, the yellow light is warning, the state result is U, the gray light is failed in collection, the state result is F, the green light is normal, and the state result is S.
8. The IPMI-based server management method of claim 7, wherein the calculation rule of the state result is as follows:
when a certain sensor monitoring index of the host is smaller than a serious low valve or larger than a serious high valve, counting as abnormal, and recording a state result as E;
when a certain sensor monitoring index of the host is smaller than a non-severe low valve or larger than a non-severe high valve, counting as warning, and recording a state result as U;
if no host index data exists, counting as acquisition failure, and recording a state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time exceeds one day, counting as acquisition failure and recording the state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time is not more than one day, skipping to not process;
and if the conditions are not met, counting to be normal, and recording the state result as S.
9. An IPMI-based server management apparatus, comprising:
the host management information and login information maintenance module is used for inputting and maintaining the management information of the host server and maintaining the host impi login mode information through template collection management;
the host acquisition module is used for respectively acquiring the host configuration information, the sensor index, the system log event and the host state information through the timing scheduling of the acquisition platform and storing the host configuration information, the sensor index, the system log event and the host state information in a database;
and the host computer monitoring data result presentation module is used for reading the management data and the acquired data in the database and displaying the management information of the host computer and the result state of each acquisition index item in a matrix list form.
10. The IPMI-based server management apparatus of claim 9, wherein the host management information and login information maintenance module is subdivided into two sub-modules:
the recording maintenance submodule of the host management information is specifically used for:
(1) calling a host management information storage service interface, and storing the input data in the newly added/modified host page in a database;
(2) calling a batch import host management information storage service interface, and storing batch import file data in a database;
(3) the interface reads the host management information stored in the database through a host inquiry service interface and displays the host management information in a list form;
(4) for the selected host management information, the interface calls a host deletion service interface, and records in the database are cleared;
the entry maintenance submodule of the host login information is specifically used for:
(1) calling a host acquisition template service interface, and storing login mode information of the host ipmi, including a user name and a password, in a database;
(2) the interface reads the host ipmi login mode information stored in the database through a host acquisition template service interface, and displays the host ipmi login mode information in a list form.
11. The IPMI-based server management apparatus of claim 9, wherein the host configuration information collection comprises:
and calling through a restful instant interface, executing an ipmi command to obtain the manufacturer, the model and the serial number of the host, and storing the ipmi command in a database.
12. The IPMI-based server management apparatus of claim 9, wherein the sensor index collection comprises:
and scheduling a sensor index acquisition service interface at regular time, executing an ipmi command to acquire the temperature, the voltage and each sensor index data of the fan, and storing the sensor index data in the ES.
13. The IPMI-based server management apparatus of claim 9, wherein the system log event collection comprises:
and scheduling the sensor index acquisition service interface at regular time, executing an ipmi command to acquire system event log data, and storing the system event log data in an ES (electronic storage system).
14. The IPMI-based server management apparatus of claim 9, wherein the host state information collection comprises:
and scheduling an online state acquisition service interface at regular time, executing an impi command to acquire an online state, and storing the online state in the ES.
15. The IPMI-based server management apparatus of claim 9, wherein the host monitor data result presenting module is specifically configured to:
calling a host monitoring data result query service interface, acquiring management information of the host, and state results and online states of all monitoring indexes, and displaying the management information, the state results and the online states on the interface in a list form; the severity of the state result is distinguished by indicator lights with different colors, wherein the red light is abnormal, the state result is E, the yellow light is warning, the state result is U, the gray light is failed in collection, the state result is F, the green light is normal, and the state result is S.
16. The IPMI-based server management apparatus of claim 15, wherein the calculation rule of the state result is as follows:
when a certain sensor monitoring index of the host is smaller than a serious low valve or larger than a serious high valve, counting as abnormal, and recording a state result as E;
when a certain sensor monitoring index of the host is smaller than a non-severe low valve or larger than a non-severe high valve, counting as warning, and recording a state result as U;
if no host index data exists, counting as acquisition failure, and recording a state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time exceeds one day, counting as acquisition failure and recording the state result as F;
if the acquisition time of the host index data is consistent with the last acquired checktime and the difference between the acquisition time and the system time is not more than one day, skipping to not process;
and if the conditions are not met, counting to be normal, and recording the state result as S.
17. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-8 when executing the computer program.
18. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011536369.6A CN112527605A (en) | 2020-12-23 | 2020-12-23 | Server management method and device based on IPMI |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011536369.6A CN112527605A (en) | 2020-12-23 | 2020-12-23 | Server management method and device based on IPMI |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112527605A true CN112527605A (en) | 2021-03-19 |
Family
ID=74976045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011536369.6A Pending CN112527605A (en) | 2020-12-23 | 2020-12-23 | Server management method and device based on IPMI |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112527605A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113311754A (en) * | 2021-05-26 | 2021-08-27 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | BMC management system of power module based on GD32 singlechip |
CN113505165A (en) * | 2021-07-05 | 2021-10-15 | 曙光信息产业(北京)有限公司 | Sensor data processing method and device, computer equipment and storage medium |
TWI782766B (en) * | 2021-10-26 | 2022-11-01 | 神雲科技股份有限公司 | Ipmi and redfish account synchronization method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471973A (en) * | 2015-11-18 | 2016-04-06 | 深圳云联讯数据科技有限公司 | Remote monitoring method and remote monitoring system based on indicating lamp color of monitored object |
CN110543409A (en) * | 2019-08-29 | 2019-12-06 | 南方电网数字电网研究院有限公司 | Hardware data acquisition method and device, computer equipment and storage medium |
CN110597681A (en) * | 2019-04-26 | 2019-12-20 | 贵州广思信息网络有限公司 | Server hardware monitoring system |
US10831467B2 (en) * | 2018-10-25 | 2020-11-10 | American Megatrends International, Llc | Techniques of updating host device firmware via service processor |
-
2020
- 2020-12-23 CN CN202011536369.6A patent/CN112527605A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471973A (en) * | 2015-11-18 | 2016-04-06 | 深圳云联讯数据科技有限公司 | Remote monitoring method and remote monitoring system based on indicating lamp color of monitored object |
US10831467B2 (en) * | 2018-10-25 | 2020-11-10 | American Megatrends International, Llc | Techniques of updating host device firmware via service processor |
CN110597681A (en) * | 2019-04-26 | 2019-12-20 | 贵州广思信息网络有限公司 | Server hardware monitoring system |
CN110543409A (en) * | 2019-08-29 | 2019-12-06 | 南方电网数字电网研究院有限公司 | Hardware data acquisition method and device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
李娜: "基于IPMI技术的服务器管理系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113311754A (en) * | 2021-05-26 | 2021-08-27 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | BMC management system of power module based on GD32 singlechip |
CN113505165A (en) * | 2021-07-05 | 2021-10-15 | 曙光信息产业(北京)有限公司 | Sensor data processing method and device, computer equipment and storage medium |
TWI782766B (en) * | 2021-10-26 | 2022-11-01 | 神雲科技股份有限公司 | Ipmi and redfish account synchronization method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112527605A (en) | Server management method and device based on IPMI | |
US10698788B2 (en) | Method for monitoring server, and monitoring device and monitoring system using the same | |
CN111444031B (en) | Server fault early warning method and device, computer equipment and storage medium | |
US7590522B2 (en) | Virtual mass storage device for server management information | |
US10606725B2 (en) | Monitor peripheral device based on imported data | |
US9954727B2 (en) | Automatic debug information collection | |
US6742141B1 (en) | System for automated problem detection, diagnosis, and resolution in a software driven system | |
US8171174B2 (en) | Out-of-band characterization of server utilization via remote access card virtual media for auto-enterprise scaling | |
US9553776B2 (en) | System and method for accessing operating system and hypervisors via a service processor of a server | |
US9379944B2 (en) | Computer system, computer system information processing method, and information processing program | |
US20240020017A1 (en) | Monitoring method and apparatus for electronic device, and electronic device | |
KR102526368B1 (en) | Server management system supporting multi-vendor | |
CN113434356A (en) | Method and system for automatically detecting and alerting computing device component changes | |
WO2004081920A2 (en) | Policy-based response to system errors occuring during os runtime | |
CN104063301A (en) | Monitoring method and device | |
CN113708986A (en) | Server monitoring apparatus, method and computer-readable storage medium | |
JP2017091077A (en) | Pseudo-fault generation program, generation method, and generator | |
CN111625386A (en) | Monitoring method and device for power-on overtime of system equipment | |
CN113311754A (en) | BMC management system of power module based on GD32 singlechip | |
CN114911578A (en) | Storage system monitoring and fault collecting method and device, terminal and storage medium | |
Huffman | Windows Performance Analysis Field Guide | |
CN114138600A (en) | Storage method, device, equipment and storage medium for firmware key information | |
CN113626278A (en) | Hardware topology generation method and related equipment thereof | |
CN110119370A (en) | A kind of VR chip controls method and system based on PECI bus | |
JP6477524B2 (en) | Server device, screen information acquisition method, and BMC |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210319 |