Server management method, apparatus, device, storage medium, and program product

CN120017480BActive Publication Date: 2026-09-29BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411958161.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2026-09-29
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

[0003]然而,传统的裸金属服务器管理方式采用多地域独立管理,用户需要在每个地域部署独立监控系统,对不同地域的服务器进行单独的监控和维护,极大增加了管理的复杂性和运维工作量,提高了企业的管理成本

Benefits of technology

[0016]本公开实施例提供的技术方案与现有技术相比具有如下优点:

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017480B_ABST
    Figure CN120017480B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a server management method, device, equipment, storage medium and program product, the method is suitable for a center node, comprising: obtaining first network configuration information of switches in at least two subnets where bare metal servers in different regions are located, establishing a virtual extensible local area network tunnel with each switch; receiving state information of each bare metal server based on the virtual extensible local area network tunnel; in response to a server management task, sending a server management instruction to a first switch corresponding to the task based on the virtual extensible local area network tunnel, so that the first switch forwards the server management instruction to the corresponding first bare metal server. By establishing a virtual extensible local area network tunnel connection between the center node and the switches in each subnet, the present disclosure can obtain the state information of the bare metal servers based on the tunnel and send server management instructions, thereby enabling unified management of bare metal servers in each region and reducing the management cost of enterprises.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to a server management method, apparatus, device, storage medium, and program product. Background Technology

[0002] Bare Metal Server (BMS) is a computing service that combines the elasticity of virtual machines with the performance of physical machines. It has the advantages of flexible expansion and geographically distributed deployment, and can quickly adjust resource configuration according to business needs. At the same time, it meets the needs of enterprises for cross-regional business layout, and provides excellent computing performance and data security for core databases, critical application systems, high-performance computing, big data and other businesses.

[0003] However, traditional bare-metal server management methods employ independent management across multiple regions. Users need to deploy independent monitoring systems in each region to monitor and maintain servers separately, significantly increasing management complexity and workload, and raising enterprise management costs. Therefore, reducing the management costs of multi-region bare-metal servers is a pressing technical problem that needs to be solved. Summary of the Invention

[0004] To address the aforementioned technical problems, this disclosure provides a server management method, apparatus, device, storage medium, and program product.

[0005] A first aspect of this disclosure provides a server management method, applicable to a central node, the method comprising:

[0006] 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 scalable local area network tunnels with each switch based on the first network configuration information.

[0007] Based on the virtual scalable LAN tunnel, the status information of each bare metal server sent by each switch is received. 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 the first switch corresponding to the server management task based on the virtual scalable LAN tunnel. This causes the first switch to forward the server management instruction to the first intelligent platform management interface controller in the first bare metal server corresponding to the server management task. The first intelligent platform management interface controller then executes the server management instruction. The first switch and the first bare metal server are located in the same subnet.

[0009] A second aspect of this disclosure provides a server management apparatus suitable for a central node, the apparatus comprising:

[0010] The first acquisition module is used to acquire the first network configuration information of the switches in at least two subnets where the bare metal servers in different regions are located, and to establish virtual scalable local area network tunnels with each switch based on the first network configuration information.

[0011] The receiving module is used to receive status information of each bare metal server sent by each switch based on the virtual scalable local area network 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.

[0012] The sending module is used to respond to receiving a server management task by sending a server management instruction to the first switch corresponding to the server management task based on the virtual scalable LAN tunnel. This causes the first switch to forward the server management instruction to the first intelligent platform management interface controller in the first bare metal server corresponding to the server management task. The first intelligent platform management interface controller then executes the server management instruction. The first switch and the first bare metal server are located in the same subnet.

[0013] A third aspect of this disclosure provides a computer device including a memory and a processor, and a computer program, wherein the memory stores the computer program, and when the computer program is executed by the processor, it implements the server management method of the first aspect described above.

[0014] A fourth aspect of this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the server management method of the first aspect described above.

[0015] A fifth aspect of this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the server management method of the first aspect described above.

[0016] The technical solution provided in this disclosure has the following advantages compared with the prior art:

[0017] In the server management method, apparatus, device, storage medium, and program product provided in this disclosure, first network configuration information of switches in at least two subnets where bare metal servers in different regions reside is obtained. Virtual Scalable Local Area Network (VLAN) tunnels are established between the bare metal servers and each switch based on the first network configuration information. Status information of each bare metal server sent by each switch is received through the VLAN tunnels. This status information is collected by the intelligent platform management interface controller in each bare metal server and reported to the switches in the subnets where the bare metal servers reside. In response to receiving a server management task, a server management instruction is sent to the first switch corresponding to the server management task through the VLAN tunnels. This causes the first switch to forward the server management instruction to the first intelligent platform management interface controller in the first bare metal server corresponding to the server management task. The first intelligent platform management interface controller then controls the server management process. The device executes server management commands. The first switch and the first bare metal server are located in the same subnet. It can set up a central node to uniformly manage all bare metal servers in different regions. It establishes virtual scalable LAN tunnel connections between the central node and the switches in each subnet where the bare metal servers in different regions are located. Based on the tunnel, it obtains the status information of the bare metal servers and sends server management commands, thereby reducing management complexity, reducing operation and maintenance costs and human resource investment, improving management efficiency, and reducing enterprise management costs. After adding bare metal servers to new regions according to business needs, there is no need to add more management nodes and devices, which is convenient for responding to constantly changing business needs and expanding the scope of control. At the same time, by connecting each subnet to the central node through the 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 cross-regional networks. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0019] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart of a server management method provided in an embodiment of this disclosure;

[0021] Figure 2 This is a schematic diagram of the structure of a server management device provided in an embodiment of this disclosure;

[0022] Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure. Detailed Implementation

[0023] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0024] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0025] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0026] Figure 1 This is a flowchart illustrating a server management method provided in an embodiment of this disclosure. This method can be executed by a server management device, which can be implemented in software and / or hardware, and can be located in a central node. Figure 1 As shown, the server management method provided in this embodiment includes the following steps:

[0027] S101. Obtain the first network configuration information of the switches in at least two subnets where the bare metal servers in different regions are located, and establish virtual scalable local area network tunnels between each switch based on the first network configuration information.

[0028] The first network configuration information in this embodiment can be understood as the network information of the switch required to establish a virtual scalable local area network tunnel with the switch. For example, the first network configuration information may include a first mapping relationship between the Media Access Control (MAC) address and the Internet Protocol (IP) address of the switch. Optionally, the first network configuration information may also include tunnel identification information negotiated and determined with the switch.

[0029] The Virtual eXtensible Local Area Network (VXLAN) tunnel in this embodiment can be understood as a logical tunnel established by using virtualized tunneling communication technology to build a virtual Layer 2 network through a Layer 3 network.

[0030] In this embodiment of the disclosure, 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 in each of the at least two subnets where the bare metal servers in different regions are located. Based on the first network configuration information of each switch, a virtual scalable local area network tunnel is established between the switch and the central node. Thus, through the virtual scalable local area network tunnel established with the switches in each subnet, the communication connection between the central node and each subnet where the bare metal servers in different regions are located is realized. The bare metal servers in the physical network are virtualized into a unified network segment, while each subnet is still a logically isolated virtual network.

[0031] In one exemplary embodiment of this disclosure, the server management device can request the first network configuration information from the switch via a cross-subnet Address Resolution Protocol (ARP) request. Specifically, the server management device can send a special ARP request (proxy ARP request) to the default gateway. 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, which then forwards the information back to the server management device. Alternatively, the server management device can obtain the first network configuration information from the switch by requesting the Dynamic Host Configuration Protocol (DHCP).

[0032] In another exemplary embodiment of this disclosure, the server management device can use the VXLAN tunneling protocol to send a tunnel establishment request to the switch. The request includes parameters such as the identification information of the central node, the first network configuration information, and the port number. After receiving the request, the switch negotiates and confirms the tunnel establishment with the central node according to its own configuration and capabilities. This process may include verifying the identity of the central node and checking the legality of the tunnel parameters. After successful negotiation, the VXLAN tunnel between the switch and the central node is established.

[0033] Optionally, the server management device may obtain first network configuration information based on a pre-established private network and / or virtual private network between the server and 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. The server management device can request the first network configuration information from the switch through the currently established private network and / or VPN.

[0035] S102. Based on the virtual scalable LAN tunnel, receive the status information of each bare metal server sent by each switch. 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 this embodiment can be understood to reflect the health status of the bare metal server, such as temperature, voltage, hard drive health status, fan speed, etc., and is not limited thereto.

[0037] The Intelligent Platform Management Interface (IPMI) controller in this embodiment can be understood as a standardized message-based hardware management interface component that operates independently of the server's processor, basic input / output system, or operating system. It provides various interfaces for monitoring hardware health, performing remote management operations, and providing monitoring and management functions for the device. Regardless of whether the operating system is running, the hardware status of the bare metal server can be accessed through IPMI.

[0038] In this embodiment of the disclosure, after the virtual scalable local area network 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 scalable local area network tunnel, thereby realizing real-time monitoring of the health status of the bare metal server on the server management device.

[0039] In one exemplary embodiment of this disclosure, the server management device can check the status information after obtaining the status information of each bare metal server, and automatically notify the administrator when the hardware status is abnormal.

[0040] In another exemplary embodiment of this disclosure, the IPMI controller may employ multi-factor authentication, encryption technology, access control and other means to strengthen the security of transmitted data and prevent unauthorized access or remote attacks.

[0041] S103. 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 a 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 first switch and the first bare metal server are located in the same subnet.

[0042] In this embodiment of the disclosure, the server management task can be understood as a user-created task of remotely powering on / off, restarting, and accessing the console of the bare metal server, and the server management instruction can be understood as a management instruction that can be executed by the first intelligent platform management interface controller.

[0043] In this embodiment of the disclosure, the first switch and the first bare metal server can be any switch and bare metal server belonging to the same subnet.

[0044] In this embodiment of the disclosure, when the server management device receives a server management task created by a user, it can parse out the first bare metal server to be managed and the first switch connected to the first bare metal server, which is located in the same subnet as the first bare metal server. Specifically, it can determine the first switch corresponding to the first bare metal server based on the pre-obtained correspondence between bare metal servers and switches, and then send the corresponding server management command to the first switch based on the virtual scalable LAN tunnel between the first switch and the first switch. After receiving the server management command, the first switch forwards the server management command 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 command to realize remote management and control of the first bare metal server.

[0045] In one exemplary embodiment of this disclosure, the server management device can dynamically manage subnets in different regions using the virtual scalable local area network tunnel after the tunnel is established, ensuring that the network configuration of each bare metal server conforms to the standard and can be adjusted as needed.

[0046] This embodiment of the disclosure obtains the first network configuration information of switches in at least two subnets where bare metal servers in different regions reside. Based on the first network configuration information, virtual scalable local area network (VSDLAN) tunnels are established between the bare metal servers and each switch. Status information of each bare metal server sent by each switch is received through the VSDLAN tunnels. This 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 resides. In response to receiving a server management task, a server management command is sent to the first switch corresponding to the server management task through the VSDLAN tunnels. This causes the first switch to forward the server management command to the first intelligent platform management interface controller in the first bare metal server corresponding to the server management task. The first intelligent platform management interface controller then executes the server management command. The machine and the first bare metal server are located in the same subnet. A central node can be set up to manage all bare metal servers in different regions in a unified manner. 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. Based on the tunnel, the status information of the bare metal servers is obtained and server management commands are sent, thereby reducing management complexity, reducing operation and maintenance costs and human resource investment, improving management efficiency, and reducing enterprise management costs. After adding bare metal servers to new regions according to business needs, there is no need to add more management nodes and equipment, which is convenient for responding to constantly changing business needs and expanding the scope of control. At the same time, by connecting each subnet to the central node through the 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 cross-regional networks.

[0047] Optionally, in some embodiments, the first network configuration information includes a first mapping relationship between the media access control address and the Internet Protocol address of the switch. After obtaining the first network configuration information of the switches in at least two subnets where the bare metal servers in different regions are located, the server management device can 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 and the Internet Protocol address of the bare metal server. The second mapping relationship is obtained by each bare metal server from the 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 establishment of the virtual Scalable LAN tunnel, or it can obtain the second network configuration information of each bare metal server sent by each switch through the virtual Scalable LAN tunnel after its establishment. The first network configuration information includes a first mapping relationship between the switch's Media Access Control (MAC) address and Internet Protocol (IP) address, and the second network configuration information includes a second mapping relationship between the bare metal server's MAC address and IP address. Each bare metal server requests the second mapping relationship from the Dynamic Host Configuration Protocol (DHCP) server and reports the second mapping relationship to the switch in its subnet, so that the switch can further send it to the server management device on the central node. After obtaining the first and second mapping relationships, the server management device can establish a routing table based on the first and second mapping relationships, and use the routing table to associate the virtual Scalable LAN tunnel, the switches connected to the virtual Scalable LAN tunnel, and the bare metal servers in the subnet where the switches are located. Optionally, the second network configuration information may also include the 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] Look up the next-hop information for the first bare metal server in the routing table; send server management commands to the first switch based on the virtual scalable LAN tunnel corresponding to the next-hop information.

[0051] Specifically, when sending server management instructions to the first switch corresponding to the server management task, the server management device can first look up 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 scalable local area network tunnel between the first switch and the first switch, and then determine the corresponding virtual scalable local area network tunnel based on the tunnel identifier and the address information of the first switch, and send the server management instructions to the first switch through the virtual scalable local area network tunnel.

[0052] Optionally, in other embodiments, after establishing virtual scalable LAN tunnels with each switch based on the first network configuration information, the server management device may, in response to receiving fault alert information from the second bare metal server sent by the second switch, update the system log based on the fault alert information. The fault alert information is collected by the second intelligent platform management interface controller in the second bare metal server and reported to the second switch. The second switch and the second bare metal server are located in the same subnet.

[0053] The second switch and the second bare metal server can be any switch and bare metal server located in the same subnet.

[0054] Specifically, after the virtual scalable LAN tunnel is established, the intelligent platform management interface controller in each bare metal server will generate a fault alert and report it to the switch in the same subnet when it detects a hardware fault, such as an input / output interface fault. After the second intelligent platform management interface controller in the second bare metal server detects a hardware fault and generates a fault alert, it will report the fault alert to the second switch in the same subnet. The second switch will then send the fault alert to the server management device through the virtual scalable LAN tunnel. After receiving the fault alert from the second bare metal server sent by the second switch, the server management device will update the system log based on the fault alert, making it easier for staff to troubleshoot based on the fault alert in the system log and improving the speed of fault handling.

[0055] Optionally, in some other embodiments, after the server management device establishes virtual scalable LAN tunnels with each switch based on the first network configuration information, in response to receiving an operating system deployment task, it sends a system installation image and operating system deployment instructions to the third switch corresponding to the operating system deployment task based on the virtual scalable LAN tunnels, so that the third switch forwards the system installation image and operating system deployment instructions to the 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. 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 can be any switch and bare metal server located in the same subnet.

[0057] Specifically, upon receiving a user-created operating system deployment task, the system parses out the third bare metal server from the task, along with the third switch connected to that server and located on the same subnet. The third switch can be determined based on a pre-obtained mapping between bare metal servers and switches, or using a routing table. Then, the system installation image and operating system deployment instructions are sent to the third switch via a virtual scalable LAN tunnel. A Preboot Execution Environment (PXE) server can be deployed on the central node. The PXE server stores the operating system installation image file. The server management device can obtain the system installation image corresponding to the operating system deployment task from the PXE server. The virtual scalable LAN tunnel between the central node and the third switch sends the system installation image and operating system deployment instructions to the third switch. Upon receiving the system installation image and operating system deployment instructions, the third switch forwards them to the third bare metal server, which then executes the operating system deployment instructions based on the system installation image, achieving remote deployment of the operating system and avoiding the traditional manual installation process.

[0058] The PXE server can be pre-configured with operating system installation scripts to automate the installation process. For example, administrators can configure the operating system's network settings, partitioning scheme, user permissions, etc. The installation process can be automated to configure network, storage, and other hardware parameters, ensuring that the server can be managed through a central node after deployment.

[0059] Optionally, in some other embodiments, after establishing virtual scalable LAN tunnels with each switch based on the first network configuration information, the server management device can receive the operating system maintenance task forwarded by the fourth switch based on the virtual scalable 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 located in different subnets, and the fifth switch and the fourth bare metal server are located in the same subnet.

[0060] The fifth switch and the fourth bare metal server can be any switch and bare metal server located in the same subnet, and the fourth switch can be any switch located in a different subnet than the fifth switch.

[0061] Specifically, after the virtual scalable LAN tunnel is established, the server management device allows users to create operating system maintenance tasks at any regional management node. The management node reports the operating system maintenance task to the fourth switch in its subnet. The fourth switch then sends the operating system maintenance task to the server management device via the virtual scalable LAN tunnel with the central node. Upon receiving the task, the server management device parses the fourth bare metal server requiring operating system maintenance and the fifth switch connected to it in the same subnet. Specifically, the fifth switch can be determined based on a pre-obtained mapping between bare metal servers and switches, or using a routing table. The server management device then sends an operating system maintenance command to the fifth switch via the virtual scalable LAN tunnel. Upon receiving the command, the fifth switch forwards it to the fourth bare metal server, which then executes the command, enabling remote operating system maintenance. Optionally, users can specify multiple bare metal servers when creating the task, thus centrally controlling the operating system updates and maintenance of multiple bare metal servers and avoiding the cumbersome process of manual operation.

[0062] Figure 2 This is a schematic diagram of the structure of a server management device provided in an embodiment of this 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. The first acquisition module 210 is used to acquire first network configuration information of switches in at least two subnets where bare metal servers in different regions reside, and establish virtual scalable local area network tunnels between itself and each switch based on the first network configuration information. The receiving module 220 is used to receive status information of each bare metal server sent by each switch based on the virtual scalable local area network 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 resides. The sending module 230 is used to, in response to receiving a server management task, send a server management instruction to the first switch corresponding to the server management task based on the virtual scalable local area network 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 first switch and the first bare metal server are located in the same subnet.

[0063] Optionally, the first acquisition module 210 is specifically used to acquire the first network configuration information based on a pre-established private network and / or virtual private network between the switches and each of the switches.

[0064] Optionally, the first network configuration information includes a first mapping relationship between the Media Access Control address and the Internet Protocol address of the switch. The server management device 200 further includes: a second acquisition module, used to acquire the second network configuration information of each bare metal server sent by each switch, the second network configuration information including a second mapping relationship between the Media Access Control address and the Internet Protocol address of the bare metal server, the second mapping relationship being obtained by each bare metal server from 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 lookup unit, used to look up the next-hop information corresponding to the first bare metal server in the routing table; and a sending unit, used to send the server management command to the first switch based on the Virtual Scalable Local Area Network tunnel corresponding to the next-hop information.

[0065] Optionally, the server management device 200 further includes: an update module, used to update the system log based on the fault reminder information received from the second switch and sent by the second switch. 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. The second switch and the second bare metal server are located in the same subnet.

[0066] Optionally, the server management device 200 further includes: a deployment module, configured to, in response to receiving an operating system deployment task, 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 scalable local area network 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, wherein the third switch and the third bare metal server are located in the same subnet.

[0067] Optionally, the server management device 200 further includes: a maintenance module, configured to receive an operating system maintenance task forwarded by a fourth switch based on the virtual scalable LAN tunnel, and send an operating system maintenance instruction 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. 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.

[0068] The server management device provided in this embodiment can execute the methods described in any of the above embodiments. Its execution method and beneficial effects are similar, and will not be repeated here.

[0069] Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of this 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), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0072] Memory 320 may include a mass storage device for information or instructions. For example, and not limitingly, memory 320 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 320 may include removable or non-removable (or fixed) media. Where appropriate, memory 320 may be internal or external to the integrated gateway device. In a particular embodiment, memory 320 is a non-volatile solid-state memory. In a particular embodiment, memory 320 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0073] The processor 310 reads and executes computer program instructions stored in the memory 320 to perform the steps of the server management method provided in the embodiments of this disclosure.

[0074] In one example, the computer device may also include a transceiver 330 and a bus 340. Wherein, as... Figure 3 As shown, the processor 310, memory 320 and transceiver 330 are connected via bus 340 and communicate with each other.

[0075] Bus 340 may include hardware, software, or both. For example, and not limitingly, 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 Infinite Bandwidth 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, bus 340 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0076] This disclosure also provides a computer-readable storage medium that can store a computer program, which, when executed by a processor, enables the processor to implement the server management method provided in this disclosure.

[0077] The aforementioned storage medium may, for example, include a memory 320 for computer program instructions, which can be executed by the processor 310 of the server management device to complete the server management method provided in the embodiments of this disclosure. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), compact disc ROM (CD-ROM), magnetic tape, floppy disk, and optical data storage device. The aforementioned computer program may be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this disclosure. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0078] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, causes the processor to implement the server management method provided in this disclosure.

[0079] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0080] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily 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 this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded 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 the central node, and the method includes: 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 scalable local area network tunnels with each switch based on the first network configuration information. Based on the virtual scalable LAN tunnel, the status information of each bare metal server sent by each switch is received. 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 first switch and the first bare metal server are located in the same subnet. The first network configuration information includes a first mapping relationship between the media access control address and the Internet protocol address of the switch. After obtaining the first network configuration information of the switches in at least two subnets where bare metal servers in different regions are located, the method further includes: 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 and the Internet protocol address of the bare metal server. The second mapping relationship is obtained by each bare metal server from the dynamic host configuration protocol server. A routing table is established based on the first mapping relationship and the second mapping relationship; Sending server management instructions to the first switch corresponding to the server management task based on the virtual scalable LAN tunnel includes: Look up the next-hop information corresponding to the first bare metal server in the routing table; The server management command is sent to the first switch based on the virtual scalable LAN tunnel corresponding to the next-hop information.

2. The method according to claim 1, characterized in that, The step of obtaining the 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 the pre-established private network and / or virtual private network between the switches.

3. The method according to claim 1, characterized in that, After establishing virtual scalable LAN tunnels with each switch based on the first network configuration information, the method further includes: In response to receiving a fault alert message from the second bare metal server sent by the second switch, the system log is updated based on the fault alert message. The fault alert message is collected by the second intelligent platform management interface controller in the second bare metal server and reported to the second switch. The second switch and the second bare metal server are located in the same subnet.

4. The method according to claim 1, characterized in that, After establishing virtual scalable LAN 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 the third switch corresponding to the operating system deployment task via the virtual scalable LAN tunnel. This causes the third switch to forward the system installation image and the operating system deployment instruction to the third bare metal server corresponding to the operating system deployment task. The third bare metal server then executes the operating system deployment instruction based on the system installation image. The third switch and the third bare metal server are located in the same subnet.

5. The method according to claim 1, characterized in that, After establishing virtual scalable LAN tunnels with each switch based on the first network configuration information, the method further includes: The virtual scalable LAN tunnel receives the operating system maintenance task forwarded by the fourth switch and sends an operating system maintenance instruction to the fifth switch corresponding to the operating system maintenance task. The fifth switch then 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, while the fifth switch and the fourth bare metal server are located in the same subnet.

6. A server management device, characterized in that, The device is suitable for a central node, and the device includes: The first acquisition module is used to acquire the first network configuration information of the switches in at least two subnets where the bare metal servers in different regions are located, and to establish virtual scalable local area network tunnels with each switch based on the first network configuration information. The receiving module is used to receive status information of each bare metal server sent by each switch based on the virtual scalable local area network 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. The sending module is used to respond to receiving a server management task and send a server management instruction 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 first switch and the first bare metal server are located in the same subnet. The first network configuration information includes a first mapping relationship between the Media Access Control (MAC) address and the Internet Protocol (IP) address of the switch. The server management device further includes: a second acquisition module, used to acquire second network configuration information of each bare metal server sent by each switch, the second network configuration information including a second mapping relationship between the MAC address and the IP address of the bare metal server, the second mapping relationship being obtained by each bare metal server from a Dynamic Host Configuration Protocol (DHCP) server; an establishment module, used to establish a routing table based on the first mapping relationship and the second mapping relationship; the sending module includes: a lookup unit, used to look up the next-hop information corresponding to the first bare metal server in the routing table; and a sending unit, used to send the server management command to the first switch based on the Virtual Scalable Local Area Network (VSDN) tunnel corresponding to the next-hop information.

7. A computer device, characterized in that, include: A memory, a processor, and a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor to implement the server management method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the server management method as described in any one of claims 1-5.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the server management method as described in any one of claims 1-5.

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