Specific embodiment
Server often is faced with the business demand of complexity in actual use, and BIOS and BMC configuration items are often
Also to change with the different of business demand.As BIOS and BMC configuration items change the increase of number of times, these configuration items can not
Deviate default value with degree, and some business demands (such as problem investigation) may require to use default configuration, this
When need to BIOS configure or/and BMC configuration carry out configuration recovery.
In existing configuration recovery scheme, recover the mode of BIOS configurations mainly by KVM (Keyboard, Video,
Mouse, keyboard, video and mouse) remote control service thinks highly of and opens, and POST (Power On Self Test, power-up from
Inspection) stage enter into BIOS arrange interface, BIOS arrange interface select Load Default (loading default value) recover acquiescence
Configuration;The mode for recovering BMC configurations is mainly by way of brushing the BMC firmwares that dispatch from the factory.
But practice finds, in above-mentioned configuration recovery scheme, BIOS and BMC configurations recover to operate separate unit to take every time
Business device, when there is multiple servers to need to carry out configuring recovery, can produce a large amount of repeated works, take time and effort.
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real
Apply the above-mentioned purpose of example, feature and advantage can become apparent from it is understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Fig. 1 is referred to, to embodiments provide a kind of schematic flow sheet of configuring management method, wherein, this is matched somebody with somebody
The management server that management method is can apply in server set cluster management system is put, as shown in figure 1, the configuring management method
May comprise steps of:
It should be noted that in embodiments of the present invention, above-mentioned server set cluster management system can be support FIST
The server set cluster management system of (the quick, intelligent the extensible tool collection of Fast Intelligent Scalable Toolkit),
In the server set cluster management system, FIST in management server, is run, each server (clothes being managed in server cluster
Business device) on run iFIST (one kind is deployed in server S D card, and (Secure Digital Memory Card, safe digital deposited
Card storage) on a kind of operating system for being integrated with server management software) or Agent (agency).
Wherein, management server can pass through FIST to the Agent that runs on each server in server cluster or iFIST
It is managed;Agent or iFIST can receive the management of FIST, and instructed to management server according to the management of FIST and report
The information of itself place server is managed to itself place server.
For ease of understanding, below so that management server is managed to the server in server cluster by FIST as an example
Illustrate, however, it should be understood that this is not limiting the scope of the present invention, i.e., in the embodiment of the present invention, management clothes
Business device can also be managed to each server in server cluster otherwise, and the embodiment of the present invention is subsequently no longer multiple
State.
Step 101, determination need the destination server being managed for configuration.
In the embodiment of the present invention, configuration management can including but not limited to configure recovery (even if the finger in server cluster
Determine server and will configure to recover to default configuration or other default restoration points), configuration distributing is (even if the specified services in server
Device carries out corresponding parameter configuration according to the configuration for issuing), configuration deleted (even if given server in server deletes corresponding
Configuration) etc..For ease of understanding, below to technical scheme provided in an embodiment of the present invention so that configuration management recovers for configuration as an example
Illustrate.
In the embodiment of the present invention, need to carry out the given server in server cluster when user (such as manager) determines
Configuration recover (including BIOS configuration recover or/and BMC configuration recover) when, user can by management server control need into
The server (referred to herein as destination server) that row configuration recovers carries out configuration recovery.
User can select the service for needing to carry out configuring recovery in the specified function interface of the FIST of management server
Device.Correspondingly, management server can determine the destination service for needing to carry out configuring recovery according to the selection instruction of user input
Device.
Step 102, to destination server send configuration management instruct so that destination server response configuration management instruct into
Row configuration management.
In the embodiment of the present invention, after management server determines the destination server for needing to carry out to configure recovery, can be with
Recover to instruct to destination server send configuration;When destination server receives configuration recovery instruction, the configuration can be responded
Recovering instruction carries out configuration recovery.
Wherein, configuration recovery instruction can serve to indicate that destination server is configured to BIOS or/and BMC matches somebody with somebody
Put recovery;Correspondingly, when destination server receives configuration recovery instruction, BIOS can be configured or/BMC is configured
Recover.
As a kind of optional embodiment, in above-mentioned steps 102, instruct to the management of destination server send configuration, with
It is managed for configuration destination server response configuration management instruction, can includes:
The configuration management instruction for carrying configuration management file is sent to destination server, so that destination server is according to this
The configuration management file carried in configuration management instruction is managed for configuration.
In this embodiment, configuration can be recovered file in advance (to recover as BIOS configurations recover file, BMC configurations
File) it is configured in FIST management systems, when user disposes FIST in management server, can also possess in management server
The configuration recovers file.
Correspondingly, after management server determines the destination server for needing to carry out configuration recovery, management server
In FIST can by network mouth by configure recover file carry configuration recover instruction in be sent to each destination server;Mesh
When mark server receives configuration recovery instruction, the configuration carried during the configuration recovers instruction can be obtained and recover file, and root
Recovering file according to the configuration carries out configuration recovery.
As another kind of optional embodiment, in above-mentioned steps 102, instruct to the management of destination server send configuration,
So that destination server response configuration management instruction is managed for configuration, can include:
Instruct to the management of destination server send configuration, so that destination server responds the configuration management and instructs, according to this
The configuration management file that prestores be managed for configuration.
In this embodiment, in advance configuration can be recovered in each server of the file configuration in server cluster,
After management server determines the destination server for needing to carry out configuration recovery, management server can be to destination server
Send configuration recovers instruction;When destination server receives configuration recovery instruction, local configuration can be obtained and recover file, and
Recovering file according to the configuration carries out configuration recovery.
Wherein, configuration recovery instruction can indicate that destination server carries out BIOS configurations recovery or/and BMC configurations are extensive
It is multiple;Correspondingly, when destination server receives configuration recovery instruction, the local BIOS of instruction acquisition can be recovered according to configuration and is matched somebody with somebody
Put recovery file or/and BMC configurations recover file, and carry out configuration recovery.
As a kind of optional embodiment, in above-mentioned steps 102, instruct to the management of destination server send configuration, can
To include:
For either objective server, can use with the presence or absence of Agent, and the Agent in judging the destination server;
If there is Agent in the destination server, and the Agent is available, then send to the Agent in the destination server
Configuration management is instructed, so that the Agent in the destination server responds the configuration management instruction and is managed for configuration.
In this embodiment, after management server is determined and needs the destination server that is managed for configuration, can be with
Whether there is Agent in judging each destination server, and when there is Agent in destination server, determine whether the Agent
Whether can use.
For either objective server, if management server determines that the destination server has Agent, and the Agent can
With then the FIST in management server can recover instruction to the Agent send configurations of destination server, by destination server
Agent completes configuration and recovers.
In one embodiment, TCP can be passed through between the Agent of the FIST and destination service of management server
(Transmission Control Protocol, transmission control protocol) message is communicated.
In this embodiment, configuration recovery file can be added from the disk of management server by the FIST of management server
Internal memory is downloaded to, and destination server is sent to by the content (character string type) for recovering file is configured by TCP message
Agent;Agent is received after configuration recovers file, can be placed in the internal memory of destination server, and by matching somebody with somebody in internal memory
The disk file for recovering that file is saved as in destination server is put, and then, Agent can call corresponding importing configuration tool to incite somebody to action
The configuration information that configuration recovers in file imports to destination server, and when destination server is restarted, relevant configuration will come into force,
So as to realize that configuration recovers.
Wherein, after Agent imports to the configuration information configured in recovery file in destination server, can delete above-mentioned
The disk file of generation, with release disk space, improves disk space resource utilization.
In another embodiment, TFTP can be passed through between the Agent of the FIST and destination service of management server
(Trivial File Transfer Protocol, TFTP) or HTTP (HyperText Transfer
Protocol, HTML (Hypertext Markup Language)) message communicating.
In this embodiment, the configuration preserved in the disk of management server can be recovered text by the FIST of management server
Part is sent to the Agent of destination server;The Agent of destination server is received after configuration recovers file, can direct root
Recovering file according to the configuration carries out configuration recovery, without loading through above-mentioned internal memory.
Further, as a kind of optional embodiment, in above-mentioned judgement destination server, whether there is Agent, and should
After Agent is available, can also include:
Otherwise, according to the IP address of the iFIST in destination server to the iFIST send configuration pipes in the destination server
Reason instruction, so that the iFIST in the destination server responds the configuration management instruction and is managed for configuration.
In this embodiment, do not exist in Agent, or destination server in management server determines destination server
There is Agent, but the Agent it is unavailable when, the FIST of management server can be extensive to the iFIST send configurations of destination server
Multiple to instruct, recovering instruction according to configuration by the iFIST of destination server carries out configuration recovery.
Specifically, the FIST of management server can be according to the IP address of the iFIST of destination server, with destination server
IFIST set up messaging channel, and referred to the iFIST send configurations of destination server by the messaging channel
Order.
Further, in this embodiment, according to the IP address of the iFIST in destination server to the destination server
In iFIST send configurations management instruction before, can also include:
The IP address of the iFIST in the destination server is obtained, and judges whether the IP address is reachable;
If it is reachable, and the iFIST in the destination server UUID (Universally Unique Identifier, lead to
With unique identifier) it is identical with the UUID of the BMC of the destination server, it is determined that perform according in the destination server
The IP address of iFIST manages the step of instructing to the iFIST send configurations in the destination server.
In this embodiment, need to be matched somebody with somebody by the iFIST of destination server when the FIST of management server determines
When putting recovery, management server needs the IP address of the iFIST for first obtaining destination server.
Wherein, the IP address of the iFIST of destination server can be sent to destination server by the iFIST of destination server
BMC, in the caching of the BMC for being stored in destination server;Management server can be obtained from the BMC of destination server
The IP address of iFIST.
Correspondingly, the FIST of management server can first attempt the UUID of the BMC for obtaining destination server, if obtaining into
Work(, then further attempt to the IP address of iFIST is obtained from the BMC of destination server.
Wherein, if the FIST of management server obtains the UUID failures of the BMC of destination server, it is considered that management clothes
The FIST of business device and the BMC connection failures of destination server, in this case, complete configuration by iFIST and recover failure.
In this embodiment, after the FIST of management server gets the IP address of the iFIST of destination server, need
Determine whether whether the IP address is reachable, for example, the FIST of management server can pass through a kind of ping (network diagnosises works
Tool) detection destination server iFIST IP address it is whether reachable.
If the FIST of management server determines that the IP address of the iFIST of destination server is reachable, management server can be with
Determine whether whether the UUID of the UUID and the BMC of destination server of the iFIST of destination server is identical;If identical, root
Recover instruction to the iFIST send configurations in destination server according to the IP address of the iFIST of destination server.
What deserves to be explained is, in this embodiment, if the FIST of management server obtains the IP address failure of iFIST,
Or, the IP address for detecting the iFIST of destination server is unreachable, or, determining the UUID and target of the iFIST of destination server
When the UUID of server is differed, the FIST of management server can decide whether to perform for the first time aforesaid operations (i.e. whether the
The IP address of iFIST is obtained once, whether for the first time whether the IP address of detection iFIST is reachable, whether judge target for the first time
Whether the UUID of the iFIST of the server and UUID of destination server is identical);If for the first time, then the FIST of management server
First startup item of destination server can be set to SD card, and control targe Server Restart, and when destination service is thought highly of
After opening, above-mentioned steps are carried out again;If not for the first time, it is determined that complete configuration by iFIST and recover failure.
Further, it should be noted that in embodiments of the present invention, Agent or iFIST carries out configuring matching somebody with somebody of using when recovering
Put recovery file to recover to issue in instruction in configuration according to being carried by FIST described in above-mentioned flow process, it is also possible in advance
Agent systems or iFIST systems in destination server is configured in, which implements here and does not repeat.
Further, in embodiments of the present invention, for BIOS configurations recover, the FIST of management server can be to target
The BIOS send configurations of server recover instruction;The BIOS of destination server is received after the configuration recovers instruction, can be by
Configuration recovery is carried out according to the mode for performing Load Default.
It should be realized that, although it is illustrated so that configuration management recovers for configuration as an example in said method flow process, but this
It is not limiting the scope of the present invention, i.e., in embodiments of the present invention, configuration management can also be configuration distributing or match somebody with somebody
Deletion etc. is put, which implements and recovers similar with the configuration of foregoing description, and the embodiment of the present invention will not be described here.
It can be seen that, in the method flow described by Fig. 1, when management server determines the target for needing to be managed for configuration
During server, management server can ring destination server by way of to the management instruction of destination server send configuration
Configuration management instruction is answered to be managed for configuration, such that it is able to realize the bulk management of the configuration of server;Additionally, working as configuration management
Operate, during configuration recovery, to recover file or in advance by configuration recovery file configuration in destination server by issuing configuration
Mode realizes that configuration recovers, and configuring the restoration point for recovering can be created by user flexibility, can both be to give tacit consent to restoration point (as recovered
For configuration of dispatching from the factory), or user create other restoration points, configuration recover motility it is higher.
In order that those skilled in the art more fully understand technical scheme provided in an embodiment of the present invention, with reference to concrete
Application scenarios are described to technical scheme provided in an embodiment of the present invention.
Fig. 2 is referred to, is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention, wherein, device A
To have run the management server of FIST, the server in the server cluster that equipment B is managed by management server, equipment B
In run Agent (or iFist).
Based on the scene shown in Fig. 2, the configuration recovery scheme provided by the embodiment of the present invention realizes that flow process is as follows:
When BIOS and BMC configurations are recovered, it is necessary first to whether there is Agent, and Agent in judging destination server
Whether can use;If so, then complete configuration by the Agent of destination server to recover;Otherwise, by the iFIST in destination service
Complete configuration to recover.
1st, situation one, server has run Agent, and the Agent is had been added in FIST equipment control lists.
Principle is realized in configuration recovery:If the Agent of a server is had added in the equipment control list of FIST,
Then recovery configuring operation can be completed by the TCP message between FIST and Agent.FIST will configure recovery file and be sent to
Agent, Agent are received and corresponding configuration import tool are called after configuration recovers file, and configuration is recovered the BIOS in file
Or BMC configuration informations are imported in server, configuration comes into force after restarting.
For configuration in this case recovers, may comprise steps of:
1), in the internal memory that the content for configuring recovery file is loaded by FIST;
2), the content for configuring recovery file that FIST is will be stored in internal memory is sent to Agent;
3), Agent receives the content that configuration recovers file, is placed in internal memory;
4), the content that the configuration in internal memory recovers file is saved as the disk file in equipment B by Agent;
5), Agent calls corresponding importing configuration tool, will configure the configuration information recovered in file and import to equipment B
In;
6), Agent delete steps 4) in generate disk file;
7), equipment B is restarted, configuration take-effective.
2nd, situation 2, server off-duty Agent.
Principle is realized in configuration recovery:If necessary to recover there is no Agent in the server that BIOS or BMC is configured, then send out
Send IPMI (Intelligent Platform Management Interface, IPMI) to order to cause to be somebody's turn to do
Server is entered in iFIST systems, is run and Agent function identical programs in iFIST systems, and user normally can hold
Row configuration recovery operation.FIST manages iFIST, first has to obtain the ip addresses of iFIST, has then set up messaging channel,
Just normally send configuration can recover instruction and configure to recover file to iFIST.
For configuration in this case recovers, may comprise steps of (to realize that configuration recovers by iFIST for the first time
As a example by):
1), FIST gives equipment B by the IPMI orders that network mouth sends " the first startup item of setting is SD card ";
2), FIST gives equipment B by the IPMI orders that network mouth sends " restarting ";
3), the iFIST systems that equipment B is entered into after restarting in operation SD card;
4), iFIST sends IPMI order handles by USB (Universal Serial Bus, USB (universal serial bus)) mouth
The IP address of iFIST is sent in the BMC cachings of equipment B;Wherein, transmitter is made as event triggering, i.e., only equipment B's
Just send when the IP address of iFIST changes;
5), FIST sends IPMI orders by network mouth and gives equipment B, and the IP address of iFIST is obtained from the BMC of equipment B;
6), FIST is loaded into the content for configuring recovery file in internal memory;
7), the content for configuring recovery file that FIST is will be stored in internal memory is sent to iFIST;
8), iFIST receives the content that configuration recovers file, is placed in internal memory;
9), the content that the configuration in internal memory recovers file is saved as the disk file in equipment B by iFIST;
10), iFIST calls corresponding importing configuration tool, will configure the configuration information recovered in file and import to equipment B
In;
11), iFIST delete steps 4) in generate disk file;
12), equipment B is restarted, configuration take-effective.
By above description as can be seen that in technical scheme provided in an embodiment of the present invention, being carried out by determination needs
The destination server of configuration management, and instruct to the management of destination server send configuration, so that destination server response configuration pipe
Reason instruction is managed for configuration, and realizes the bulk management of the configuration of server in server cluster, improves configuration management effect
Rate.
Fig. 3 is referred to, is a kind of structural representation of configuration management device provided in an embodiment of the present invention, wherein, this is matched somebody with somebody
The management server that managing device is can apply in said method embodiment is put, as shown in figure 3, the configuration management device can be with
Including:
Determining unit 310, needs the destination server being managed for configuration for determining;
Transmitting element 320, for instructing to destination server send configuration management, so that the destination server rings
The configuration management instruction is answered to be managed for configuration.
Fig. 4 is seen also, is the structural representation of another kind of configuration management device provided in an embodiment of the present invention, such as schemed
Shown in 4, on the basis of configuration management device shown in Fig. 3, the configuration management device shown in Fig. 4 also includes:
Judging unit 330, for for either objective server, judging in the destination server with the presence or absence of agency
Agent, and the Agent is available;
The transmitting element 320, if specifically for there is Agent in the destination server, and the Agent is available, then to
Agent in the destination server sends the configuration management instruction, so as to match somebody with somebody described in the Agent responses in the destination server
Put management instruction to be managed for configuration.
In an alternative embodiment, the transmitting element 320, if be additionally operable to the judging unit 330 being judged as NO, basis
The internet protocol address of the iFIST in the destination server sends the configuration pipe to the iFIST in the destination server
Reason instruction, so that the iFIST in the destination server responds the configuration management instruction and is managed for configuration.
Fig. 5 is seen also, is the structural representation of another kind of configuration management device provided in an embodiment of the present invention, such as schemed
Shown in 5, on the basis of configuration management device shown in Fig. 4, the configuration management device shown in Fig. 5 also includes:
Acquiring unit 340, for obtaining the IP address of the iFIST in destination server;
The judging unit 330, is additionally operable to judge whether the IP address is reachable;
The transmitting element 320, if specifically for reachable, and the unique identifier of the iFIST in the destination server
UUID is identical with the UUID of the baseboard management controller BMC of the destination server, then according to the iFIST's in the destination server
IP address sends the configuration management instruction to the iFIST in the destination server.
In an alternative embodiment, the transmitting element 320, carries configuration specifically for sending to the destination server
The configuration management instruction of management file, so that the destination server is according to the configuration management text carried in the configuration management instruction
Part is managed for configuration;Or, the configuration management instruction is sent to the destination server, so that destination server response
The configuration management instruction, is managed for configuration according to the configuration management file for locally prestoring.
In said apparatus, the function of unit and effect realizes that process specifically refers to correspondence step in said method
Process is realized, be will not be described here.
For device embodiment, as which corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.Device embodiment described above is only schematic, wherein described as separating component
The unit of explanation can be or may not be physically separate, as the part that unit shows can be or can also
It is not physical location, you can local to be located at one, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, the destination server being managed for configuration is needed by determination, and to destination server
Send configuration management instruction, so that destination server response configuration management instruction is managed for configuration, realizes server cluster
The bulk management of the configuration of middle server, improves configuration management efficiency.
Those skilled in the art will readily occur to its of the present invention after considering description and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification of the present invention, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the precision architecture for being described above and being shown in the drawings is the invention is not limited in, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is limited only by appended claim.