CN109298892A - A kind of control device and method of server switching on and shutting down - Google Patents

A kind of control device and method of server switching on and shutting down Download PDF

Info

Publication number
CN109298892A
CN109298892A CN201811062361.3A CN201811062361A CN109298892A CN 109298892 A CN109298892 A CN 109298892A CN 201811062361 A CN201811062361 A CN 201811062361A CN 109298892 A CN109298892 A CN 109298892A
Authority
CN
China
Prior art keywords
physical button
configuration
direct
level
bmc
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
CN201811062361.3A
Other languages
Chinese (zh)
Other versions
CN109298892B (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 CN201811062361.3A priority Critical patent/CN109298892B/en
Publication of CN109298892A publication Critical patent/CN109298892A/en
Application granted granted Critical
Publication of CN109298892B publication Critical patent/CN109298892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/442Shutdown

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Power Sources (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

This application discloses a kind of control device and methods of server switching on and shutting down, comprising: BMC, for obtaining the configuration-direct of remote user;The IO Expander connecting with BMC exports corresponding level for obtaining configuration-direct, and according to configuration-direct;The CPLD being all connected with IO Expander, BMC, for being disabling according to the physical button of level, control server switching on and shutting down or enabling.In the present invention, disabling or the relevant configuration instruction for enabling physical button are stored in IO Expander, independently of BMC and CPLD, if BMC or CPLD power-down rebooting, configuration-direct in IO Expander will not change, and output level is constant, in control device physical button be disabling or enable state will not as in the prior art there are it is uncontrolled a possibility that, the controllable degree for improving server ensure that server use state stablizes safety.

Description

A kind of control device and method of server switching on and shutting down
Technical field
The present invention relates to server technology field, in particular to a kind of control device and method of server switching on and shutting down.
Background technique
Raising with user to server performance demand, user to the quantity required of server computing node also increasingly More, a large amount of server centered is placed in remote equipment room or data center by more user's selections, passes through server monitoring pipe Module BMC is managed remotely to be managed.Server monitoring management module such as can be realized switching on and shutting down to service, restart at the operation, User, which by network remote connects BMC and can realize to server, in this way manages, and carries out switching on and shutting down, the operation such as restarts, is not necessarily to Into computer room operating physical host, server is in distant place computer room, physical contact and protection of the user to server host at this time It is limited, need the guarantee of software realization physical security.
Currently used method is to utilize BMC (Baseboard Management Controller, substrate management control Device) pass through I2C (Inter-Integrated Circuit, IC bus) configuration CPLD (Complex Programmable Logic Device, Complex Programmable Logic Devices) internal register or setting GPIO (General Purpose Input Output, universal input/output) low and high level, CPLD by detection internal register or GPIO height Low level is not responding to external key operation in specific configuration, realizes the function of shielding physical button.
But this method, when BMC is restarted or CPLD is restarted, GPIO state may change, and post inside CPLD Storage can be reset, and all might have certain time and system is made to be in uncontrolled state, cannot reach the effect of shielding physical button Fruit.
Therefore, how to provide a kind of scheme of solution above-mentioned technical problem is that current those skilled in the art need to solve Problem.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of control device and method of server switching on and shutting down, really with this Protecting physical button can effectively be disabled.Its concrete scheme is as follows:
A kind of control device of server switching on and shutting down, comprising:
BMC, for obtaining the configuration-direct of remote user;
The IO Expander being connect with the BMC, for obtaining the configuration-direct, and it is defeated according to the configuration-direct Corresponding level out;
The CPLD being all connected with IO Expander, the BMC, for according to the level, control server switch The physical button of machine is disabling or enables.
Preferably, the IO Expander is specifically used for:
Obtain the configuration-direct;
When the configuration-direct is the disabling physical button, output high level;
When the configuration-direct is the enabling physical button, output low level.
Preferably, the CPLD is specifically used for:
When the level be high level, disable the physical button;
When the level be low level, enable the physical button.
Preferably, the BMC is connect with the IO Expander by I2C bus;The IO Expander with it is described CPLD is connected by GPIO bus.
Preferably, the BMC is also used to obtain the control instruction of the remote user;
The CPLD is also used to:
When disabling the physical button, the control instruction of the remote user is only executed;
When enabling the physical button, executes the control instruction of the remote user and sent by the physical button Control instruction.
Preferably, the control instruction are as follows:
Power-on instruction or shutdown command or instruction of restarting.
Correspondingly, the invention discloses a kind of control methods of server switching on and shutting down, comprising:
The configuration-direct of remote user is obtained by BMC;
The configuration-direct is obtained by IO Expander, and corresponding level is exported according to the configuration-direct;
According to the level, the physical button by CPLD control server switching on and shutting down is disabling or enables.
Preferably, the process that corresponding level is exported according to the configuration-direct, specifically includes:
When the configuration-direct is the disabling physical button, output high level;
When the configuration-direct is the enabling physical button, output low level.
Preferably, described that the process for whether disabling the physical button of server switching on and shutting down set, it specifically includes:
When the level be high level, disable the physical button;
When the level be low level, enable the physical button.
Preferably, the control method further include:
The control instruction of the remote user is obtained by the BMC;
When disabling the physical button, the control instruction of the remote user is executed by the CPLD;
When enabling the physical button, the control instruction of the remote user is executed by the CPLD and by described The control instruction that physical button is sent.
The invention discloses a kind of control devices of server switching on and shutting down, comprising: BMC, for obtaining matching for remote user Set instruction;The IO Expander connecting with the BMC is exported for obtaining the configuration-direct, and according to the configuration-direct Corresponding level;The CPLD being all connected with IO Expander, the BMC, for according to the level, control server The physical button of switching on and shutting down is disabling or enables.In the present invention, disabling or the relevant configuration instruction for enabling physical button are stored Configuration-direct in IO Expander, independently of BMC and CPLD, if BMC or CPLD power-down rebooting, in IO Expander It will not change, output level is constant, and physical button is that disabling or the state enabled will not be as the prior arts in control device In equally there is a possibility that uncontrolled, improve the controllable degree of server, ensure that server use state stablize safety.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of structure distribution figure of the control device of server switching on and shutting down in the embodiment of the present invention;
Fig. 2 is a kind of step flow chart of the control method of server switching on and shutting down in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Raising with user to server performance demand, user to the quantity required of server computing node also increasingly More, a large amount of server centered is placed in remote equipment room or data center by more user's selections, passes through server monitoring pipe Module BMC is managed remotely to be managed.Server monitoring management module such as can be realized switching on and shutting down to service, restart at the operation, User, which by network remote connects BMC and can realize to server, in this way manages, and carries out switching on and shutting down, the operation such as restarts, is not necessarily to Into computer room operating physical host, server is in distant place computer room, physical contact and protection of the user to server host at this time It is limited, need the guarantee of software realization physical security.
Currently used method is to configure CPLD internal register or setting GPIO low and high level by I2C using BMC, CPLD is not responding to external key operation in specific configuration by detection internal register or the low and high level of GPIO, real Now shield the function of physical button.But this method, when BMC is restarted or CPLD is restarted, GPIO state may change Become, CPLD internal register can reset, and all might have certain time and system is made to be in uncontrolled state, cannot reach shielding The effect of physical button.
In the present invention, disabling or the relevant configuration instruction for enabling physical button are stored in IO Expander, independently of BMC and CPLD, if BMC or CPLD power-down rebooting, the configuration-direct in IO Expander will not change, output level It is constant, in control device physical button be disabling or enable state will not there are uncontrolled possibility as in the prior art Property, the controllable degree of server is improved, ensure that server use state stablizes safety.
It is shown in Figure 1 the embodiment of the invention discloses a kind of control device of server switching on and shutting down, comprising:
BMC 1, for obtaining the configuration-direct of remote user;
The I/O expander IO Expander 2 being connect with the BMC 1, for obtaining the configuration-direct, and according to institute It states configuration-direct and exports corresponding level;
The CPLD 3 being all connected with the IO Expander 2, the BMC 1, for according to the level, control service The physical button of device switching on and shutting down is disabling or enables.
It is understood that information flow relevant to configuration-direct specifically includes: BMC 1 obtains configuration-direct and sends To IO Expander 2, IO Expander 2 is controlled to CPLD 3, CPLD 3 according to level according to configuration-direct output level The state of physical button is disabling or enables.If controlling physical button is disabling, the switching on and shutting down of server can only be by remote Journey client controls, if control physical button is to enable, the switching on and shutting down of server both can be controlled by remote client, It can also be controlled by the movement of physical button.
In concrete application, the BMC 1 is also used to obtain the control instruction of the remote user;
Correspondingly, the CPLD 3 is also used to: when disabling the physical button, only executing the control of the remote user Instruction;When enabling the physical button, executes the control instruction of the remote user and sent by the physical button Control instruction.
Wherein, when CPLD 3 executes the control instruction of remote user, the control command of the transmission of BMC 1 is directly acquired.
It is understood that control instruction described in the present embodiment are as follows: power-on instruction or shutdown command or instruction of restarting.
The invention discloses a kind of control devices of server switching on and shutting down, comprising: BMC, for obtaining matching for remote user Set instruction;The IO Expander connecting with the BMC is exported for obtaining the configuration-direct, and according to the configuration-direct Corresponding level;The CPLD being all connected with IO Expander, the BMC, for according to the level, control server The physical button of switching on and shutting down is disabling or enables.In the present invention, disabling or the relevant configuration instruction for enabling physical button are stored Configuration-direct in IO Expander, independently of BMC and CPLD, if BMC or CPLD power-down rebooting, in IO Expander It will not change, output level is constant, and physical button is that disabling or the state enabled will not be as the prior arts in control device In equally there is a possibility that uncontrolled, improve the controllable degree of server, ensure that server use state stablize safety.
The embodiment of the invention discloses a kind of control device of specific server switching on and shutting down, relative to a upper embodiment, The present embodiment has made further instruction and optimization to technical solution.It is specific:
The IO Expander 2 is specifically used for:
Obtain the configuration-direct;
When the configuration-direct is the disabling physical button, output high level;
When the configuration-direct is the enabling physical button, output low level.
Correspondingly, the CPLD 3 is specifically used for:
When the level be high level, disable the physical button;
When the level be low level, enable the physical button.
As can be seen that counterlogic is disabling physical button when level is high level, it is corresponding when level is low level to enable Physical button.Certainly, other than the logic setting in the present embodiment, this hair is also may be implemented in the corresponding disabling physical button of low level Bright purpose.
Further, the BMC 1 is connect with the IO Expander 2 by I2C bus;The IOExpander 2 It is connect with the CPLD 3 by GPIO bus.
At this point, the level that IO Expander 2 is exported, actually the low and high level state of GPIO bus, CPLD 3 Physical button is controlled according to GPIO bus as disabling or enabled.
It can be seen that saving by third party IO Expander 2 to configuration-direct, it is capable of providing server physical button The stability of function of shielding prevents unexpected physical button operation from influencing the operation of server host.
Correspondingly, the embodiment of the invention also discloses a kind of control method of server switching on and shutting down, shown in Figure 2, packet It includes:
S1: the configuration-direct of remote user is obtained by BMC;
S2: the configuration-direct is obtained by IO Expander, and corresponding level is exported according to the configuration-direct;
S3: according to the level, the physical button by CPLD control server switching on and shutting down is disabling or enables.
In some preferred embodiments, the process that corresponding level is exported according to the configuration-direct, specifically includes:
When the configuration-direct is the disabling physical button, output high level;
When the configuration-direct is the enabling physical button, output low level.
In some preferred embodiments, described that the process for whether disabling the physical button of server switching on and shutting down set, specifically Include:
When the level be high level, disable the physical button;
When the level be low level, enable the physical button.
In some preferred embodiments, the control method further include:
The control instruction of the remote user is obtained by the BMC;
When disabling the physical button, the control instruction of the remote user is executed by the CPLD;
When enabling the physical button, the control instruction of the remote user is executed by the CPLD and by described The control instruction that physical button is sent
In the present invention, disabling or the relevant configuration instruction for enabling physical button are stored in IO Expander, independently of BMC and CPLD, if BMC or CPLD power-down rebooting, the configuration-direct in IO Expander will not change, output level It is constant, in control device physical button be disabling or enable state will not there are uncontrolled possibility as in the prior art Property, the controllable degree of server is improved, ensure that server use state stablizes safety.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
A kind of control device and method of server switching on and shutting down provided by the present invention is described in detail above, this Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to It facilitates the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair Limitation of the invention.

Claims (10)

1. a kind of control device of server switching on and shutting down characterized by comprising
BMC, for obtaining the configuration-direct of remote user;
The IO Expander being connect with the BMC, for obtaining the configuration-direct, and according to the configuration-direct output phase The level answered;
The CPLD being all connected with IO Expander, the BMC is used for according to the level, control server switching on and shutting down Physical button is disabling or enables.
2. control device according to claim 1, which is characterized in that the IO Expander is specifically used for:
Obtain the configuration-direct;
When the configuration-direct is the disabling physical button, output high level;
When the configuration-direct is the enabling physical button, output low level.
3. control device according to claim 2, which is characterized in that the CPLD is specifically used for:
When the level be high level, disable the physical button;
When the level be low level, enable the physical button.
4. control device according to claim 3, which is characterized in that
The BMC is connect with the IO Expander by I2C bus;
The IO Expander is connect with the CPLD by GPIO bus.
5. according to claim 1 to any one of 4 control devices, which is characterized in that
The BMC is also used to obtain the control instruction of the remote user;
The CPLD is also used to:
When disabling the physical button, the control instruction of the remote user is only executed;
When enabling the physical button, the control that executes the control instruction of the remote user and sent by the physical button System instruction.
6. control device according to claim 5, which is characterized in that the control instruction are as follows:
Power-on instruction or shutdown command or instruction of restarting.
7. a kind of control method of server switching on and shutting down characterized by comprising
The configuration-direct of remote user is obtained by BMC;
The configuration-direct is obtained by IO Expander, and corresponding level is exported according to the configuration-direct;
According to the level, the physical button by CPLD control server switching on and shutting down is disabling or enables.
8. control method according to claim 7, which is characterized in that described to export corresponding level according to the configuration-direct Process, specifically include:
When the configuration-direct is the disabling physical button, output high level;
When the configuration-direct is the enabling physical button, output low level.
9. control method according to claim 8, which is characterized in that described that the physics for whether disabling server switching on and shutting down set The process of key, specifically includes:
When the level be high level, disable the physical button;
When the level be low level, enable the physical button.
10. according to any one of claim 7 to 9 control method, which is characterized in that further include:
The control instruction of the remote user is obtained by the BMC;
When disabling the physical button, the control instruction of the remote user is executed by the CPLD;
When enabling the physical button, the control instruction of the remote user is executed by the CPLD and by the physics The control instruction that key is sent.
CN201811062361.3A 2018-09-12 2018-09-12 Device and method for controlling startup and shutdown of server Active CN109298892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811062361.3A CN109298892B (en) 2018-09-12 2018-09-12 Device and method for controlling startup and shutdown of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811062361.3A CN109298892B (en) 2018-09-12 2018-09-12 Device and method for controlling startup and shutdown of server

Publications (2)

Publication Number Publication Date
CN109298892A true CN109298892A (en) 2019-02-01
CN109298892B CN109298892B (en) 2022-02-18

Family

ID=65166729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811062361.3A Active CN109298892B (en) 2018-09-12 2018-09-12 Device and method for controlling startup and shutdown of server

Country Status (1)

Country Link
CN (1) CN109298892B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110098965A (en) * 2019-05-07 2019-08-06 苏州浪潮智能科技有限公司 A kind of server management system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516681A (en) * 2013-09-26 2015-04-15 纬创资通股份有限公司 Data storage system and control method thereof
CN108170245A (en) * 2018-01-25 2018-06-15 郑州云海信息技术有限公司 Control system, method and the server management system of server physical button operation
CN108228394A (en) * 2018-01-02 2018-06-29 郑州云海信息技术有限公司 A kind of double BIOS Flash control systems of server and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516681A (en) * 2013-09-26 2015-04-15 纬创资通股份有限公司 Data storage system and control method thereof
CN108228394A (en) * 2018-01-02 2018-06-29 郑州云海信息技术有限公司 A kind of double BIOS Flash control systems of server and method
CN108170245A (en) * 2018-01-25 2018-06-15 郑州云海信息技术有限公司 Control system, method and the server management system of server physical button operation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110098965A (en) * 2019-05-07 2019-08-06 苏州浪潮智能科技有限公司 A kind of server management system and method

Also Published As

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

Similar Documents

Publication Publication Date Title
US8521929B2 (en) Virtual serial port management system and method
TWI567536B (en) Power management circuit, server and power management method thereof
CN104503783A (en) Method and server for presenting initialization degree of server hardware
CN109086634A (en) A kind of BMC chip management method, system and BMC chip and storage medium
CN103442410A (en) Network breakdown re-access method based on internet of things embedded Wi-Fi module
EP2372491A1 (en) Power lock-up setting method and electronic apparatus using the same
CN104898438A (en) Household electrical appliance control method and apparatus, and terminal
CN104038803A (en) Modularized smart television and interactive method applied to same
CN102855149B (en) A kind of chip operating system upgrade method, device and system
CN110098965A (en) A kind of server management system and method
CN103793012A (en) Double-host integration physical isolation safety computer
CN114185603B (en) Control method of intelligent accelerator card, server and intelligent accelerator card
US20180302407A1 (en) Method to improve keyboard, video and mouse (kvm) security on blocking incoming kvm privilege request
CN103984616A (en) Server monitoring method and server
CN109298892A (en) A kind of control device and method of server switching on and shutting down
CN104166521A (en) Computer with a memory card
CN104539493A (en) Intelligent terminal system and method of management and control over intelligent household electric appliances based on USB interface
CN112367327A (en) Power secondary equipment debugging safety access communication device and method
CN109508208A (en) A kind of starting up's control method, device, state machine and device storing equipment
CN108989058A (en) A kind of server operation method and device
CN108050653B (en) Precise air conditioner starting password configuration method and system and precise air conditioner
CN109039777A (en) A kind of wifi equipment and its match network method
CN109032765A (en) A kind of virtual machine two-node cluster hot backup dispositions method, device and equipment
CN105589659B (en) Data processing system with multiple subsystems and method
CN112578890B (en) Server device capable of remotely controlling node power supply

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