CN113011819B - Management method and device of bare metal server and management server - Google Patents

Management method and device of bare metal server and management server Download PDF

Info

Publication number
CN113011819B
CN113011819B CN202110302971.1A CN202110302971A CN113011819B CN 113011819 B CN113011819 B CN 113011819B CN 202110302971 A CN202110302971 A CN 202110302971A CN 113011819 B CN113011819 B CN 113011819B
Authority
CN
China
Prior art keywords
bare metal
server
information
management
management information
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.)
Active
Application number
CN202110302971.1A
Other languages
Chinese (zh)
Other versions
CN113011819A (en
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110302971.1A priority Critical patent/CN113011819B/en
Publication of CN113011819A publication Critical patent/CN113011819A/en
Application granted granted Critical
Publication of CN113011819B publication Critical patent/CN113011819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Tourism & Hospitality (AREA)
  • Probability & Statistics with Applications (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Fuzzy Systems (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a management method and device of a bare metal server and the management server, wherein the method is applied to the management server and comprises the following steps: under the condition that preset display conditions are met, acquiring state information of a bare metal server corresponding to the preset display conditions; and determining management information of the bare metal server based on the state information, and displaying the management information. Therefore, the state information of the bare metal server does not need to be checked by exporting a form in the format of EXCEL, the management information of the bare metal server can be visually checked in the management server, the bare metal server can be managed more conveniently, and the management convenience is improved.

Description

Management method and device of bare metal server and management server
Technical Field
The present invention relates to the field of resource management technologies, and in particular, to a method and an apparatus for managing a bare metal server, and a management server.
Background
The bare metal server (Bare METAL SERVER, BMS) is a computing service with virtual machine elasticity and physical machine performance in cloud services, can provide a dedicated cloud physical server for tenants, provides excellent computing performance and data security for services such as a core database, a key application system, high-performance computing, big data and the like, and can be flexibly applied for use by the tenants according to requirements.
The stock refers to a state where the bare metal server is located, the bare metal server can normally operate after being deployed on line, the bare metal server in the state can be purchased by a tenant at any time and used for starting up and deployment, and the bare metal server in the state is located in the stock.
At present, for the management of bare metal servers in medium inventory, a form in the format of EXCEL needs to be exported from a management system to check the state information of the bare metal servers, so that the bare metal servers are managed, and the mode is obviously inconvenient.
Disclosure of Invention
The embodiment of the invention aims to provide a management method and device of a bare metal server and the management server, so as to improve convenience in managing the bare metal server. The specific technical scheme is as follows:
In a first aspect, an embodiment of the present invention provides a method for managing a bare metal server, which is applied to a management server, where the method includes:
under the condition that preset display conditions are met, acquiring state information of a bare metal server corresponding to the preset display conditions;
and determining management information of the bare metal server based on the state information, and displaying the management information.
Optionally, the preset display condition is that an inventory display instruction is obtained;
the step of obtaining the state information of the bare metal server corresponding to the preset display condition comprises the following steps:
acquiring state information of bare metal servers in inventory, wherein the state information comprises machine types and quantity;
The step of determining management information of the bare metal server based on the status information includes:
constructing an inventory list based on the model and the number of bare metal servers in inventory;
And determining the inventory list as management information, and displaying the management information.
Optionally, the step of constructing an inventory list based on the model and the number of bare metal servers in the inventory includes:
counting the number of bare metal servers of each model in the inventory;
sorting the bare metal servers of each model according to the number to obtain a sorting result;
and generating an inventory list ordered by quantity based on the ordering result.
Optionally, the preset display condition is that the management server is provided with a fault monitoring task;
the step of determining the management information of the bare metal server based on the state information and displaying the management information includes:
Determining that the state of the bare metal server is not a preset state according to the state information, and taking the bare metal server as a server to be queried, wherein the preset state indicates that the corresponding bare metal server is in a normal state;
The identification of the server to be queried is sent to a target server, so that the target server returns work order information corresponding to the identification as management information, wherein the target server stores work order information of all bare metal servers;
And sending prompt information to operation and maintenance personnel to prompt the operation and maintenance personnel to perform fault maintenance treatment on the server to be queried, wherein the prompt information comprises the management information.
Optionally, the preset display condition is that a query instruction is obtained, and the query instruction includes a query condition;
the step of obtaining the state information of the bare metal server corresponding to the preset display condition comprises the following steps:
acquiring state information of the bare metal server conforming to the query condition;
the step of determining the management information of the bare metal server based on the state information and displaying the management information includes:
and taking the state information of the bare metal server meeting the query condition as management information, and displaying the management information.
Optionally, the query condition includes: at least one of being in a repository state, belonging to a preset product line, belonging to a preset machine room, belonging to a preset available area, and being a target model and belonging to a special cluster.
Optionally, the preset display condition is that an inventory water level detection instruction is obtained;
the step of obtaining the state information of the bare metal server corresponding to the preset display condition comprises the following steps:
acquiring the number of the bare metal servers of each model in inventory;
the step of determining the management information of the bare metal server based on the state information and displaying the management information includes:
Determining whether the number of the bare metal servers of each model reaches a preset number threshold;
And sending alarm information to product personnel as management information when the bare metal servers of the machine types which do not reach the preset number threshold exist, wherein the alarm information comprises the machine types of the bare metal servers which do not reach the preset number threshold.
Optionally, the preset display condition is that report and backup information sent by the tenant terminal is obtained, wherein the report and backup information includes target machine types and target number of bare metal servers required by the tenant;
the step of obtaining the state information of the bare metal server corresponding to the preset display condition comprises the following steps:
acquiring state information of the target number of bare metal servers with the model of the target model in stock;
the step of determining the management information of the bare metal server based on the state information and displaying the management information includes:
And generating a backup list based on the state information, sending the management information to the tenant terminal as management information, and modifying the states of the target number of bare metal servers into reserved states so that the tenant terminal displays the management information.
Optionally, the step of obtaining the state information of the target number of bare metal servers with the model being the target model includes:
Under the condition that the number of bare metal servers with the machine types being the target machine types in stock is smaller than the target number, acquiring state information of the bare metal servers with the machine types being the target machine types in stock, and acquiring the machine types of the in-stock bare metal servers in real time;
determining whether the model of the warehouse-in bare metal server is the same as the target model;
and under the condition that the model of the warehousing bare metal server is the same as the target model, acquiring the state information of the warehousing bare metal server until the number of acquired state information reaches the target number.
In a second aspect, an embodiment of the present invention provides a management apparatus for a bare metal server, which is applied to a management server, and the apparatus includes:
the state information acquisition module is used for acquiring state information of the bare metal server corresponding to the preset display condition under the condition that the preset display condition is met;
And the management information display module is used for determining the management information of the bare metal server based on the state information and displaying the management information.
Optionally, the preset display condition is that an inventory display instruction is obtained;
The status information acquisition module includes:
A first obtaining unit, configured to obtain status information of bare metal servers in inventory, where the status information includes model and number;
The management information display module includes:
the inventory list construction unit is used for constructing an inventory list based on the types and the number of the bare metal servers in the inventory;
and the first display unit is used for determining the inventory list as management information and displaying the management information.
Optionally, the inventory list construction unit includes:
A statistics subunit, configured to count the number of bare metal servers of each model in the inventory;
The sequencing subunit is used for sequencing the bare metal servers of each model according to the quantity to obtain a sequencing result;
And the construction subunit is used for generating an inventory list ordered according to the quantity based on the ordering result.
Optionally, the preset display condition is that the management server is provided with a fault monitoring task;
The management information display module includes:
a server determining unit, configured to determine, according to the state information, a bare metal server whose state is not a preset state, as a server to be queried, where the preset state indicates that a corresponding bare metal server is in a normal state;
the management information determining unit is used for sending the identification of the server to be queried to a target server so that the target server returns the work order information corresponding to the identification as management information, wherein the target server stores the work order information of all bare metal servers;
the second display unit is used for sending prompt information to operation and maintenance personnel so as to prompt the operation and maintenance personnel to perform fault maintenance treatment on the server to be queried, wherein the prompt information comprises the management information.
Optionally, the preset display condition is that a query instruction is obtained, and the query instruction includes a query condition;
The status information acquisition module includes:
the second acquisition unit is used for acquiring the state information of the bare metal server which accords with the query condition;
The management information display module includes:
and the third display unit is used for taking the state information of the bare metal server meeting the query condition as management information and displaying the management information.
Optionally, the query condition includes: at least one of being in a repository state, belonging to a preset product line, belonging to a preset machine room, belonging to a preset available area, and being a target model and belonging to a special cluster.
Optionally, the preset display condition is that an inventory water level detection instruction is obtained;
The status information acquisition module includes:
a third obtaining unit, configured to obtain the number of bare metal servers of each model in inventory;
The management information display module includes:
a number determining unit for determining whether the number of bare metal servers of each model reaches a preset number threshold;
And the fourth display unit is used for sending alarm information to product personnel as management information under the condition that the bare metal servers of the machine types which do not reach the preset number threshold value exist, wherein the alarm information comprises the machine types of the bare metal servers which do not reach the preset number threshold value.
Optionally, the preset display condition is that report and backup information sent by the tenant terminal is obtained, wherein the report and backup information includes target machine types and target number of bare metal servers required by the tenant;
The status information acquisition module includes:
A fourth obtaining unit, configured to obtain status information of the target number of bare metal servers with model in stock as the target model;
The management information display module includes:
And a fifth display unit, configured to generate a backup list based on the state information, send the management information to the tenant terminal as management information, and modify the states of the target number of bare metal servers to a reserved state, so that the tenant terminal displays the management information.
Optionally, the fourth obtaining unit includes:
The warehouse-in monitoring subunit is used for acquiring the state information of the bare metal servers with the machine types in stock as the target machine types under the condition that the number of the bare metal servers with the machine types in stock as the target machine types is smaller than the target number, and acquiring the machine types of the warehouse-in bare metal servers in real time;
the model determining subunit is used for determining whether the model of the warehouse-in bare metal server is the same as the target model;
the information acquisition subunit is used for acquiring the state information of the warehousing bare metal server under the condition that the model of the warehousing bare metal server is the same as the target model until the acquired state information reaches the target number.
In a third aspect, an embodiment of the present invention provides a management server, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
A processor for implementing the method steps of any of the above first aspects when executing a program stored on a memory.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having a computer program stored therein, which when executed by a processor, implements the method steps of any of the first aspects described above.
The embodiment of the invention has the beneficial effects that:
In the scheme provided by the embodiment of the invention, the management server can acquire the state information of the bare metal server corresponding to the preset display condition under the condition that the preset display condition is met; and determining management information of the bare metal server based on the state information, and displaying the management information. Therefore, the state information of the bare metal server does not need to be checked by exporting a form in the format of EXCEL, the management information of the bare metal server can be visually checked in the management server, the bare metal server can be managed more conveniently, and the management convenience is improved. Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for managing a bare metal server according to an embodiment of the present invention;
FIG. 2 is a flow chart of a manner of constructing an inventory list based on the embodiment of FIG. 1;
FIG. 3 is a specific flowchart of step S102 in the embodiment shown in FIG. 1;
FIG. 4 is another specific flowchart of step S102 in the embodiment shown in FIG. 1;
FIG. 5 is a flow chart of a method of acquiring status information based on the embodiment of FIG. 1;
FIG. 6 is a flow diagram of a process for reserving a bare metal server according to the embodiment shown in FIG. 5;
fig. 7 is a schematic structural diagram of a management device of a bare metal server according to an embodiment of the present invention;
fig. 8 is a schematic view of another structure of a management device of the bare metal server according to the embodiment shown in fig. 7;
fig. 9 is a schematic structural diagram of a management server according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to more conveniently manage a bare metal server and improve convenience of management, embodiments of the present invention provide a method and an apparatus for managing a bare metal server, a management server, and a computer readable storage medium. The following first describes a method for managing a bare metal server according to an embodiment of the present invention.
The management method of the bare metal server provided by the embodiment of the invention can be applied to a management server, wherein the management server is a server for managing the bare metal server, can be a bare metal server for managing a single product line, and can also be a bare metal server for managing a plurality of product lines, and is not particularly limited.
As shown in fig. 1, a method for managing a bare metal server is applied to a management server, and the method includes:
S101, under the condition that preset display conditions are met, acquiring state information of a bare metal server corresponding to the preset display conditions;
S102, determining management information of the bare metal server based on the state information, and displaying the management information.
Therefore, in the scheme provided by the embodiment of the invention, the management server can acquire the state information of the bare metal server corresponding to the preset display condition under the condition that the preset display condition is met; and determining management information of the bare metal server based on the state information, and displaying the management information. Therefore, the state information of the bare metal server does not need to be checked by exporting a form in the format of EXCEL, the management information of the bare metal server can be visually checked in the management server, the bare metal server can be managed more conveniently, and the management convenience is improved.
Under the condition that the preset display conditions are met, the management server can acquire the state information of the bare metal server corresponding to the preset display conditions. The status information may include a model, number, equipment identifier, a machine room, a product line, etc. of the bare metal server, which are specifically determined according to preset display conditions that are currently satisfied, and are not specifically limited herein.
The preset display conditions may include various conditions, for example, may include acquiring an inventory display instruction, setting a fault monitoring task by the management server, acquiring a query instruction, acquiring an inventory water level detection instruction, acquiring report information sent by the tenant terminal, and the like, which may be set according to the management needs of the bare metal server as needed, and are not limited herein.
In the case that the preset display condition is satisfied, it is explained that the management information of the bare metal server corresponding to the preset display condition needs to be displayed, so the management server may perform the above step S102, that is, determine the management information of the bare metal server based on the state information of the bare metal server, and display the management information. Therefore, the management information can be checked by the management personnel, and the bare metal server can be managed correspondingly.
The management information is information related to the management of the determined bare metal server, and is specifically determined according to the obtained state information and the specific content of the preset display condition that is currently satisfied, and will be described later by way of example.
As an implementation manner of the embodiment of the present invention, the preset display condition may be that an inventory display instruction is obtained. Correspondingly, the step of obtaining the state information of the bare metal server corresponding to the preset display condition may include:
Status information of bare metal servers in inventory is obtained.
In the case of acquiring the inventory showing instruction, it is explained that the repository information of the bare metal server is currently required to be shown. Then, the management server may obtain status information of the bare metal servers in inventory, where the status information may include the model and the number of bare metal servers in inventory.
In one embodiment, the inventory presentation instructions may be obtained when a manager logs into the management server, that is, the management server may display the bare metal server's repository information by default. In another embodiment, it is reasonable that the inventory presentation instruction may be issued by a manager through a preset interface in the interface displayed by the management server.
The status information of the bare metal servers in inventory may be recorded in an SQL (Structured Query Language ) database, and the management server may obtain the status information of the bare metal servers in inventory from the SQL database.
Accordingly, the step of determining the management information of the bare metal server based on the status information may include:
constructing an inventory list based on the model and the number of bare metal servers in inventory; and determining the inventory list as management information, and displaying the management information.
After the model and the number of the bare metal servers in the inventory are obtained, the management server can construct an inventory list based on the model and the number of the bare metal servers in the inventory, wherein the inventory list comprises the model and the number of the bare metal servers in the inventory. Furthermore, the management server can determine the inventory list as management information and display the management information, so that a manager can also view the state information such as the model, the number and the like of the bare metal servers in the inventory, and corresponding management is facilitated.
It can be seen that, in this embodiment, when the inventory display instruction is acquired, the management server may acquire status information of the bare metal servers in the inventory, construct an inventory list based on the model and the number of the bare metal servers in the inventory, and further determine the inventory list as management information and display the management information. Therefore, a manager can conveniently check the state information of the bare metal server in the inventory, and can conveniently manage the bare metal server in the inventory.
As shown in fig. 2, the step of constructing the inventory list based on the model and the number of bare metal servers in the inventory may include:
S201, counting the number of bare metal servers of each model in the inventory;
Since the model is an important index for identifying the performance of the bare metal server, and is also an important index for selecting the bare metal server by the tenant, the model is also an important index for managing the bare metal servers, and the number of the bare metal servers of each model in the inventory may be different, so that in order to determine the number of the bare metal servers of each model, the management server may count the number of the bare metal servers of each model in the inventory.
S202, sorting the bare metal servers of each model according to the number to obtain a sorting result;
after the number of the bare metal servers of each model is counted, the management server can sort the bare metal servers of each model according to the number to obtain a sorting result. In particular, it is reasonable to order from a large number to a small number, that is, from a small number to a large number.
For example, the management server counts to obtain the number of bare metal servers of model a in inventory as 20, the number of bare metal servers of model B as 17, the number of bare metal servers of model C as 50, the number of bare metal servers of model D as 35, the number of bare metal servers of model E as 27, and the number of bare metal servers of model F as 45, and then the sorting result can be obtained by sorting the number from more to less: model C, model F, model D, model E, model A, model B.
S203, generating an inventory list ordered according to the quantity based on the ordering result.
After the sorting result is obtained, the management server can generate an inventory list sorted by number based on the sorting result. The inventory list may include status information such as the number and model of bare metal servers in inventory.
For example, still with the ordering result in step S202: model C, model F, model D, model E, model A, model B are examples. The management server may generate the following inventory list based on the ranking result:
Sequence number Model type Quantity of
1 Model C 50
2 Model F 45
3 Model D 35
4 Model E 27
5 Model A 20
6 Model B 17
It can be seen that, in this embodiment, the management server may count the number of bare metal servers of each model in the inventory, sort the bare metal servers of each model according to the number, obtain a sorting result, and generate an inventory list sorted according to the number based on the sorting result. Therefore, a manager can very conveniently check the number of bare metal servers of various types, and can quickly determine the information of the largest number, the smallest number and the like of the bare metal servers of which type in stock, thereby being convenient for management.
As an implementation manner of the embodiment of the present invention, in order to accurately display the inventory list, the management server may update the inventory list at regular time, specifically, the management server may obtain the model and the number of the bare metal servers in the inventory at regular time, and further update the inventory list based on the model and the number of the bare metal servers in the inventory that are currently obtained.
The timing period may be set according to actual needs, for example, every 5 minutes, every 10 minutes, every 1 minute, and the like, and is not particularly limited herein. In one embodiment, the status information of the bare metal server may be recorded by the BM queue, and the management server may acquire the model and the number of the bare metal server according to the BM queue at regular time, so as to update the inventory list.
The stock list may display not only the model and the number of bare metal servers, but also various detailed information of the bare metal servers, such as storage capacity, performance index, time to stock, and maintenance record, etc., which are not particularly limited herein.
As an implementation manner of the embodiment of the present invention, the preset display condition is that the management server is provided with a fault monitoring task. In this case, the management server has a function of monitoring a failure condition of the bare metal server. In one embodiment, the management server may obtain, through an OpenAPI (Open Application Programming Interface ), status information of each bare metal server at regular time, where the status information may be information indicating a status of the bare metal server, and may include, for example, sold, stocked, on-line standby, used on-line standby, in-stock detection, failed detection, and the like, which is not limited herein specifically.
Accordingly, as shown in fig. 3, the step of determining the management information of the bare metal server based on the status information and displaying the management information may include:
S301, determining a bare metal server with a state which is not a preset state according to the state information, wherein the bare metal server is used as a server to be queried;
The preset state may indicate that the corresponding bare metal server is in a normal state, for example, the status may include a sold, stocked, on-line standby machine, used on-line standby machine, stock detection, and the like. The management server may determine whether the state of each bare metal server is a preset state according to the state information of each bare metal server, that is, the management server may determine whether each bare metal server is a failure state according to the state information of each bare metal server.
If the state of a certain bare metal server is not the preset state, the bare metal server is in a fault state, and in order to ensure the rights and interests of tenants and avoid reducing the resource waste and the cost increase caused by the failure state of the bare metal server, maintenance processing needs to be performed as soon as possible, and the management server can take the bare metal server as a server to be queried.
S302, the identification of the server to be queried is sent to a target server, so that the target server returns work order information corresponding to the identification as management information;
the target server stores work order information of all bare metal servers. For convenience in recording and managing bare metal servers, work order information thereof may be recorded for each bare metal server. The work order information may include information of a work order number of the bare metal server, an in-stock time, a failure cause, a maintenance progress, an operation and maintenance person in charge of maintenance, etc., which is not particularly limited herein.
In order to determine the related information of the failed bare metal server, the management server may send the identifier of the server to be queried to the target server, and after receiving the identifier of the server to be queried, the target server may query the work order information corresponding to the identifier and return the work order information to the management server. Further, the management server may receive the work information and use it as management information.
As one implementation, the management server may invoke OpenAPI through SQL instructions to query the target server for the work order information of the server to be queried.
The management server can be used for managing the bare metal servers of certain or some product lines, the target server can be a bare metal server used for managing all product lines, and the bare metal server can store work order information and the like of all the bare metal servers, so that the target server can be conveniently queried when needed.
S303, sending prompt information to operation and maintenance personnel so as to prompt the operation and maintenance personnel to perform fault maintenance treatment on the server to be queried.
After the work order information of the failed bare metal server is obtained, in order to remind operation and maintenance personnel to repair the failed bare metal server as soon as possible, the management server can send prompt information to the operation and maintenance personnel, wherein the prompt information can comprise management information, namely the work order information of the failed bare metal server.
After receiving the prompt information, operation and maintenance personnel can be reminded so as to carry out fault maintenance treatment on the bare metal server with faults as soon as possible. In one embodiment, the prompt message may be sent to the operation and maintenance personnel by means of mail, push message, short message, etc.
It can be seen that, in this embodiment, the management server may determine, according to the state information, that the state of the bare metal server is not a bare metal server in a preset state, as a server to be queried, send, to the target server, an identifier of the server to be queried, so that the target server returns work order information corresponding to the identifier, as management information, and further send, to the operation and maintenance personnel, prompt, to the operation and maintenance personnel, to perform fault maintenance processing on the server to be queried. Therefore, the management server can remind operation and maintenance personnel to perform fault maintenance treatment on the failed bare metal server as soon as possible, and more comprehensive management is performed.
As an implementation manner of the embodiment of the present invention, the preset exhibition condition may be that a query instruction is obtained, and the query instruction may include a query condition. The manager can query as needed, and in one embodiment, the manager can input the query condition in a search box in an interface displayed by the management server, and the management server can obtain the query instruction including the query condition.
Wherein, the query condition may include: at least one of being in a repository state, belonging to a preset product line, belonging to a preset machine room, belonging to a preset available area, being a target model, belonging to a proprietary cluster, and the like, is not particularly limited herein. The private cluster is a private bare metal server cluster customized by a large client, and the private bare metal server cluster is isolated from other server resources to ensure the customization authority such as data security of the large client.
Correspondingly, the step of obtaining the state information of the bare metal server corresponding to the preset display condition may include: and acquiring the state information of the bare metal server meeting the query conditions. The step of determining the management information of the bare metal server based on the status information and displaying the management information may include: and taking the state information of the bare metal server meeting the query condition as management information, and displaying the management information.
Under the condition that the management server acquires the query instruction, the fact that the manager needs to acquire the relevant information of the bare metal server meeting the query condition at the moment is indicated, so that the management server can acquire the state information of the bare metal server meeting the query condition, and further display the state information as management information, and the manager can check the management information so as to perform corresponding management.
For example, the query condition is in a repository state, which indicates that the manager needs to know the relevant information of the bare metal server in the repository state, and then the management server can acquire the state information of the bare metal server in the inventory. And further, the state information of the bare metal servers in the inventory is displayed so as to be convenient for a manager to check.
For another example, the query condition is that the product line P belongs to, and the manager needs to know the related information of all the bare metal servers belonging to the product line P, so that the manager can obtain the status information of all the bare metal servers belonging to the product line P. And then the state information of all bare metal servers belonging to the product line P is displayed for the manager to check.
For example, the query condition is that the bare metal server belongs to the Beijing machine room, and the manager needs to know the related information of the bare metal server belonging to the Beijing machine room, so that the manager can obtain the state information of the bare metal server belonging to the Beijing machine room. And then the state information of the bare metal server belonging to the Beijing machine room is displayed so as to be convenient for the manager to check.
For example, if the query condition is that the model is model Q, and the manager needs to know the related information of the bare metal server that the model is model Q, the manager can obtain the state information of the bare metal server that the model is model Q. And further, the state information of the bare metal server with the model of Q is displayed so as to be convenient for a manager to check.
For another example, the query condition is that the bare metal server belongs to the private cluster m, which means that the manager needs to know the related information of the bare metal server belonging to the private cluster m, and then the manager can obtain the state information of the bare metal server belonging to the private cluster m. And then the state information of the bare metal servers belonging to the proprietary cluster m is displayed so as to be convenient for the manager to check.
It can be seen that, in this embodiment, when the preset display condition is that the query instruction is obtained, the management server may obtain the state information of the bare metal server that meets the query condition, and further use the state information of the bare metal server that meets the query condition as the management information, and display the management information. Therefore, the state information of the bare metal server which needs to be checked can be displayed for the manager, the management requirement of the manager is met, and the convenience is further improved.
As an implementation manner of the embodiment of the present invention, the preset display condition may be that an inventory water level detection instruction is obtained. The stock water level detection instruction is used for indicating to detect the stock quantity of the bare metal server.
In one embodiment, the inventory level detection command may be issued by the manager through a preset interface, or may be generated periodically by the management server, which is reasonable. For example, the management server may generate the inventory level detection command at regular time, and then perform inventory level detection. The timing duration may be set according to actual needs, for example, every 5 minutes, every 8 minutes, every 1 hour, and the like, and is not particularly limited herein.
Correspondingly, the step of obtaining the state information of the bare metal server corresponding to the preset display condition may include: and obtaining the number of the bare metal servers of each model in inventory.
Since it is necessary to detect the stock water level of the bare metal server of each model, the management server can acquire the number of bare metal servers of each model in stock.
As shown in fig. 4, the above-mentioned step of determining the management information of the bare metal server based on the status information and displaying the management information may include:
S401, determining whether the number of the bare metal servers of each model reaches a preset number threshold;
after the number of bare metal servers of each model in inventory is obtained, the management server may determine whether the number of bare metal servers of each model reaches a preset number threshold. The preset number threshold is an inventory water level standard, can be set according to actual inventory requirements, can be a numerical value or a numerical value interval, and is not particularly limited herein.
In one embodiment, since the inventory quantity requirements for different machine rooms, different available areas, and bare metal servers of each model may be different, different preset quantity thresholds may be set for different machine rooms, different available areas, and bare metal servers of each model to meet different inventory requirements.
If the preset number threshold is reached, the number of bare metal servers of the model in the stock is enough to meet the needs of tenants, the processing is not needed, and the step of acquiring the number of bare metal servers of each model in the stock is executed again after the next acquisition of the stock water level detection instruction is continued.
And S402, sending alarm information to a product staff as management information when the bare metal server of the machine type which does not reach the preset number threshold exists.
If the preset quantity threshold is not reached, the quantity of the bare metal servers of the machine type in stock is insufficient, the demands of tenants are likely to be unable to be met, and the stock quantity of the bare metal servers of the machine type needs to be increased as soon as possible. The management server may generate and transmit the alarm information as management information to the product personnel.
The alarm information may include a model of the bare metal server that does not reach a preset number of thresholds. Therefore, after receiving the alarm information, the product personnel can know that the stock quantity of the bare metal server of the model is insufficient, and further can take corresponding measures to accelerate the speed of the bare metal server of the model entering stock.
The alarm information may be sent to the product personnel by means of mail, push message, internal communication software, etc., which is not limited herein.
It can be seen that, in this embodiment, when the preset display condition is that the inventory water level detection instruction is obtained, the management server may obtain the number of bare metal servers of each model in inventory, determine whether the number of bare metal servers of each model reaches the preset number threshold, and then send the alarm information as management information to the product staff when there are bare metal servers of models that do not reach the preset number threshold, so that after receiving the alarm information, the product staff may obtain that the inventory number of bare metal servers of the model is insufficient, and further take corresponding measures to accelerate the speed of the bare metal servers of the model entering inventory, and further perform overall management on the bare metal servers.
As an implementation manner of the embodiment of the present invention, the preset display condition may be obtaining backup information sent by the tenant terminal, where the backup information may include a target model and a target number of bare metal servers required by the tenant. When the tenant needs to rent the bare metal server or intends to rent the bare metal server, the tenant terminal can report the standby information to the management server.
Correspondingly, the step of obtaining the state information of the bare metal server corresponding to the preset display condition may include:
and acquiring state information of the target number of bare metal servers with the model in stock as the target model.
After receiving the backup information, the management server can determine that the tenant wants to rent the bare metal servers with the target number of machine types as the target machine types, so that the management server can acquire the state information of the target number of bare metal servers with the machine types as the target machine types in the stock. The bare metal servers with the target number and the machine type in stock as the target machine type can be rented to the tenant.
Accordingly, the step of determining the management information of the bare metal server based on the status information and displaying the management information may include:
And generating a backup list based on the state information, sending the management information to the tenant terminal as management information, and modifying the states of the target number of bare metal servers into reserved states so that the tenant terminal displays the management information.
After the state information of the target number of bare metal servers with the model as the target model is obtained, the management server can generate a backup list based on the state information, and take the backup list as management information. The backup list may include information related to the bare metal server, such as a model, a number, a price, a rentable time, and the like of the bare metal server, which is not particularly limited herein.
In order to enable the tenant to conveniently check the backup list, the management server can send the backup list to the tenant terminal, the backup list can be displayed after the tenant terminal receives the backup list, and the tenant can check the backup list, so that information related to the bare metal server which can be rented is obtained.
The management server can modify the state of the target number of bare metal servers into a reserved state so as to ensure that the target number of bare metal servers are reserved for the tenant, and the problem that the bare metal servers are leased by other leases simultaneously is avoided.
It can be seen that, in this embodiment, when the preset display condition is that the backup information sent by the tenant terminal is obtained, the management server may obtain the state information of the target number of bare metal servers with the model in stock as the target model, further generate the backup list based on the state information, and send the management information to the tenant terminal as the management information, so that the tenant terminal displays the management information. Therefore, the needed bare metal server can be reserved for the tenant, and the bare metal server is further and comprehensively managed while the requirement of the tenant is met.
As shown in fig. 5, the step of obtaining the state information of the target number of bare metal servers with the model being the target model may include:
S501, acquiring state information of a bare metal server with the model in stock as the target model and acquiring the model of the in-stock bare metal server in real time under the condition that the number of the bare metal servers with the model in stock as the target model is smaller than the target number;
Because the number of bare metal servers with the machine type in stock as the target machine type may not reach the target number, the current bare metal servers with the machine type in stock as the target machine type cannot meet the needs of tenants, so that the management server can determine whether the number of bare metal servers with the machine type in stock as the target machine type is smaller than the target number.
When the number of bare metal servers with the machine type in stock as the target machine type is smaller than the target number, the number of bare metal servers with the target machine type in stock cannot meet the demands of tenants, so that in order to monitor whether the in-stock bare metal servers can be rented by the tenants, the management server can acquire the machine types of the in-stock bare metal servers in real time.
The bare metal server of the target model in the current stock can be rented by the tenant, so that the management server can acquire the state information of the bare metal server of which the model in the current stock is the target model, so that a backup list can be generated later.
S502, determining whether the model of the warehouse-in bare metal server is the same as the target model;
After the machine type of the in-store bare metal server is obtained, the management server can determine whether the machine type of the in-store bare metal server is the same as the target machine type, if so, the in-store bare metal server can be rented to the tenant, and if not, the in-store bare metal server cannot meet the requirement of the tenant and cannot be rented to the tenant, and then the in-store bare metal server can be continuously monitored.
S503, acquiring state information of the warehousing bare metal server until the acquired state information quantity reaches the target quantity under the condition that the model of the warehousing bare metal server is the same as the target model.
Under the condition that the model of the in-store bare metal server is the same as the target model, the management server can acquire the state information of the in-store bare metal server, record the quantity of the currently acquired state information until the quantity of the acquired state information reaches the target quantity, at the moment, the quantity of the bare metal server of the target model in stock is indicated to reach the target quantity, and the requirement of tenants can be met, and then a backup report list can be generated based on the acquired state information.
It can be seen that, in this embodiment, when the number of bare metal servers with machine types in inventory as target machine types is smaller than the target number, the management server may acquire the state information of the bare metal servers with machine types in inventory as target machine types, and acquire the machine types of the in-store bare metal servers in real time, determine whether the machine types of the in-store bare metal servers are the same as the target machine types, and further acquire the state information of the in-store bare metal servers when the machine types of the in-store bare metal servers are the same as the target machine types until the number of acquired state information reaches the target number. Therefore, under the condition that the number of bare metal servers in the current inventory cannot meet the needs of tenants, the management server can monitor the in-warehouse bare metal servers to determine the bare metal servers capable of meeting the needs of the tenants, reservation is completed, tenant experience is improved, and meanwhile renting of the bare metal servers can be managed, so that the management server is more intelligent and more convenient.
In order to enable relevant product personnel and/or sales personnel to master the renting situation of the bare metal server, the management server may send purchase information to the product personnel and/or sales personnel after receiving the backup information, so as to inform the product personnel and/or sales personnel that the renting of the bare metal server is desired.
In one embodiment, after receiving the purchase information, the product personnel and/or sales personnel can communicate with the management server to view the related information of the bare metal servers in the inventory, so as to select the bare metal server meeting the tenant requirements, and modify the bare metal server into a reserved state. The management server can acquire the state information of the bare metal server in the reserved state, further generate a backup list, and send the backup list to the tenant terminal.
As an implementation mode of the embodiment of the invention, after the management server obtains the model of the warehousing bare metal server, push information can be sent to the product personnel and/or sales personnel so as to inform the relevant information of the warehousing bare metal server, and the corresponding processing of the product personnel and/or sales personnel is facilitated.
As an implementation manner of the embodiment of the invention, the management server can send the report standby list to the tenant terminal and simultaneously send reservation success information to the product personnel and/or sales personnel so as to inform the product personnel and/or sales personnel that the reservation of the bare metal server is successful.
As an implementation manner of the embodiment of the present invention, the management server may record the relevant information of the reserved bare metal server, for example, may include tenant, number, model, price, reserved time, etc. corresponding to the reserved bare metal server, which is not limited herein specifically. The management server can also be provided with a reserved resource quick checking interface through which product personnel and/or sales personnel can inquire related information of the reserved bare metal server so as to manage the bare metal server.
The following illustrates a process of reserving a bare metal server for a tenant, as shown in fig. 6, may include the steps of:
S601, a tenant logs in a bare metal server renting system through a tenant terminal;
Specifically, the tenant may log in to the bare metal server rental system through the tenant terminal according to a user name, password, or the like.
S602, a tenant fills backup information in a bare metal server renting system, and a tenant terminal sends the backup information to a management server;
The report information can include information such as a target model and a target number of the bare metal server which the tenant wants to rent, and after the tenant fills the report information in the bare metal server renting system, the bare metal server renting system can generate a form, and when a user clicks a submit button, the report information can be sent to the management server.
S603, the management server receives the report information, sends mails to related product personnel and/or sales personnel, and displays the report information;
s604, under the condition that the number of bare metal servers with the machine type in stock as a target machine type is smaller than the target number, the management server performs in-stock checking in real time;
that is, when the number of bare metal servers whose model in stock is the target model is smaller than the target number, the management server acquires the model of the bare metal server in stock in real time.
S605, the management server determines whether the model of the warehouse-in bare metal server is the same as the target model;
S606, under the condition that the model of the warehouse-in bare metal server is the same as the target model, the management server acquires the state information of the warehouse-in bare metal server until the acquired state information reaches the target number;
s607, the management server generates a report list based on the state information and sends a notification message to related product personnel and/or sales personnel;
S608, relevant product personnel and/or sales personnel log in the management server, and a reserved bare metal server is determined;
S609, the management server modifies the reserved bare metal server into a reserved state;
s610, the management server sends a report and backup list to the user terminal, and sends reservation success information to related product personnel and/or sales personnel;
S611, the management server adds a reserved resource quick checking interface so that product personnel and/or sales personnel can inquire related information of the reserved bare metal server through the reserved resource quick checking interface.
It can be seen that in this embodiment, the management server may interact with the tenant, the product personnel and/or the sales personnel, so as to complete reservation of the bare metal server, greatly improve convenience of reservation of the bare metal server, and improve convenience of management of the bare metal server.
Corresponding to the management method of the bare metal server, the embodiment of the invention also provides a management device of the bare metal server. The following describes a management device of a bare metal server provided by an embodiment of the present invention.
As shown in fig. 7, a management apparatus of a bare metal server, applied to a management server, includes:
A state information obtaining module 710, configured to obtain, when a preset display condition is satisfied, state information of a bare metal server corresponding to the preset display condition;
and a management information display module 720, configured to determine management information of the bare metal server based on the status information, and display the management information.
Therefore, in the scheme provided by the embodiment of the invention, the management server can acquire the state information of the bare metal server corresponding to the preset display condition under the condition that the preset display condition is met; and determining management information of the bare metal server based on the state information, and displaying the management information. Therefore, the state information of the bare metal server does not need to be checked by exporting a form in the format of EXCEL, the management information of the bare metal server can be visually checked in the management server, the bare metal server can be managed more conveniently, and the management convenience is improved.
As an implementation manner of the embodiment of the present invention, the preset display condition is that an inventory display instruction is obtained;
as shown in fig. 8, the status information acquisition module 710 includes:
a first acquiring unit 711 for acquiring status information of bare metal servers in inventory;
wherein the status information includes model and quantity.
The management information display module 720 includes:
An inventory list construction unit 721 for constructing an inventory list based on the model and the number of bare metal servers in inventory;
a first display unit 722, configured to determine the inventory list as management information, and display the management information.
As one implementation of the embodiment of the present invention, the inventory list building unit 721 includes:
A statistics subunit, configured to count the number of bare metal servers of each model in the inventory;
The sequencing subunit is used for sequencing the bare metal servers of each model according to the quantity to obtain a sequencing result;
And the construction subunit is used for generating an inventory list ordered according to the quantity based on the ordering result.
As an implementation manner of the embodiment of the present invention, the preset display condition is that the management server is provided with a fault monitoring task;
the management information display module 720 includes:
A server determining unit, configured to determine, according to the state information, a bare metal server whose state is not a preset state, as a server to be queried;
The preset state indicates that the corresponding bare metal server is in a normal state.
The management information determining unit is used for sending the identifier of the server to be queried to a target server so that the target server returns work order information corresponding to the identifier as management information;
The target server stores work order information of all bare metal servers;
the second display unit is used for sending prompt information to operation and maintenance personnel so as to prompt the operation and maintenance personnel to carry out fault maintenance treatment on the server to be queried.
Wherein the prompt information includes the management information.
As an implementation manner of the embodiment of the present invention, the preset display condition is that a query instruction is obtained, where the query instruction includes a query condition;
the status information acquisition module 710 includes:
the second acquisition unit is used for acquiring the state information of the bare metal server which accords with the query condition;
the management information display module 720 includes:
and the third display unit is used for taking the state information of the bare metal server meeting the query condition as management information and displaying the management information.
As one implementation of the embodiment of the present invention, the query condition includes: at least one of being in a repository state, belonging to a preset product line, belonging to a preset machine room, belonging to a preset available area, and being a target model and belonging to a special cluster.
As an implementation manner of the embodiment of the present invention, the preset display condition is that an inventory water level detection instruction is obtained;
the status information acquisition module 710 includes:
a third obtaining unit, configured to obtain the number of bare metal servers of each model in inventory;
the management information display module 720 includes:
a number determining unit for determining whether the number of bare metal servers of each model reaches a preset number threshold;
And the fourth display unit is used for sending the alarm information to the product personnel as management information under the condition that the bare metal server of the machine type which does not reach the preset number threshold exists.
The alarm information comprises the model of the bare metal server which does not reach the preset quantity threshold.
As an implementation manner of the embodiment of the present invention, the preset display condition is that report and backup information sent by a tenant terminal is obtained, where the report and backup information includes a target model and a target number of bare metal servers required by the tenant;
the status information acquisition module 710 includes:
A fourth obtaining unit, configured to obtain status information of the target number of bare metal servers with model in stock as the target model;
the management information display module 720 includes:
And a fifth display unit, configured to generate a backup list based on the state information, send the management information to the tenant terminal as management information, and modify the states of the target number of bare metal servers to a reserved state, so that the tenant terminal displays the management information.
As one implementation manner of the embodiment of the present invention, the fourth obtaining unit includes:
The warehouse-in monitoring subunit is used for acquiring the state information of the bare metal servers with the machine types in stock as the target machine types under the condition that the number of the bare metal servers with the machine types in stock as the target machine types is smaller than the target number, and acquiring the machine types of the warehouse-in bare metal servers in real time;
the model determining subunit is used for determining whether the model of the warehouse-in bare metal server is the same as the target model;
the information acquisition subunit is used for acquiring the state information of the warehousing bare metal server under the condition that the model of the warehousing bare metal server is the same as the target model until the acquired state information reaches the target number.
The embodiment of the present invention also provides a management server, as shown in fig. 9, including a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 perform communication with each other through the communication bus 904,
A memory 903 for storing a computer program;
The processor 901 is configured to implement the steps of the method for managing a bare metal server according to any one of the embodiments described above when executing the program stored in the memory 903.
Therefore, in the scheme provided by the embodiment of the invention, the management server can acquire the state information of the bare metal server corresponding to the preset display condition under the condition that the preset display condition is met; and determining management information of the bare metal server based on the state information, and displaying the management information. Therefore, the state information of the bare metal server does not need to be checked by exporting a form in the format of EXCEL, the management information of the bare metal server can be visually checked in the management server, the bare metal server can be managed more conveniently, and the management convenience is improved.
The communication bus mentioned by the above management server may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the management server and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present invention, there is further provided a computer readable storage medium, in which a computer program is stored, the computer program implementing the steps of the method for managing a bare metal server according to any one of the above embodiments when executed by a processor.
Therefore, in the scheme provided by the embodiment of the invention, when the computer program is executed by the processor, the state information of the bare metal server corresponding to the preset display condition can be obtained under the condition that the preset display condition is met; and determining management information of the bare metal server based on the state information, and displaying the management information. Therefore, the state information of the bare metal server does not need to be checked by exporting a form in the format of EXCEL, the management information of the bare metal server can be visually checked in the management server, the bare metal server can be managed more conveniently, and the management convenience is improved.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the method steps of managing a bare metal server as described in any of the embodiments above is also provided.
Therefore, in the scheme provided by the embodiment of the invention, when the computer program product runs on a computer, under the condition that the preset display condition is met, the state information of the bare metal server corresponding to the preset display condition can be obtained; and determining management information of the bare metal server based on the state information, and displaying the management information. Therefore, the state information of the bare metal server does not need to be checked by exporting a form in the format of EXCEL, the management information of the bare metal server can be visually checked in the management server, the bare metal server can be managed more conveniently, and the management convenience is improved.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital tenant line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus, management server, computer readable storage medium, and computer program product embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, with reference to the portions of the method embodiments that are relevant.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (14)

1. A method for managing a bare metal server, applied to a management server, the method comprising:
under the condition that preset display conditions are met, acquiring state information of a bare metal server corresponding to the preset display conditions;
Determining management information of the bare metal server based on the state information, and displaying the management information;
the preset display conditions comprise: the management server is provided with a fault monitoring task;
the step of determining the management information of the bare metal server based on the state information and displaying the management information includes:
Determining that the state of the bare metal server is not a preset state according to the state information, and taking the bare metal server as a server to be queried, wherein the preset state indicates that the corresponding bare metal server is in a normal state;
The identification of the server to be queried is sent to a target server, so that the target server returns work order information corresponding to the identification as management information, wherein the target server stores work order information of all bare metal servers;
Sending prompt information to operation and maintenance personnel to prompt the operation and maintenance personnel to perform fault maintenance treatment on the server to be queried, wherein the prompt information comprises the management information;
The preset display conditions further include: acquiring backup information sent by a tenant terminal, wherein the backup information comprises target machine types and target quantity of bare metal servers required by the tenant;
the step of determining the management information of the bare metal server based on the state information and displaying the management information includes:
Generating a backup list based on the state information, sending the management information to the tenant terminal as management information, and modifying the states of the target number of bare metal servers into reserved states so that the tenant terminal displays the management information;
Under the condition that the number of bare metal servers with the machine types being the target machine types in stock is smaller than the target number, acquiring state information of the bare metal servers with the machine types being the target machine types in stock, and acquiring the machine types of the in-stock bare metal servers in real time;
determining whether the model of the warehouse-in bare metal server is the same as the target model;
and under the condition that the model of the warehousing bare metal server is the same as the target model, acquiring the state information of the warehousing bare metal server until the number of acquired state information reaches the target number.
2. The method of claim 1, wherein the preset presentation conditions further comprise acquiring inventory presentation instructions;
the step of obtaining the state information of the bare metal server corresponding to the preset display condition comprises the following steps:
acquiring state information of bare metal servers in inventory, wherein the state information comprises machine types and quantity;
The step of determining management information of the bare metal server based on the status information includes:
constructing an inventory list based on the model and the number of bare metal servers in inventory;
And determining the inventory list as management information, and displaying the management information.
3. The method of claim 2, wherein the step of constructing an inventory list based on the model and the number of bare metal servers in inventory comprises:
counting the number of bare metal servers of each model in the inventory;
sorting the bare metal servers of each model according to the number to obtain a sorting result;
and generating an inventory list ordered by quantity based on the ordering result.
4. The method of claim 1, wherein the preset presentation conditions further comprise acquiring a query instruction, the query instruction comprising a query condition;
the step of obtaining the state information of the bare metal server corresponding to the preset display condition comprises the following steps:
acquiring state information of the bare metal server conforming to the query condition;
the step of determining the management information of the bare metal server based on the state information and displaying the management information includes:
and taking the state information of the bare metal server meeting the query condition as management information, and displaying the management information.
5. The method of claim 4, wherein the query conditions comprise: at least one of being in a repository state, belonging to a preset product line, belonging to a preset machine room, belonging to a preset available area, and being a target model and belonging to a special cluster.
6. The method of claim 1, wherein the preset display conditions further comprise acquiring an inventory level detection instruction;
the step of obtaining the state information of the bare metal server corresponding to the preset display condition comprises the following steps:
acquiring the number of the bare metal servers of each model in inventory;
the step of determining the management information of the bare metal server based on the state information and displaying the management information includes:
Determining whether the number of the bare metal servers of each model reaches a preset number threshold;
And sending alarm information to product personnel as management information when the bare metal servers of the machine types which do not reach the preset number threshold exist, wherein the alarm information comprises the machine types of the bare metal servers which do not reach the preset number threshold.
7. A management apparatus of a bare metal server, applied to a management server, the apparatus comprising:
the state information acquisition module is used for acquiring state information of the bare metal server corresponding to the preset display condition under the condition that the preset display condition is met;
The management information display module is used for determining the management information of the bare metal server based on the state information and displaying the management information;
the preset display conditions comprise: the management server is provided with a fault monitoring task;
The management information display module includes:
a server determining unit, configured to determine, according to the state information, a bare metal server whose state is not a preset state, as a server to be queried, where the preset state indicates that a corresponding bare metal server is in a normal state;
the management information determining unit is used for sending the identification of the server to be queried to a target server so that the target server returns the work order information corresponding to the identification as management information, wherein the target server stores the work order information of all bare metal servers;
the second display unit is used for sending prompt information to operation and maintenance personnel so as to prompt the operation and maintenance personnel to perform fault maintenance treatment on the server to be queried, wherein the prompt information comprises the management information;
The preset display conditions further include: acquiring backup information sent by a tenant terminal, wherein the backup information comprises target machine types and target quantity of bare metal servers required by the tenant;
The management information display module includes:
a fifth display unit, configured to generate a backup list based on the state information, send the management information to the tenant terminal as management information, and modify the states of the target number of bare metal servers to a reserved state, so that the tenant terminal displays the management information;
The status information acquisition module includes:
A fourth acquisition unit including:
The warehouse-in monitoring subunit is used for acquiring the state information of the bare metal servers with the machine types in stock as the target machine types under the condition that the number of the bare metal servers with the machine types in stock as the target machine types is smaller than the target number, and acquiring the machine types of the warehouse-in bare metal servers in real time;
the model determining subunit is used for determining whether the model of the warehouse-in bare metal server is the same as the target model;
the information acquisition subunit is used for acquiring the state information of the warehousing bare metal server under the condition that the model of the warehousing bare metal server is the same as the target model until the acquired state information reaches the target number.
8. The apparatus of claim 7, wherein the preset presentation conditions further comprise acquisition of inventory presentation instructions;
The status information acquisition module includes:
A first obtaining unit, configured to obtain status information of bare metal servers in inventory, where the status information includes model and number;
The management information display module includes:
the inventory list construction unit is used for constructing an inventory list based on the types and the number of the bare metal servers in the inventory;
and the first display unit is used for determining the inventory list as management information and displaying the management information.
9. The apparatus of claim 8, wherein the inventory list construction unit comprises:
A statistics subunit, configured to count the number of bare metal servers of each model in the inventory;
The sequencing subunit is used for sequencing the bare metal servers of each model according to the quantity to obtain a sequencing result;
And the construction subunit is used for generating an inventory list ordered according to the quantity based on the ordering result.
10. The apparatus of claim 7, wherein the preset presentation conditions further comprise acquiring a query instruction, the query instruction comprising a query condition;
The status information acquisition module includes:
the second acquisition unit is used for acquiring the state information of the bare metal server which accords with the query condition;
The management information display module includes:
and the third display unit is used for taking the state information of the bare metal server meeting the query condition as management information and displaying the management information.
11. The apparatus of claim 10, wherein the query conditions comprise: at least one of being in a repository state, belonging to a preset product line, belonging to a preset machine room, belonging to a preset available area, and being a target model and belonging to a special cluster.
12. The apparatus of claim 7, wherein the preset display conditions further comprise acquisition of an inventory level detection instruction;
The status information acquisition module includes:
a third obtaining unit, configured to obtain the number of bare metal servers of each model in inventory;
The management information display module includes:
a number determining unit for determining whether the number of bare metal servers of each model reaches a preset number threshold;
And the fourth display unit is used for sending alarm information to product personnel as management information under the condition that the bare metal servers of the machine types which do not reach the preset number threshold value exist, wherein the alarm information comprises the machine types of the bare metal servers which do not reach the preset number threshold value.
13. The management server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
A processor for implementing the method steps of any one of claims 1-6 when executing a program stored on a memory.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
CN202110302971.1A 2021-03-22 2021-03-22 Management method and device of bare metal server and management server Active CN113011819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110302971.1A CN113011819B (en) 2021-03-22 2021-03-22 Management method and device of bare metal server and management server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110302971.1A CN113011819B (en) 2021-03-22 2021-03-22 Management method and device of bare metal server and management server

Publications (2)

Publication Number Publication Date
CN113011819A CN113011819A (en) 2021-06-22
CN113011819B true CN113011819B (en) 2024-05-03

Family

ID=76404394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110302971.1A Active CN113011819B (en) 2021-03-22 2021-03-22 Management method and device of bare metal server and management server

Country Status (1)

Country Link
CN (1) CN113011819B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093454A (en) * 2023-10-17 2023-11-21 杭州优云科技有限公司 Server information management method, device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004280520A (en) * 2003-03-17 2004-10-07 Fuji Xerox Office Supply Co Ltd Commodity management system and method
CN107180325A (en) * 2017-05-22 2017-09-19 东莞市易趣购自动化科技有限公司 A kind of stock control and real-time display system
CN108154322A (en) * 2016-12-02 2018-06-12 苏宁云商集团股份有限公司 A kind of method and inventory system of inventory's real-time management
CN109862048A (en) * 2017-11-29 2019-06-07 内蒙古伊利实业集团股份有限公司 Shop equipment processing system, device databases server and method
CN111033229A (en) * 2017-09-30 2020-04-17 深圳迈瑞生物医疗电子股份有限公司 Consumable management method, sample analysis system, and computer-readable storage medium
CN112288541A (en) * 2020-11-04 2021-01-29 中天鸿锂清源股份有限公司 Battery lease management platform
CN112488612A (en) * 2020-11-26 2021-03-12 国网河北省电力有限公司物资分公司 Visualization-based full inventory resource monitoring and displaying method
KR20210031072A (en) * 2019-09-11 2021-03-19 위킵(주) System and method for providing distribution and delivery management service based on fulfillment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004280520A (en) * 2003-03-17 2004-10-07 Fuji Xerox Office Supply Co Ltd Commodity management system and method
CN108154322A (en) * 2016-12-02 2018-06-12 苏宁云商集团股份有限公司 A kind of method and inventory system of inventory's real-time management
CN107180325A (en) * 2017-05-22 2017-09-19 东莞市易趣购自动化科技有限公司 A kind of stock control and real-time display system
CN111033229A (en) * 2017-09-30 2020-04-17 深圳迈瑞生物医疗电子股份有限公司 Consumable management method, sample analysis system, and computer-readable storage medium
CN109862048A (en) * 2017-11-29 2019-06-07 内蒙古伊利实业集团股份有限公司 Shop equipment processing system, device databases server and method
KR20210031072A (en) * 2019-09-11 2021-03-19 위킵(주) System and method for providing distribution and delivery management service based on fulfillment
CN112288541A (en) * 2020-11-04 2021-01-29 中天鸿锂清源股份有限公司 Battery lease management platform
CN112488612A (en) * 2020-11-26 2021-03-12 国网河北省电力有限公司物资分公司 Visualization-based full inventory resource monitoring and displaying method

Also Published As

Publication number Publication date
CN113011819A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN111158983A (en) Integrated operation and maintenance management system
CN109241084B (en) Data query method, terminal equipment and medium
US11783242B2 (en) Asset management and work order application synchronization for intelligent lockers
CN112148779B (en) Method, device and storage medium for determining business index
CN114741396B (en) Data service processing method and device, electronic equipment and storage medium
CN109146708B (en) Emergency repair method and device for power supply repair report
US7412345B2 (en) System, method, and article of manufacture for obtaining data
US9626700B1 (en) Aggregation of operational data for merchandizing of network accessible services
CN113011819B (en) Management method and device of bare metal server and management server
CN110018932B (en) Method and device for monitoring container magnetic disk
CN110262955B (en) Application performance monitoring tool based on pinpoint
CN108173711B (en) Data exchange monitoring method for internal system of enterprise
CN108156061B (en) esb monitoring service platform
CN106651680A (en) House renting intelligent management system
US20190050791A1 (en) Methods and Apparatus for Automatically Generating and Managing Test Customer Accounts
CN114493756A (en) Resource management method, device, equipment and storage medium
US7956737B2 (en) Method and apparatus for network service assurance
JP6142881B2 (en) Failure notification system, failure notification method, failure notification device, failure notification program, and recording medium
CN107067137A (en) A kind of power marketing metering class's routine work management control method and system
CN113297053A (en) Method and device for determining test coverage rate and storage medium
CN112738212A (en) Method and system for operation and maintenance of motor vehicle electronic identification read-write equipment
CN117149896B (en) Data display method, device, equipment and storage medium
CN113327063B (en) Resource detection method, device, electronic equipment and computer readable storage medium
CN113760935B (en) Electric power household meter information processing system
CN115358557A (en) Production information management method, apparatus and readable 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
GR01 Patent grant
GR01 Patent grant