CN108322532A - Control method, device and the computer readable storage medium of server switching on and shutting down - Google Patents

Control method, device and the computer readable storage medium of server switching on and shutting down Download PDF

Info

Publication number
CN108322532A
CN108322532A CN201810095656.4A CN201810095656A CN108322532A CN 108322532 A CN108322532 A CN 108322532A CN 201810095656 A CN201810095656 A CN 201810095656A CN 108322532 A CN108322532 A CN 108322532A
Authority
CN
China
Prior art keywords
shutting down
server
switching
server switching
policy data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810095656.4A
Other languages
Chinese (zh)
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 CN201810095656.4A priority Critical patent/CN108322532A/en
Publication of CN108322532A publication Critical patent/CN108322532A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of control method of server switching on and shutting down, this method includes:Receive the server switching on and shutting down policy data that user issues;In the database by the storage of server switching on and shutting down policy data;When electric on the server, reading service device switching on and shutting down policy data is to determine to be turned on and off server from database.The technical solution provided using the embodiment of the present invention so that when controlling the switching on and shutting down of server, cost is reduced, it is simple to operate.The invention also discloses a kind of control methods and computer readable storage medium of server switching on and shutting down, have relevant art effect.

Description

Control method, device and the computer readable storage medium of server switching on and shutting down
Technical field
The present invention relates to server admin technical fields, more particularly to a kind of control method of server switching on and shutting down, dress It sets and computer readable storage medium.
Background technology
With the continuous development of computer technology, server is widely used, and is especially containing multiple clothes It is engaged in the Cloud Server of device, user can execute task using the resource of multiple servers, greatly improve the use of user Experience.
In the prior art, when user needs to open server, the policy data for controlling server unlatching is written (Electrically Erasable Programmable read only memory, electric erazable programmable is read-only to be deposited EEPROM Reservoir) in, correspondingly, when needing to close server, then the policy data for closing server is write into EEPROM. The cost of EEPROM is higher, especially in this occasion for containing multiple servers of Cloud Server, due to each server It is required for being provided with corresponding EEPROM so that cost greatly improves.
It is current this field in conclusion how when controlling the switching on and shutting down of server to be effectively reduced cost Technical staff is badly in need of the technical issues of solving.
Invention content
The object of the present invention is to provide a kind of control method, device and the computer-readable storage mediums of server switching on and shutting down Matter, to reduce the cost when controlling the switching on and shutting down of server.
In order to solve the above technical problems, the present invention provides the following technical solutions:
A kind of control method of server switching on and shutting down, this method include:
Receive the server switching on and shutting down policy data that user issues;
In the database by server switching on and shutting down policy data storage;
When the server powers on, the server switching on and shutting down policy data is read from the database to determine out Open or close the server.
Preferably, the server switching on and shutting down policy data is read from the database to determine unlatching or pass described It closes after the server, further includes:
The prompt message of the on-off state comprising the server is sent to user.
Preferably, the server switching on and shutting down policy data for receiving user and issuing, including:
Receive the server switching on and shutting down policy data that user is issued by webpage WEB terminal.
Preferably, the database is the database in baseboard management controller BMC.
Preferably, described to store the server switching on and shutting down policy data in the database, including:
The server switching on and shutting down policy data is stored in the object listing pre-established in the database.
A kind of control device of server switching on and shutting down, the device include:
Data reception module, the server switching on and shutting down policy data issued for receiving user;
Data memory module, for storing in the database the server switching on and shutting down policy data;
Data read module, for when the server powers on, reading the server switch from the database Machine policy data is to determine to be turned on and off the server.
Preferably, further include:
Prompt message output module, for reading the server switching on and shutting down policy data from the database described To determine after being turned on and off the server, the prompt letter of the on-off state comprising the server is sent to user Breath.
Preferably, the data reception module, is specifically used for:
Receive the server switching on and shutting down policy data that user is issued by webpage WEB terminal.
Preferably, the data memory module, is specifically used for:
The server switching on and shutting down policy data is stored in the object listing pre-established in the database.
A kind of computer readable storage medium is stored with the control of server switching on and shutting down on the computer readable storage medium The control program of processing procedure sequence, the server switching on and shutting down realizes server switch described in any one of the above embodiments when being executed by processor The step of control method of machine.
The technical solution provided using the embodiment of the present invention, including:Receive the server switching on and shutting down strategy that user issues Data;In the database by the storage of server switching on and shutting down policy data;When electric on the server, the reading service device from database Switching on and shutting down policy data is to determine to be turned on and off server.
After receiving the server switching on and shutting down policy data that user issues, which is stored In the database, due to that need not use EEPROM, but the database that use cost is very low so that in the switch to server When machine is controlled, cost is reduced.In addition, to the simple to operate of database.
Description of the drawings
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 technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of implementing procedure figure of the control method of server switching on and shutting down in the present invention;
Fig. 2 is a kind of structural schematic diagram of the control device of server switching on and shutting down in the present invention.
Specific implementation mode
Core of the invention is to provide a kind of control method of server switching on and shutting down so as to the switching on and shutting down of server into When row control, cost is reduced, it is simple to operate.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of implementing procedure figure of the control method of server switching on and shutting down in the present invention, this method Include the following steps:
S101:Receive the server switching on and shutting down policy data that user issues.
User can carry out issuing for server switching on and shutting down policy data by forms such as instructions, can be by BMC (substrate pipes Manage controller, Baseboard Management Controller) it reads command adapted thereto and receives the server carried in instruction Switching on and shutting down policy data.It is of course also possible to issuing for server switching on and shutting down policy data is carried out by other forms, correspondingly, Can also by other means, such as other background programs receive the server switching on and shutting down policy data, do not influence the present invention Implementation.
After receiving server switching on and shutting down policy data, the operation of step S102 can be carried out.
S102:In the database by the storage of server switching on and shutting down policy data.
In the specific implementation, database can be the database in BMC, it is of course also possible to carry out it according to actual conditions The design of the database of his mode.The data manipulation of database is more simple and convenient compared to EEPROM.And server is opened Policy data storage shut down in the database, reduces due to the use of equipment cost caused by EEPROM.Server switching on and shutting down The concrete form of policy data can also be set and be adjusted according to actual conditions, such as be adjusted according to the difference of database It is whole, such as indicate that corresponding server should be in open state with data 1,0 indicates that the server should be closed. When by the storage of server switching on and shutting down policy data in the database, the form of covering can be used to be stored, i.e., whenever reception When to new server switching on and shutting down policy data, which is covered into original server and is switched Machine policy data.
S103:When electric on the server, reading service device switching on and shutting down policy data is to determine to open or close from database Close server.
When electric on the server, can from database reading service device switching on and shutting down policy data to determine to be turned on and off Server.Such as in a kind of specific implementation mode, BMC can from database reading service device switching on and shutting down policy data, when this When server switching on and shutting down policy data is 1, BMC opens server, and when the server switching on and shutting down policy data is 0, BMC is closed Server.
When carrying out the reading of server switching on and shutting down policy data, can be read with selection cycle, it can also be according to other Mode is read out, and has no effect on the implementation of the present invention.Such as in a specific embodiment, whenever server never powers on To when powering on, the reading of server switching on and shutting down policy data of progress is to determine to be turned on and off server, such way The former working condition of server when being conducive to restore powered-off fault.And when server is in and persistently has electricity, then it can select Select the reading for periodically carrying out server switching on and shutting down policy data.Certainly, whenever receiving server switching on and shutting down policy data When, the reading of server switching on and shutting down policy data can also be carried out, in order to which user needs the when of closing server to close clothes in time Business device, needs to open in time when opening server, and closing server in time can economize on resources, and unlatching server can carry in time The usage experience of high user.That is, when electric on the server described in step S103, what is referred to is not merely server Never power-up state to power-up state this short period, but when arbitrary in power-up state, specifically Then can be as described above at the time of reading service device switching on and shutting down policy data, it is set, is had no effect on according to actual conditions The implementation of the present invention.
The method provided using the embodiment of the present invention, including:Receive the server switching on and shutting down policy data that user issues; In the database by the storage of server switching on and shutting down policy data;When electric on the server, reading service device switchs from database Machine policy data is to determine to be turned on and off server.
After receiving the server switching on and shutting down policy data that user issues, which is stored In the database, due to that need not use EEPROM, but the database that use cost is very low so that in the switch to server When machine is controlled, cost is reduced.In addition, to the simple to operate of database.
In a kind of specific implementation mode of the present invention, after step s 103, can also include:
The prompt message of the on-off state comprising server is sent to user.
Can after from reading service device switching on and shutting down policy data in database to determine to be turned on and off server, to User sends the prompt message of the on-off state comprising server.In the specific implementation, it can be carried by display screen The transmission for showing information, in order to which user learns the working condition of server in time.It is of course also possible to be carried using other equipment The transmission for showing information has no effect on the implementation of the present invention.
In a kind of specific implementation mode of the present invention, step S101 may include:
Receive the server switching on and shutting down policy data that user is issued by webpage WEB terminal.
Page end can be used to carry out issuing for server switching on and shutting down policy data, server switch is carried out using page end Issuing for machine policy data, it is easy to operate.For example, user can be carried out with the button that is shown in webpage clicking server unlatching or It closes.
In a kind of specific implementation mode of the present invention, step S102 may include:
Server switching on and shutting down policy data is stored in the object listing pre-established in the database.
When carrying out the storage of server switching on and shutting down policy data, the form of object listing can be used to be stored, mesh Mark list can be named as server_policy.Depositing for server switching on and shutting down policy data is carried out using the form of object listing Chu Shi, the foundation and operation of object listing are all very simple.Further, since there are multiple servers in Cloud Server, in one kind In specific implementation mode, the respective server switching on and shutting down policy data of each server can be stored in a database, So that cost more reduces, and integrated level height is convenient for management.In the database, an object listing can be used to carry out more The storage of the server switching on and shutting down policy data of a server.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of control dress of server switching on and shutting down It sets, the control method of the control device of server switching on and shutting down described below and above-described server switching on and shutting down can be mutually right It should refer to.
It is shown in Figure 2, for a kind of structural schematic diagram of the control device of server switching on and shutting down in the present invention, the device packet It includes with lower module:
Data reception module 201, the server switching on and shutting down policy data issued for receiving user;
Data memory module 202, for storing in the database server switching on and shutting down policy data;
Data read module 203, for when server powers on, the reading service device switching on and shutting down policy data from database To determine to be turned on and off server.
The device provided using the embodiment of the present invention, including:Data reception module, the service issued for receiving user Device switching on and shutting down policy data;Data memory module, for storing in the database server switching on and shutting down policy data;Data are read Modulus block, when for electricity on the server, reading service device switching on and shutting down policy data is to determine to be turned on and off from database Server.
After receiving the server switching on and shutting down policy data that user issues, which is stored In the database, due to that need not use EEPROM, but the database that use cost is very low so that in the switch to server When machine is controlled, cost is reduced.In addition, to the simple to operate of database.
In a kind of specific implementation mode of the present invention, further include:
Prompt message output module, for from database reading service device switching on and shutting down policy data with determine open or It closes after server, the prompt message of the on-off state comprising server is sent to user.
In a kind of specific implementation mode of the present invention, data reception module 201 is specifically used for:
Receive the server switching on and shutting down policy data that user is issued by webpage WEB terminal.
In a kind of specific implementation mode of the present invention, data memory module 202 is specifically used for:
Server switching on and shutting down policy data is stored in the object listing pre-established in the database.
Corresponding to above method and device embodiment, the embodiment of the present invention additionally provides a kind of computer-readable storage medium Matter is stored with the control program of server switching on and shutting down, the control program of server switching on and shutting down on the computer readable storage medium The step of control method of the server switching on and shutting down in any of the above-described embodiment is realized when being executed by processor does not repeat to say herein It is bright.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with it is other The difference of embodiment, just to refer each other for same or similar part between each embodiment.For being filled disclosed in embodiment Set with for computer readable storage medium, since it is corresponded to the methods disclosed in the examples, thus description it is fairly simple, Reference may be made to the description of the method.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.Specific case used herein is to the principle of the present invention and reality The mode of applying is expounded, and the explanation of above example is only intended to help to understand that technical scheme of the present invention and its core are thought Think.It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, may be used also With several improvements and modifications are made to the present invention, these improvement and modification are also fallen within the protection scope of the claims of the present invention.

Claims (10)

1. a kind of control method of server switching on and shutting down, which is characterized in that including:
Receive the server switching on and shutting down policy data that user issues;
In the database by server switching on and shutting down policy data storage;
When the server powers on, read the server switching on and shutting down policy data from the database with determine open or Close the server.
2. the control method of server switching on and shutting down according to claim 1, which is characterized in that described from the database After the middle reading server switching on and shutting down policy data is to determine to be turned on and off the server, further include:
The prompt message of the on-off state comprising the server is sent to user.
3. the control method of server switching on and shutting down according to claim 1, which is characterized in that described to receive what user issued Server switching on and shutting down policy data, including:
Receive the server switching on and shutting down policy data that user is issued by webpage WEB terminal.
4. the control method of server switching on and shutting down according to claim 1, which is characterized in that the database is substrate pipe Manage the database in controller BMC.
5. the control method of server switching on and shutting down according to any one of claims 1 to 4, which is characterized in that described by institute State the storage of server switching on and shutting down policy data in the database, including:
The server switching on and shutting down policy data is stored in the object listing pre-established in the database.
6. a kind of control device of server switching on and shutting down, which is characterized in that including:
Data reception module, the server switching on and shutting down policy data issued for receiving user;
Data memory module, for storing in the database the server switching on and shutting down policy data;
Data read module, for when the server powers on, reading the server switching on and shutting down plan from the database Slightly data are to determine to be turned on and off the server.
7. the control device of server switching on and shutting down according to claim 6, which is characterized in that further include:
Prompt message output module, for reading the server switching on and shutting down policy data from the database described with certainly Surely it is turned on and off after the server, the prompt message of the on-off state comprising the server is sent to user.
8. the control device of server switching on and shutting down according to claim 6, which is characterized in that the data reception module, It is specifically used for:
Receive the server switching on and shutting down policy data that user is issued by webpage WEB terminal.
9. according to the control device of claim 6 to 8 any one of them server switching on and shutting down, which is characterized in that the data Memory module is specifically used for:
The server switching on and shutting down policy data is stored in the object listing pre-established in the database.
10. a kind of computer readable storage medium, which is characterized in that be stored with server on the computer readable storage medium Such as claim 1 to 5 times is realized when the control program of the control program of switching on and shutting down, the server switching on and shutting down is executed by processor The step of control method of server switching on and shutting down described in one.
CN201810095656.4A 2018-01-31 2018-01-31 Control method, device and the computer readable storage medium of server switching on and shutting down Pending CN108322532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810095656.4A CN108322532A (en) 2018-01-31 2018-01-31 Control method, device and the computer readable storage medium of server switching on and shutting down

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810095656.4A CN108322532A (en) 2018-01-31 2018-01-31 Control method, device and the computer readable storage medium of server switching on and shutting down

Publications (1)

Publication Number Publication Date
CN108322532A true CN108322532A (en) 2018-07-24

Family

ID=62887941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810095656.4A Pending CN108322532A (en) 2018-01-31 2018-01-31 Control method, device and the computer readable storage medium of server switching on and shutting down

Country Status (1)

Country Link
CN (1) CN108322532A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425923A (en) * 2007-10-30 2009-05-06 英业达股份有限公司 Method for basic input output systematic information remote setting
US20100017630A1 (en) * 2008-07-17 2010-01-21 Chih-Wei Chen Power control system of a high density server and method thereof
CN101931551A (en) * 2009-06-19 2010-12-29 鸿富锦精密工业(深圳)有限公司 System and method for managing server
CN104572412A (en) * 2013-10-29 2015-04-29 鸿富锦精密工业(深圳)有限公司 Method and system for making startup time statistics of virtual machines
CN104750525A (en) * 2015-03-25 2015-07-01 浪潮集团有限公司 Control method for turning on and turning off server in timed mode
CN107040407A (en) * 2017-03-15 2017-08-11 成都中讯创新科技股份有限公司 A kind of HPCC dynamic node operational method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425923A (en) * 2007-10-30 2009-05-06 英业达股份有限公司 Method for basic input output systematic information remote setting
US20100017630A1 (en) * 2008-07-17 2010-01-21 Chih-Wei Chen Power control system of a high density server and method thereof
CN101931551A (en) * 2009-06-19 2010-12-29 鸿富锦精密工业(深圳)有限公司 System and method for managing server
CN104572412A (en) * 2013-10-29 2015-04-29 鸿富锦精密工业(深圳)有限公司 Method and system for making startup time statistics of virtual machines
CN104750525A (en) * 2015-03-25 2015-07-01 浪潮集团有限公司 Control method for turning on and turning off server in timed mode
CN107040407A (en) * 2017-03-15 2017-08-11 成都中讯创新科技股份有限公司 A kind of HPCC dynamic node operational method

Similar Documents

Publication Publication Date Title
CN103885812B (en) Virtual machine specification method of adjustment and device
CN108563493A (en) A kind of event-driven method, device, equipment and readable storage medium storing program for executing
CN104424015B (en) A kind of virtual machine management method and device
CN106385329A (en) Processing method and device of resource pool and equipment
CN109992350A (en) The moving method and device of virtual machine in the resource pool of cloud computing system
CN109933285A (en) The data balancing method and device of distributed storage
CN110399102A (en) Method for writing data, device, equipment and the storage medium of distributed memory system
CN107135274A (en) The memory management method and device of a kind of distributed cluster system
CN110245021A (en) EMS memory management process, system, electronic equipment and the storage medium of mobile terminal
CN108762989A (en) Date storage method, device, equipment and the readable storage medium storing program for executing of solid state disk
CN108345477A (en) A kind of double-mirror shares the design method and device of conf partitioned files
CN106897115A (en) SaaS software deployments method and device under a kind of cloud environment
CN108052385A (en) A kind of Container Management method, system, equipment and computer storage media
CN108958891A (en) A kind of virutal machine memory distribution method, device and terminal
CN107193649A (en) A kind of method for scheduling task and device based on NUMA system
CN104391736B (en) The park mode method to set up and device of virtual machine
CN109032799A (en) Storage resource management method, apparatus, equipment and readable storage medium storing program for executing
CN107102889A (en) A kind of resources of virtual machine method of adjustment and device
CN109933377A (en) A kind of method for managing power supply and relevant apparatus of CPLD
CN108322532A (en) Control method, device and the computer readable storage medium of server switching on and shutting down
CN106982131A (en) Initiate method, the apparatus and system of VNF instantiations
CN108616598A (en) Method of data synchronization, device and distributed memory system
CN107172222A (en) A kind of date storage method and device based on distributed memory system
CN109150921A (en) A kind of login method of multi-node cluster, device, equipment and storage medium
CN107506500A (en) The control method and relevant apparatus of a kind of Data Migration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180724

RJ01 Rejection of invention patent application after publication