CN117093454A - Server information management method, device, computer equipment and storage medium - Google Patents

Server information management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117093454A
CN117093454A CN202311350689.6A CN202311350689A CN117093454A CN 117093454 A CN117093454 A CN 117093454A CN 202311350689 A CN202311350689 A CN 202311350689A CN 117093454 A CN117093454 A CN 117093454A
Authority
CN
China
Prior art keywords
information
server
management node
management
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311350689.6A
Other languages
Chinese (zh)
Inventor
种鑫
程行峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Youyun Technology Co ltd
Original Assignee
Hangzhou Youyun 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 Hangzhou Youyun Technology Co ltd filed Critical Hangzhou Youyun Technology Co ltd
Priority to CN202311350689.6A priority Critical patent/CN117093454A/en
Publication of CN117093454A publication Critical patent/CN117093454A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • 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)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present specification provides a server information management method, apparatus, computer device, and storage medium. The server information management method provided by the specification can be applied to a server, and comprises the following steps: acquiring first information, wherein the first information represents current state information of the server; and sending the first information to a management node so that the management node updates state information corresponding to the server in a server information base according to the first information, wherein the state information of at least one server is stored in the server information base. In the embodiment of the specification, the server acquires the first information and sends the first information to the management node, and the management node updates the state information corresponding to the server according to the first information, so that the automatic management operation of the server information is realized, the complete server information management process does not need to be manually participated, and the information registration efficiency and accuracy are improved.

Description

Server information management method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the technical field of server information management methods, apparatuses, computer devices, and storage media.
Background
Bare metal servers refer to servers that run applications directly using the computing resources of a physical machine without virtualization technology. The bare metal physical machine has higher application value in the fields of high-performance calculation, machine learning, big data processing, financial transaction, high-frequency transaction and the like.
The bare metal server is usually directly oriented to the customer, so that when the customer performs operations such as purchasing, unsubscribing, expanding, etc., the management node of the bare metal server is required to timely distribute and release the bare metal server. The operations of displaying, distributing, releasing and the like of the information of the bare metal server are all required to be executed by the management node according to the address, the state and the like of the bare metal server.
However, since the bare metal server is not usually implemented based on a virtualization technology, in the related art, an address of the bare metal server is usually required to be manually input, and information registration efficiency and accuracy are low.
Disclosure of Invention
To overcome the problems in the related art, the present specification provides a server information management method, apparatus, computer device, and storage medium.
A first aspect of the present specification provides a server information management method, applied to a server, the method including:
acquiring first information, wherein the first information represents current state information of the server;
and sending the first information to a management node so that the management node updates state information corresponding to the server in a server information base according to the first information, wherein the state information of at least one server is stored in the server information base.
Optionally, the acquiring the first information includes at least one of:
acquiring first information in response to the fact that the time interval between the current time and the last time of transmitting the first information reaches a preset time period;
acquiring first information in response to receiving a starting instruction;
in response to the server entering a ready state, first information is obtained.
Optionally, the server is a bare metal server, and the method further includes:
receiving an engine sending instruction sent by the management node, and performing engine sending operation;
and/or receiving a release instruction sent by the management node, and modifying the configuration parameters of the server according to the release instruction.
A second aspect of the present specification provides a server information management method, applied to a management node, the method including:
and in response to receiving first information sent by a server, updating state information corresponding to the server in a server information base according to the first information, wherein the first information characterizes the state information of the server, and the state information of at least one server is stored in the server information base.
Optionally, the first information includes first address information, and the first address information characterizes address information of the server;
the updating the state information corresponding to the server according to the first information includes:
and acquiring a first identifier according to the first address information, and updating state information corresponding to the first identifier in a server information base according to the first information, wherein the first identifier is the identifier corresponding to the server, and the first identifier is obtained by calculating the first address information by using a reversible algorithm.
Optionally, the method further comprises:
and responding to the condition that the server information base does not have the state information corresponding to the first identifier, storing the first information into the server information base, and labeling the first identifier for the first information.
A third aspect of the present specification provides a server information management apparatus, the apparatus comprising:
the first information acquisition module is used for acquiring first information, and the first information characterizes the current state information of the server;
the first information sending module is used for sending the first information to a management node so that the management node can update the state information corresponding to the server in a server information base according to the first information, wherein the state information of at least one server is stored in the server information base.
Optionally, the first information sending module is configured to, when the first information is obtained, at least one of the following:
acquiring first information in response to the fact that the time interval between the current time and the last time of transmitting the first information reaches a preset time period;
acquiring first information in response to receiving a starting instruction;
in response to the server entering a ready state, first information is obtained.
Optionally, the server is a bare metal server, and the apparatus further includes:
the instruction receiving module is used for executing the following steps:
receiving an engine sending instruction sent by the management node, and performing engine sending operation;
and/or receiving a release instruction sent by the management node, and modifying the configuration parameters of the server according to the release instruction.
A fourth aspect of the present specification provides a server information management apparatus, the apparatus comprising:
the first information updating module is used for responding to the received first information sent by the server, updating the state information corresponding to the server in a server information base according to the first information, wherein the first information represents the state information of the server, and the state information of at least one server is stored in the server information base.
Optionally, the first information includes first address information, and the first address information characterizes address information of the server;
the first information updating module is configured to, when updating the state information corresponding to the server according to the first information:
and acquiring a first identifier according to the first address information, and updating state information corresponding to the first identifier in a server information base according to the first information, wherein the first identifier is the identifier corresponding to the server, and the first identifier is obtained by calculating the first address information by using a reversible algorithm.
Optionally, the apparatus further includes:
and the first information storage module is used for storing the first information into the server information base and labeling the first identification for the first information in response to the fact that the state information corresponding to the first identification does not exist in the server information base.
A fifth aspect of the present description provides a computer apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to any one of the first and second aspects when executing the program.
A sixth aspect of the present description provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method according to any one of the first and second aspects.
The technical scheme provided by the embodiment of the specification can comprise the following beneficial effects:
in the embodiment of the specification, the server acquires the first information and sends the first information to the management node, and the management node updates the state information corresponding to the server according to the first information, so that the automatic management of the server information is realized, the complete server information management process does not need to be manually participated, and the information registration efficiency and accuracy are improved. Meanwhile, the management node updates the server information corresponding to the server in the server information base to actively trigger the server side, and the management node is not required to poll, so that invalid data interaction between the management node and the server is reduced. In addition, the management node can realize information management of one or more servers only by maintaining the server information base according to the first information reported by the servers, so that less system resources are occupied, and the advantage is particularly obvious when a large number of servers are put on shelf at the same time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is an exemplary application scenario diagram of a server information management method according to some exemplary embodiments of the present description.
Fig. 2 is a flowchart of a server information management method according to some exemplary embodiments of the present description.
Fig. 3 is a flowchart of another server information management method shown in some exemplary embodiments of the present description.
Fig. 4 is a flowchart of yet another server information management method shown in some exemplary embodiments of the present description.
Fig. 5 is a flowchart of yet another server information management method shown in some exemplary embodiments of the present description.
Fig. 6 is a two-sided interaction diagram of a server information management method as illustrated in some exemplary embodiments of the present description.
Fig. 7 is a block diagram of a server information management apparatus according to some exemplary embodiments of the present specification.
Fig. 8 is a block diagram of a server information management apparatus according to some exemplary embodiments of the present specification.
Fig. 9 is a hardware configuration diagram of a computer device according to some exemplary embodiments of the present specification.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present description as detailed in the accompanying claims.
The terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
Bare metal servers refer to servers that run applications directly using the computing resources of a physical machine without virtualization technology. The bare metal physical machine has higher application value in the fields of high-performance calculation, machine learning, big data processing, financial transaction, high-frequency transaction and the like.
The bare metal server is usually directly oriented to the customer, so that when the customer performs operations such as purchasing, unsubscribing, expanding, etc., the management node of the bare metal server is required to timely distribute and release the bare metal server. The operations of displaying, distributing, releasing and the like of the information of the bare metal server are all required to be executed by the management node according to the address, the state and the like of the bare metal server.
However, since the bare metal server is not usually implemented based on a virtualization technology, in the related technology, the address of the bare metal server is usually required to be manually input, the information registration efficiency and the information registration accuracy are very low, and the disadvantage is particularly obvious when a large number of servers are put on shelf at the same time.
For a better understanding of the method, apparatus, computer device, and storage medium for managing server information provided in some embodiments of the present disclosure, an exemplary application scenario diagram as shown in fig. 1 is provided. Referring to fig. 1, a bare metal server 121, a bare metal server 122 and a bare metal server 123 are all connected to a service network switch 111 and a BMC network switch 112 at a network level, the service network switch 111 and the BMC network switch 112 are connected to a management node 101 at the network level, and the management node 101 is connected to a server information base 102. The bare metal server provides a BMC (Baseboard Management Controller ) and a service network card, the BMC accesses the BMC network switch 112, and the service network card accesses the service network switch 111. The management node 101 needs server information of the bare metal server 121, the bare metal server 122 and the bare metal server 123 to be presented to server management personnel and users, and completes operations such as purchasing, unsubscribing, expanding and the like of the bare metal server based on the server information.
The bare metal server is hardware equipment with the characteristics of a traditional physical server and the virtualized service function of cloud computing technology, and is essentially a server with the cloud computing service function and the physical equipment performance. In other words, a bare metal server is a physical server that provides a bare metal environment for users that is not based on a virtualization layer, and in contrast to conventional virtualization techniques, bare metal servers allow users to directly access and control physical hardware resources without sharing resources with other servers, nor without being limited by a virtualization layer. Bare metal servers typically have a ready state (bare metal server is deployed on shelf and is running normally) and a running state (bare metal server has been sent to the user, running the user-specified operating system), as well as intermediate states in the engine, resulting from the switching process of the above states.
It should be understood that the above application scenario is only one exemplary scenario of the embodiments of the present specification, and is not limited to the specific application of the embodiments of the present specification.
Next, embodiments of the present specification will be described in detail from both sides of a server side (e.g., the bare metal server 121 in the above-described exemplary application scenario) and a management node (e.g., the management node 101 in the above-described exemplary application scenario).
In a first aspect, the present disclosure provides a server information management method applied to a server side, referring to fig. 2, fig. 2 is a flowchart of a server information management method shown in some exemplary embodiments of the present disclosure, including the following steps:
s201, acquiring first information, wherein the first information represents current state information of the server;
the first information characterizes current state information of the server, which may include any information about the server, such as IP (Internet Protocol ) address information and MAC (Media Access Control, media control access) address information of the BMC, IP address information and MAC address information of the service network card, a host name, and state information of hardware such as a CPU (Central Processing Unit ), a memory, a disk, a network card, and the like. In the actual application process, taking the server as the bare metal server 121 in the foregoing exemplary application scenario as an example, the first information may include information that the management node 101 needs the bare metal server 121 to present to a server manager and a user, and server information that is required to complete operations such as purchasing, unsubscribing, and expanding the bare metal server, even if the current state information of the server includes information that is required by the management node in the foregoing application scenario.
S202, the first information is sent to a management node, so that the management node updates state information corresponding to the server in a server information base according to the first information, wherein the state information of at least one server is stored in the server information base.
Taking the example that the server is the bare metal server 121 in the foregoing exemplary application scenario, it is preferable that the process of executing the method runs on the operating system of the bare metal server 121, and uses the service network card of the bare metal server 121 to communicate with the management node 101 through the service network switch 111. In addition, the process of executing the method may be executed on the BMC of the bare metal server 121, and the BMC may be used to communicate with the management node 101 through the BMC network switch 112.
In some embodiments of the present description, the first information is obtained, and the first information is sent to the management node under at least any one of the following trigger conditions:
alternative condition 1: the time interval between the current time and the last time the first information was sent reaches a preset time period. In other words, the server acquiring the first information and transmitting the first information to the management node is performed at a preset time frequency.
Optional condition 2: and receiving a starting instruction. Since a state transition (e.g., a switch from a run state to a ready state) of a server is typically accompanied by a restart of the system or a restart of a process, the first information may be obtained in response to receiving a start-up instruction.
Optional condition 3: the server enters a ready state. Since the management node needs to present the server information of the server to the manager and the user and complete the operations of purchasing, expanding and the like of the bare metal server based on the server information generally occurs when the server is in a ready state, the server can acquire the first information and send the first information to the management node when the server is in the ready state.
It should be understood that the "current" in S201 is only used to distinguish from the first information sent by the server when the first information was last sent to the management node, and is not strictly limited to the time of the status information characterized by the first information. For example, in optional condition 1, the server may send the first information to the management node at a preset time frequency, and preferably, each time the server sends the first information to the management node, the first information characterizes state information of the server at a time between the last time the server sent the first information and the current time the server sent the first information, in other words, "current state information" is the first information the server has when the server obtained the first information this time. The same applies to other options.
For the reasons set forth in optional condition 3, it may be preferable to use the server in the ready state as a precondition, so that the server sends the first information to the management node only when the server is in the ready state, thereby reducing the frequency of information interaction between the server and the management node, reducing the network pressure (switch pressure and bandwidth pressure), saving the I/O (Input/Output) operation of the system, and saving the power consumption of the server and the management node.
After the server sends the first information to the management node, the management node can update the state information corresponding to the server in a server information base according to the first information, so that the server information is presented to server management staff and users, and the operations of purchasing, unsubscribing, expanding and the like of the bare metal server are completed based on the server information.
The server information base stores relevant information of the server, in other words, the server information base is a database which can be accessed and modified by the management node and can be used for storing state information of the server, and can be realized based on a MySQL database, an Oracle database and the like, or can be realized through a self-fitting format based on common files such as text documents and the like.
In the embodiment of the specification, the server acquires the first information and sends the first information to the management node, and the management node updates the state information corresponding to the server according to the first information, so that the automatic management of the server information is realized, the complete server information management process does not need to be manually participated, and the information registration efficiency and accuracy are improved. In addition, the management node updates the server information corresponding to the server in the server information base to actively trigger the server side, and the management node is not required to poll, so that invalid data interaction between the management node and the server is reduced.
In some embodiments of the present description, the server is a bare metal server. Referring to fig. 3, fig. 3 is a flowchart of another server information management method according to some exemplary embodiments of the present disclosure, and the method may further include two optional steps shown in S301:
optional step 1: receiving an engine sending instruction sent by the management node, and performing engine sending operation;
when a server executing the server information management method is purchased by a client, a management node sends an engine starting instruction to the server, wherein the engine starting instruction indicates related information required for executing an engine starting operation, such as a PXE (Preboot Execution Environment, pre-start execution environment) parameter and the like required by a user, and a process executing the server information management method can accept the engine starting instruction and modify the related parameters of the server and restart the operation according to the related information required for executing the engine starting operation indicated by the engine starting instruction, thereby completing the engine starting operation.
Optional step 2: and receiving a release instruction sent by the management node, and modifying the configuration parameters of the server according to the release instruction.
When the server executing the server information management method is unsubscribed by a client, the management node sends a release instruction to the server, wherein the release instruction indicates related information required for executing a release operation, such as a PXE parameter required for restarting, and the like, and the process executing the server information management method can accept the release instruction and modify related parameters of the server according to the related information required for executing the release operation indicated by the release instruction and perform the restart operation, thereby completing the release operation. It should be understood that in actual operation, the restart operation is typically performed by the BMC, so that a process executing the server information management method may be executed on the BMC, or after the management node sends information about a release operation required for executing the method to a process executing the method in the server, a restart instruction is sent to the BMC on the server through the BMC network switch, or the process executing the method is notified to the BMC, so that the release or send operation is implemented.
In a second aspect, a server information management method applied to a management node side is provided, referring to fig. 4, which is a flowchart of still another server information management method according to some exemplary embodiments of the present disclosure, including the following steps:
s401, in response to receiving first information sent by a server, updating state information corresponding to the server in a server information base according to the first information, wherein the first information represents the state information of the server, and the state information of at least one server is stored in the server information base.
When the server side sends first information to the management node, the management node receives the first information sent by the server and updates state information corresponding to the server in a server information base according to the first information.
Regarding updating the state information corresponding to the server according to the first information, for example, the state information corresponding to the server may be determined according to identification information, such as a hostname, a hardware identifier, or a combination of fields, which is carried in the first information and is not changed when the server is in a ready state, and may be used to indicate the server, and the state information corresponding to the server may be updated in a server information base according to information contained in the first information. The explanation about the concepts of the status information and the like has been described in the related embodiments of the server information management method applied to the server side, and is not repeated here.
Further, in some embodiments of the present description, the first information includes first address information characterizing address information of the server. The address information here includes an address that the server has to be used for establishing a communication connection, for example, the aforementioned IP address information and MAC address information of the BMC or the service network card. Such information is typically not altered when the server is in a ready state and may be used to indicate the server, thus satisfying the above-described conditions that may be used to determine the field or combination of fields of state information corresponding to the server.
In the embodiment of the specification, the server acquires the first information and sends the first information to the management node, and the management node updates the state information corresponding to the server according to the first information, so that the automatic management of the server information is realized, the complete server information management process does not need to be manually participated, and the information registration efficiency and accuracy are improved. Meanwhile, the management node updates the server information corresponding to the server in the server information base to actively trigger the server side, and the management node is not required to poll, so that invalid data interaction between the management node and the server is reduced. In addition, the management node can realize information management of one or more servers only by maintaining the server information base according to the first information reported by the servers, so that less system resources are occupied, and the advantage is particularly obvious when a large number of servers are put on shelf at the same time.
In some embodiments of the present disclosure, the updating the state information corresponding to the server according to the first information includes:
and acquiring a first identifier according to the first address information, and updating state information corresponding to the first identifier in a server information base according to the first information, wherein the first identifier is the identifier corresponding to the server, and the first identifier is obtained by calculating the first address information by using a reversible algorithm.
The first identifier is obtained by calculating the first address information using a reversible algorithm, in other words, the first identifier and the first address information have the feature of being mutually convertible. For example, the first identifier may be a string connection of a field included in the first address information; the encryption string may be calculated by a reversible symmetric or asymmetric encryption algorithm such as AES (Advanced Encryption Standard ), RSA (Rivest-Shamir-Adleman, rivest-samier-Adleman); or the equivalent first identifier generated by setting the field contained in the first address information as a primary key or a joint primary key in the database. The method has the advantages that when the management node receives the first information, the first identifier can be directly obtained through calculation according to the first address information contained in the first information, so that the corresponding state information of the first information in the server information base can be obtained through quick indexing according to the obtained first identifier, and then corresponding updating operation is carried out; in addition, when the management node has a need to acquire the first address information and a need to acquire no server state information, the first address information may be acquired without querying the server information base. In summary, the method can save the system I/O times, thereby reducing the system pressure.
In some embodiments of the present disclosure, please refer to fig. 5, which is a flowchart illustrating another server information management method according to some exemplary embodiments of the present disclosure, including:
s501, in response to the fact that state information corresponding to the first identifier does not exist in the server information base, the first information is stored in the server information base, and the first identifier is marked for the first information.
It should be understood that in this step, labeling the first information with the first identifier means that after the first information is saved in the server information base, the corresponding entry in the server information base is labeled with the first identifier. The method for labeling the first identifier is referred to the related description of the above embodiment, and will not be repeated here. When the state information corresponding to the first identifier is not in the server information base, the first information is stored in the server information base, so that when the server sends the first information to the management node for the first time, or after the management node is down and restarted to cause information loss in the server information base, the state information corresponding to the server can be updated (namely added) normally, and the usability of the method is improved.
In order to better understand the communication control method provided in the embodiments of the present specification, the embodiments of the present specification are described below taking an exemplary application scenario shown in fig. 1 as an example.
Referring to fig. 6, which is a two-sided interaction diagram of a server information management method according to some exemplary embodiments of the present disclosure, in the exemplary application scenario shown in fig. 1, bare metal server 121 may be used as a bare metal server, management node 101 may be used as a management node, and server information base 102 may be used as a server information base. The embodiment shown in fig. 6 comprises the following steps:
s601, the bare metal server 121 acquires first information.
In S601, the bare metal server 121 acquires first information representing current state information of the bare metal server 121, for example, the first information includes state information of the bare metal server 121 when the bare metal server 121 acquires the state information, for example, the first information includes IP information of a service network card of the bare metal server 121, IP information of a BMC, and a CPU model of the bare metal server 121.
S602, bare metal server 121 transmits first information to management node 101.
The bare metal server 121 transmits the first information acquired in S601 to the management node 101.
S603, the management node 101 updates the state information corresponding to the bare metal server 121 in the server information base according to the first information.
For example, the first identifier of the first information is generated according to the IP information of the service network card and the IP information of the BMC in the first information through a character string, then the management node 101 performs character string connection on the IP information of the service network card and the IP information of the BMC in the first information sent by the bare metal server 121 to generate the first identifier, then obtains the state information corresponding to the bare metal server 121 in the server information base 102 according to the first identifier, and updates the fields corresponding to the above information in the server information base 102 according to the IP information of the service network card, the IP information of the BMC, and the CPU model of the bare metal server 121 included in the first information sent by the bare metal server 121.
The beneficial effects of the server information management method provided in the present disclosure are specifically described in the foregoing embodiments, and are not described herein again.
Corresponding to the embodiments of the aforementioned method, the present specification also provides embodiments of the apparatus and the terminal to which it is applied.
A third aspect of the present specification provides a server information management apparatus, please refer to fig. 7, which is a block diagram of a server information management apparatus shown in some exemplary embodiments of the present specification, the apparatus comprising:
a first information obtaining module 701, configured to obtain first information, where the first information characterizes current state information of the server;
the first information sending module 702 is configured to send the first information to a management node, so that the management node updates state information corresponding to the server in a server information base according to the first information, where the server information base stores state information of at least one server.
Optionally, the first information sending module is configured to, when the first information is obtained, at least one of the following:
acquiring first information in response to the fact that the time interval between the current time and the last time of transmitting the first information reaches a preset time period;
acquiring first information in response to receiving a starting instruction;
in response to the server entering a ready state, first information is obtained.
Optionally, the server is a bare metal server, and the apparatus further includes:
the instruction receiving module is used for executing the following steps:
receiving an engine sending instruction sent by the management node, and performing engine sending operation;
and/or receiving a release instruction sent by the management node, and modifying the configuration parameters of the server according to the release instruction.
A fourth aspect of the present specification provides a server information management apparatus, please refer to fig. 8, which is a block diagram of a server information management apparatus shown in some exemplary embodiments of the present specification, the apparatus comprising:
the first information updating module 801 is configured to update, in response to receiving first information sent by a server, state information corresponding to the server in a server information base according to the first information, where the first information characterizes the state information of the server, and state information of at least one server is stored in the server information base.
Optionally, the first information includes first address information, and the first address information characterizes address information of the server;
the first information updating module is configured to, when updating the state information corresponding to the server according to the first information:
and acquiring a first identifier according to the first address information, and updating state information corresponding to the first identifier in a server information base according to the first information, wherein the first identifier is the identifier corresponding to the server, and the first identifier is obtained by calculating the first address information by using a reversible algorithm.
Optionally, the apparatus further includes:
and the first information storage module is used for storing the first information into the server information base and labeling the first identification for the first information in response to the fact that the state information corresponding to the first identification does not exist in the server information base.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present description. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The embodiments of the server information management apparatus of the present specification may be applied to a computer device, such as a server or a terminal device. The apparatus embodiments may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking software implementation as an example, the device in a logic sense is formed by reading corresponding computer program instructions in a nonvolatile memory into a memory through a processor of information management of a server where the device is located. In terms of hardware, as shown in fig. 9, a hardware structure diagram of a computer device according to an exemplary embodiment of the present disclosure is shown, and in addition to the processor 910, the memory 930, the network interface 920, and the nonvolatile memory 940 shown in fig. 9, a server or an electronic device where the server information management apparatus 931 is located in the embodiment may generally include other hardware according to an actual function of the computer device, which will not be described herein.
The present specification also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements any of the methods provided in the present specification.
In particular, computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disk or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A server information management method, applied to a server, comprising:
acquiring first information, wherein the first information represents current state information of the server;
and sending the first information to a management node so that the management node updates state information corresponding to the server in a server information base according to the first information, wherein the state information of at least one server is stored in the server information base.
2. The server information management method according to claim 1, wherein the acquiring the first information includes at least one of:
acquiring first information in response to the fact that the time interval between the current time and the last time of transmitting the first information reaches a preset time period;
acquiring first information in response to receiving a starting instruction;
in response to the server entering a ready state, first information is obtained.
3. The server information management method according to claim 1, wherein the server is a bare metal server, the method further comprising:
receiving an engine sending instruction sent by the management node, and performing engine sending operation;
and/or receiving a release instruction sent by the management node, and modifying the configuration parameters of the server according to the release instruction.
4. A server information management method, applied to a management node, comprising:
and in response to receiving first information sent by a server, updating state information corresponding to the server in a server information base according to the first information, wherein the first information characterizes the state information of the server, and the state information of at least one server is stored in the server information base.
5. The server information management method according to claim 4, wherein the first information includes first address information characterizing address information of the server;
the updating the state information corresponding to the server according to the first information includes:
and acquiring a first identifier according to the first address information, and updating state information corresponding to the first identifier in a server information base according to the first information, wherein the first identifier is the identifier corresponding to the server, and the first identifier is obtained by calculating the first address information by using a reversible algorithm.
6. The server information management method according to claim 5, characterized in that the method further comprises:
and responding to the condition that the server information base does not have the state information corresponding to the first identifier, storing the first information into the server information base, and labeling the first identifier for the first information.
7. A server information management apparatus, the apparatus comprising:
the first information acquisition module is used for acquiring first information, and the first information characterizes the current state information of the server;
the first information sending module is used for sending the first information to a management node so that the management node can update the state information corresponding to the server in a server information base according to the first information, wherein the state information of at least one server is stored in the server information base.
8. A server information management apparatus, the apparatus comprising:
the first information updating module is used for responding to the received first information sent by the server, updating the state information corresponding to the server in a server information base according to the first information, wherein the first information represents the state information of the server, and the state information of at least one server is stored in the server information base.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 6 when the program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1 to 6.
CN202311350689.6A 2023-10-17 2023-10-17 Server information management method, device, computer equipment and storage medium Pending CN117093454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311350689.6A CN117093454A (en) 2023-10-17 2023-10-17 Server information management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311350689.6A CN117093454A (en) 2023-10-17 2023-10-17 Server information management method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117093454A true CN117093454A (en) 2023-11-21

Family

ID=88783694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311350689.6A Pending CN117093454A (en) 2023-10-17 2023-10-17 Server information management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117093454A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1435974A (en) * 2002-01-29 2003-08-13 三星电子株式会社 Domain name management method and apparatus
CN107211176A (en) * 2015-01-20 2017-09-26 维亚塞斯公司 Method for distributing protected content of multimedia
CN110495136A (en) * 2017-11-01 2019-11-22 华为技术有限公司 The hardware attributes of bare metal server find method and system
CN111586671A (en) * 2020-03-25 2020-08-25 深圳市广和通无线股份有限公司 Embedded user identification card configuration method and device, communication equipment and storage medium
CN113011819A (en) * 2021-03-22 2021-06-22 北京金山云网络技术有限公司 Bare metal server management method and device and management server
CN114363295A (en) * 2020-09-28 2022-04-15 华为云计算技术有限公司 Tenant server management method and device
CN115158080A (en) * 2022-07-27 2022-10-11 无锡挚达物联科技有限公司 Remote reservation charging method, server and charging pile

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1435974A (en) * 2002-01-29 2003-08-13 三星电子株式会社 Domain name management method and apparatus
CN107211176A (en) * 2015-01-20 2017-09-26 维亚塞斯公司 Method for distributing protected content of multimedia
CN110495136A (en) * 2017-11-01 2019-11-22 华为技术有限公司 The hardware attributes of bare metal server find method and system
CN111586671A (en) * 2020-03-25 2020-08-25 深圳市广和通无线股份有限公司 Embedded user identification card configuration method and device, communication equipment and storage medium
CN114363295A (en) * 2020-09-28 2022-04-15 华为云计算技术有限公司 Tenant server management method and device
CN113011819A (en) * 2021-03-22 2021-06-22 北京金山云网络技术有限公司 Bare metal server management method and device and management server
CN115158080A (en) * 2022-07-27 2022-10-11 无锡挚达物联科技有限公司 Remote reservation charging method, server and charging pile

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱梁等: "《数字电影的技术与理论》", 世界图书出版公司, pages: 207 *

Similar Documents

Publication Publication Date Title
JP6974218B2 (en) Storage system and its operation method
RU2759011C2 (en) AUTOMATIC INITIALIZATION OF IoT DEVICES
CN108494799B (en) Data sharing method and system
JP4293234B2 (en) Connection management method and connection management server in thin client
US9104803B2 (en) On-demand software test environment generation
US10097508B2 (en) Selectively refreshing address registration information
CN109547570A (en) Service registration method, apparatus, registration center's management equipment and storage medium
WO2020024408A1 (en) Test device, test method and storage medium
WO2018000607A1 (en) Method and electronic apparatus for identifying test case failure causes
US11082505B2 (en) Dynamic discovery of available storage servers
WO2018191849A1 (en) Cloud management platform, virtual machine management method and system thereof
US9229762B2 (en) Host providing system and host providing method
WO2016192526A1 (en) Automatic recharging system, method and server
CN107209683A (en) Backup Images recover
US20180081676A1 (en) System and method for partition-scoped patching in an application server environment
CN105812423B (en) A kind of cloud system configuration method, server and device
US20190087131A1 (en) Mechanism for multiple coexisting configurations support in virtual tape applications
CN107086937B (en) Monitoring method and device
WO2016107612A1 (en) Method and apparatus for processing virtual card
CN105554096A (en) Method and system for realizing cloud game cloud service
CN113132356B (en) UDP message distribution method, device and storage medium
CN113746641A (en) ODX protocol processing method based on distributed storage
CN113342863A (en) Business document processing method and device, computer equipment and storage medium
CN117093454A (en) Server information management method, device, computer equipment and storage medium
CN113590033B (en) Information synchronization method and device of super fusion system

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