CN115934176A - Method for automatically deploying BIOS (basic input output System) of bare computer server - Google Patents
Method for automatically deploying BIOS (basic input output System) of bare computer server Download PDFInfo
- Publication number
- CN115934176A CN115934176A CN202310075839.0A CN202310075839A CN115934176A CN 115934176 A CN115934176 A CN 115934176A CN 202310075839 A CN202310075839 A CN 202310075839A CN 115934176 A CN115934176 A CN 115934176A
- Authority
- CN
- China
- Prior art keywords
- bios
- deployment
- bare
- template
- protocol
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention discloses a method for automatically deploying BIOS (basic input output System) of a bare metal server, which relates to the technical field of automatic programming. The invention automatically judges which protocol or tool is adopted to carry out BIOS access aiming at bare computer servers of different manufacturers by the system, a plurality of access protocols are used simultaneously, the access method is automatically judged by the system to ensure that the most complete BIOS configuration item parameters are obtained, manual access is reduced, a standardized BIOS template is uniformly generated by adopting a BIOS template packaging and packaging automatic deployment method, the system is automatically deployed without manual access, and the deployment time is shortened.
Description
Technical Field
The invention relates to the technical field of automatic programming, in particular to a method for automatically deploying a BIOS (basic input output System) of a bare metal server.
Background
Bare metal server essentially refers to the basic computer hard disk without operating system or software-just the physical server hardware itself, unlike traditional dedicated servers, which are more or less a whiteboard, this setup has the advantage that it can be completely customized, whereas traditional dedicated servers (already built in operating system and software) cannot, so users can get exactly what they need from the server without paying for extra functionality they do not use, bare metal servers are primarily used by users to distinguish which types of applications are best suited for hosted solutions, server BIOS is a system setup program through which system hardware can be managed and options to specify BIOS level include: change NVRAM settings after adding or removing hardware, view system hardware configuration, enable or disable power management thresholds, and manage system security.
At present, the server BIOS deployment is usually processed by the following two technologies, that is, an Agent is installed in an operating system, and then an operating system BIOS update tool developed by each server manufacturer is called through the Agent, and the BIOS is updated and deployed from an operating system interface, and the BIOS is deployed by installing an IPMI driver through protocol setting and synchronous BIOS configuration of IPMI.
But the following problems exist for the prior art:
1. the technology uses Agent programs and BIOS deployment in an operating system, occupies operating system resources and influences normal operation of services; a plurality of manufacturers install a plurality of BIOS updating tools in respective server equipment, so that the Agent program is more and more huge and is complicated to maintain; the problem that multiple batches of deployment cannot be realized and the like;
2. the single protocol cannot complete the BIOS configuration item, and the BIOS can be communicated with the server management module only through IPMI driving; some server devices which do not support the IPMI protocol cannot obtain the relevant BIOS information; IPMI is only a single protocol and cannot realize BIOS deployment and the like on a plurality of servers in batch.
Disclosure of Invention
The invention aims to provide a method for automatically deploying BIOS of a bare computer server, which takes JAVA and C # as main technical development languages, calls different protocols and tools such as Redfish, IPMI, web Service and the like in an automatic programming mode, calls a plurality of different protocol instructions through scripts, calls and reads BIOS initial data values of equipment from a BMC (baseboard management controller) port outside a bare computer server band to perform presentation and configuration modification, configures the modified configuration in a script command mode, and automatically deploys and updates the BIOS after configuring the bare computer servers of different manufacturers through the BMC port outside the bare computer server band in batch, so that a plurality of bare computer servers of the same model can be automatically deployed and updated simultaneously in a cross-network segment manner only by configuring once, and the problem brought forward in the background technology is solved.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for bare metal server BIOS automation deployment, comprising the steps of:
step one, a bare metal server starts the initialization configuration of a relevant service protocol;
secondly, the system sends an instruction, and carries out protocol calling judgment on the bare computer server through different special tools such as SSH (secure Shell), redfish and the like;
step three, judging which protocol or tool is used for fetching;
reading the BIOS parameter value of the current equipment through the SSH command or the return result of the Redfish protocol, storing the BIOS parameter value in a warehouse, and displaying the BIOS setting item on a system interface;
step five, the BIOS setting items are modified on a system interface, and then a BIOS template is stored and generated;
step six, selecting bare engine servers to be deployed, and selecting to deploy the bare engine servers locally or to deploy batch bare engine servers;
step seven, packaging and encapsulating the BIOS template;
step eight, the system sends an instruction, and BIOS automatic deployment is carried out on the bare computer server through different special tools such as SSH, redfish, IPMI and the like;
after the deployment is finished, restarting the server, and reading the value of the BMC BIOS parameter again through an SSH/Redfish protocol;
and step ten, judging whether the numerical value is consistent with the BIOS template, and judging whether redeployment is needed, wherein the deploying is successful and the deploying is failed.
The technical scheme of the invention is further improved as follows: the first step is specifically that the bare computer server performs BMC management port initialization configuration, and starts service protocols such as a BMC setting http (web), an SSH (web), a Redfish and an IPMI (intelligent platform management interface).
The technical scheme of the invention is further improved as follows: the second step is embodied in that a relevant protocol is called from a management port of the BMC of the bare metal server through the SSH, the Redfish, special tools of different devices and the like of the bare metal server.
The technical scheme of the invention is further improved as follows: the third step is that the system automatically judges which protocol or tool is adopted to carry out BIOS access aiming at bare computer servers of different manufacturers, a plurality of access protocols are used simultaneously, and the system automatically judges and uses an access method, thereby ensuring that the most complete BIOS configuration item parameters are accessed and reducing manual access participation.
The technical scheme of the invention is further improved as follows: the seventh step is embodied in that the BIOS template is automatically packaged and encapsulated by the system, the standardized BIOS template is uniformly generated by adopting the automatic deployment method for packaging and encapsulating the BIOS template, the system automatically deploys the BIOS template without manual participation, and the deployment time is shortened.
The technical scheme of the invention is further improved as follows: and the tenth step comprises two judgments of successful deployment and failed deployment, wherein the concrete expression of successful deployment is that whether the numerical value is consistent with the BIOS template or not is judged, if so, the system judges that the automatic deployment of the BIOS is finished, the deployment is finished, and the automatic deployment is marked in the system to be finished by 100%.
The technical scheme of the invention is further improved as follows: the deployment failure is specifically represented by judging whether the numerical value is consistent with the BIOS template, if not, the system judges that the BIOS is not deployed, inquiring whether the numerical value needs to be re-deployed, if so, automatically re-deployed, and if not, finishing the deployment, marking the automatic deployment failure in the system, and automatically analyzing/judging the accuracy and integrity of the deployed BIOS by adopting a method for judging whether the numerical value is consistent with the BIOS template, so as to ensure the normal and stable operation of the deployed bare computer server.
Due to the adoption of the technical scheme, compared with the prior art, the invention has the technical progress that:
1. the invention provides a method for automatically deploying BIOS of a bare computer server, which is characterized in that JAVA and C # are taken as main technical development languages, different protocols and tools such as Redfish, IPMI, web Service and the like are called in an automatic programming mode, a plurality of different protocol instructions are called through scripts, BIOS initial data values of equipment are called and read from a BMC management port outside a bare computer server band to be presented and configured and modified, the modified configuration is configured in a script command mode, and the BIOS after configuration is carried out on bare computer servers of different manufacturers through the BMC management port outside the bare computer server band in batch, so that a plurality of bare computer servers of the same network segment type can be automatically deployed and updated simultaneously in a cross-configuration mode only once.
2. The invention provides a method for automatically deploying BIOS of a bare computer server, which automatically judges which protocol or tool is adopted to carry out BIOS access on bare computer servers of different manufacturers through a system, a plurality of access protocols are used simultaneously, and the system automatically judges the access method to use, thereby ensuring that the most complete BIOS configuration item parameters are accessed and reducing manual access.
3. The invention provides a method for automatically deploying a BIOS (basic input output System) of a bare computer server.
4. The invention provides a method for automatically deploying a BIOS (basic input output System) of a bare computer server, which automatically analyzes/judges the accuracy and integrity of the BIOS after deployment by adopting a method for judging whether a numerical value is consistent with a BIOS template, and ensures the normal and stable operation of the bare computer server after deployment.
Drawings
FIG. 1 is a flow chart of bare metal server configuration and BIOS template generation of the present invention;
FIG. 2 is a flow diagram of bare metal server deployment selection and bare metal server BIOS automation deployment tool selection of the present invention;
FIG. 3 is a flow chart of BMC BIOS parameter value reading and value consistency determination of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following examples:
examples
As shown in fig. 1-3, the present invention provides a method for BIOS automation deployment of a bare metal server, comprising the following steps:
step one, a bare computer server carries out BMC management port initialization configuration, and starts service protocols such as Https (web), SSH, redfish, IPMI and the like for BMC;
step two, the system sends an instruction, related protocols are called from a BMC management port of the bare computer server through SSH, redfish, special tools of different devices and the like of the bare computer server, different protocols and tools such as Redfish, IPMI, web Service and the like are called in an automatic programming mode, a plurality of different protocol instructions are called through scripts, and BIOS initial data values of the devices are called and read from a BMC management port out of the bare computer server to be displayed and configured and modified;
thirdly, the modified configuration is subjected to BIOS access aiming at bare computer servers of different manufacturers by means of script commands, the system automatically judges which protocol or tool is adopted, a plurality of access protocols are used simultaneously, and the system automatically judges the access method to use, so that the most complete BIOS configuration item parameters are ensured to be accessed, and manual access caused by manual participation is reduced;
reading the BIOS parameter value of the current equipment through the SSH command or the return result of the Redfish protocol, storing the BIOS parameter value in a warehouse, and displaying the BIOS setting item on a system interface;
step five, the BIOS setting items are modified on a system interface, and then the BIOS template is stored and generated, the standardized BIOS template is generated uniformly, the system deploys automatically without manual participation, and the deployment time is shortened;
step six, selecting bare engine servers to be deployed, and selectively deploying the bare engine servers locally or deploying the bare engine servers in batches;
step seven, automatically packaging and encapsulating the BIOS template by using a system;
step eight, the system sends an instruction, and BIOS automatic deployment is carried out on the bare computer server through different special tools such as SSH, redfish, IPMI and the like;
after deployment is completed, restarting the server, and reading the value of the BMC BIOS parameter again through an SSH/Redfish protocol;
step ten, judging whether the numerical value is consistent with the BIOS template, if so, judging that the automatic deployment of the BIOS is finished by the system, finishing the deployment, and marking that the automatic deployment is finished by 100 percent in the system; if the BIOS deployment is not completed, the system judges that the BIOS deployment is not completed, inquires whether the BIOS deployment needs to be performed again, automatically performs the redeployment if yes, otherwise, finishes the deployment, marks the failure of the automatic deployment in the system, configures one-time cross-network segment to perform simultaneous automatic deployment and update on bare computer servers of the same type, automatically analyzes/judges the accuracy and the integrity of the BIOS after the deployment, and ensures the normal and stable operation of the bare computer servers after the deployment.
The working principle of the method for BIOS automation deployment of bare metal server is described in detail below.
As shown in fig. 1-3, when the BIOS of the bare metal server is deployed, the bare metal server first performs BMC management port initialization configuration, starts service protocols such as http (web), SSH, redfish, and IPMI, and the system sends an instruction, calling related protocols from a BMC management port of the bare metal server through SSH, redfish, different special tools for equipment and the like, calling different protocols and tools such as Redfish, IPMI, web Service and the like by using an automatic programming mode, calling various different protocol commands through the script, calling and reading BIOS initial data values of the equipment from a BMC management port out of the bare metal server band to present and configure and modify, and automatically judging which protocol or tool is adopted to carry out BIOS access on bare metal servers of different manufacturers through the mode of script commands after modification, then reading the BIOS parameter value of the current device through the SSH command or the return result of the Redfish protocol, storing the BIOS parameter value in a warehouse, displaying the BIOS setting item on a system interface, the BIOS setting items are modified on the system interface, the BIOS template is stored and generated, the standardized BIOS template is generated uniformly, the system deploys automatically, the bare computer server to be deployed is selected, the method can select to deploy the native machine or the batch bare-metal servers, automatically pack and package the BIOS template by using the system, and then the system sends instructions, BIOS automatic deployment is carried out on the bare computer server through different special tools such as SSH, redfish, IPMI and the like, after the deployment is finished, restarting the server, reading the value of the BMC BIOS parameter again through an SSH/Redfish protocol, judging whether the value is consistent with the BIOS template, if so, judging that the BIOS automatic deployment is finished by the system, finishing the deployment, and marking that the automatic deployment is finished by 100% in the system; if the BIOS deployment is not consistent, the system judges that the BIOS is not deployed, inquires whether the BIOS needs to be re-deployed, automatically re-deployed if yes, otherwise, the system finishes deployment, and marks the failure of the automatic deployment.
The present invention has been described in general terms in the foregoing, but it will be apparent to those skilled in the art that modifications and improvements can be made thereto based on the present invention. Therefore, modifications or improvements are within the scope of the invention without departing from the spirit of the inventive concept.
Claims (7)
1. A method for BIOS automatic deployment of bare metal server is characterized in that: the method comprises the following steps:
step one, a bare metal server starts the initialization configuration of a relevant service protocol;
secondly, the system sends an instruction, and carries out protocol calling judgment on the bare computer server through different special tools such as SSH (secure Shell), redfish and the like;
step three, judging which protocol or tool is used for fetching;
reading the BIOS parameter value of the current equipment through the SSH command or the return result of the Redfish protocol, storing the BIOS parameter value in a warehouse, and displaying the BIOS setting item on a system interface;
step five, the BIOS setting items are modified on a system interface, and then a BIOS template is stored and generated;
step six, selecting bare engine servers to be deployed, and selecting to deploy the bare engine servers locally or to deploy batch bare engine servers;
step seven, packaging and encapsulating the BIOS template;
step eight, the system sends an instruction, and BIOS automatic deployment is carried out on the bare computer server through different special tools such as SSH, redfish, IPMI and the like;
after deployment is completed, restarting the server, and reading the value of the BMC BIOS parameter again through an SSH/Redfish protocol;
and step ten, judging whether the numerical value is consistent with the BIOS template, and whether redeployment is needed, and labeling the deployment success and the deployment failure.
2. The method of claim 1, wherein the method further comprises: the first step is specifically that the bare metal server performs BMC management port initialization configuration, and starts service protocols such as http (web), SSH, redfish, IPMI and the like of BMC.
3. The method of claim 1, wherein the method further comprises: the second step is specifically embodied in that a relevant protocol is called from a management port of the BMC of the bare metal server through the SSH, the Redfish, different special tools of the equipment and the like of the bare metal server.
4. The method of claim 1, wherein the method further comprises: the third step is embodied in that the system automatically judges which protocol or tool is adopted to carry out BIOS access aiming at bare computer servers of different manufacturers.
5. The method of claim 1, wherein the method further comprises: and the seventh step is embodied in that the BIOS template is automatically packaged and encapsulated by the system.
6. The method of claim 1, wherein the method further comprises: and the tenth step comprises two judgments of successful deployment and failed deployment, wherein the concrete expression of successful deployment is that whether the numerical value is consistent with the BIOS template or not is judged, if so, the system judges that the automatic deployment of the BIOS is finished, the deployment is finished, and the automatic deployment is marked in the system to be finished by 100%.
7. The method of claim 6, wherein the method further comprises: the specific expression of the deployment failure is that whether the numerical value is consistent with the BIOS template or not is judged, if not, the system judges that the BIOS is not completely deployed, whether the BIOS needs to be re-deployed or not is inquired, if yes, the BIOS is automatically re-deployed, if not, the deployment is finished, and the system is marked with the automatic deployment failure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310075839.0A CN115934176A (en) | 2023-02-07 | 2023-02-07 | Method for automatically deploying BIOS (basic input output System) of bare computer server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310075839.0A CN115934176A (en) | 2023-02-07 | 2023-02-07 | Method for automatically deploying BIOS (basic input output System) of bare computer server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115934176A true CN115934176A (en) | 2023-04-07 |
Family
ID=86557988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310075839.0A Pending CN115934176A (en) | 2023-02-07 | 2023-02-07 | Method for automatically deploying BIOS (basic input output System) of bare computer server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115934176A (en) |
-
2023
- 2023-02-07 CN CN202310075839.0A patent/CN115934176A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107769949B (en) | Application component deployment method and deployment node | |
CN109889377B (en) | Method and device for deploying VNF in NFV system based on Openstack | |
WO2017202211A1 (en) | Method and device for installing service version on virtual machine | |
US20030130980A1 (en) | Efficient configuration data migration technique | |
CN111752637B (en) | Multi-service inspection management method and device, computer equipment and storage medium | |
US20140040441A1 (en) | System and method for the configuration of a clustered simulation network | |
CN113391828B (en) | Method and system for realizing system disk RAID division and installing operating system | |
CN104281542A (en) | Method, device and system for adaptation of multifunctional USB (universal serial bus) terminal equipment | |
JP2016207184A (en) | Methods of updating firmware components, computer systems, and memory device | |
CN106293842B (en) | Software installation method and device | |
CN110825428A (en) | State machine configuration method, device, equipment and readable storage medium | |
US20060129788A1 (en) | System and method for initially configuring and booting a device using a device identifier | |
WO2018058304A1 (en) | Industrial controller and method for automatically creating user interface | |
WO2020199597A1 (en) | Blockchain node management agent service installation method, electronic apparatus and storage medium | |
CN112860251A (en) | Method and system for constructing website front end | |
CN115934176A (en) | Method for automatically deploying BIOS (basic input output System) of bare computer server | |
CN112363730A (en) | Visual item deployment method, visual system, electronic equipment and storage medium | |
CN116048476A (en) | Command line tool execution method, device, medium and equipment | |
CN108375964B (en) | Conversational machine management method and device | |
EP3682606B1 (en) | Method and device manager for controlling program components in a network device | |
CN113254158B (en) | Deployment method and device of deep learning system | |
CN109669699B (en) | Application program distribution method, wireless controller and wireless access point | |
CN113918179A (en) | Method and system for automatically installing OS (operating system) by cooperation of host and intelligent network card under Linux | |
JP2005044111A (en) | Field bus system | |
US11729051B2 (en) | Automated deployment of control nodes at remote locations |
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 |