CN109446001A - A kind of control method and system of server switching on and shutting down - Google Patents
A kind of control method and system of server switching on and shutting down Download PDFInfo
- Publication number
- CN109446001A CN109446001A CN201811207352.9A CN201811207352A CN109446001A CN 109446001 A CN109446001 A CN 109446001A CN 201811207352 A CN201811207352 A CN 201811207352A CN 109446001 A CN109446001 A CN 109446001A
- Authority
- CN
- China
- Prior art keywords
- shutting down
- bmc
- switching
- cpld
- register
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000001514 detection method Methods 0.000 claims description 2
- 238000000465 moulding Methods 0.000 claims description 2
- 238000012423 maintenance Methods 0.000 abstract description 19
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 230000003993 interaction Effects 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2294—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
Abstract
This application discloses the control methods and system of a kind of server switching on and shutting down, this method comprises: sending switching on and shutting down instruction, remote control server switching on and shutting down to CPLD by BMC;According to preset switching on and shutting down strategy, PCH, field control server switching on and shutting down are controlled using BMC and CPLD.The system includes remote on-off control module and live switching on and shutting down control module.Pass through the method and system in the application, it acts the switching on and shutting down of entire server system and is controlled by BMC and CPLD in an orderly manner, and then avoid, to the control hazard of switching on and shutting down ownership, being conducive to improve between live operation maintenance personnel and long-range controllers the accuracy and reliability of server switching on and shutting down control.
Description
Technical field
This application involves server admin technical fields, a kind of control method more particularly to server switching on and shutting down and are
System.
Background technique
In the practical application of server, due to server failure, maintenance etc., it usually needs open server
Power-off operation and control.
Currently, according to the different application scene of server, the switching on and shutting down operation of server generally includes execute-in-place and remote
Journey operation.That is: field maintenance person can carry out switching on and shutting down by the switching on and shutting down key on server front panel, and remotely control
Indoor maintenance personnel can remotely pass through BMC (Baseboard Management Controller, baseboard management controller)
Control service carries out switching on and shutting down.Under normal circumstances, scene carries out switching on and shutting down by switching on and shutting down key and is remotely opened by BMC control
The operation of shutdown, relatively independent, be independent of each other, live operation maintenance personnel and long-range controllers can be at any time to servers
Carry out switching on and shutting down operation.
However, in the switching on and shutting down operation and control method that are carried out at present to server, due to live operation maintenance personnel and far
Process control personnel can carry out switching on and shutting down operation to server at any time, be easy to appear the control hazard of switching on and shutting down ownership.Example
Such as: when long-range controllers need to keep open state, live operation maintenance personnel is possible to turn off clothes without knowing it
Business device.Alternatively, live operation maintenance personnel is possible to without knowing it when long-range controllers need to remain turned off state
Open server.Therefore, control error is easy to produce to the on-off control method of server at present, to server switching on and shutting down control
The accuracy and reliability of system is poor.
Summary of the invention
This application provides the control methods and system of a kind of server switching on and shutting down, to solve in the prior art to server
Switching on and shutting down control be easy to produce control error, to the poor problem of accuracy and reliability of server switching on and shutting down control.
In order to solve the above-mentioned technical problem, the embodiment of the present application discloses following technical solution:
A kind of control method of server switching on and shutting down, the switching on and shutting down instruction that setting BMC is issued are that highest priority instructs, institute
Stating control method includes:
It is sent out by BMC to CPLD (Complex Programmable Logic Device, Complex Programmable Logic Devices)
Switching on and shutting down are sent to instruct, remote control server switching on and shutting down;
According to preset switching on and shutting down strategy, using BMC and CPLD control PCH, (Platform Controller Hub is put down
Platform control centre, it may be assumed that integrated south bridge), field control server switching on and shutting down.
Optionally, described according to preset switching on and shutting down strategy, PCH is controlled using BMC and CPLD, field control server is opened
Shutdown, comprising:
According to preset booting strategy, PCH, the booting of field control server are controlled using BMC and CPLD;And
According to preset shutdown strategy, PCH, the shutdown of field control server are controlled using BMC and CPLD.
Optionally, described according to preset booting strategy, PCH is controlled using BMC and CPLD, field control server is opened
Machine, comprising:
S211: being arranged first register in BMC, and second register is arranged in CPLD, and described first
Register is for detecting whether switching on and shutting down key is shielded, and second register when server is in off-mode for setting
The switching on and shutting down key-press status of server is set, and the switching on and shutting down key-press status includes SM set mode and reset state;
The first register of S212:CPLD real time access obtains the value of the first register;
S213: according to the value of first register, judge whether switching on and shutting down key is shielded by BMC;
S214: if so, CPLD shields shutdown key, and return step S212;
S215: if not, judging whether BMC completes to initialize;
S216: if initialization is completed in BMC, CPLD sets the value of the second register according to acquired starting-up signal
It is set to SM set mode, and the set information for indicating SM set mode is sent to BMC;
S217:BMC sends power-on command according to acquired set information, to CPLD;
S218:CPLD controls PCH and is switched on and is set as resetting by the value of the second register according to acquired power-on command
State.
Optionally, the method for judging BMC and whether completing initialization, specifically:
Whether CPLD detection BMC has heartbeat signal;
If BMC has heartbeat signal, determine that initialization is completed in BMC, otherwise determines that BMC does not complete to initialize.
Optionally, described according to preset booting strategy, PCH, the booting of field control server are controlled using BMC and CPLD
Method, further includes:
If BMC does not complete to initialize, CPLD shields shutdown key.
Optionally, described according to preset shutdown strategy, PCH is controlled using BMC and CPLD, field control server closes
Machine, comprising:
S221: being arranged a bit register in BMC, and the register is for detecting whether switching on and shutting down key is shielded;
Register described in S222:CPLD real time access obtains the value of the register;
S223: according to the value of the register, judge whether switching on and shutting down key is shielded by BMC;
S224: if so, CPLD shields shutdown key, and return step S222;
S225: if not, CPLD controls PCH and shut down according to acquired off signal.
A kind of control system of server switching on and shutting down, the switching on and shutting down instruction that BMC is issued in the control system is that highest is excellent
First Quan Zhiling, the control system include:
Remote on-off control module, for sending switching on and shutting down instruction, remote control server switch to CPLD by BMC
Machine;
Live switching on and shutting down control module, for controlling PCH, scene using BMC and CPLD according to preset switching on and shutting down strategy
Control server switching on and shutting down.
Optionally, the live switching on and shutting down control module includes:
Scene booting control module, for controlling PCH, field control using BMC and CPLD according to preset booting strategy
Server booting;
Scene shutdown control module, for controlling PCH, field control using BMC and CPLD according to preset shutdown strategy
Server shutdown.
Optionally, the scene booting control module includes:
Be switched on register setting unit, for first register to be arranged in BMC, and the setting one the in CPLD
Two registers, for detecting whether switching on and shutting down key is shielded, second register is used for when service first register
The switching on and shutting down key-press status of server is set when device is in off-mode, and the switching on and shutting down key-press status include SM set mode and
Reset state;
Be switched on access unit, for obtaining the value of the first register by the first register of CPLD real time access;
Whether the first booting judging unit judges switching on and shutting down key by BMC screen for the value according to first register
It covers;
Be switched on screen unit, for shielding shutdown key by CPLD and triggering visit when switching on and shutting down key is shielded
Ask unit;
Second booting judging unit, for by detecting the heartbeat signal of BMC, sentencing when switching on and shutting down key is not shielded
Whether disconnected BMC, which completes, initializes, and when BMC has heartbeat signal, initialization is completed in judgement BMC, otherwise determines that BMC is not completed just
Beginningization;
Set unit is used for when BMC completes to initialize, the starting-up signal according to acquired in CPLD, by the second register
Value be set as SM set mode, and the set information for indicating SM set mode is sent to BMC;
Be switched on control unit, for, according to acquired set information, sending power-on command to CPLD by BMC;
Reset unit, for according to acquired power-on command, controlling PCH booting by CPLD and by the second register
Value is set as reset state.
Optionally, the scene shutdown control module includes:
Register setting unit, for a bit register to be arranged in BMC, the register shut down for detecting whether will
The shielding of switching on and shutting down key;
Access unit of shutting down obtains the value of the register for passing through register described in CPLD real time access;
Shutdown judging unit judges whether switching on and shutting down key is shielded by BMC for the value according to the register;
Shut down screen unit, for shielding shutdown key by CPLD and triggering visit when switching on and shutting down key is shielded
Ask unit;
Shutdown control unit, for when switching on and shutting down key is not shielded, the off signal according to acquired in CPLD to be controlled
PCH shuts down.
The technical solution that embodiments herein provides can include the following benefits:
The application provides a kind of control method of server switching on and shutting down, which includes long-range and field control two
Aspect: switching on and shutting down instruction, remote control server switching on and shutting down are sent to CPLD by BMC;And according to preset switching on and shutting down plan
Slightly, PCH, field control server switching on and shutting down are controlled using BMC and CPLD.It wherein again include scene booting control in terms of field control
System and scene shutdown control.By the command interaction on mainboard between BMC and CPLD, booting strategy and shutdown plan is respectively set
Slightly, so that act the switching on and shutting down of entire server system is controlled by BMC and CPLD in an orderly manner, and then live operation maintenance personnel is avoided
To the control hazard of switching on and shutting down ownership between long-range controllers, be conducive to improve the accurate of server switching on and shutting down control
Property.In addition, it is that highest priority instructs that the switching on and shutting down instruction that BMC is issued is arranged in the application, to assign long-range control control
Personnel are to the high controllers of switching on and shutting down, and then avoid live operation maintenance personnel opens by mistake machine or error cut-off machine, is conducive to improve server
The reliability of switching on and shutting down control.
The application also provides a kind of control system of server switching on and shutting down, which mainly includes remote on-off control
Molding block and live switching on and shutting down control module, live switching on and shutting down control module include scene booting control module and scene shutdown again
Control module.Scene booting control module controls PCH, field control service using BMC and CPLD according to preset booting strategy
Device booting, scene shutdown control module control PCH, field control server using BMC and CPLD according to preset shutdown strategy
Shutdown.For the application by booting control module at the scene using the strategy that is switched on, control module of shutting down at the scene is tactful using shutdown,
And switching on and shutting down control is carried out by BMC and CPLD according to different strategies, it can be avoided live operation maintenance personnel and long-range control people
To the control hazard of switching on and shutting down ownership between member, be conducive to the accuracy for improving server switching on and shutting down control.And the control
The switching on and shutting down instruction that BMC is issued in system is that highest priority instructs, by promoting control of the long-range controllers to switching on and shutting down
Can power, the malfunction that effectively prevent site operation personnel to control switching on and shutting down be conducive to improve server switching on and shutting down control
Reliability.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application
Example, and together with specification it is used to explain the principle of the application.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the control method of server switching on and shutting down provided by the embodiment of the present application;
Fig. 2 is the flow diagram of field control server booting in the embodiment of the present application;
Fig. 3 is the flow diagram of field control server shutdown in the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of the control system of server switching on and shutting down provided by the embodiment of the present application;
Fig. 5 is the structural schematic diagram of booting control module in scene in the embodiment of the present application;
Fig. 6 is the structural schematic diagram of shutdown control module in scene in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without making creative work
Range.
The application in order to better understand explains in detail presently filed embodiment with reference to the accompanying drawing.
Embodiment one
Referring to Fig. 1, Fig. 1 is a kind of process signal of the control method of server switching on and shutting down provided by the embodiment of the present application
Figure.The control method of server switching on and shutting down specifically includes that in the present embodiment as shown in Figure 1
S1: switching on and shutting down instruction, remote control server switching on and shutting down are sent to CPLD by BMC.
That is: according to user demand, booting or shutdown command are sent to CPLD by BMC, CPLD is according to acquired booting
Or shutdown command, control PCH execute boot action or shutdown movement.
S2: according to preset switching on and shutting down strategy, PCH, field control server switching on and shutting down are controlled using BMC and CPLD.
Control method in the present embodiment, including remotely control with field control two parts, and set in the control method
Setting the switching on and shutting down instruction that BMC is issued is that highest priority instructs, that is, the priority level remotely controlled is higher, and any moment is all
Remote on-off control can be carried out to server by BMC, so as to avoid live operation maintenance personnel in unwitting situation
Under the maloperations such as switching on and shutting down are carried out to server, be conducive to the reliability for improving server switching on and shutting down control.
Wherein, step S2 includes two processes of step S21 and step S22 again:
S21: according to preset booting strategy, PCH, the booting of field control server are controlled using BMC and CPLD.
Specifically, as shown in Figure 2, step S21 is comprised the following processes in the present embodiment:
S211: being arranged first register in BMC, and second register is arranged in CPLD.
Wherein, for detecting whether switching on and shutting down key is shielded, the second register is used at server the first register
The switching on and shutting down key-press status of server is set when off-mode, and switching on and shutting down key-press status includes SM set mode and reset shape
State.The same key can be used in switching on and shutting down key in the present embodiment, and server is under open state, clicks switching on and shutting down key
Server shutdown;Server is in shutdown state, clicks the booting of switching on and shutting down key-press server.
Such as: the value of the first register is indicated with REGx, can be set when REGx be 1 when, indicate switching on and shutting down key not by
Shielding;Indicate that switching on and shutting down key is shielded when REGx is 0.The value that the second register is indicated with REGy, when the second register
Indicate that switching on and shutting down key is in SM set mode when value REGy is 1, it may be assumed that switching on and shutting down key at which previous when SM set mode when
It carves, was pressed;Indicate that switching on and shutting down key is in reset state when the value REGy of the second register is 0, it may be assumed that switching on and shutting down key
Previous moment when reset state at which, was not pressed.Switching on and shutting down key in the present embodiment is pressed, and refers to out
The whole process that shutdown key is pressed and bounces.
The first register of S212:CPLD real time access obtains the value of the first register.
S213: according to the value of the first register, judge whether switching on and shutting down key is shielded by BMC.
S214: if so, CPLD shields shutdown key, and return step S212.
Continue to quote the example in step S211, by above step S212-S214 it is found that CPLD real time access REGx
Value.When the value of REGx is 0, it may be assumed that when REGx indicates that switching on and shutting down key is shielded by BMC, switching on and shutting down key is disabled, CPLD root
Shutdown key is shielded according to the instruction of BMC, live operation maintenance personnel can not be booted up or be shut down to server by key, be returned
Step S212, CPLD continue the first register of real time access, when the value of REGx is 1, it may be assumed that when REGx indicates switching on and shutting down key
When not shielded by BMC, rapid S215 is performed the next step.
S215: if not, judging whether BMC completes to initialize.
That is: if determining that switching on and shutting down key is not shielded by BMC according to the value REGx of the first register, and at current server
In off-mode, then continue to determine whether BMC completes to initialize.The setting of step S215 in the present embodiment, it can be ensured that only
BMC initialization could boot up server after completing, thus guarantee that BMC starts earlier than server system, Jin Erneng
Enough by the whole service process after BMC monitoring server system boot, be conducive to improve server switching on and shutting down control can
By property.
The method whether BMC completes initialization is judged in the present embodiment are as follows: detect whether BMC has heartbeat letter by CPLD
Number.If BMC has heartbeat signal, determine that initialization is completed in BMC, otherwise determines that BMC does not complete to initialize.
S216: if initialization is completed in BMC, CPLD sets the value of the second register according to acquired starting-up signal
It is set to SM set mode, and the set information for indicating SM set mode is sent to BMC.
If BMC has completed to initialize, due to according to the judgement of step S213, having determined that switching on and shutting down key does not have at this time
Have and shielded by BMC, after live operation maintenance personnel presses switching on and shutting down key sending starting-up signal, CPLD believes according to acquired booting
Number, SM set mode is set by the value REGy of the second register, and the set information for indicating SM set mode is sent to BMC.This
The set information i.e. value of the second register that SM set mode is indicated in embodiment, when switching on and shutting down key is SM set mode, second
The value REGy of register is 1, sets 1 for the value REGy of the second register by step S216, and the REGy value is sent to
BMC。
If BMC does not complete to initialize, CPLD shields shutdown key.Namely live operation maintenance personnel cannot lead at this time
It crosses switching on and shutting down and presses switch to open or close server.
S217:BMC sends power-on command according to acquired set information, to CPLD;
S218:CPLD controls PCH and is switched on and is set as resetting by the value of the second register according to acquired power-on command
State.
It, can be by the second register set and will by above step S216-S218 it is found that after CPLD gets starting-up signal
Set information is transferred to BMC, and after BMC receives the value REGy of the second register, determination can be switched on, and sends and is switched on to CPLD
Order, the power-on command control PCH that CPLD is sent according to BMC is booted up, while CPLD resets REGy.
Further include step S22 in step S2 in the present embodiment: according to preset shutdown strategy, being controlled using BMC and CPLD
PCH, the shutdown of field control server.
Specifically, from the figure 3, it may be seen that step S22 is comprised the following processes in the present embodiment:
S221: being arranged a bit register in BMC, and register is for detecting whether switching on and shutting down key is shielded.
S222:CPLD real time access register, obtains the value of register.
S223: according to the value of register, judge whether switching on and shutting down key is shielded by BMC.
S224: if so, CPLD shields shutdown key, and return step S122.
The working method and working principle of above step S221-S224 has elaborated in step S211-S214,
This is repeated no more.In the present embodiment, when switching on and shutting down key is shielded by BMC, CPLD according to the order of BMC shield shutdown by
Key, server is in open state at this time, and live operation maintenance personnel cannot shut down to server by pressing switching on and shutting down key,
Process continue range no longer S222, CPLD continue real time access register, until register value display switch machine key not by
When BMC is shielded, step S225 is executed.
S225: if not, CPLD controls PCH and shut down according to acquired off signal.
If switching on and shutting down key is not shielded by BMC, CPLD does not shield shutdown key, and server is in booting shape at this time
State, after live operation maintenance personnel presses switching on and shutting down key sending off signal, CPLD controls PCH according to acquired off signal
It shuts down.
In conclusion the present embodiment by the command interaction on mainboard between BMC and CPLD, be respectively set booting strategy and
Shutdown strategy so that act the switching on and shutting down of entire server system is controlled by BMC and CPLD in an orderly manner, and then avoids live fortune
To the control hazard of switching on and shutting down ownership between dimension personnel and long-range controllers, be conducive to improve server switching on and shutting down control
Accuracy.In addition, it is that highest priority instructs that the switching on and shutting down instruction that BMC is issued is arranged in the application, to assign long-range control
Controllers are to the high controllers of switching on and shutting down, and then avoid live operation maintenance personnel opens by mistake machine or error cut-off machine, is conducive to improve clothes
The reliability of business device switching on and shutting down control.
Embodiment two
On the basis of Fig. 1, Fig. 2 and embodiment illustrated in fig. 3 referring to fig. 4, Fig. 4 is one provided by the embodiment of the present application
The structural schematic diagram of the control system of kind server switching on and shutting down.As shown in Figure 4, the control system in the present embodiment mainly includes remote
Journey switching on and shutting down control module and live switching on and shutting down control module two parts.Wherein, remote on-off control module is for passing through BMC
Switching on and shutting down instruction, remote control server switching on and shutting down are sent to CPLD;Live switching on and shutting down control module according to preset for opening
Shutdown strategy controls PCH, field control server switching on and shutting down using BMC and CPLD.And in the control system, what BMC was issued is opened
Shutdown command is highest priority instruction.
Further, live switching on and shutting down control module includes scene booting control module and scene shutdown control module two again
Part.Scene booting control module is used to control PCH, field control service using BMC and CPLD according to preset booting strategy
Device booting;Scene shutdown control module is used for according to preset shutdown strategy, controls PCH, field control clothes using BMC and CPLD
Business device shutdown.
The structural schematic diagram of scene booting control module may refer to Fig. 5, as shown in Figure 5, scene booting control module master
It include: booting register setting unit, booting access unit, the first booting judging unit, booting screen unit, the second booting
Judging unit, set unit, booting control unit and reset unit.
Wherein, booting register setting unit is used to that first register to be arranged in BMC, and one is arranged in CPLD
The second register of position.For detecting whether switching on and shutting down key is shielded, the second register is used at server first register
The switching on and shutting down key-press status of server is set when off-mode, and switching on and shutting down key-press status includes SM set mode and reset shape
State.The access unit that is switched on is used to obtain the value of the first register by the first register of CPLD real time access.First booting judgement
Unit is used for the value according to the first register, judges whether switching on and shutting down key is shielded by BMC.The screen unit that is switched on is used for when switch
When machine key is shielded, shutdown key is shielded by CPLD and triggers access unit.Second booting judging unit, which is used to work as, to be opened
When shutdown key is not shielded, by detecting the heartbeat signal of BMC, judge whether BMC completes to initialize, when BMC has heartbeat letter
Number, determine that initialization is completed in BMC, otherwise determines that BMC does not complete to initialize.Set unit is used to complete initialization as BMC
When, the starting-up signal according to acquired in CPLD sets SM set mode for the value of the second register, and will indicate SM set mode
Set information is sent to BMC.The control unit that is switched on is used to send and be switched on to CPLD according to acquired set information by BMC
Order.Reset unit is used to control PCH according to acquired power-on command by CPLD and be switched on and set the value of the second register
It is set to reset state.
The structural schematic diagram of scene shutdown control module may refer to Fig. 6, as shown in Figure 5, scene shutdown control module master
It include: that shutdown register setting unit, shutdown access unit, shutdown judging unit, shutdown screen unit and shutdown control are single
Member.
Wherein, shut down register setting unit, for a bit register to be arranged in BMC, register for detecting whether
Switching on and shutting down key is shielded.Access unit of shutting down is used to obtain the value of register by CPLD real time access register.Shutdown is sentenced
Disconnected unit is used for the value according to register, judges whether switching on and shutting down key is shielded by BMC.Shutdown screen unit is for working as switching on and shutting down
When key is shielded, shutdown key is shielded by CPLD and triggers access unit.Shutdown control unit is used to press when switching on and shutting down
When key is not shielded, the off signal according to acquired in CPLD, control PCH shuts down.
The working principle and working method of the control system of server switching on and shutting down in the embodiment, in Fig. 1, Fig. 2 and Fig. 3 institute
Elaborated in the embodiment shown, between two embodiments can mutual reference, details are not described herein.
By the structure of the above control system it is found that the present embodiment is tactful using booting by booting control module at the scene,
Shutdown control module carries out switching on and shutting down control, energy by BMC and CPLD using shutdown strategy, and according to different strategies at the scene
It enough avoids that the control hazard of switching on and shutting down ownership is conducive between live operation maintenance personnel and long-range controllers to improve server
The accuracy of switching on and shutting down control.And the switching on and shutting down instruction that BMC is issued in the control system is that highest priority instructs, by mentioning
Control of the long-range controllers of liter to switching on and shutting down, the malfunction that site operation personnel can be effectively prevent to control switching on and shutting down,
Be conducive to improve the reliability of server switching on and shutting down control.
The above is only the specific embodiment of the application, is made skilled artisans appreciate that or realizing this Shen
Please.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of control method of server switching on and shutting down, which is characterized in that the switching on and shutting down instruction that setting BMC is issued is that highest is preferential
Power instruction, the control method include:
Switching on and shutting down instruction, remote control server switching on and shutting down are sent to CPLD by BMC;
According to preset switching on and shutting down strategy, PCH, field control server switching on and shutting down are controlled using BMC and CPLD.
2. a kind of control method of server switching on and shutting down according to claim 1, which is characterized in that described according to preset
Switching on and shutting down strategy controls PCH, field control server switching on and shutting down using BMC and CPLD, comprising:
According to preset booting strategy, PCH, the booting of field control server are controlled using BMC and CPLD;And
According to preset shutdown strategy, PCH, the shutdown of field control server are controlled using BMC and CPLD.
3. a kind of control method of server switching on and shutting down according to claim 2, which is characterized in that described according to preset
Booting strategy controls PCH, the booting of field control server using BMC and CPLD, comprising:
S211: being arranged first register in BMC, and second register is arranged in CPLD, first deposit
For detecting whether switching on and shutting down key is shielded, second register is used to that clothes to be arranged when server is in off-mode device
The switching on and shutting down key-press status of business device, and the switching on and shutting down key-press status includes SM set mode and reset state;
The first register of S212:CPLD real time access obtains the value of the first register;
S213: according to the value of first register, judge whether switching on and shutting down key is shielded by BMC;
S214: if so, CPLD shields shutdown key, and return step S212;
S215: if not, judging whether BMC completes to initialize;
S216: if initialization is completed in BMC, CPLD sets the value of the second register to according to acquired starting-up signal
SM set mode, and the set information for indicating SM set mode is sent to BMC;
S217:BMC sends power-on command according to acquired set information, to CPLD;
S218:CPLD controls PCH booting and sets the value of the second register to reset shape according to acquired power-on command
State.
4. a kind of control method of server switching on and shutting down according to claim 3, which is characterized in that the judgement BMC is
The no method for completing initialization, specifically:
Whether CPLD detection BMC has heartbeat signal;
If BMC has heartbeat signal, determine that initialization is completed in BMC, otherwise determines that BMC does not complete to initialize.
5. a kind of control method of server switching on and shutting down according to claim 3, which is characterized in that described according to preset
Booting strategy controls PCH, the method for field control server booting using BMC and CPLD, further includes:
If BMC does not complete to initialize, CPLD shields shutdown key.
6. a kind of control method of server switching on and shutting down according to claim 2, which is characterized in that described according to preset
Shutdown strategy controls PCH, the shutdown of field control server using BMC and CPLD, comprising:
S221: being arranged a bit register in BMC, and the register is for detecting whether switching on and shutting down key is shielded;
Register described in S222:CPLD real time access obtains the value of the register;
S223: according to the value of the register, judge whether switching on and shutting down key is shielded by BMC;
S224: if so, CPLD shields shutdown key, and return step S222;
S225: if not, CPLD controls PCH and shut down according to acquired off signal.
7. a kind of control system of server switching on and shutting down, which is characterized in that the switching on and shutting down instruction that BMC is issued in the control system
For highest priority instruction, the control system includes:
Remote on-off control module, for sending switching on and shutting down instruction, remote control server switching on and shutting down to CPLD by BMC;
Live switching on and shutting down control module, for controlling PCH, field control using BMC and CPLD according to preset switching on and shutting down strategy
Server switching on and shutting down.
8. a kind of control system of server switching on and shutting down according to claim 7, which is characterized in that the scene switching on and shutting down
Control module includes:
Scene booting control module, for controlling PCH, field control service using BMC and CPLD according to preset booting strategy
Device booting;
Scene shutdown control module, for controlling PCH, field control service using BMC and CPLD according to preset shutdown strategy
Device shutdown.
9. a kind of control system of server switching on and shutting down according to claim 8, which is characterized in that the scene booting control
Molding block includes:
Be switched on register setting unit, for first register to be arranged in BMC, and is arranged one second in CPLD and posts
Storage, for detecting whether switching on and shutting down key is shielded, second register is used at server first register
The switching on and shutting down key-press status of server is set when off-mode, and the switching on and shutting down key-press status includes SM set mode and reset
State;
Be switched on access unit, for obtaining the value of the first register by the first register of CPLD real time access;
First booting judging unit judges whether switching on and shutting down key is shielded by BMC for the value according to first register;
Be switched on screen unit, for when switching on and shutting down key is shielded, shielding shutdown key by CPLD and triggering access list
Member;
Second booting judging unit, for by detecting the heartbeat signal of BMC, judging BMC when switching on and shutting down key is not shielded
Whether completion initializes, and when BMC has heartbeat signal, initialization is completed in judgement BMC, otherwise determines that BMC does not complete to initialize;
Set unit is used for when BMC completes to initialize, the starting-up signal according to acquired in CPLD, by the value of the second register
It is set as SM set mode, and the set information for indicating SM set mode is sent to BMC;
Be switched on control unit, for, according to acquired set information, sending power-on command to CPLD by BMC;
Reset unit, for, according to acquired power-on command, controlling PCH by CPLD and being switched on and set the value of the second register
It is set to reset state.
10. a kind of control system of server switching on and shutting down according to claim 8, which is characterized in that the scene shutdown
Control module includes:
Register setting unit, for a bit register to be arranged in BMC, the register shut down for detecting whether will switch
The shielding of machine key;
Access unit of shutting down obtains the value of the register for passing through register described in CPLD real time access;
Shutdown judging unit judges whether switching on and shutting down key is shielded by BMC for the value according to the register;
Shut down screen unit, for when switching on and shutting down key is shielded, shielding shutdown key by CPLD and triggering access list
Member;
Shutdown control unit, for when switching on and shutting down key is not shielded, the off signal according to acquired in CPLD to control PCH
It shuts down.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811207352.9A CN109446001A (en) | 2018-10-17 | 2018-10-17 | A kind of control method and system of server switching on and shutting down |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811207352.9A CN109446001A (en) | 2018-10-17 | 2018-10-17 | A kind of control method and system of server switching on and shutting down |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109446001A true CN109446001A (en) | 2019-03-08 |
Family
ID=65546389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811207352.9A Withdrawn CN109446001A (en) | 2018-10-17 | 2018-10-17 | A kind of control method and system of server switching on and shutting down |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109446001A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413092A (en) * | 2019-06-27 | 2019-11-05 | 苏州浪潮智能科技有限公司 | It is a kind of prevent RTC remove after system Auto Power On method and apparatus |
CN110502377A (en) * | 2019-08-08 | 2019-11-26 | 苏州浪潮智能科技有限公司 | It is a kind of that test method is restarted based on CPLD |
CN111090472A (en) * | 2019-12-26 | 2020-05-01 | 厦门市美亚柏科信息股份有限公司 | Intelligent on-off management system and method for portable equipment |
CN112462918A (en) * | 2020-11-05 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Startup and shutdown control method, device, equipment and computer readable storage medium |
CN113111320A (en) * | 2021-04-08 | 2021-07-13 | 山东英信计算机技术有限公司 | Transportation safety protection method of server and server |
WO2021169476A1 (en) * | 2020-02-29 | 2021-09-02 | 苏州浪潮智能科技有限公司 | Server expansion system, and power control method for same |
CN113852564A (en) * | 2021-11-29 | 2021-12-28 | 苏州浪潮智能科技有限公司 | Server control method, device and medium |
-
2018
- 2018-10-17 CN CN201811207352.9A patent/CN109446001A/en not_active Withdrawn
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413092A (en) * | 2019-06-27 | 2019-11-05 | 苏州浪潮智能科技有限公司 | It is a kind of prevent RTC remove after system Auto Power On method and apparatus |
CN110413092B (en) * | 2019-06-27 | 2021-06-01 | 苏州浪潮智能科技有限公司 | Method and equipment for preventing automatic system startup after RTC (real time clock) is cleared |
CN110502377A (en) * | 2019-08-08 | 2019-11-26 | 苏州浪潮智能科技有限公司 | It is a kind of that test method is restarted based on CPLD |
CN111090472A (en) * | 2019-12-26 | 2020-05-01 | 厦门市美亚柏科信息股份有限公司 | Intelligent on-off management system and method for portable equipment |
CN111090472B (en) * | 2019-12-26 | 2023-04-11 | 厦门市美亚柏科信息股份有限公司 | Intelligent on-off management system and method for portable equipment |
WO2021169476A1 (en) * | 2020-02-29 | 2021-09-02 | 苏州浪潮智能科技有限公司 | Server expansion system, and power control method for same |
CN112462918A (en) * | 2020-11-05 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Startup and shutdown control method, device, equipment and computer readable storage medium |
CN113111320A (en) * | 2021-04-08 | 2021-07-13 | 山东英信计算机技术有限公司 | Transportation safety protection method of server and server |
CN113852564A (en) * | 2021-11-29 | 2021-12-28 | 苏州浪潮智能科技有限公司 | Server control method, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109446001A (en) | A kind of control method and system of server switching on and shutting down | |
CN106648958B (en) | Basic input output system replys management system and its method and program product | |
CN108038019B (en) | Automatic fault recovery method and system for substrate management controller | |
CN104899055B (en) | A kind of ME more new systems and its update method based on BIOS controls | |
US20030074549A1 (en) | Method and system for implementing a diagnostic or correciton boot image over a network connection | |
US7509375B2 (en) | Management system for multimodule multiprocessor machines | |
CN110300299A (en) | Show facility switching machine method for testing pressure, device, equipment and storage medium | |
EP3218818B1 (en) | Dual purpose boot registers | |
CN103218030B (en) | Based on power-supply management system and the microserver of multinode microserver | |
CN107084511B (en) | For instructing method and apparatus, the air-conditioning of operating air conditioner | |
CN106066821A (en) | The intelligent case management system of VPX equipment | |
CN106055440B (en) | A kind of test method and system for realizing server exception power-off by BMC | |
KR100376939B1 (en) | Method to manage after-sales service of computer and a/s system of computer using thereof | |
CN103729947A (en) | POS system having self-checking function and self-checking method thereof | |
CN109710048B (en) | Portable terminal power supply management method based on Loongson processor | |
CN109408129A (en) | A kind of system automatic power-on method and a kind of system of Auto Power On | |
CN109683964A (en) | Bios software debugging control program, system and server | |
CN105468390A (en) | BOOT online upgrade apparatus and method | |
CN107894935A (en) | OPS computer module detection process method, apparatus and electronic equipment | |
CN109582505B (en) | BIOS option default value recovery system, method and device | |
CN104750551B (en) | A kind of computer system and its customized response method | |
CN105912414A (en) | Method and system for server management | |
CN106992662A (en) | Power control method and circuit and electronic equipment | |
CN100343776C (en) | Device and method for controlling working time of computer | |
CN102023887B (en) | Power supply management method of computer system and computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190308 |