CN109086090A - A kind of method, apparatus, equipment and the storage medium of server B MC configuration - Google Patents

A kind of method, apparatus, equipment and the storage medium of server B MC configuration Download PDF

Info

Publication number
CN109086090A
CN109086090A CN201810988869.XA CN201810988869A CN109086090A CN 109086090 A CN109086090 A CN 109086090A CN 201810988869 A CN201810988869 A CN 201810988869A CN 109086090 A CN109086090 A CN 109086090A
Authority
CN
China
Prior art keywords
server
bmc
configuration
setting
script file
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
CN201810988869.XA
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 CN201810988869.XA priority Critical patent/CN109086090A/en
Publication of CN109086090A publication Critical patent/CN109086090A/en
Pending legal-status Critical Current

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/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention discloses method, apparatus, equipment and the computer readable storage mediums of a kind of server B MC configuration, comprising: obtains the setting information of the BMC setting option of the server to be configured of user's pre-selection;The setting information is saved as into BMC configuration template, generates IPMI order corresponding with the setting information;The IPMI order is encapsulated as executable script file, when so as to server installation task execution, the script file is called, completes the server B MC configuration.Using method, apparatus provided by the present invention, equipment and computer readable storage medium, the working efficiency and success rate of server installation are improved.

Description

A kind of method, apparatus, equipment and the storage medium of server B MC configuration
Technical field
The present invention relates to server installation technical field, the method, apparatus configured more particularly to a kind of server B MC, Equipment and computer readable storage medium.
Background technique
BMC is a kind of server for remote management device, can monitor plateform system management event automatically, such as: temperature exceeding standard, voltage Exceeded, fan failure and cabinet invasion etc.;BMC is by the logout of generation in non-volatile System Event Log.BMC is provided Shared register interface, can by the interface on the server or machine remote management operational management software (such as Ipmitool), the current data of platform is stored and is retrieved.
In the prior art when installing to server, some settings of server B MC are needed to configure, as web takes The unlatching that business, kvm are serviced, the time zone time of NTP, SMTP alerting service mail setting etc., staff needs taking at this time BMC is configured by inputting a series of IPMI order outside in band when business device installation.When the service for needing to configure BMC When device substantial amounts, configuration BMC is manually removed one by one, it is not only time-consuming and laborious, inevitable fault can be also brought, in turn Cause efficiency of installing software and accuracy rate low.
In summary as can be seen that the working efficiency for how improving server installation is current problem to be solved.
Summary of the invention
The object of the present invention is to provide method, apparatus, equipment and the computer-readable storages of a kind of server B MC configuration Medium, to solve the problems, such as server installation work low efficiency point in the prior art.
In order to solve the above technical problems, the present invention provides a kind of method of server B MC configuration, comprising: it is pre- to obtain user The setting information of the BMC setting option of the server to be configured of choosing;The setting information is saved as into BMC configuration template, generate with The corresponding IPMI order of the setting information;The IPMI order is encapsulated as executable script file, so as to the service When device installation task execution, the script file is called, completes the server B MC configuration.
Preferably, the BMC setting option includes: service setting option, NTP setting option, SMTP setting option and user setting item.
Preferably, the BMC setting option of user's pre-selection includes:
According to type of server, user pre-selects the predetermined number for needing to be arranged when execute server installs task BMC setting option.
Preferably, the setting information of the BMC setting option of the server to be configured for obtaining user's pre-selection includes:
After user completes the setting information input of each BMC setting option, the setting letter of each BMC setting option is obtained Breath, so that the setting information is saved as BMC configuration template and generates IPMI order corresponding with the setting information.
Preferably, described that the IPMI order is encapsulated as executable script file, so that server installation task is held When row, the script file is called, completing the server B MC configuration includes:
The IPMI order is encapsulated as to executable shell script file;
When the server installs task execution, the shell script file of script position is read;
When the shell script file meets BMC setting specification, the IPMI life in the shell script file is executed It enables, to complete the server B MC configuration.
The present invention also provides a kind of devices of server B MC configuration, comprising:
Module is obtained, the setting information of the BMC setting option of the server to be configured for obtaining user's pre-selection;
Generation module generates corresponding with the setting information for the setting information to be saved as BMC configuration template IPMI order;
Configuration module, for the IPMI order to be encapsulated as executable script file, so as to server installation When task execution, the script file is called, completes the server B MC configuration.
Preferably, the BMC setting option includes: service setting option, NTP setting option, SMTP setting option and user setting item.
Preferably, the configuration module is specifically used for:
The IPMI order is encapsulated as to executable shell script file;
When the server installs task execution, the shell script file of script position is read;
When the shell script file meets BMC setting specification, the IPMI life in the shell script file is executed It enables, to complete the server B MC configuration.
The present invention also provides a kind of equipment of server B MC configuration, comprising:
Memory, for storing computer program;Processor realizes above-mentioned one kind when for executing the computer program The step of method of server B MC configuration.
The present invention also provides a kind of computer readable storage medium, meter is stored on the computer readable storage medium The step of calculation machine program, the computer program realizes a kind of method of above-mentioned server B MC configuration when being executed by processor.
The method of server B MC configuration provided by the present invention, before the installation task of execute server, staff is pre- The BMC setting option first needed to configure according to the Unit-type sclection of the server;And input the setting information of the BMC setting option. The setting information is saved as to the BMC configuration template of fixed format, is generated and IPMI order;The IPMI order is encapsulated as Executable script file.The script file is called when the installation task of execute server, completes the dress of the server Machine task.Due to the difference of server type, some BMC configurations may be not necessarily meant to configuration during when secondary installation, Therefore different according to server type, the selection BMC setting option of differentiation, reduce the time needed for completing server installation and Manpower improves the working efficiency of server installation.And due to the BMC setting option different according to server Unit-type sclection, with mould The method divergenceization configuration BMC of plate reduces difference in configuration process caused by server different model, further ensures dress The efficiency and success rate of machine.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the first specific embodiment of the method for server B MC provided by the present invention configuration;
Fig. 2 is the flow chart of second of specific embodiment of the method for server B MC provided by the present invention configuration;
Fig. 3 is a kind of structural block diagram of the device of server B MC configuration provided in an embodiment of the present invention.
Specific embodiment
Core of the invention is to provide method, apparatus, equipment and the computer-readable storage of a kind of server B MC configuration Medium improves the working efficiency and success rate of server installation.
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 Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is the first specific embodiment of the method for server B MC provided by the present invention configuration Flow chart;Specific steps are as follows:
Step S101: the setting information of the BMC setting option of the server to be configured of user's pre-selection is obtained;
Different BMC setting options can be divided into four classes in the present embodiment: service setting option, NTP setting option, SMTP are set Set item and user setting item.The BMC setting option being arranged is needed according to the Unit-type sclection of server to be configured, selects BMC setting option Quantity be not construed as limiting.It should be noted that BMC setting option can also be divided into the classification of other quantity.
Step S102: the setting information is saved as into BMC configuration template, generates IPMI corresponding with the setting information Order;
Corresponding BMC setting option is selected according to demand, and the BMC setting option selected is set on state, is inputted Corresponding setting information saves as BMC configuration template.The BMC configuration template generates the shell accordingly containing IPMI order Script is stored in designated position;So that customer side can read perform script file when executing installation task from script position, Finally complete the setting task of BMC.
Step S103: being encapsulated as executable script file for the IPMI order, so as to server installation task When execution, the script file is called, completes the server B MC configuration.
In the present embodiment, the BMC configuration method for proposing differentiation installation process realizes the difference of server installation process Alienation configures BMC process, not only facilitates technical staff to the control of server installation process, can effectively need different installations Accurate realization is asked, the efficiency of installing software of staff is also effectively raised.And the method divergence with template that this implementation proposes Changing configuration BMC reduces difference in configuration process caused by server different model, ensure that the efficiency and success rate of installation.This Outside, in the subsequent expansion of server installation task, the setting of other service entries can be increased, it is expansible that its is also effectively guaranteed Property.
Based on the above embodiment, in the present embodiment, when installation task when client in execute server, script is read The shell script file of position;When the shell script file BMC meets setting specification, the shell script text is executed IPMI order in part, to complete the server B MC configuration.Referring to FIG. 2, Fig. 2 is server provided by the present invention The flow chart of second of specific embodiment of the method for BMC configuration;Specific steps are as follows:
Step S201: in the setting information for each BMC setting option that user completes to be preselected according to server type to be configured After input, the setting information of each BMC setting option is obtained;
In the present embodiment, front end page technology can be realized based on vue frame, complete interface using html language It presents, the realization that rear end carries out template creation using Java high-level programming language, the logics such as saves, checks and modify.
Step S202: the setting information is saved as into BMC configuration template and is generated corresponding with the setting information IPMI order;
Step S203: the IPMI order is encapsulated as to executable shell script file;
Step S204: when the server installs task execution, search and read the shell script text of script position Part;
Step S205: judge whether the shell script file meets BMC setting specification;
Step S206: it when the shell script file meets BMC setting specification, executes in the shell script file IPMI order, to complete server B MC configuration.
In the present embodiment, using the use of computer advanced programming language Java combination shell script, service is realized The differentiation of device installation process configures BMC process;And based on template creation method by different server install in BMC configure Demand difference be mapped as the corresponding template of different server, the executable script file generated in creation can be according to difference Server type is called when installing task execution and is executed.By way of above-mentioned generation template, and according to different type of machines With corresponding script is generated, the BMC configuration of server installation process is conveniently and efficiently realized, the work of staff is improved Make efficiency and also efficiently solves the variability issues of different server installation demand simultaneously.
Referring to FIG. 3, Fig. 3 is a kind of structural block diagram of the device of server B MC configuration provided in an embodiment of the present invention;Tool Body device may include:
Module 100 is obtained, the setting information of the BMC setting option of the server to be configured for obtaining user's pre-selection;
Generation module 200 generates and the setting information pair for the setting information to be saved as BMC configuration template The IPMI order answered;
Configuration module 300, for the IPMI order to be encapsulated as executable script file, so as to server dress When machine task execution, the script file is called, completes the server B MC configuration.
The method that the device of the server B MC configuration of the present embodiment configures for realizing server B MC above-mentioned, therefore take The embodiment part of the method for the visible server B MC configuration hereinbefore of the specific embodiment being engaged in the device of device BMC configuration, For example, module 100 is obtained, and generation module 200, configuration module 300, the method for being respectively used to realize above-mentioned server B MC configuration Middle step S101, S102 and S103, so, specific embodiment is referred to the description of corresponding various pieces embodiment, Details are not described herein.
The specific embodiment of the invention additionally provides a kind of equipment of server B MC configuration, comprising: memory, for storing Computer program;Processor realizes a kind of step of the method for above-mentioned server B MC configuration when for executing the computer program Suddenly.
The specific embodiment of the invention additionally provides a kind of computer readable storage medium, the computer readable storage medium On be stored with computer program, the computer program realizes a kind of side of above-mentioned server B MC configuration when being executed by processor The step of method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.
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, the specific application and design constraint depending on 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.
Above to method, apparatus, equipment and the computer-readable storage medium of server B MC provided by the present invention configuration Matter is described in detail.Used herein a specific example illustrates the principle and implementation of the invention, above The explanation of embodiment is merely used to help understand method and its core concept of the invention.It should be pointed out that for the art Those of ordinary skill for, without departing from the principle of the present invention, can also to the present invention carry out it is several improvement and repair Decorations, these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims (10)

1. a kind of method of server B MC configuration characterized by comprising
Obtain the setting information of the BMC setting option of the server to be configured of user's pre-selection;
The setting information is saved as into BMC configuration template, generates IPMI order corresponding with the setting information;
The IPMI order is encapsulated as executable script file, when so as to server installation task execution, calls institute Script file is stated, the server B MC configuration is completed.
2. the method as described in claim 1, which is characterized in that the BMC setting option includes:
Service setting option, NTP setting option, SMTP setting option and user setting item.
3. method according to claim 2, which is characterized in that the BMC setting option of user pre-selection includes:
According to type of server, user pre-selects the BMC for the predetermined number for needing to be arranged when execute server installs task Setting option.
4. method as claimed in claim 3, which is characterized in that the BMC of the server to be configured for obtaining user's pre-selection is set The setting information for setting item includes:
After user completes the setting information input of each BMC setting option, the setting information of each BMC setting option is obtained, To which the setting information is saved as BMC configuration template and generates IPMI order corresponding with the setting information.
5. the method as described in claim 1, which is characterized in that described that the IPMI order is encapsulated as to executable script text Part calls the script file when so as to server installation task execution, completes the server B MC configuration and includes:
The IPMI order is encapsulated as to executable shell script file;
When the server installs task execution, the shell script file of script position is read;
When the shell script file meets BMC setting specification, the IPMI order in the shell script file is executed, from And complete the server B MC configuration.
6. a kind of device of server B MC configuration characterized by comprising
Module is obtained, the setting information of the BMC setting option of the server to be configured for obtaining user's pre-selection;
Generation module generates IPMI corresponding with the setting information for the setting information to be saved as BMC configuration template Order;
Configuration module, for the IPMI order to be encapsulated as executable script file, so as to server installation task When execution, the script file is called, completes the server B MC configuration.
7. device as claimed in claim 6, which is characterized in that the BMC setting option includes:
Service setting option, NTP setting option, SMTP setting option and user setting item.
8. device as claimed in claim 6, which is characterized in that the configuration module is specifically used for:
The IPMI order is encapsulated as to executable shell script file;
When the server installs task execution, the shell script file of script position is read;
When the shell script file meets BMC setting specification, the IPMI order in the shell script file is executed, from And complete the server B MC configuration.
9. a kind of equipment of server B MC configuration characterized by comprising
Memory, for storing computer program;
Processor realizes a kind of server B MC as described in any one of claim 1 to 5 when for executing the computer program The step of method of configuration.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that a kind of server B MC as described in any one of claim 1 to 5 matches when the computer program is executed by processor The step of method set.
CN201810988869.XA 2018-08-28 2018-08-28 A kind of method, apparatus, equipment and the storage medium of server B MC configuration Pending CN109086090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810988869.XA CN109086090A (en) 2018-08-28 2018-08-28 A kind of method, apparatus, equipment and the storage medium of server B MC configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810988869.XA CN109086090A (en) 2018-08-28 2018-08-28 A kind of method, apparatus, equipment and the storage medium of server B MC configuration

Publications (1)

Publication Number Publication Date
CN109086090A true CN109086090A (en) 2018-12-25

Family

ID=64794920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810988869.XA Pending CN109086090A (en) 2018-08-28 2018-08-28 A kind of method, apparatus, equipment and the storage medium of server B MC configuration

Country Status (1)

Country Link
CN (1) CN109086090A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457063A (en) * 2019-07-15 2019-11-15 中国平安人寿保险股份有限公司 The packaging method and device of shell script, electronic equipment, readable storage medium storing program for executing
CN110995807A (en) * 2019-11-24 2020-04-10 苏州浪潮智能科技有限公司 Method, device and equipment for directly opening server KVM and storage medium
CN111181787A (en) * 2019-12-30 2020-05-19 浪潮电子信息产业股份有限公司 BMC parameter configuration method, device, equipment and medium
CN111526046A (en) * 2020-04-14 2020-08-11 浪潮商用机器有限公司 Method, device, equipment and storage medium for setting BMC (baseboard management controller) time
CN112083972A (en) * 2020-09-18 2020-12-15 山东英信计算机技术有限公司 BMC system configuration method, device, equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068026A1 (en) * 2012-08-31 2014-03-06 Inventec Corporation System for automatically configuring server using pre-recorded configuration script and method thereof
CN106572200A (en) * 2016-11-10 2017-04-19 郑州云海信息技术有限公司 IP address configuration method and IP address configuration device for baseboard management controller BMC

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068026A1 (en) * 2012-08-31 2014-03-06 Inventec Corporation System for automatically configuring server using pre-recorded configuration script and method thereof
CN106572200A (en) * 2016-11-10 2017-04-19 郑州云海信息技术有限公司 IP address configuration method and IP address configuration device for baseboard management controller BMC

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457063A (en) * 2019-07-15 2019-11-15 中国平安人寿保险股份有限公司 The packaging method and device of shell script, electronic equipment, readable storage medium storing program for executing
CN110457063B (en) * 2019-07-15 2024-04-16 中国平安人寿保险股份有限公司 Script program packaging method and device, electronic equipment and readable storage medium
CN110995807A (en) * 2019-11-24 2020-04-10 苏州浪潮智能科技有限公司 Method, device and equipment for directly opening server KVM and storage medium
CN111181787A (en) * 2019-12-30 2020-05-19 浪潮电子信息产业股份有限公司 BMC parameter configuration method, device, equipment and medium
CN111181787B (en) * 2019-12-30 2023-10-13 浪潮电子信息产业股份有限公司 BMC parameter configuration method, device, equipment and medium
CN111526046A (en) * 2020-04-14 2020-08-11 浪潮商用机器有限公司 Method, device, equipment and storage medium for setting BMC (baseboard management controller) time
CN112083972A (en) * 2020-09-18 2020-12-15 山东英信计算机技术有限公司 BMC system configuration method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109086090A (en) A kind of method, apparatus, equipment and the storage medium of server B MC configuration
US10229039B2 (en) Testing a virtual network function by a virtual network tester
CN105893850A (en) Bug fixing method and device
US10965552B2 (en) Method and apparatus for managing virtualized network function
CN110347383B (en) Front-end development method and device for cross-platform desktop application
CN104754032A (en) Method and device for deploying OpenStack
CN105224458A (en) A kind of database method of testing and system
CN109101397A (en) High-Performance Computing Cluster monitoring method, unit and storage medium
CN108664521B (en) Method and device for providing serial number, electronic equipment and readable storage medium
CN106293842B (en) Software installation method and device
CN109491685A (en) Method, apparatus, equipment and the storage medium of CPLD version are brushed under server
CN103903312A (en) Method and device for executing automatic inspection
CN109241037A (en) A kind of method, apparatus that realizing database processing, equipment and storage medium
CN106055535A (en) Method and device for generating charts
CN110569154B (en) Chip interface function testing method, system, terminal and storage medium
CN109446047B (en) Performance test platform script storage method, device, equipment and storage medium
CN111158743A (en) Big data operation and maintenance management platform
US11750471B2 (en) Method and apparatus for determining resource configuration of cloud service system
WO2016165461A1 (en) Automated testing method and apparatus for network management system software of telecommunications network
CN109191078A (en) A kind of traffic flow modeling method, device and equipment
CN112613275A (en) Receipt generation method and device, computer equipment and storage medium
CN111897643A (en) Thread pool configuration system, method, device and storage medium
CN109558300B (en) Whole cabinet alarm processing method and device, terminal and storage medium
CN110941422A (en) Code automatic generation method, code generator and readable storage medium
CN109656638A (en) A kind of user based on Purley platform customizes the implementation method of function

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181225