Server management method and device, equipment, storage medium and program product
By establishing a virtual scalable LAN tunnel on the central node and uniformly managing bare metal servers in different regions, the problems of complexity and high cost of traditional management methods are solved, and more efficient management is achieved and enterprise costs are reduced.
Patent Information
- Application Number
- CN202411958161.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2044-12-27
AI Technical Summary
The traditional bare metal server management method adopts independent management in multiple regions, resulting in management complexity and large operation and maintenance workload, increasing the management costs of enterprises.
By obtaining the network configuration information of the switches in the subnet where the bare metal servers in different regions are located, establishing a virtual extensible LAN tunnel, receiving server status information, and responding to server management tasks, sending management instructions to uniformly manage bare metal servers in different regions.
It reduces management complexity, reduces operation and maintenance costs and human resources investment, improves management efficiency, reduces enterprise management costs, and supports the addition of new geographical deployment of bare metal servers according to business needs.
Smart Images

Figure CN120017480A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a server management method, device, equipment, storage medium and program product. Background Art
[0002] Bare Metal Server (BMS) is a computing service that combines the elasticity of virtual machines and the performance of physical machines. It has the advantages of flexible expansion and remote deployment. It can quickly adjust resource allocation according to business needs, while meeting the needs of cross-regional business layout of enterprises, and provides excellent computing performance and data security for core databases, key application systems, high-performance computing, big data and other businesses.
[0003] However, the traditional bare metal server management method uses multi-region independent management. Users need to deploy independent monitoring systems in each region to monitor and maintain servers in different regions separately, which greatly increases the complexity of management and the workload of operation and maintenance, and increases the management cost of enterprises. Therefore, how to reduce the management cost of bare metal servers in multiple regions is a technical problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a server management method, apparatus, device, storage medium and program product.
[0005] A first aspect of an embodiment of the present disclosure provides a server management method, which is applicable to a central node and includes:
[0006] Obtain first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, and establish virtual scalable local area network tunnels with each switch based on the first network configuration information;
[0007] Receiving status information of each bare metal server sent by each switch based on the virtual extensible LAN tunnel, wherein the status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switch in the subnet where the bare metal server is located;
[0008] In response to receiving a server management task, a server management instruction is sent to a first switch corresponding to the server management task based on the virtual extensible local area network tunnel, so that the first switch forwards the server management instruction to a first intelligent platform management interface controller in a first bare metal server corresponding to the server management task, and the server management instruction is executed by the first intelligent platform management interface controller, and the first switch and the first bare metal server are located in the same subnet.
[0009] A second aspect of an embodiment of the present disclosure provides a server management device, which is applicable to a central node, and includes:
[0010] A first acquisition module is used to acquire first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, and to establish virtual extensible local area network tunnels with each switch based on the first network configuration information;
[0011] A receiving module, configured to receive, based on the virtual extensible LAN tunnel, status information of each bare metal server sent by each switch, wherein the status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switch in the subnet where the bare metal server is located;
[0012] A sending module is used to send a server management instruction to a first switch corresponding to the server management task based on the virtual extensible local area network tunnel in response to receiving the server management task, so that the first switch forwards the server management instruction to a first intelligent platform management interface controller in a first bare metal server corresponding to the server management task, and the first intelligent platform management interface controller executes the server management instruction, and the first switch and the first bare metal server are located in the same subnet.
[0013] A third aspect of an embodiment of the present disclosure provides a computer device, including a memory and a processor, and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the server management method as described in the first aspect above is implemented.
[0014] A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the server management method of the first aspect described above is implemented.
[0015] A fifth aspect of an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the server management method of the first aspect described above.
[0016] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0017] In the server management method, apparatus, device, storage medium and program product provided by the embodiments of the present disclosure, by obtaining first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, a virtual extensible LAN tunnel is established between each switch based on the first network configuration information, and status information of each bare metal server sent by each switch is received based on the virtual extensible LAN tunnel. The status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switch in the subnet where the bare metal server is located. In response to receiving a server management task, a server management instruction is sent to the first switch corresponding to the server management task based on the virtual extensible LAN tunnel, so that the first switch forwards the server management instruction to the first intelligent platform management interface controller in the first bare metal server corresponding to the server management task, and the first intelligent platform management interface controller The server executes the server management instruction. The first switch and the first bare metal server are located in the same subnet. The central node can be set to uniformly manage all bare metal servers in different regions, and a virtual scalable LAN tunnel connection is established between the central node and the switches in each subnet where the bare metal servers in different regions are located. The status information of the bare metal server is obtained based on the tunnel and the server management instruction is sent, thereby reducing the management complexity, reducing the operation and maintenance cost and human resource investment, improving the management efficiency, and reducing the management cost of the enterprise. After adding a new region to deploy bare metal servers according to business needs, there is no need to add more management nodes and equipment, which is convenient for responding to changing business needs and expanding the scope of control. At the same time, each subnet is connected to the central node through a virtual scalable LAN tunnel. The bare metal servers in different regions are still logically in their own virtual networks, ensuring strong isolation and security in the cross-regional network. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 is a flow chart of a server management method provided by an embodiment of the present disclosure;
[0021] Figure 2 is a structural diagram of a server management device provided by an embodiment of the present disclosure;
[0022] Figure 3 It is a structural diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0025] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0026] Figure 1 1 is a flow chart of a server management method provided by an embodiment of the present disclosure. The method can be executed by a server management device. The server management device can be implemented in software and / or hardware. The server management device can be set in a central node. Figure 1 As shown, the server management method provided in this embodiment includes the following steps:
[0027] S101. Obtain first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, and establish virtual scalable local area network tunnels with each switch based on the first network configuration information.
[0028] The first network configuration information in the embodiment of the present disclosure can be understood as the network information of the switch required to establish a virtual extensible LAN tunnel with the switch. By way of example, the first network configuration information may include a first mapping relationship between a media access control (MAC) address of the switch and an Internet Protocol (IP) address. Optionally, the first network configuration information may also include tunnel identification information determined by negotiation with the switch.
[0029] The virtual eXtensible Local Area Network (VXLAN) tunnel in the embodiment of the present disclosure can be understood as a virtualized tunnel communication technology that uses a three-layer network to build a virtual layer-2 network and establish a logical tunnel.
[0030] In the disclosed embodiment, when it is necessary to manage bare metal servers in different regions, the server management device on the central node can obtain the first network configuration information of the switches of each subnet in at least two subnets where the bare metal servers in different regions are located, and establish a virtual extensible LAN tunnel between the switch and the central node based on the first network configuration information of each switch, thereby realizing the communication connection between the central node and the subnets where the bare metal servers in different regions are located through the virtual extensible LAN tunnel established with the switches in each subnet, virtualizing the various bare metal servers in the physical network into a unified network segment, while the various subnets are still logically isolated virtual networks.
[0031] In an exemplary implementation of the disclosed embodiment, the server management device may request the switch to obtain the first network configuration information through a cross-subnet Address Resolution Protocol (ARP) request. Specifically, the server management device may send a special ARP request (proxy ARP request) to the default gateway, and this request will be forwarded by the default gateway to the subnet where the switch is located. When the switch receives the request, it replies with the first network configuration information to the default gateway, and the default gateway forwards this information back to the server management device. The server management device may also obtain the first network configuration information of the switch by requesting the Dynamic Host Configuration Protocol (DHCP).
[0032] In another exemplary implementation of the disclosed embodiment, the server management device may use the VXLAN tunnel protocol to send a tunnel establishment request to the switch. The request includes parameters such as identification information of the central node, first network configuration information, and a port number. After receiving the request, the switch performs a negotiation and confirmation process of tunnel establishment with the central node based on its own configuration and capabilities. The process may include verifying the identity of the central node, checking the legitimacy of tunnel parameters, etc. After a successful negotiation, the VXLAN tunnel between the switch and the central node is established.
[0033] Optionally, the server management device may obtain the first network configuration information based on a pre-established private network and / or a virtual private network between each switch.
[0034] Specifically, at least one of a private network and a virtual private network (VPN) is pre-established between the central node and each switch, and the server management device can request the switch to obtain the first network configuration information through the currently established private network and / or virtual private network.
[0035] S102. Receive status information of each bare metal server sent by each switch based on the virtual extensible LAN tunnel. The status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switch in the subnet where the bare metal server is located.
[0036] The status information in the embodiments of the present disclosure can be understood as information reflecting the health status of the bare metal server, such as temperature, voltage, hard disk health, fan speed, etc., which is not limited here.
[0037] The Intelligent Platform Management Interface (IPMI) controller in the embodiments of the present disclosure can be understood as a standardized message-based hardware management interface component that works independently of the server's processor, basic input and output system, or operating system, and provides various interfaces for monitoring hardware health, performing remote management operations, and providing monitoring and management functions for devices. Regardless of whether the operating system is started, the hardware status of the bare metal server can be accessed through IPMI.
[0038] In the disclosed embodiment, after the virtual extensible LAN tunnel is established, the intelligent platform management interface controller in each bare metal server will report the status information of the bare metal server to the switch in the subnet where the bare metal server is located. The switch in each subnet collects the status information of each bare metal server in the subnet where the switch is located, and sends the status information to the server management device through the virtual extensible LAN tunnel, thereby realizing real-time monitoring of the health status of the bare metal server on the server management device.
[0039] In an exemplary implementation of the disclosed embodiment, the server management device may check the status information of each bare metal server after acquiring the status information, and automatically notify the management personnel when the hardware status is abnormal.
[0040] In another exemplary implementation of the disclosed embodiment, the IPMI controller may use multi-factor authentication, encryption technology, access control and other means to securely reinforce the transmitted data to prevent unauthorized access or remote attacks.
[0041] S103. In response to receiving a server management task, a server management instruction is sent to a first switch corresponding to the server management task based on a virtual extensible LAN tunnel, so that the first switch forwards the server management instruction to a first intelligent platform management interface controller in a first bare metal server corresponding to the server management task, and the first intelligent platform management interface controller executes the server management instruction. The first switch and the first bare metal server are located in the same subnet.
[0042] The server management tasks in the embodiments of the present disclosure may be understood as tasks created by users for remote power on / off, restart, console access, and other management operations on bare metal servers, and the server management instructions may be understood as management instructions executable by the first intelligent platform management interface controller.
[0043] The first switch and the first bare metal server in the embodiment of the present disclosure may be any switch and bare metal server belonging to the same subnet.
[0044] In the embodiment of the present disclosure, when receiving a server management task created by a user, the server management device can parse out the first bare metal server to be managed and the first switch connected to the first bare metal server and located in the same subnet as the first bare metal server from the server management task. Specifically, the first switch corresponding to the first bare metal server can be determined based on the pre-acquired correspondence between the bare metal server and the switch, and then the corresponding server management instruction can be sent to the first switch based on the virtual extensible LAN tunnel between the first switch. After receiving the server management instruction, the first switch forwards the server management instruction to the first intelligent platform management interface controller in the first bare metal server, and the first intelligent platform management interface controller executes the server management instruction to realize remote management and control of the first bare metal server.
[0045] In an exemplary implementation of the disclosed embodiment, the server management device can utilize the virtual extensible LAN tunnel to dynamically manage subnets in different regions after the virtual extensible LAN tunnel is established, ensure that the network configuration of each bare metal server complies with the standards, and make adjustments when necessary.
[0046] The disclosed embodiment obtains first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, establishes virtual scalable LAN tunnels with each switch based on the first network configuration information, receives status information of each bare metal server sent by each switch based on the virtual scalable LAN tunnel, and the status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switch in the subnet where the bare metal server is located. In response to receiving a server management task, a server management instruction is sent to the first switch corresponding to the server management task based on the virtual scalable LAN tunnel, so that the first switch forwards the server management instruction to the first intelligent platform management interface controller in the first bare metal server corresponding to the server management task, and the first intelligent platform management interface controller executes the server management instruction. The machine and the first bare metal server are located in the same subnet. A central node can be set up to uniformly manage all bare metal servers in different regions, and a virtual scalable LAN tunnel connection is established between the central node and the switches in each subnet where the bare metal servers in different regions are located. The status information of the bare metal server is obtained based on the tunnel and server management instructions are sent, thereby reducing management complexity, reducing operation and maintenance costs and human resource investment, improving management efficiency, and reducing the management cost of the enterprise. After adding new regions to deploy bare metal servers according to business needs, there is no need to add more management nodes and equipment, which is convenient for responding to changing business needs and expanding the scope of control. At the same time, each subnet is connected to the central node through a virtual scalable LAN tunnel. Bare metal servers in different regions are still logically in their own virtual networks, ensuring strong isolation and security in cross-regional networks.
[0047] Optionally, in some embodiments, the first network configuration information includes a first mapping relationship between a media access control address of a switch and an Internet Protocol address. After obtaining the first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, the server management device may obtain second network configuration information of each bare metal server sent by each switch. The second network configuration information includes a second mapping relationship between the media access control address of the bare metal server and the Internet Protocol address. The second mapping relationship is obtained by each bare metal server requesting a dynamic host configuration protocol server, and a routing table is established based on the first mapping relationship and the second mapping relationship.
[0048] Specifically, the server management device can obtain the second network configuration information of each bare metal server sent by each switch through a private network and / or a virtual private network before the virtual extensible LAN tunnel is established, or can obtain the second network configuration information of each bare metal server sent by each switch through the virtual extensible LAN tunnel after the virtual extensible LAN tunnel is established, wherein the first network configuration information includes a first mapping relationship between the media access control address of the switch and the Internet Protocol address, and the second network configuration information includes a second mapping relationship between the media access control address of the bare metal server and the Internet Protocol address, and each bare metal server requests the dynamic host configuration protocol server to obtain the second mapping relationship, and reports the second mapping relationship to the switch in the subnet where it is located, so that the switch further sends it to the server management device on the central node. After obtaining the first mapping relationship and the second mapping relationship, the server management device can establish a routing table based on the first mapping relationship and the second mapping relationship, and associate the virtual extensible LAN tunnel, the switch connected to the virtual extensible LAN tunnel, and the bare metal server in the subnet where the switch is located through the routing table. Optionally, the second network configuration information may also include a VXLAN network identifier (VNI) corresponding to the bare metal server, which is used to identify the bare metal server in the established routing table.
[0049] S103 may include:
[0050] Search the routing table for next hop information corresponding to the first bare metal server; and send a server management instruction to the first switch based on the virtual extensible local area network tunnel corresponding to the next hop information.
[0051] Specifically, when sending a server management instruction to the first switch corresponding to the server management task, the server management device can first search for the next hop information of the first bare metal server corresponding to the server management task in the established routing table, obtain the address information of the first switch, and the tunnel identifier of the virtual extensible LAN tunnel between the first switch, and then determine the corresponding virtual extensible LAN tunnel according to the tunnel identifier and the address information of the first switch, and send the server management instruction to the first switch through the virtual extensible LAN tunnel.
[0052] Optionally, in other embodiments, after establishing virtual extensible LAN tunnels with each switch based on the first network configuration information, the server management device may, in response to receiving fault reminder information of the second bare metal server sent by the second switch, update the system log based on the fault reminder information, the fault reminder information being collected by the second intelligent platform management interface controller in the second bare metal server and reported to the second switch, and the second switch and the second bare metal server being located in the same subnet.
[0053] The second switch and the second bare metal server may be any switch and bare metal server located in the same subnet.
[0054] Specifically, after the virtual extensible LAN tunnel is established, the intelligent platform management interface controller in each bare metal server will generate fault reminder information and report it to the switch in the same subnet when a hardware failure is detected, such as an input and output interface failure. After the second intelligent platform management interface controller in the second bare metal server detects the hardware failure and generates fault reminder information, the second intelligent platform management interface controller will report the fault reminder information to the second switch in the same subnet. The second switch sends the fault reminder information to the server management device through the virtual extensible LAN tunnel. After receiving the fault reminder information of the second bare metal server sent by the second switch, the server management device updates the system log based on the fault reminder information, which facilitates the staff to troubleshoot according to the fault reminder information in the system log and improves the fault handling speed.
[0055] Optionally, in some other embodiments, after establishing a virtual extensible LAN tunnel with each switch based on the first network configuration information, the server management device may, in response to receiving an operating system deployment task, send a system installation image and operating system deployment instructions to a third switch corresponding to the operating system deployment task based on the virtual extensible LAN tunnel, so that the third switch forwards the system installation image and operating system deployment instructions to a third bare metal server corresponding to the operating system deployment task, and the third bare metal server executes the operating system deployment instructions based on the system installation image, and the third switch and the third bare metal server are located in the same subnet.
[0056] The third switch and the third bare metal server may be any switch and bare metal server located in the same subnet.
[0057] Specifically, when receiving an operating system deployment task created by a user, a third bare metal server on which an operating system needs to be deployed and a third switch connected to the third bare metal server and located in the same subnet as the third bare metal server are parsed from the operating system deployment task. Specifically, the third switch corresponding to the third bare metal server can be determined based on a pre-acquired correspondence between the bare metal server and the switch, or the third switch corresponding to the third bare metal server can be determined using a routing table, and then a system installation image and an operating system deployment instruction are sent to the third switch based on a virtual extensible LAN tunnel between the third switch. A preboot execution environment (PXE) server can be deployed on the central node, and the PXE server is used to store a system installation image file of the operating system. The server management device can obtain the system installation image corresponding to the operating system deployment task from the PXE server, and send the system installation image and the operating system deployment instruction to the third switch through the virtual extensible LAN tunnel between the third switch. After receiving the system installation image and the operating system deployment instruction, the third switch forwards them to the third bare metal server, and the third bare metal server executes the operating system deployment instruction based on the system installation image, thereby realizing remote deployment of the operating system and avoiding the traditional manual installation process.
[0058] Among them, the PXE server can pre-configure the operating system installation script to automate the installation process. For example, the administrator can configure the operating system's network settings, partition scheme, user permissions, etc. During the installation process, the network, storage and other hardware parameters can be automatically configured to ensure that the server can be managed through the central node after deployment.
[0059] Optionally, in some further embodiments, after establishing a virtual extensible LAN tunnel with each switch based on the first network configuration information, the server management device may receive the operating system maintenance task forwarded by the fourth switch based on the virtual extensible LAN tunnel, and send the operating system maintenance instruction to the fifth switch corresponding to the operating system maintenance task, so that the fifth switch forwards the operating system maintenance instruction to the fourth bare metal server corresponding to the operating system maintenance task, and the fourth bare metal server executes the operating system maintenance instruction, the operating system maintenance task is reported by the management node in the subnet where the fourth switch is located, the fourth switch and the fifth switch are in different subnets, and the fifth switch and the fourth bare metal server are in the same subnet.
[0060] The fifth switch and the fourth bare metal server may be any switch and bare metal server located in the same subnet, and the fourth switch may be any switch located in a different subnet from the fifth switch.
[0061] Specifically, after the virtual extensible LAN tunnel is established, the server management device can allow the user to create an operating system maintenance task in a management node in any region. The management node will report the operating system maintenance task to the fourth switch in the subnet where it is located. The fourth switch sends the operating system maintenance task to the server management device based on the virtual extensible LAN tunnel between the server management device and the central node. After receiving the operating system maintenance task, the server management device parses the fourth bare metal server that needs to maintain the operating system from the task, and the fifth switch connected to the fourth bare metal server in the same subnet as the fourth bare metal server. Specifically, the fifth switch corresponding to the fourth bare metal server can be determined according to the pre-acquired correspondence between the bare metal server and the switch, or the fifth switch corresponding to the fourth bare metal server can be determined by using the routing table. The operating system maintenance instruction is sent to the fifth switch based on the virtual extensible LAN tunnel between the server management device and the fifth switch. After receiving the operating system maintenance instruction, the fifth switch forwards it to the fourth bare metal server, and the fourth bare metal server executes the operating system maintenance instruction to achieve remote maintenance of the operating system. Optionally, the user can specify multiple bare metal servers when creating the operating system maintenance task, thereby centrally controlling the operating system update and maintenance of multiple bare metal servers, avoiding the cumbersome process of candlestick operation.
[0062] Figure 2 Schematic diagram of the structure of a server management device provided by an embodiment of the present disclosure. Figure 2 As shown, the server management device 200 includes: a first acquisition module 210, a receiving module 220, and a sending module 230, wherein the first acquisition module 210 is used to obtain the first network configuration information of the switches in at least two subnets where bare metal servers in different regions are located, and establish virtual extensible LAN tunnels with each switch based on the first network configuration information; the receiving module 220 is used to receive the status information of each bare metal server sent by each switch based on the virtual extensible LAN tunnel, and the status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switch in the subnet where the bare metal server is located; the sending module 230 is used to send a server management instruction to the first switch corresponding to the server management task based on the virtual extensible LAN tunnel in response to receiving a server management task, so that the first switch forwards the server management instruction to the first intelligent platform management interface controller in the first bare metal server corresponding to the server management task, and the first intelligent platform management interface controller executes the server management instruction, and the first switch and the first bare metal server are located in the same subnet.
[0063] Optionally, the first acquisition module 210 is specifically configured to acquire the first network configuration information based on a pre-established private network and / or a virtual private network between each switch.
[0064] Optionally, the first network configuration information includes a first mapping relationship between the media access control address of the switch and the Internet Protocol address, and the server management device 200 also includes: a second acquisition module, used to obtain the second network configuration information of each bare metal server sent by each switch, the second network configuration information includes a second mapping relationship between the media access control address of the bare metal server and the Internet Protocol address, and the second mapping relationship is obtained by each bare metal server requesting a dynamic host configuration protocol server; an establishment module, used to establish a routing table based on the first mapping relationship and the second mapping relationship; the sending module 230 includes: a search unit, used to search for the next hop information corresponding to the first bare metal server in the routing table; a sending unit, used to send the server management instruction to the first switch based on the virtual extensible LAN tunnel corresponding to the next hop information.
[0065] Optionally, the server management device 200 also includes: an update module, used to update the system log based on the fault reminder information of the second bare metal server sent by the second switch in response to the fault reminder information received, the fault reminder information is collected by the second intelligent platform management interface controller in the second bare metal server and reported to the second switch, and the second switch and the second bare metal server are located in the same subnet.
[0066] Optionally, the server management device 200 also includes: a deployment module, which is used to send a system installation image and an operating system deployment instruction to a third switch corresponding to the operating system deployment task based on the virtual extensible LAN tunnel in response to receiving an operating system deployment task, so that the third switch forwards the system installation image and the operating system deployment instruction to a third bare metal server corresponding to the operating system deployment task, and the third bare metal server executes the operating system deployment instruction based on the system installation image, and the third switch and the third bare metal server are located in the same subnet.
[0067] Optionally, the server management device 200 also includes: a maintenance module, which is used to receive the operating system maintenance task forwarded by the fourth switch based on the virtual extensible LAN tunnel, and send an operating system maintenance instruction to the fifth switch corresponding to the operating system maintenance task, so that the fifth switch forwards the operating system maintenance instruction to the fourth bare metal server corresponding to the operating system maintenance task, and the fourth bare metal server executes the operating system maintenance instruction. The operating system maintenance task is reported by the management node in the subnet where the fourth switch is located. The fourth switch and the fifth switch are located in different subnets, and the fifth switch and the fourth bare metal server are located in the same subnet.
[0068] The server management device provided in this embodiment can execute the method described in any of the above embodiments. Its execution method and beneficial effects are similar and will not be repeated here.
[0069] Figure 3 It is a structural diagram of a computer device provided in an embodiment of the present disclosure.
[0070] like Figure 3 As shown, the computer device may include a processor 310 and a memory 320 storing computer program instructions.
[0071] Specifically, the processor 310 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0072] The memory 320 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 320 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 320 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 320 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 320 is a non-volatile solid-state memory. In a particular embodiment, the memory 320 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0073] The processor 310 reads and executes the computer program instructions stored in the memory 320 to perform the steps of the server management method provided in the embodiment of the present disclosure.
[0074] In one example, the computer device may further include a transceiver 330 and a bus 340. Figure 3 As shown, the processor 310, the memory 320 and the transceiver 330 are connected via a bus 340 and communicate with each other.
[0075] The bus 340 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a Memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 340 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0076] The embodiments of the present disclosure further provide a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the server management method provided by the embodiments of the present disclosure.
[0077] The above-mentioned storage medium may, for example, include a memory 320 of computer program instructions, and the above-mentioned instructions may be executed by the processor 310 of the server management device to complete the server management method provided by the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc. The above-mentioned computer program may be written in any combination of one or more programming languages to perform the program code for the operation of the embodiment of the present disclosure, and the programming language includes an object-oriented programming language, such as Java, C++, etc., and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device, partially on the remote computing device, or completely on the remote computing device or server.
[0078] The embodiments of the present disclosure also provide a computer program product, including a computer program. When the computer program is executed by a processor, the processor implements the server management method provided by the embodiments of the present disclosure.
[0079] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0080] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A server management method, characterized in that: The method is applicable to a central node, and comprises: Obtain first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, and establish virtual scalable local area network tunnels with each switch based on the first network configuration information; Receiving status information of each bare metal server sent by each switch based on the virtual extensible LAN tunnel, wherein the status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switch in the subnet where the bare metal server is located; In response to receiving a server management task, a server management instruction is sent to a first switch corresponding to the server management task based on the virtual extensible local area network tunnel, so that the first switch forwards the server management instruction to a first intelligent platform management interface controller in a first bare metal server corresponding to the server management task, and the server management instruction is executed by the first intelligent platform management interface controller, and the first switch and the first bare metal server are located in the same subnet.
2. The method according to claim 1, characterized in that The obtaining of first network configuration information of switches in at least two subnets where bare metal servers in different regions are located includes: The first network configuration information is obtained based on a pre-established private network and / or a virtual private network between each switch.
3. The method according to claim 1, characterized in that The first network configuration information includes a first mapping relationship between a media access control address of a switch and an Internet Protocol address. After obtaining the first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, the method further includes: Acquire second network configuration information of each bare metal server sent by each switch, where the second network configuration information includes a second mapping relationship between a media access control address and an Internet Protocol address of the bare metal server, where the second mapping relationship is obtained by each bare metal server requesting a dynamic host configuration protocol server; Establishing a routing table based on the first mapping relationship and the second mapping relationship; The sending a server management instruction to the first switch corresponding to the server management task based on the virtual extensible local area network tunnel includes: Searching the routing table for next hop information corresponding to the first bare metal server; The server management instruction is sent to the first switch based on the virtual extensible local area network tunnel corresponding to the next hop information.
4. The method according to claim 1, characterized in that: After respectively establishing virtual extensible local area network tunnels with each switch based on the first network configuration information, the method further includes: In response to receiving fault reminder information of the second bare metal server sent by the second switch, the system log is updated based on the fault reminder information, the fault reminder information is collected by the second intelligent platform management interface controller in the second bare metal server and reported to the second switch, and the second switch and the second bare metal server are located in the same subnet.
5. The method according to claim 1, characterized in that After respectively establishing virtual extensible local area network tunnels with each switch based on the first network configuration information, the method further includes: In response to receiving an operating system deployment task, a system installation image and an operating system deployment instruction are sent to a third switch corresponding to the operating system deployment task based on the virtual extensible LAN tunnel, so that the third switch forwards the system installation image and the operating system deployment instruction to a third bare metal server corresponding to the operating system deployment task, and the third bare metal server executes the operating system deployment instruction based on the system installation image, and the third switch and the third bare metal server are located in the same subnet.
6. The method according to claim 1, characterized in that After respectively establishing virtual extensible local area network tunnels with each switch based on the first network configuration information, the method further includes: Based on the virtual extensible LAN tunnel, an operating system maintenance task forwarded by a fourth switch is received, and an operating system maintenance instruction is sent to a fifth switch corresponding to the operating system maintenance task, so that the fifth switch forwards the operating system maintenance instruction to a fourth bare metal server corresponding to the operating system maintenance task, and the fourth bare metal server executes the operating system maintenance instruction, wherein the operating system maintenance task is reported by a management node in the subnet where the fourth switch is located, the fourth switch and the fifth switch are located in different subnets, and the fifth switch and the fourth bare metal server are located in the same subnet.
7. A server management device, characterized in that: The device is applicable to a central node, and comprises: A first acquisition module is used to acquire first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, and to establish virtual extensible local area network tunnels with each switch based on the first network configuration information; A receiving module, configured to receive, based on the virtual extensible LAN tunnel, status information of each bare metal server sent by each switch, wherein the status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switch in the subnet where the bare metal server is located; A sending module is used to send a server management instruction to a first switch corresponding to the server management task based on the virtual extensible local area network tunnel in response to receiving the server management task, so that the first switch forwards the server management instruction to a first intelligent platform management interface controller in a first bare metal server corresponding to the server management task, and the first intelligent platform management interface controller executes the server management instruction, and the first switch and the first bare metal server are located in the same subnet.
8. A computer device, characterized in that: include: Memory; processor; and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the server management method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the server management method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the server management method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method for intercommunication of bare metal server and cloud host network and switch
CN109495405A
Message transmission method and device
CN110474829A
Bare metal instance installation method, device and equipment
CN113986358A
Bare metal server monitoring method and device, storage medium and electronic equipment
CN115941437A
Method for realizing large two-layer communication in cross-control domain SD-WAN (Secure Digital-Wide Area Network)
CN117424778A