CN109408266A - A kind of determination method and apparatus of Restart Type - Google Patents

A kind of determination method and apparatus of Restart Type Download PDF

Info

Publication number
CN109408266A
CN109408266A CN201811164620.3A CN201811164620A CN109408266A CN 109408266 A CN109408266 A CN 109408266A CN 201811164620 A CN201811164620 A CN 201811164620A CN 109408266 A CN109408266 A CN 109408266A
Authority
CN
China
Prior art keywords
restart type
event information
event
restart
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811164620.3A
Other languages
Chinese (zh)
Other versions
CN109408266B (en
Inventor
张建业
宋晓锋
张锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811164620.3A priority Critical patent/CN109408266B/en
Publication of CN109408266A publication Critical patent/CN109408266A/en
Application granted granted Critical
Publication of CN109408266B publication Critical patent/CN109408266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3031Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a motherboard or an expansion card
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Abstract

The embodiment of the invention discloses a kind of determination methods of Restart Type, comprising: when detecting object event, obtains event triggering command, wherein includes object event information in the event triggering command;The corresponding target Restart Type of the object event information is determined according to event information set and the incidence relation of Restart Type set, wherein, the event information set includes at least one event information, the Restart Type set includes at least one Restart Type, each described event information is corresponding with a Restart Type, and the target Restart Type belongs to one in the Restart Type set.The embodiment of the invention also discloses a kind of determining devices of Restart Type.The embodiment of the present invention determines the corresponding target Restart Type of the object event information by event information set and the incidence relation of Restart Type set, so that operation maintenance personnel other than getting BMC and the record restarted occurred, can also get the Restart Type of BMC.

Description

A kind of determination method and apparatus of Restart Type
Technical field
The present invention relates to the determination method and apparatus of field of communication technology more particularly to a kind of Restart Type.
Background technique
Baseboard Management Controller (baseboard management controller, BMC) by with the difference on mainboard Sensor communication comes whether monitoring system has a matters of aggravation, and sounds an alarm when certain parameters exceed its preset threshold value and log Event.When BMC itself is abnormal, BMC can save the relative recording of these reboot events.
However, each BMC Restart Type, is corresponding with different BMC Exception Types, only using aforesaid way operation maintenance personnel The record that BMC occurred to restart can be got, the type that BMC is restarted cannot be but got, further can not also navigate to BMC's Exception Type.
Summary of the invention
The embodiment of the invention provides a kind of determination method and apparatus of Restart Type, BMC is detecting object event (weight Open) when be triggered and obtain event triggering command, and being determined by the incidence relation of event information set and Restart Type set should The corresponding target Restart Type of object event information, so that operation maintenance personnel other than getting BMC and the record restarted occurred, is gone back The available Restart Type to BMC.
The first aspect of the present invention provides a kind of determination method of Restart Type, and this method is controlled applied to baseboard management Device, this method comprises:
When detecting object event, event triggering command is obtained, wherein include object event in the event triggering command Information;
The corresponding target of the object event information is determined according to event information set and the incidence relation of Restart Type set Restart Type, wherein the event information set includes at least one event information, which includes at least one weight Type is opened, the Restart Type is corresponding with one for each event information, which belongs to the Restart Type collection One in conjunction.
In a kind of possible design of the application first aspect, this is associated with according to event information set and Restart Type set Before relationship determines target Restart Type corresponding to the object event information, this method further include:
Determine the event information set, which includes at least one event information;
Determine the Restart Type set, which includes at least one Restart Type;
The incidence relation of the event information set and the Restart Type set is established, wherein each event information and one A Restart Type has incidence relation.
In a kind of possible design of the application first aspect, which is event identifier;
This establishes the incidence relation of the event information set and the Restart Type set, wherein each event information with One Restart Type has incidence relation, comprising:
Establish the association table of the event identifier set and the Restart Type set, wherein each of association table The event identifier has incidence relation with the Restart Type;
This is determined corresponding to the object event information according to event information set and the incidence relation of Restart Type set Target Restart Type, comprising:
It is determined corresponding to object event mark in the association table of the event identifier set and the Restart Type set Target Restart Type.
In a kind of possible design of the application first aspect, which is voltage status information;
This establishes the incidence relation of the event information set and the Restart Type set, wherein each event information with One Restart Type has incidence relation, comprising:
Establish the association table of the voltage status information and the Restart Type set, wherein each of association table The voltage status information has incidence relation with the Restart Type;
This is determined corresponding to the object event information according to event information set and the incidence relation of Restart Type set Target Restart Type, comprising:
Target voltage state letter is determined in the association table of the voltage status information aggregate and the Restart Type set The corresponding target Restart Type of breath.
In a kind of possible design of the application first aspect, this is associated with according to event information set and Restart Type set After relationship determines target Restart Type corresponding to the object event information, this method further include:
The target Restart Type is sent to sensor of interest, which is used to indicate sensor of interest preservation The Restart Type.
The second aspect of the present invention provides a kind of determining device of Restart Type, comprising:
Module is obtained, for obtaining event triggering command, wherein the event triggering command when detecting object event In include object event information;
First processing module, for determining the target thing according to the incidence relation of event information set and Restart Type set Target Restart Type corresponding to part information, wherein the event information set includes at least one event information, the Restart Type Set includes at least one Restart Type, and the Restart Type is corresponding with one for each event information, which restarts class Type belongs to one in the Restart Type set.
In a kind of possible design of the application second aspect, the device further include:
Second processing module, for determining the event information set, which includes at least one event letter Breath;
Determine the Restart Type set, which includes at least one Restart Type;
The incidence relation of the event information set and the Restart Type set is established, wherein each event information and one A Restart Type has incidence relation.
In a kind of possible design of the application second aspect, the device further include:
Second processing module, for determining the event information set, which includes at least one event letter Breath;
Determine the Restart Type set, which includes at least one Restart Type;
The incidence relation of the event information set and the Restart Type set is established, wherein each event information and one A Restart Type has incidence relation.
In a kind of possible design of the application second aspect, which is voltage status information;
The Second processing module, for determining the event information set, which includes at least one event Information;
Determine the Restart Type set, which includes at least one Restart Type;
Establish the association table of the voltage status information and the Restart Type set, wherein each of association table The voltage status information has incidence relation with the Restart Type;
The first processing module, for true in the association table of the voltage status information aggregate and the Restart Type set Target Restart Type corresponding to the fixed target voltage status information.
In a kind of possible design of the application second aspect, the device further include:
Sending module, for sending the target Restart Type to sensor of interest, which is used to indicate this Sensor of interest saves the Restart Type.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
It in the embodiment of the present invention, provides a kind of Restart Type and determines method, Baseboard Management Controller first is when detecting When object event, event triggering command is obtained, wherein include object event information, then substrate tubes in the event triggering command Reason controller determines the corresponding target of the object event information according to event information set and the incidence relation of Restart Type set Restart Type, wherein the event information set includes at least one event information, which includes at least one weight Type is opened, the Restart Type is corresponding with one for each event information, which belongs to the Restart Type collection One in conjunction.By the above-mentioned means, BMC is triggered when detecting object event (restarting) obtains event triggering command, and The corresponding target Restart Type of the object event information is determined by event information set and the incidence relation of Restart Type set, So that operation maintenance personnel other than getting BMC and the record restarted occurred, can also get the Restart Type of BMC.
Detailed description of the invention
Fig. 1 is determination method one embodiment schematic diagram of Restart Type in the embodiment of the present invention;
Fig. 2 is determining device one embodiment schematic diagram of Restart Type in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram of the determining device of Restart Type in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of the determining device of Restart Type in the embodiment of the present invention;
Fig. 5 is a structural schematic diagram of insole board of embodiment of the present invention Management Controller.
Specific embodiment
The embodiment of the invention provides a kind of determination method and apparatus of Restart Type, and destination register is in baseboard management control System, which thinks highly of to be triggered when opening, obtains the Restart Type of Baseboard Management Controller, so that operation maintenance personnel occurred in addition to getting BMC Outside the record restarted, the type that BMC is restarted can also be got.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
The method of user's outpost display can be applied to Baseboard Management Controller in the embodiment of the present invention, referring to Fig. 1, this Method one embodiment of user's outpost display includes: in inventive embodiments
101, when detecting object event, event triggering command is obtained, wherein include target thing in event triggering command Part information.
In the embodiment of the present application, after BMC is powered on, if BMC occur it is abnormal, such as BMC house dog time-out, power on mistake It loses, be cold-started, reboot event may occur for BMC.Baseboard Management Controller is obtained when detecting that reboot event occurs for BMC Take event triggering command.Wherein, event triggering command can be defines in BMC firmware in advance, when detecting target thing When part, it can execute automatically and obtain event triggering command, specifically, the register that can be BMC obtains event triggering command.Thing Part triggering command can be used as BMC and carry out the triggering that Restart Type determines, may include object event letter in event triggering command Breath, object event information can be for reflecting work state information relevant to BMC start-up course, such as the interface electricity of BMC Pressure etc., can determine the corresponding Restart Type of BMC by object event information.
102, the corresponding mesh of object event information is determined according to event information set and the incidence relation of Restart Type set Mark Restart Type, wherein event information set includes at least one event information, and Restart Type set includes that at least one is restarted Type, each event information is corresponding with a Restart Type, and target Restart Type belongs to one in Restart Type set.
In the embodiment of the present application, when detecting object event, event triggering command is obtained, wherein event triggering command In include object event information after, be equivalent to BMC and detect the event itself restarted, and in generation reboot event When, the event triggering command including can reflect object event information relevant to BMC start-up course is got, BMC is equivalent to It has got simultaneously and has restarted relevant characteristic information (object event information) to BMC.
It, can be according to event information set and Restart Type after BMC gets object event information in the embodiment of the present application The incidence relation of set determines target Restart Type corresponding to object event information, wherein event information set includes at least One event information, Restart Type set include at least one Restart Type, each event information and a Restart Type phase Corresponding, target Restart Type belongs to one in Restart Type set.Event information set includes at least one event information, i.e., Event information set includes that at least one reflects that work state information relevant to BMC start-up course, the event information can be Characteristic information corresponding with a certain Restart Type, it should be noted that event information can for state change information (for example, The size of interface voltage is B) from A variation, and event information may be that state range limits (for example, the size model of interface voltage It encloses for from C to D).Since each event information reflects a kind of feature of Restart Type, then each event information is all right There should be a kind of Restart Type, for example, when Restart Type is soft reboot type, the size of the interface voltage of BMC is from 5V variation 0V, then change as 5V, then event information is that " size of the interface voltage of BMC is 0V from 5V variation, then is changed as 5V ", with the thing The corresponding Restart Type of part information is " soft reboot ".And so on, the set of each event information is event information set, Corresponding, the set of each Restart Type is Restart Type set.Each event information is opposite with a Restart Type It answers, correspondingly, event information set is with Restart Type set, there are incidence relations.
It, can be according to event information set and Restart Type after BMC gets object event information in the embodiment of the present application The incidence relation of set removes target Restart Type corresponding to determining and object event information, specifically, due to event information collection Close that there are incidence relations with Restart Type set, and target Restart Type belongs to one in Restart Type set, then can be Target Restart Type is traversed in event information set, since each event information is corresponding with a Restart Type, then mesh It is corresponding with a target Restart Type to mark event information, therefore can be according to the pass of event information set and Restart Type set Connection relationship removes target Restart Type corresponding to determining and object event information.
In the embodiment of the present application, determine that object event is believed according to the incidence relation of event information set and Restart Type set After the corresponding target Restart Type of breath, BMC can also send target Restart Type, target Restart Type to sensor of interest It is used to indicate sensor of interest and saves Restart Type.
In the embodiment of the present application, BMC can be directed to different Restart Types and determine different register values, according to thing After part information aggregate and the incidence relation of Restart Type set determine the corresponding target Restart Type of object event information, BMC can To convert register value for the target Restart Type, and sensor of interest is sent by the register value, sensor of interest is protected The register value is deposited, table 1 is please referred to, table 1 is a signal of the corresponding relationship of Restart Type and register value.
Table 1
Register value Restart Type
0x0 Soft start Software reset
0x1 Watchdog reset Watchdog reset
0x2 Power on unsuccessfully Power Failure
0x3 External reset ExternalReset
0x4 It is cold-started Cold Boot
0x5 Hard reboot Hard Boot
In the embodiment of the present application, when BMC determines target according to the incidence relation of event information set and Restart Type set When the corresponding target Restart Type of event information is cold start-up, corresponding register value 0x4 is can be generated in the register in BMC, And it sends register value 0x4 in sensor of interest.Operation maintenance personnel to obtain BMC target Restart Type when, Ke Yitong The tools such as Intelligent Platform Management Interface tool Ipmitool or BMC website WEB are crossed to go to read or show the sensor of interest The register value of preservation, and then corresponding target Restart Type is got, such as obtain from sensor of interest by Ipmitool The register value taken is 0x01, then corresponding target Restart Type is exactly watchdog reset.
In the embodiment of the present invention, a kind of determination method of Restart Type is provided, Baseboard Management Controller is when detection first When to object event, event triggering command is obtained, wherein it include object event information in event triggering command, then substrate tubes Reason controller determines the corresponding target weight of object event information according to event information set and the incidence relation of Restart Type set Open type, wherein event information set includes at least one event information, and Restart Type set includes that at least one restarts class Type, each event information is corresponding with a Restart Type, and target Restart Type belongs to one in Restart Type set.It is logical Aforesaid way is crossed, BMC is triggered when detecting object event (restarting) obtains event triggering command, and passes through event information collection Close and determine the corresponding target Restart Type of object event information with the incidence relation of Restart Type set so that operation maintenance personnel in addition to It gets BMC to occur outside the record restarted, the Restart Type of BMC can also be got.
Optionally, on the basis of above-mentioned Fig. 1 corresponding embodiment, the determination of Restart Type provided in an embodiment of the present invention In first alternative embodiment of method, determine that object event is believed according to the incidence relation of event information set and Restart Type set Before the corresponding target Restart Type of breath, method further include:
Determine that event information set, event information set include at least one event information;
Determine that Restart Type set, Restart Type set include at least one Restart Type;
The incidence relation of event information set Yu Restart Type set is established, wherein each event information is restarted with one Type has incidence relation.
In the embodiment of the present application, determine that object event is believed according to the incidence relation of event information set and Restart Type set Before the corresponding target Restart Type of breath, it is also necessary to configuration event information aggregate and Restart Type set on BMC firmware Incidence relation.Specifically, BMC determines event information set first, event information set includes at least one event information, i.e. thing Part information aggregate includes that at least one reflects relevant to BMC start-up course work state information, the event information can be with The corresponding characteristic information of a certain Restart Type, it should be noted that event information can be state change information (for example, connecing The size of mouth voltage is B) from A variation, and event information may be that state range limits (for example, the magnitude range of interface voltage For from C to D).Corresponding, the set of each Restart Type is Restart Type set, each event information and a weight It is corresponding to open type, BMC determines that Restart Type set, Restart Type set include at least one Restart Type.Each event Information is corresponding with a Restart Type, correspondingly, event information set is with Restart Type set, there are incidence relations.
In the embodiment of the present application, by determining event information set, event information set includes at least one event information; Determine that Restart Type set, Restart Type set include at least one Restart Type;Establish event information set and Restart Type The incidence relation of set, wherein each event information and a Restart Type have incidence relation, configure thing on BMC firmware The incidence relation of part information aggregate and Restart Type set improves the practicability and exploitativeness of scheme.
Optionally, on the basis of above-mentioned Fig. 1 corresponding embodiment, the determination of Restart Type provided in an embodiment of the present invention In second alternative embodiment of method, event information is event identifier;
The incidence relation of event information set Yu Restart Type set is established, wherein each event information is restarted with one Type has incidence relation, comprising:
Establish the association table of event identifier set Yu Restart Type set, wherein each of association table event Mark has incidence relation with a Restart Type;
Target corresponding to object event information is determined according to the incidence relation of event information set and Restart Type set Restart Type, comprising:
The corresponding target of object event mark is determined in the association table of event identifier set and Restart Type set Restart Type.
In the embodiment of the present application, event information is event identifier, and wherein event identifier can be a status indicator, the shape State mark is for reflecting work state information relevant to BMC start-up course.Firmware in BMC can setting by circuit connection Meter, so that the circuit connection of BMC can convert state feature corresponding with reboot event to when reboot event occurs in BMC One event identifier, and the event identifier is output in register.Event identifier can be a character or character string, such as When event information indicates that the interface voltage of BMC is 0-1V, 1-2V, 4-5V, correspondingly, event identifier can be respectively A, B, C tri- A character, respectively corresponding interface voltage is 0-1V, 1-2V and 4-5V.
In the embodiment of the present application, in configuration event information aggregate on BMC firmware and the incidence relation of Restart Type set, Establish the association table of event identifier set Yu Restart Type set, wherein each of association table event identifier and one A Restart Type has incidence relation, please refers to table 2, and table 2 is a signal of the association table of Restart Type and event identifier.
Table 2
Event identifier Restart Type
A Soft start Software reset
B Watchdog reset Watchdog reset
C Power on unsuccessfully Power Failure
D External reset ExternalReset
E It is cold-started Cold Boot
F Hard reboot Hard Boot
In the embodiment of the present application, after the register in BMC gets event identifier, according to event identifier and class can be restarted The association table of type set removes target Restart Type corresponding to determining and event identifier, specifically, due to event identifier set There are incidence relations with Restart Type set, and target Restart Type belongs to one in Restart Type set, then can close Object event, which is traversed, in connection table identifies corresponding target Restart Type.For example, BMC reboot event occur when, by event Mark B is output in register, due to pre-saving the association table of Restart Type and event identifier inside register, then may be used To traverse Restart Type corresponding with event identifier B directly in association table as watchdog reset Watchdogreset.
In the embodiment of the present application, event information is event identifier, establishes the pass of event identifier set Yu Restart Type set Join table, wherein each of association table event identifier has incidence relation with a Restart Type, in event identifier collection Close the target Restart Type for determining that object event mark is corresponding in the association table with Restart Type set.BMC can be direct The Restart Type that BMC is traversed by event identifier and association table improves the flexibility of scheme.
Optionally, provided in an embodiment of the present invention to restart on the basis of above-mentioned Fig. 1 corresponding first alternative embodiment In the determination method third alternative embodiment of type, event information is voltage status information;
The incidence relation of event information set Yu Restart Type set is established, wherein each event information is restarted with one Type has incidence relation, comprising:
Establish the association table of voltage status information Yu Restart Type set, wherein each of association table voltage Status information has incidence relation with a Restart Type;
Target corresponding to object event information is determined according to the incidence relation of event information set and Restart Type set Restart Type, comprising:
Determine that target voltage status information institute is right in association table of the voltage status information aggregate with Restart Type set The target Restart Type answered.
In the embodiment of the present application, event information is voltage status information, and wherein voltage status information can be a voltage Information is jumped, is also possible to a voltage range restricted information, such as voltage status information can be with are as follows:
1, interface voltage jumps to 5V from 0V, maintains to stablize;
2, interface voltage jumps to 0V from 5V, then jumps to 5V, maintains to stablize;
3, interface voltage jumps to 0V from 5V, maintains to stablize;
4, interface voltage range is stablized in 2-2.5V.
In the embodiment of the present application, in configuration event information aggregate on BMC firmware and the incidence relation of Restart Type set, Establish the association table of voltage status information Yu Restart Type set, wherein each of association table voltage status information There is incidence relation with a Restart Type, please refer to table 3, table 3 is the association table of Restart Type and voltage status information One signal.
Table 3
Voltage status information Restart Type
Mouth voltage jumps to 5V from 0V, maintains to stablize Soft start Software reset
Interface voltage range is stablized in 2-2.5V Watchdog reset Watchdog reset
Interface voltage jumps to 0V from 5V, maintains to stablize Power on unsuccessfully Power Failure
Interface voltage jumps to 0V from 5V and jumps to 5V again, maintains to stablize Hard reboot Hard Boot
It, can be according to voltage status information after the register in BMC gets voltage status information in the embodiment of the present application Target Restart Type corresponding to determining and voltage status information is removed with the association table of Restart Type set, specifically, due to There are incidence relations with Restart Type set for voltage status information aggregate, and target Restart Type belongs in Restart Type set One, then the corresponding target Restart Type of voltage status information can be traversed in association table.For example, BMC is restarting thing When part occurs, interface voltage is jumped into 0V from 5V, stable voltage status information is maintained to be output in register, due to deposit The association table of Restart Type Yu voltage status information is pre-saved inside device, then can be traversed directly in association table with Mouth voltage jumps to 0V from 5V, and maintaining the stable corresponding Restart Type of voltage status information is to power on unsuccessfully Power Failure。
In the embodiment of the present application, event information is voltage status information, establishes voltage status information and Restart Type set Association table, wherein each of association table voltage status information has incidence relation with Restart Type, in electricity Pressure condition information aggregate is restarted with target corresponding to target voltage status information determining in the association table of Restart Type set Type.BMC can directly traverse the Restart Type of BMC by voltage status information and association table, improve the spirit of scheme Activity.
The determining device of the Restart Type in the present invention is described in detail below, referring to Fig. 2, Fig. 2 is the present invention Determining device one embodiment schematic diagram of Restart Type, the determining device of Restart Type include: in embodiment
Module 201 is obtained, for obtaining event triggering command, wherein event triggering command when detecting object event In include object event information;
First processing module 202, for determining target according to the incidence relation of event information set and Restart Type set Target Restart Type corresponding to event information, wherein event information set includes at least one event information, Restart Type collection Closing includes at least one Restart Type, each event information is corresponding with a Restart Type, and target Restart Type belongs to weight Open one in type set.
In the embodiment of the present application, module 201 is obtained when detecting object event, obtains event triggering command, wherein thing It include object event information in part triggering command, first processing module 202 is according to event information set and Restart Type set Incidence relation determines target Restart Type corresponding to object event information, wherein event information set includes at least one thing Part information, Restart Type set include at least one Restart Type, each event information is corresponding with a Restart Type, mesh Mark Restart Type belongs to one in Restart Type set.
In the embodiment of the present invention, a kind of determining device of Restart Type is provided, Baseboard Management Controller is when detection first When to object event, event triggering command is obtained, wherein it include object event information in event triggering command, then substrate tubes Reason controller determines the corresponding target weight of object event information according to event information set and the incidence relation of Restart Type set Open type, wherein event information set includes at least one event information, and Restart Type set includes that at least one restarts class Type, each event information is corresponding with a Restart Type, and target Restart Type belongs to one in Restart Type set.It is logical Aforesaid way is crossed, BMC is triggered when detecting object event (restarting) obtains event triggering command, and passes through event information collection Close and determine the corresponding target Restart Type of object event information with the incidence relation of Restart Type set so that operation maintenance personnel in addition to It gets BMC to occur outside the record restarted, the Restart Type of BMC can also be got.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 2, referring to Fig. 3, provided in an embodiment of the present invention heavy It opens in another embodiment of the determining device of type, the determining device of Restart Type can also include:
Second processing module 301, for determining that event information set, event information set include at least one event letter Breath;
Determine that Restart Type set, Restart Type set include at least one Restart Type;
The incidence relation of event information set Yu Restart Type set is established, wherein each event information is restarted with one Type has incidence relation.
In the embodiment of the present application, by determining event information set, event information set includes at least one event information; Determine that Restart Type set, Restart Type set include at least one Restart Type;Establish event information set and Restart Type The incidence relation of set, wherein each event information and a Restart Type have incidence relation, configure thing on BMC firmware The incidence relation of part information aggregate and Restart Type set improves the practicability and exploitativeness of scheme.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, Restart Type provided in an embodiment of the present invention is really Determine in another embodiment of device, event information is event identifier;
Second processing module 301, for determining that event information set, event information set include at least one event letter Breath;
Determine that Restart Type set, Restart Type set include at least one Restart Type;
Establish the association table of event identifier set Yu Restart Type set, wherein each of association table event Mark has incidence relation with a Restart Type;
First processing module 202, for determining target in the association table of event identifier set and Restart Type set Target Restart Type corresponding to event identifier.
In the embodiment of the present application, event information is event identifier, establishes the pass of event identifier set Yu Restart Type set Join table, wherein each of association table event identifier has incidence relation with a Restart Type, in event identifier collection Close the target Restart Type for determining that object event mark is corresponding in the association table with Restart Type set.BMC can be direct The Restart Type that BMC is traversed by event identifier and association table improves the flexibility of scheme.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, Restart Type provided in an embodiment of the present invention is really Determine in another embodiment of device, event information is voltage status information;
Second processing module, for determining that event information set, event information set include at least one event information;
Determine that Restart Type set, Restart Type set include at least one Restart Type;
Establish the association table of voltage status information Yu Restart Type set, wherein each of association table voltage Status information has incidence relation with a Restart Type;
First processing module, for determining target in the association table of voltage status information aggregate and Restart Type set Target Restart Type corresponding to voltage status information.
In the embodiment of the present application, event information is voltage status information, establishes voltage status information and Restart Type set Association table, wherein each of association table voltage status information has incidence relation with Restart Type, in electricity Pressure condition information aggregate is restarted with target corresponding to target voltage status information determining in the association table of Restart Type set Type.BMC can directly traverse the Restart Type of BMC by voltage status information and association table, improve the spirit of scheme Activity.
Optionally, on the basis of the embodiment corresponding to above-mentioned Fig. 3, referring to Fig. 4, provided in an embodiment of the present invention heavy It opens in another embodiment of the determining device of type, device further include:
Sending module 401, for sending target Restart Type to sensor of interest, target Restart Type is used to indicate target Sensor saves Restart Type.
Fig. 5 shows the block diagram with Baseboard Management Controller dependency structure provided in an embodiment of the present invention.Such as institute in Fig. 5 The baseboard management controller 500 shown is set in server, is Intelligent Platform Management Interface (intelligent platform Management interface, IPMI) core, and independently of server, basic input output system (basic input Output system, BIOS) or operating system carry out work, by means of IPMI firmware run, be one and be mounted on server master board On independent board.
Baseboard management controller 500 is one or more for obtaining the hardware parameter of server by the connection of I2C bus Sensing device 502, such as voltage-sensor, current sensor or temperature-sensitive sticker.In order to carry out data exchange, substrate with outside Management Controller 500 has multiple interfaces, i.e. network interface 504, serial line interface 506 and the system interface connecting with server 508.The preset virtual logic device in baseboard management controller 500 --- virtual sensing module 510 passes through an I2C bus It is connected to sensing device 502, combines IPMI standard to advise to obtain the reading of sensing device 502 by I2C bus, and by reading The sensor title of model, sensor type, the information such as sensor sequence number, which are converted to, meets Intelligent Platform Management Interface standard Hardware parameter, so that extraneous can more easily get the more complete sensor information of information content.All substrate management controls 500 inside of device processed is all managed by the message processing module 512 in it with external data exchange.
In embodiments of the present invention, message processing module 512 included by the Baseboard Management Controller also has following function Can:
When detecting object event, event triggering command is obtained, wherein include that object event is believed in event triggering command Breath;
The corresponding target weight of object event information is determined according to event information set and the incidence relation of Restart Type set Open type, wherein event information set includes at least one event information, and Restart Type set includes that at least one restarts class Type, each event information is corresponding with a Restart Type, and target Restart Type belongs to one in Restart Type set.
Optionally, message processing module 512 is also used to execute following steps:
Determine that event information set, event information set include at least one event information;
Determine that Restart Type set, Restart Type set include at least one Restart Type;
The incidence relation of event information set Yu Restart Type set is established, wherein each event information is restarted with one Type has incidence relation.
Optionally, message processing module 512 is also used to execute following steps:
Establish the association table of event identifier set Yu Restart Type set, wherein each of association table event Mark has incidence relation with a Restart Type;
The corresponding target of object event mark is determined in the association table of event identifier set and Restart Type set Restart Type.
Optionally, message processing module 512 is also used to execute following steps:
Establish the association table of voltage status information Yu Restart Type set, wherein each of association table voltage Status information has incidence relation with a Restart Type;
Determine that target voltage status information institute is right in association table of the voltage status information aggregate with Restart Type set The target Restart Type answered.
Optionally, message processing module 512 is also used to execute following steps:
Target Restart Type is sent to sensor of interest, target Restart Type is used to indicate sensor of interest preservation and restarts class Type.
In the embodiment of the present invention, a kind of determination method of Restart Type is provided, Baseboard Management Controller is when detection first When to object event, event triggering command is obtained, wherein it include object event information in event triggering command, then substrate tubes Reason controller determines the corresponding target weight of object event information according to event information set and the incidence relation of Restart Type set Open type, wherein event information set includes at least one event information, and Restart Type set includes that at least one restarts class Type, each event information is corresponding with a Restart Type, and target Restart Type belongs to one in Restart Type set.It is logical Aforesaid way is crossed, BMC is triggered when detecting object event (restarting) obtains event triggering command, and passes through event information collection Close and determine the corresponding target Restart Type of object event information with the incidence relation of Restart Type set so that operation maintenance personnel in addition to It gets BMC to occur outside the record restarted, the Restart Type of BMC can also be got.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of determination method of Restart Type, which is characterized in that the method is applied to Baseboard Management Controller, the method Include:
When detecting object event, event triggering command is obtained, wherein include that object event is believed in the event triggering command Breath;
The corresponding target weight of the object event information is determined according to event information set and the incidence relation of Restart Type set Open type, wherein the event information set includes at least one event information, and the Restart Type set includes at least one Restart Type, each described event information is corresponding with a Restart Type, and the target Restart Type belongs to described One in Restart Type set.
2. the method according to claim 1, wherein described according to event information set and Restart Type set Before incidence relation determines target Restart Type corresponding to the object event information, the method also includes:
Determine that the event information set, the event information set include at least one event information;
Determine that the Restart Type set, the Restart Type set include at least one Restart Type;
Establish the incidence relation of the event information set Yu the Restart Type set, wherein each described event information with One Restart Type has incidence relation.
3. according to the method described in claim 2, it is characterized in that, the event information is event identifier;
The incidence relation for establishing the event information set Yu the Restart Type set, wherein each described event is believed Breath has incidence relation with a Restart Type, comprising:
Establish the association table of the event identifier set Yu the Restart Type set, wherein each of association table The event identifier has incidence relation with a Restart Type;
The incidence relation according to event information set and Restart Type set determines corresponding to the object event information Target Restart Type, comprising:
Determine that the object event mark institute is right in association table of the event identifier set with the Restart Type set The target Restart Type answered.
4. according to the method described in claim 2, it is characterized in that, the event information is voltage status information;
The incidence relation for establishing the event information set Yu the Restart Type set, wherein each described event is believed Breath has incidence relation with a Restart Type, comprising:
Establish the association table of the voltage status information Yu the Restart Type set, wherein each of association table The voltage status information has incidence relation with a Restart Type;
The incidence relation according to event information set and Restart Type set determines corresponding to the object event information Target Restart Type, comprising:
The target voltage state is determined in the association table of the voltage status information aggregate and the Restart Type set Target Restart Type corresponding to information.
5. method according to any one of claims 1 to 4, which is characterized in that described according to event information set and restarting class After the incidence relation of type set determines target Restart Type corresponding to the object event information, the method also includes:
The target Restart Type is sent to sensor of interest, the target Restart Type is used to indicate the sensor of interest and protects Deposit the Restart Type.
6. a kind of determining device of Restart Type characterized by comprising
Module is obtained, for obtaining event triggering command, wherein in the event triggering command when detecting object event Including object event information;
First processing module, for determining the object event according to the incidence relation of event information set and Restart Type set Target Restart Type corresponding to information, wherein the event information set includes at least one event information, described to restart class Type set includes at least one Restart Type, each described event information is corresponding with a Restart Type, the mesh Mark Restart Type belongs to one in the Restart Type set.
7. device according to claim 6, which is characterized in that described device further include:
Second processing module, for determining that the event information set, the event information set include at least one event letter Breath;
Determine that the Restart Type set, the Restart Type set include at least one Restart Type;
Establish the incidence relation of the event information set Yu the Restart Type set, wherein each described event information with One Restart Type has incidence relation.
8. device according to claim 7, which is characterized in that the event information is event identifier;
The Second processing module, for determining that the event information set, the event information set include at least one thing Part information;
Determine that the Restart Type set, the Restart Type set include at least one Restart Type;
Establish the association table of the event identifier set Yu the Restart Type set, wherein each of association table The event identifier has incidence relation with a Restart Type;
The first processing module, for being determined in the association table of the event identifier set and the Restart Type set The corresponding target Restart Type of the object event mark.
9. device according to claim 7, which is characterized in that the event information is voltage status information;
The Second processing module, for determining that the event information set, the event information set include at least one thing Part information;
Determine that the Restart Type set, the Restart Type set include at least one Restart Type;
Establish the association table of the voltage status information Yu the Restart Type set, wherein each of association table The voltage status information has incidence relation with a Restart Type;
The first processing module, in the association table of the voltage status information aggregate and the Restart Type set Determine target Restart Type corresponding to the target voltage status information.
10. according to any device of claim 6 to 9, which is characterized in that described device further include:
Sending module, for sending the target Restart Type to sensor of interest, the target Restart Type is used to indicate institute It states sensor of interest and saves the Restart Type.
CN201811164620.3A 2018-10-08 2018-10-08 Method and device for determining restart type Active CN109408266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811164620.3A CN109408266B (en) 2018-10-08 2018-10-08 Method and device for determining restart type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811164620.3A CN109408266B (en) 2018-10-08 2018-10-08 Method and device for determining restart type

Publications (2)

Publication Number Publication Date
CN109408266A true CN109408266A (en) 2019-03-01
CN109408266B CN109408266B (en) 2022-02-18

Family

ID=65466735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811164620.3A Active CN109408266B (en) 2018-10-08 2018-10-08 Method and device for determining restart type

Country Status (1)

Country Link
CN (1) CN109408266B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032978A1 (en) * 2012-07-30 2014-01-30 Hon Hai Precision Industry Co., Ltd. Server and method of monitoring baseboard management controller
CN104506362A (en) * 2014-12-29 2015-04-08 浪潮电子信息产业股份有限公司 Method for system state switching and monitoring on CC-NUMA (cache coherent-non uniform memory access architecture) multi-node server
CN107133143A (en) * 2017-04-25 2017-09-05 努比亚技术有限公司 Restart daily record merging method, method for uploading, system and readable storage medium storing program for executing
CN108170247A (en) * 2017-12-21 2018-06-15 曙光信息产业(北京)有限公司 BMC power loss recovery method and apparatus
US20180275731A1 (en) * 2017-03-21 2018-09-27 Hewlett Packard Enterprise Development Lp Processor reset vectors

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032978A1 (en) * 2012-07-30 2014-01-30 Hon Hai Precision Industry Co., Ltd. Server and method of monitoring baseboard management controller
CN104506362A (en) * 2014-12-29 2015-04-08 浪潮电子信息产业股份有限公司 Method for system state switching and monitoring on CC-NUMA (cache coherent-non uniform memory access architecture) multi-node server
US20180275731A1 (en) * 2017-03-21 2018-09-27 Hewlett Packard Enterprise Development Lp Processor reset vectors
CN107133143A (en) * 2017-04-25 2017-09-05 努比亚技术有限公司 Restart daily record merging method, method for uploading, system and readable storage medium storing program for executing
CN108170247A (en) * 2017-12-21 2018-06-15 曙光信息产业(北京)有限公司 BMC power loss recovery method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
IEEE: "《IEEE Standard Computer Dictionary: A Compilation of IEEE Standard Computer Glossaries》", 《IEEE》 *
邵文清: "《基于Xen的云管理平台下资源调度策略的研究与实现》", 《中国优秀硕士论文全文数据库(信息科技辑)电子期刊》 *

Also Published As

Publication number Publication date
CN109408266B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN105938450A (en) Automatic debug information collection method and system
CN106648958B (en) Basic input output system replys management system and its method and program product
CN107526665B (en) Case management system and case management method
US8473666B2 (en) Systems and methods for driverless operation of USB device
TWI450103B (en) Remote management systems and methods for servers, and computer program products thereof
CN105404366B (en) The method and server rack of backup management control in server rack system
CN107122321A (en) Hardware restorative procedure, hardware repair system and embodied on computer readable storage device
CN107479721A (en) Storage device, the system and method for long-range multicomputer handoff technique
US20180293123A1 (en) Detecting Memory Failures in the Runtime Environment
CN111414268B (en) Fault processing method and device and server
US10922071B2 (en) Centralized off-board flash memory for server devices
US9703937B2 (en) Method to prevent operating system digital product key activation failures
CN109189627B (en) Hard disk fault monitoring and detecting method, device, terminal and storage medium
CN109143954A (en) A kind of system and method realizing controller and resetting
CN109032888A (en) A kind of server start-up course fault detection method, device and controlled terminal
CN110290547A (en) A kind of WiFi module fault recovery method, system and electronic equipment and storage medium
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN109032901A (en) A kind of monitoring method, device and the controlled terminal of the outer SSD of remote band
CN107277193A (en) A kind of baseboard management controller address management method, device and system
CN103186435B (en) System mistake disposal route and the server system using the method
CN113010122A (en) Image forming apparatus monitoring apparatus, method, system, and storage medium
CN108304284A (en) A kind of circuit board and its anti-misconnection method and electronic equipment
CN109408266A (en) A kind of determination method and apparatus of Restart Type
CN101741578A (en) Test method for testing monitoring unit, server and test system thereof
CN110011821B (en) Equipment rack and status report ensuring method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant