CN112527603A - Bare metal server management method and device, computer equipment and storage medium - Google Patents

Bare metal server management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112527603A
CN112527603A CN202011495925.XA CN202011495925A CN112527603A CN 112527603 A CN112527603 A CN 112527603A CN 202011495925 A CN202011495925 A CN 202011495925A CN 112527603 A CN112527603 A CN 112527603A
Authority
CN
China
Prior art keywords
preset
bare metal
preset operation
metal server
server
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
CN202011495925.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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011495925.XA priority Critical patent/CN112527603A/en
Publication of CN112527603A publication Critical patent/CN112527603A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/442Shutdown

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a bare metal server management method, a bare metal server management device, computer equipment and a storage medium, and relates to the technical field of communication, wherein the method comprises the following steps: if the bare metal server receives a preset operation instruction sent by the terminal, sending the preset operation instruction and a preset inspection parameter to the server management platform; the server management platform generates a task ID according to a preset operation instruction and a preset inspection parameter and sends the task ID to the bare metal server; the bare metal server acquires a preset operation result corresponding to the preset operation instruction executed by the server management platform by adopting a polling mechanism according to the task ID; and the terminal acquires a preset operation state and a preset operation result according to the task ID so as to manage the bare metal server. According to the embodiment of the application, the preset operation result is obtained and inquired by adopting a polling mechanism, so that the problem of waiting overtime is solved, and the user experience is improved.

Description

Bare metal server management method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a bare metal server management method, an apparatus, a computer device, and a storage medium.
Background
In the field of cloud computing in communication technology, servers are divided into virtual servers and physical servers, where a virtual server may be called a virtual machine, and a physical server may also be called a bare metal server, and the bare metal server has advantages of strong computing capability, low latency, exclusive use of users, and the like, compared with the virtual machine, and therefore is used by more and more users, and as the number of users using the bare metal server increases, the bare metal server is prone to have a problem of waiting for timeout when performing remote lifecycle management (for example, common operations such as startup, shutdown, and restart) on the bare metal server through a server management platform.
Disclosure of Invention
The embodiment of the invention provides a bare metal server management method, a bare metal server management device, computer equipment and a storage medium, and aims to solve the problem of timeout waiting when a bare metal server conducts remote life cycle management on the bare metal server through a server management platform.
In a first aspect, an embodiment of the present invention provides a bare metal server management method, which includes:
if the bare metal server receives a preset operation instruction sent by a terminal, calling an execution interface of a server management platform to send the preset operation instruction and a preset inspection parameter to the server management platform;
the server management platform generates a task ID according to the preset operation instruction and the preset inspection parameter and sends the task ID to the bare metal server;
the bare metal server stores the task ID and a preset operation state to a preset temporary table and sends the task ID to the terminal;
if the preset detection result stored in the preset temporary table in the bare metal server is successful, acquiring a preset operation result corresponding to the preset operation instruction executed by the server management platform by adopting a polling mechanism according to the task ID;
the bare metal server stores the preset operation result to the preset temporary table and updates the preset operation state;
and the terminal acquires the preset operation state and the preset operation result according to the task ID so as to manage the bare metal server.
In a second aspect, an embodiment of the present invention further provides a bare metal server management system, which includes a receiving unit, a first storage unit, an obtaining unit, a second storage unit, a generating unit configured on a server management platform, and a management unit configured on a terminal, where:
the receiving unit is used for calling an execution interface of a server management platform to send the preset operation instruction and the preset inspection parameter to the server management platform if the bare metal server receives the preset operation instruction sent by the terminal;
the generating unit is used for generating a task ID by the server management platform according to the preset operation instruction and the preset inspection parameter and sending the task ID to the bare metal server;
the first storage unit is used for storing the task ID and a preset operation state to a preset temporary table by the bare metal server and sending the task ID to the terminal;
the obtaining unit is configured to obtain, according to the task ID, a preset operation result corresponding to the preset operation instruction executed by the server management platform by using a polling mechanism if a preset detection result stored in the preset temporary table in the bare metal server is successful;
the second storage unit is used for storing the preset operation result to the preset temporary table and updating the preset operation state by the bare metal server;
and the management unit is used for the terminal to acquire the preset operation state and the preset operation result according to the task ID so as to manage the bare metal server.
In a third aspect, an embodiment of the present invention further provides a bare metal server management system, which includes a bare metal server, a server management platform, and a terminal, where the bare metal server, the server management platform, and the terminal all include a memory and a processor, where the memory stores computer programs, and the bare metal server, the server management platform, and the processor of the terminal implement the above methods together when executing the respective computer programs.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, and the computer program can implement the above method when executed by multiple processors.
The embodiment of the invention provides a bare metal server management method, a bare metal server management device, computer equipment and a storage medium. Wherein the method comprises the following steps: if the bare metal server receives a preset operation instruction sent by a terminal, calling an execution interface of a server management platform to send the preset operation instruction and a preset inspection parameter to the server management platform; the server management platform generates a task ID according to the preset operation instruction and the preset inspection parameter and sends the task ID to the bare metal server; the bare metal server stores the task ID and a preset operation state to a preset temporary table and sends the task ID to the terminal; if the preset detection result stored in the preset temporary table in the bare metal server is successful, acquiring a preset operation result corresponding to the preset operation instruction executed by the server management platform by adopting a polling mechanism according to the task ID; the bare metal server stores the preset operation result to the preset temporary table and updates the preset operation state; and the terminal acquires the preset operation state and the preset operation result according to the task ID so as to manage the bare metal server. According to the technical scheme of the embodiment of the invention, the preset operation result of the server management platform is obtained by adopting a polling mechanism, the preset running state and the preset operation result stored in the preset temporary table are inquired by adopting the polling mechanism through the task ID, so that a user can know the execution condition of the preset operation instruction in time, and the problem of overtime waiting of the bare metal server when the bare metal server conducts remote life cycle management on the bare metal server through the server management platform is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a timing diagram of a bare metal server management system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a bare metal server management method according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow diagram of a bare metal server management method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a bare metal server management method according to another embodiment of the present invention;
fig. 5 is a schematic sub-flow chart of a bare metal server management method according to another embodiment of the present invention;
fig. 6 is a schematic flowchart of a bare metal server management method according to another embodiment of the present invention;
FIG. 7 is a schematic block diagram of a bare metal server management system according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a management unit of a bare metal server management system provided by an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a first management subunit of a bare metal server management system provided by an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a bare metal server management system provided by another embodiment of the present invention;
fig. 11 is a schematic block diagram of a detection unit of a bare metal server management system according to another embodiment of the present invention;
FIG. 12 is a schematic block diagram of a detection subunit of a bare metal server management system according to another embodiment of the present invention;
FIG. 13 is a schematic block diagram of a bare metal server management system according to yet another embodiment of the present invention; and
fig. 14 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Referring to fig. 1, fig. 1 is a timing diagram of a bare metal server management system according to an embodiment of the invention. The bare metal server management system includes a terminal 10, a bare metal server 20, and a server management platform 30. The terminal includes, but is not limited to, an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, and a desktop computer. In the present embodiment, the terminal 10 communicates with the bare metal server 20 to receive a preset operation instruction sent by the terminal 10; the bare metal server 20 communicates with the server management platform 30 to send a preset operation instruction to be executed by the bare metal server 20 to the server management platform 30, the server management platform 30 receives the preset operation instruction sent by the bare metal server 20 and executes a corresponding preset operation according to the preset operation instruction, and the terminal obtains a preset operation result to realize remote management of the bare metal server 20.
Fig. 2 is a schematic flowchart of a bare metal server management method according to an embodiment of the present invention. As shown in fig. 2, the method comprises the following steps S100-S170.
S100, if the bare metal server receives a preset operation instruction sent by a terminal, calling an execution interface of a server management platform to send the preset operation instruction and a preset inspection parameter to the server management platform.
In the embodiment of the invention, after a user clicks operations such as starting, shutdown and restarting on a terminal page, a bare metal server receives a preset operation instruction sent by a terminal, then an execution interface of a server management platform is called to send the preset operation instruction and a preset inspection parameter to the server management platform, and the server management platform receives the preset operation instruction and the preset inspection parameter and generates a task ID corresponding to the preset operation instruction according to the preset operation instruction and the preset inspection parameter.
It should be noted that the preset inspection parameters include a bare metal serial number, a name of a bare metal server, an operator, and an operation state. The operation state is a current operation state of the bare metal server, such as power-on, power-off or restart.
S110, the server management platform generates a task ID according to the preset operation instruction and the preset inspection parameters and sends the task ID to the bare metal server.
In the embodiment of the invention, the server management platform generates the task ID according to the received preset operation instruction and the preset inspection parameter sent by the bare metal server, and then sends the task ID to the bare metal server.
And S120, the bare metal server stores the task ID and the preset operation state into a preset temporary table and sends the task ID to the terminal.
In the embodiment of the invention, the bare metal server receives the task ID, stores the task ID and the preset operation state into the preset temporary table, and then sends the task ID to the terminal for the terminal to use. The preset operation state comprises three states of starting, shutting down and restarting.
S130, judging whether a preset detection result stored in the preset temporary table in the bare metal server is successful or not, if so, executing a step S140, otherwise, executing a step S150.
And S140, the bare metal server acquires a preset operation result corresponding to the preset operation instruction executed by the server management platform by adopting a polling mechanism according to the task ID.
And S150, sending a failure prompt to the user.
In the embodiment of the present invention, if the preset detection result stored in the preset temporary table in the bare metal server is successful, it indicates that the preset check item of the server management platform passes, the subsequent steps may be continued, and if the preset detection result is failed, it indicates that a problem occurs in the self condition of the server management platform, which will affect the management of the bare metal server, and a failure prompt, for example, an abnormal power supply inspection is sent to the user.
And S160, the bare metal server stores the preset operation result to the preset temporary table and updates the preset operation state.
In the embodiment of the invention, after the preset operation result is obtained by adopting a polling mechanism, the bare metal server stores the preset operation result into the preset temporary table and updates the preset operation state. For example, if the preset operation result is successful and the preset operation state is in the boot process, the preset operation is the boot process after the preset operation state is updated.
S170, the terminal acquires the preset operation state and the preset operation result according to the task ID so as to manage the bare metal server.
In some embodiments, such as this embodiment, as shown in FIG. 3, the step S170 may include steps S171-S172.
S171, if the terminal receives the task ID sent by the bare metal server, calling a state interface of the bare metal server according to the task ID;
and S172, the terminal acquires the preset operation state and the preset operation result according to the state interface and the task ID so as to manage the bare metal server.
In the embodiment of the invention, the terminal receives the task ID sent by the bare metal server, calls the state interface of the bare metal server according to the task ID, and acquires the preset operation state and the preset operation result according to the state interface and the task ID to manage the bare metal server. Specifically, the terminal acquires a preset operation state and a preset operation result by adopting a polling mechanism so as to manage the bare metal server. By adopting polling mechanism query, the user can sense the operation progress, the waiting time is reduced, and the user experience is improved.
Fig. 4 is a schematic flowchart of a bare metal server management method according to another embodiment of the present invention, and as shown in fig. 4, in this embodiment, the bare metal server management method includes steps S200 to S290. Steps S200 to S270 are similar to steps S100 to S170 in the above embodiments, and are not described herein again. The step S280 and the step S290 added in the present embodiment are explained in detail below.
S280, the server management platform executes a preset check item to obtain a preset detection result and sends the preset detection result to the bare metal server;
and S290, the bare metal server stores the preset detection result into the preset temporary table.
In the embodiment of the invention, after receiving a preset operation instruction and a preset inspection parameter, a server management platform judges whether a preset detection item in the server management platform meets a preset detection requirement or not, and sends a preset detection result corresponding to the preset detection item to a bare metal server, and the bare metal server stores the preset detection result into a preset temporary table and judges the preset detection result; if the preset detection result is successful, the preset detection item in the server management platform meets the preset detection requirement, the server management platform is good in self condition and can continuously execute the preset operation instruction, and the bare metal server acquires the preset operation result corresponding to the preset operation instruction executed by the server management platform by adopting a polling mechanism according to the task ID; if the preset detection result is failure, the preset detection item in the server management platform is indicated to not meet the preset detection requirement, and a failure prompt is sent to the user to remind the user.
In some embodiments, such as this embodiment, the step S280 may include steps S281-S285, as shown in fig. 5.
S281, judging whether the bare metal server exists, if so, executing a step S282, otherwise, executing a step S285;
s282, judging whether the health state of the server management platform meets a preset health requirement, if so, executing a step S283, otherwise, executing a step S285;
s283, judging whether the power supply condition of the server management platform meets a preset power supply requirement, if so, executing step 284, otherwise, executing step S285;
s284, judging that the preset detection result is successful;
s285, judging that the preset detection result is failure.
In the embodiment of the invention, after receiving a preset operation instruction and a preset check parameter, a server management platform judges whether a preset detection item in the server management platform meets a preset detection requirement, if the server management platform detects that a bare metal server exists, the self health state meets the preset health requirement and the power condition meets the preset power requirement, the server management platform judges that a preset detection result meets the preset detection requirement, and corresponding operation of executing the preset operation instruction can be performed; specifically, judging whether a bare metal server exists; if the bare metal server exists, judging whether the health state of the server management platform meets the preset health requirement, otherwise, judging that the preset detection result is failure; if the health state of the server management platform meets the preset health requirement, judging whether the power supply condition of the server management platform meets the preset power supply requirement, and otherwise, judging that the preset detection result is failure; and if the power supply condition of the server management platform meets the preset power supply requirement, judging that the preset detection result is successful, otherwise, judging that the preset detection result is failed. If the preset detection result is successful, acquiring the preset operation result by adopting a polling mechanism, otherwise, sending a failure prompt to the user. As can be seen from the above, in this embodiment, if the preset check item does not satisfy one of the three items that the bare metal server does not exist, the self health status does not satisfy the health requirement, and the power condition does not satisfy the preset power requirement, it is determined that the preset detection result is a failure, and the preset detection result is immediately returned to the bare metal server, and the subsequent detection operation is not continued.
It should be noted that, in this embodiment, when the polling mechanism is used to obtain the preset operation result, a preset upper limit time is further set, that is, if the time for obtaining the preset operation result by using the polling mechanism exceeds the preset upper limit time, the user may be directly prompted that the execution of the preset operation instruction fails.
Fig. 6 is a flowchart illustrating a bare metal server management method according to another embodiment of the present invention, and as shown in fig. 6, in this embodiment, the bare metal server management method includes steps S300 to S391. Steps S300 to S390 are similar to steps S200 to S290 in the above embodiments, and are not described herein again. Step S391 added in the present embodiment is described in detail below.
S391, if the preset operation result acquired by the terminal is failure, displaying a failure reason for executing the preset operation instruction to a user and rolling back the preset operation state to the previous preset operation state in a preset mode.
In the embodiment of the invention, the terminal acquires the preset operation result and the preset operation state by adopting a polling mechanism, and if the preset operation result is failure, the failure reason for executing the preset operation instruction is shown to the user in a preset mode and the preset operation state is rolled back to the previous preset operation state. In this embodiment, the preset manner is to pop up a failure prompt box.
Fig. 7 is a schematic block diagram of a bare metal server management system 70 according to an embodiment of the present invention. As shown in fig. 7, corresponding to the bare metal server management method applied to the terminal 10, the bare metal server 20, and the server management platform 30 as described above. The bare metal server management system 70 includes a unit for performing the bare metal server management method described above. Specifically, referring to fig. 7, the bare metal server management system 70 includes a receiving unit 201, a first storage unit 202, an obtaining unit 203, and a second storage unit 204 configured to the bare metal server 20, a generating unit 301 configured to the server management platform 30, and a management unit 101 configured to the terminal 10.
The receiving unit 201 is configured to, if the bare metal server receives a preset operation instruction sent by the terminal, call an execution interface of a server management platform to send the preset operation instruction and a preset inspection parameter to the server management platform; the generating unit 301 is configured to generate a task ID by the server management platform according to the preset operation instruction and the preset inspection parameter, and send the task ID to the bare metal server; the first storage unit 202 is configured to store the task ID and a preset operation state in a preset temporary table by the bare metal server and send the task ID to the terminal; the obtaining unit 203 is configured to, if a preset detection result stored in the preset temporary table in the bare metal server is successful, obtain, according to the task ID, a preset operation result corresponding to the preset operation instruction executed by the server management platform by using a polling mechanism; the second storage unit 204 is configured to store the preset operation result in the preset temporary table and update the preset operation state by the bare metal server; the management unit 101 is configured to acquire, by the terminal according to the task ID, the preset operation state and the preset operation result, so as to manage the bare metal server.
In some embodiments, for example, in the present embodiment, referring to fig. 8, the management unit 101 includes a calling unit 1011 and a first management subunit 1012.
The calling unit 1011 is configured to call a state interface of the bare metal server according to the task ID if the terminal receives the task ID sent by the bare metal server; the first management subunit 1012 is configured to, by the terminal, acquire the preset operation state and the preset operation result according to the state interface and the task ID, so as to manage the bare metal server.
In some embodiments, such as this embodiment, see fig. 9, the first management subunit 1012 includes a second management subunit 1013.
The second management subunit 1013 is configured to, by the terminal, acquire the preset operation state and the preset operation result by using a polling mechanism according to the state interface and the task ID, so as to manage the bare metal server.
Fig. 10 is a schematic block diagram of a bare metal server management system 70 according to another embodiment of the present invention. As shown in fig. 10, the bare metal server management system 70 of the present embodiment is added with a detection unit 302 configured on the server management platform 30 and a third storage unit 205 configured on the bare metal server 20 in addition to the above embodiments.
The detection unit 302 is configured to execute a preset check item by the server management platform to obtain a preset detection result, and send the preset detection result to the bare metal server; the third storage unit 205 is configured to store the preset detection result in the preset temporary table by the bare metal server;
in some embodiments, for example the present embodiment, see fig. 11, the detection unit 302 comprises a detection subunit 3021.
The detection subunit 3021 is configured to determine that the preset detection result is successful if the server management platform detects that the bare metal server meets a preset condition, where the preset condition is that the bare metal server exists, a health state of the bare metal server meets a preset health requirement, and a power condition meets a preset power requirement.
In some embodiments, for example, in the present embodiment, referring to fig. 12, the detecting subunit 3021 includes a first judging unit 3022, a second judging unit 3023, a third judging unit 3024, and a judging unit 3025.
The first judging unit 3022 is configured to judge whether the bare metal server exists; the second judging unit 3023 is configured to judge whether the health state of the server management platform meets a preset health requirement if the bare metal server exists; the third judging unit 3024 is configured to judge whether the power condition of the server management platform meets a preset power requirement if the health state of the server management platform meets the preset health requirement; the determining unit 3025 is configured to determine that the preset detection result is successful if the power condition of the server management platform meets the preset power requirement.
Fig. 13 is a schematic block diagram of a bare metal server management system 70 according to another embodiment of the present invention. As shown in fig. 13, the bare metal server management system 70 of the present embodiment is configured by adding a display rollback unit 102 configured in the terminal 10 to the above-mentioned embodiment.
The display rollback unit 102 is configured to, if the preset operation result obtained by the terminal is a failure, display, to a user, a failure reason for executing the preset operation instruction and rollback the preset operation state to a previous preset operation state in a preset manner.
The bare metal server management system described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 14.
Referring to fig. 14, fig. 14 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 900 may be the terminal, bare metal server, or server management platform described above.
Referring to fig. 14, the computer device 900 includes a processor 902, memory and interface 907 connected by a system bus 901, wherein the memory may include non-volatile storage medium 903 and internal memory 904.
The non-volatile storage medium 903 may store an operating system 9031 and a computer program 9032. The computer program 9032, when executed, may cause the processor 902 to perform a bare metal server management method.
The processor 902 is used to provide computing and control capabilities to support the operation of the overall computer device 900.
The internal memory 904 provides an environment for the operation of the computer program 9032 in the nonvolatile storage medium 903.
The interface 905 is used for communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 14 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing device 900 to which the disclosed aspects apply, as a particular computing device 900 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the respective processors 902 in the terminal, the bare metal server, and the server management platform are configured to run a computer program 9032 stored in the respective memories, so as to implement the following steps: if the bare metal server receives a preset operation instruction sent by a terminal, calling an execution interface of a server management platform to send the preset operation instruction and a preset inspection parameter to the server management platform; the server management platform generates a task ID according to the preset operation instruction and the preset inspection parameter and sends the task ID to the bare metal server; the bare metal server stores the task ID and a preset operation state to a preset temporary table and sends the task ID to the terminal; if the preset detection result stored in the preset temporary table in the bare metal server is successful, acquiring a preset operation result corresponding to the preset operation instruction executed by the server management platform by adopting a polling mechanism according to the task ID; the bare metal server stores the preset operation result to the preset temporary table and updates the preset operation state; and the terminal acquires the preset operation state and the preset operation result according to the task ID so as to manage the bare metal server.
In some embodiments, for example, in this embodiment, before the step of, if the preset detection result stored in the preset temporary table in the bare metal server is successful, acquiring, by using a polling mechanism, a preset operation result corresponding to the preset operation instruction executed by the server management platform according to the task ID, the specific implementation further includes the following steps: the server management platform executes a preset check item to obtain a preset detection result and sends the preset detection result to the bare metal server; and the bare metal server stores the preset detection result into the preset temporary table.
In some embodiments, for example, in this embodiment, when implementing the step of the server management platform executing the preset check item to obtain the preset detection result, the processor 902 specifically implements the following steps: and if the server management platform detects that the bare metal server meets a preset condition, judging that the preset detection result is successful, wherein the preset condition is that the bare metal server exists, the self health state meets a preset health requirement, and the power condition meets a preset power requirement.
In some embodiments, for example, in this embodiment, when implementing the step of the server management platform executing the preset check item to obtain the preset detection result, the processor 902 specifically implements the following steps: judging whether the bare metal server exists or not; if the bare metal server exists, judging whether the health state of the server management platform meets a preset health requirement; if the health state of the server management platform meets the preset health requirement, judging whether the power supply condition of the server management platform meets the preset power supply requirement; and if the power supply condition of the server management platform meets the preset power supply requirement, judging that the preset detection result is successful.
In some embodiments, for example, in this embodiment, when the processor 902 implements the step of the terminal acquiring the preset operation state and the preset operation result according to the task ID to manage the bare metal server, the following steps are specifically implemented: if the terminal receives the task ID sent by the bare metal server, calling a state interface of the bare metal server according to the task ID; and the terminal acquires the preset operation state and the preset operation result according to the state interface and the task ID so as to manage the bare metal server.
In some embodiments, for example, in this embodiment, when the processor 902 implements the step of the terminal acquiring the preset operation state and the preset operation result according to the state interface and the task ID to manage the bare metal server, the following steps are specifically implemented: and the terminal acquires the preset operation state and the preset operation result by adopting a polling mechanism according to the state interface and the task ID so as to manage the bare metal server.
In some embodiments, for example, in this embodiment, after the processor 902 implements the step of the terminal acquiring the preset operation state and the preset operation result according to the task ID to manage the bare metal server, the specific implementation further includes the following steps: and if the preset operation result acquired by the terminal is failure, displaying the failure reason for executing the preset operation instruction and rolling back the preset operation state to the previous preset operation state to a user in a preset mode.
It should be understood that, in the embodiment of the present Application, the Processor 902 may be a Central Processing Unit (CPU), and the Processor 902 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of: if the bare metal server receives a preset operation instruction sent by a terminal, calling an execution interface of a server management platform to send the preset operation instruction and a preset inspection parameter to the server management platform; the server management platform generates a task ID according to the preset operation instruction and the preset inspection parameter and sends the task ID to the bare metal server; the bare metal server stores the task ID and a preset operation state to a preset temporary table and sends the task ID to the terminal; if the preset detection result stored in the preset temporary table in the bare metal server is successful, acquiring a preset operation result corresponding to the preset operation instruction executed by the server management platform by adopting a polling mechanism according to the task ID; the bare metal server stores the preset operation result to the preset temporary table and updates the preset operation state; and the terminal acquires the preset operation state and the preset operation result according to the task ID so as to manage the bare metal server.
In some embodiments, for example, in this embodiment, before the step of, by the processor, acquiring, by using a polling mechanism, a preset operation result corresponding to the preset operation instruction executed by the server management platform according to the task ID if the preset detection result stored in the preset temporary table in the bare metal server is successful, the specific implementation further includes the following steps: the server management platform executes a preset check item to obtain a preset detection result and sends the preset detection result to the bare metal server; and the bare metal server stores the preset detection result into the preset temporary table.
In some embodiments, for example, in this embodiment, when the processor executes the computer program to implement the step of the server management platform executing the preset check item to obtain the preset detection result, the following steps are specifically implemented: and if the server management platform detects that the bare metal server meets a preset condition, judging that the preset detection result is successful, wherein the preset condition is that the bare metal server exists, the self health state meets a preset health requirement, and the power condition meets a preset power requirement.
In some embodiments, for example, in this embodiment, when the processor executes the step of executing the preset check item by the server management platform to obtain the preset detection result, the following steps are specifically implemented: judging whether the bare metal server exists or not; if the bare metal server exists, judging whether the health state of the server management platform meets a preset health requirement; if the health state of the server management platform meets the preset health requirement, judging whether the power supply condition of the server management platform meets the preset power supply requirement; and if the power supply condition of the server management platform meets the preset power supply requirement, judging that the preset detection result is successful.
In some embodiments, for example, in this embodiment, when the processor executes the step of the terminal acquiring the preset operation state and the preset operation result according to the task ID to manage the bare metal server, the following steps are specifically implemented: if the terminal receives the task ID sent by the bare metal server, calling a state interface of the bare metal server according to the task ID; and the terminal acquires the preset operation state and the preset operation result according to the state interface and the task ID so as to manage the bare metal server.
In some embodiments, for example, in this embodiment, when the processor executes the step of the terminal acquiring the preset operation state and the preset operation result according to the state interface and the task ID to manage the bare metal server, the following steps are specifically implemented: and the terminal acquires the preset operation state and the preset operation result by adopting a polling mechanism according to the state interface and the task ID so as to manage the bare metal server.
In some embodiments, for example, in this embodiment, after the processor executes the computer program to implement the step of the terminal acquiring the preset operation state and the preset operation result according to the task ID to manage the bare metal server, the method further includes the following steps: and if the preset operation result acquired by the terminal is failure, displaying the failure reason for executing the preset operation instruction and rolling back the preset operation state to the previous preset operation state to a user in a preset mode.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the above-described embodiments, it will be understood that the invention is not limited thereto but may be embodied with various modifications and changes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A bare metal server management method, comprising:
if the bare metal server receives a preset operation instruction sent by a terminal, calling an execution interface of a server management platform to send the preset operation instruction and a preset inspection parameter to the server management platform;
the server management platform generates a task ID according to the preset operation instruction and the preset inspection parameter and sends the task ID to the bare metal server;
the bare metal server stores the task ID and a preset operation state to a preset temporary table and sends the task ID to the terminal;
if the preset detection result stored in the preset temporary table in the bare metal server is successful, acquiring a preset operation result corresponding to the preset operation instruction executed by the server management platform by adopting a polling mechanism according to the task ID;
the bare metal server stores the preset operation result to the preset temporary table and updates the preset operation state;
and the terminal acquires the preset operation state and the preset operation result according to the task ID so as to manage the bare metal server.
2. The bare metal server management method according to claim 1, wherein, before the step of obtaining, by using a polling mechanism, a preset operation result corresponding to the preset operation instruction executed by the server management platform according to the task ID if the preset detection result stored in the preset temporary table in the bare metal server is successful, the method further comprises:
the server management platform executes a preset check item to obtain a preset detection result and sends the preset detection result to the bare metal server;
and the bare metal server stores the preset detection result into the preset temporary table.
3. The bare metal server management method according to claim 2, wherein the server management platform executes a preset check item to obtain a preset detection result, and the method comprises:
and if the server management platform detects that the bare metal server meets a preset condition, judging that the preset detection result is successful, wherein the preset condition is that the bare metal server exists, the self health state meets a preset health requirement, and the power condition meets a preset power requirement.
4. The bare metal server management method according to claim 3, wherein the server management platform executes a preset check item to obtain a preset detection result, and comprises:
judging whether the bare metal server exists or not;
if the bare metal server exists, judging whether the health state of the server management platform meets a preset health requirement;
if the health state of the server management platform meets the preset health requirement, judging whether the power supply condition of the server management platform meets the preset power supply requirement;
and if the power supply condition of the server management platform meets the preset power supply requirement, judging that the preset detection result is successful.
5. The bare metal server management method according to claim 1, wherein the terminal acquires the preset operation state and the preset operation result according to the task ID to manage the bare metal server, and the method comprises:
if the terminal receives the task ID sent by the bare metal server, calling a state interface of the bare metal server according to the task ID;
and the terminal acquires the preset operation state and the preset operation result according to the state interface and the task ID so as to manage the bare metal server.
6. The bare metal server management method according to claim 5, wherein the terminal acquires the preset operation state and the preset operation result according to the state interface and the task ID to manage the bare metal server, and the method comprises:
and the terminal acquires the preset operation state and the preset operation result by adopting a polling mechanism according to the state interface and the task ID so as to manage the bare metal server.
7. The bare metal server management method according to claim 1, wherein after the step of the terminal acquiring the preset operation state and the preset operation result according to the task ID to manage the bare metal server, the method further comprises:
and if the preset operation result acquired by the terminal is failure, displaying the failure reason for executing the preset operation instruction and rolling back the preset operation state to the previous preset operation state to a user in a preset mode.
8. A bare metal server management system is characterized by comprising a receiving unit, a first storage unit, an acquisition unit, a second storage unit, a generation unit and a management unit, wherein the receiving unit, the first storage unit, the acquisition unit and the second storage unit are arranged in a bare metal server, the generation unit is arranged on a server management platform, and the management unit is arranged on a terminal, wherein:
the receiving unit is used for calling an execution interface of a server management platform to send the preset operation instruction and the preset inspection parameter to the server management platform if the bare metal server receives the preset operation instruction sent by the terminal;
the generating unit is used for generating a task ID by the server management platform according to the preset operation instruction and the preset inspection parameter and sending the task ID to the bare metal server;
the first storage unit is used for storing the task ID and a preset operation state to a preset temporary table by the bare metal server and sending the task ID to the terminal;
the obtaining unit is configured to obtain, according to the task ID, a preset operation result corresponding to the preset operation instruction executed by the server management platform by using a polling mechanism if a preset detection result stored in the preset temporary table in the bare metal server is successful;
the second storage unit is used for storing the preset operation result to the preset temporary table and updating the preset operation state by the bare metal server;
and the management unit is used for the terminal to acquire the preset operation state and the preset operation result according to the task ID so as to manage the bare metal server.
9. A bare metal server management system, comprising a bare metal server, a server management platform and a terminal, wherein the bare metal server, the server management platform and the terminal comprise a memory and a processor, the memory stores a computer program, and the processors of the bare metal server, the server management platform and the terminal implement the method of any one of claims 1-7 together when executing the respective computer program.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a plurality of processors, implements the method according to any one of claims 1-7.
CN202011495925.XA 2020-12-17 2020-12-17 Bare metal server management method and device, computer equipment and storage medium Pending CN112527603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011495925.XA CN112527603A (en) 2020-12-17 2020-12-17 Bare metal server management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011495925.XA CN112527603A (en) 2020-12-17 2020-12-17 Bare metal server management method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112527603A true CN112527603A (en) 2021-03-19

Family

ID=75001037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011495925.XA Pending CN112527603A (en) 2020-12-17 2020-12-17 Bare metal server management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112527603A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113687946A (en) * 2021-08-19 2021-11-23 海尔数字科技(青岛)有限公司 Task management method, device, server and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113687946A (en) * 2021-08-19 2021-11-23 海尔数字科技(青岛)有限公司 Task management method, device, server and storage medium

Similar Documents

Publication Publication Date Title
CN107679081B (en) Information modification method and device, computer equipment and computer readable storage medium
CN103201724B (en) Providing application high availability in highly-available virtual machine environments
CN109542744B (en) Method, device, storage medium and terminal for detecting abnormal starting problem of terminal
CN109901881B (en) Plug-in loading method and device of application program, computer equipment and storage medium
CN110502324B (en) Processing method, system and storage medium for restart data of cloud mobile phone game
CN110995539A (en) Business system monitoring method and device and computer equipment
CN112612715A (en) System testing method and device based on chaotic engineering, computer equipment and storage medium
JP2013065207A (en) Portable communication system, portable communication terminal and server
CN112527603A (en) Bare metal server management method and device, computer equipment and storage medium
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
CN114003510A (en) Script testing method, device, equipment and medium based on Mock service
CN110286996A (en) Container instance IP switching method, device, computer equipment and storage medium
JP2010217945A (en) Application operation coordination system
US20230205619A1 (en) Common platform for fulfilling different actions
US11822927B2 (en) Boot times in an information processing device with externally connected devices
CN111176958A (en) Information monitoring method, system and storage medium
CN111966530A (en) Disaster recovery switching method and device for application system, computer equipment and storage medium
CN111400113B (en) Complete machine self-checking method, device and system of computer system
CN108809763B (en) Network performance parameter acquisition method, terminal device and storage medium
CN112426722A (en) Node map hot updating method and device, storage medium and computer equipment
CN110727537A (en) Method and device for uniformly processing response message, computer equipment and storage medium
CN110704247A (en) Application memory exception processing method and device, electronic equipment and device
CN116225576B (en) Application program data environment switching method and device, electronic equipment and medium
CN111142961B (en) Basic input/output system setting method
CN117176652A (en) Network switching method, device, equipment and storage medium

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