Server management method and management node
By obtaining the intranet IP list and using the switch's connection port identification number to generate the intranet IP address, automatically accessing the server, the problem of high asset management cost in the cabinet is solved, flexible asset management and operation and maintenance is achieved, and management costs are reduced .
Patent Information
- Application Number
- CN202410890561.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-11-15
AI Technical Summary
The prior art requires additional hardware when managing server assets in cabinets, resulting in high costs and inflexible management.
By obtaining the intranet IP list, using the switch's connection port identification number to generate the intranet IP address, automatically access the server to obtain device information, generate a server asset list, and realize asset management of the server in the cabinet without adding hardware.
It realizes flexible management and operation and maintenance of server assets in the cabinet, reduces management costs, and improves management convenience and practicality.
Smart Images

Figure CN118964117A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of computing devices, and in particular to a management method and a management node for a server. Background Art
[0002] With the continuous development of the Internet industry, more and more servers are used by enterprises. To meet the usage needs, servers are placed in cabinets or the whole cabinet server is directly used. In order to facilitate operation, maintenance and management, administrators need to manage the server assets in the cabinet.
[0003] In a related technology, server assets are managed through special asset location bars and asset tags. This method requires configuration of additional hardware and has high management costs.
[0004] Therefore, how to manage server assets in the cabinet more flexibly without increasing additional hardware costs has become an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present application provide a server management method and a management node, which can manage server assets in a cabinet more flexibly without increasing additional hardware costs.
[0006] In a first aspect, an embodiment of the present application provides a method for managing a server in a cabinet, the method being applied to a management node, the method comprising:
[0007] Obtaining an intranet Internet Protocol IP list; wherein the intranet IP list includes an intranet IP address of each server set in the cabinet, and the intranet IP address is generated based on a connection port identification number, and the connection port identification number is an identification number of a connection port for connecting the server to a switch in the cabinet;
[0008] Access the server according to the intranet IP address in the intranet IP list to obtain device information of the server;
[0009] Generate a server asset list based on the device information of each server.
[0010] The beneficial effects of this embodiment are as follows: the management node can automatically access the server through the intranet IP address of each server to obtain the device information of each server, thereby realizing the asset management of the servers in the cabinet without adding additional hardware equipment, and the management cost is relatively lower; moreover, there is no need to limit the U-bit location information or port connection relationship of each server to remain unchanged. By accessing the server in the cabinet through the intranet IP address, the latest device information of the server can be obtained, and the flexibility and practicality of management and operation and maintenance are higher.
[0011] In a possible implementation, obtaining an intranet Internet Protocol IP list includes:
[0012] Acquire a connection port identification number table of the switch; wherein the connection port identification number table includes all connection port identification numbers of the switch;
[0013] Generate an intranet IP address corresponding to each connection port identification number according to each connection port identification number in the connection port identification number table and a preset intranet network segment; wherein the preset intranet network segment is used to represent the IP address range in the internal management network of the cabinet;
[0014] Access the server corresponding to the intranet IP address through the intranet IP address;
[0015] The intranet IP address of the server successfully accessed is determined to be the intranet IP address in the intranet IP list.
[0016] The beneficial effects of this implementation method: Through the above method, the real-time intranet IP list of the cabinet can be obtained, so that the obtained intranet IP list is the latest IP list, thereby providing a more accurate data basis for subsequent asset management.
[0017] In a possible implementation manner, obtaining the connection port identification number table of the switch includes:
[0018] Receiving Link Layer Discovery Protocol (LLDP) message information sent by the switch; wherein the LLDP message information includes the model of the switch;
[0019] Parsing the LLDP message information to obtain the model of the switch, and performing query processing according to the model of the switch to obtain a connection port identification number table of the switch;
[0020] Alternatively, the LLDP message information includes a connection port identification number table, and the connection port identification number table is obtained by parsing the LLDP message information.
[0021] The beneficial effects of this implementation method are as follows: Since the switch will send LLDP message information regularly, the management node can regularly update the connection port identification number table, so that the real-time intranet IP list of the cabinet can be obtained later, so that the obtained intranet IP list is the latest IP list, providing a more accurate data basis for subsequent asset management.
[0022] In a possible implementation, the connection port identification number is a panel interface number or an internal switching port number of the switch, wherein the panel interface number is the number of a physical interface on the switch panel, and the internal switching port number is the number of an internal logical port of the switch.
[0023] The beneficial effect of this implementation method is that the connection port for connecting the server to the cabinet switch can be determined through the panel interface number and the internal switching port number of the switch, so as to facilitate the operation and maintenance management of the server.
[0024] In a possible implementation, the device information includes one or more of a device name, a product serial number, a device model, manufacturer information, network configuration information, a connection port identification number of a server and a switch, and U-bit location information.
[0025] The beneficial effects of this implementation are as follows: the device information is used for server management, and one or more types of device information can be obtained according to actual needs to achieve flexible management of the server.
[0026] In a possible implementation, generating a server asset list according to the device information of each server includes:
[0027] Create an asset inventory form for the cabinet;
[0028] The equipment information of each server is entered into the asset list table to obtain a server asset list.
[0029] Beneficial effects of this implementation: By creating an asset inventory table for the cabinet and entering the device information of each server in the asset inventory table, a server asset list can be obtained, thereby achieving asset management of the servers in the cabinet.
[0030] In a possible implementation manner, the asset inventory table uses any one of the server serial number, the connection port identification number of the switch, and the U-bit position information as an index.
[0031] The beneficial effect of this implementation is that appropriate indexes can be set according to actual needs to achieve flexible management of the server.
[0032] In a possible implementation manner, the management node is any server in the cabinet connected to the switch.
[0033] The beneficial effects of this implementation method are as follows: when the management node is any server in the cabinet connected to the switch, it solves the problem of being unable to perform batch configuration, backup, restoration and other operation and maintenance management on other servers in the cabinet through any server in the cabinet, thereby improving management convenience.
[0034] In a possible implementation manner, after obtaining the intranet Internet Protocol IP list, the method further includes:
[0035] In response to the maintenance instruction, the maintenance instruction is sent to the server via the intranet IP address of the server in the cabinet; wherein the maintenance instruction includes one or more of a configuration instruction, a modification instruction, a backup instruction, and a restoration instruction.
[0036] The beneficial effects of this implementation method are as follows: through the management node, batch configuration, modification, backup, and restoration of other servers in the cabinet can be realized, thereby realizing unified management and operation of other server nodes in the cabinet, improving management convenience and practicality.
[0037] In a second aspect, an embodiment of the present application further provides a computing node, wherein the management node is deployed in a cabinet, a switch and a plurality of servers are also deployed in the cabinet, and the switch is connected to each of the servers; the management node comprises: a processor, and a memory communicatively connected to the processor;
[0038] The memory stores computer-executable instructions;
[0039] The processor executes the computer-executable instructions stored in the memory to implement the method described in any one of the first aspects.
[0040] The beneficial effects of this embodiment are as follows: since a fully connected internal cabinet management network is pre-built between the servers, the management node can automatically access the servers through the intranet IP addresses of the servers to obtain the device information of each server, thereby realizing the asset management of the servers in the cabinet without adding additional hardware equipment, and the management cost is relatively lower; moreover, there is no need to limit the U-bit location information or port connection relationship of each server to remain unchanged. By accessing the servers in the cabinet through the intranet IP addresses, the latest device information of the servers can be obtained, and the flexibility and practicality of management and operation are higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0042] Figure 1 A schematic diagram of the architecture of a server in a cabinet provided in an embodiment of the present application;
[0043] Figure 2 A network topology diagram in a cabinet provided in an embodiment of the present application;
[0044] Figure 3A schematic diagram of a process flow of a method for managing a server in a cabinet provided in an embodiment of the present application;
[0045] Figure 4 A flowchart of another method for managing a server in a cabinet provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of another method for managing servers in a cabinet provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of the structure of a server management device in a cabinet provided in an embodiment of the present application;
[0048] Figure 7 A structural diagram of a management node is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.
[0050] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0051] First, the terms involved in this application are explained:
[0052] BMC: Baseboard Management Controller (BMC) can upgrade the firmware of a computing device (such as a server) when it is not turned on, manage the operating status of the device, and troubleshoot problems. The baseboard management controller can maintain the program code in the memory of the computing device, including upgrading or restoring it. The baseboard management controller can also control the power circuit or clock circuit in the computing device, monitor the working status of each component in the computing device, etc.
[0053] LLDP: Link Layer Discovery Protocol (LLDP) is a data link layer protocol used to exchange information between network devices. LLDP allows network devices (such as switches, routers, printers, etc.) to discover each other's existence in a local area network and exchange information about themselves, such as device identification, port information, supported protocols, etc. Through LLDP, network devices can discover each other's existence, understand the topology of the entire network, and help network administrators better manage the network. LLDP can also tell which port the device is connected to, helping administrators track the location and connection status of the device. LLDP can also exchange device configuration information, such as device model, software version, supported protocols, etc., which helps interoperability between devices. Based on LLDP information, network devices can automatically configure some parameters, reducing the workload of administrators for manual configuration.
[0054] IP address: IP address (Internet Protocol Address) refers to the Internet Protocol address, also known as the Internet Protocol address. IP address is a unified address format provided by the IP protocol. It assigns a logical address to each network and each host on the Internet to shield the difference in physical addresses.
[0055] External IP address: refers to the public IP address assigned to a device or network when it accesses the Internet. It is used to uniquely identify the device or network globally. The external IP address is usually assigned by an Internet Service Provider (ISP) and can be accessed and communicated directly from the Internet.
[0056] Intranet IP address: refers to the private IP address used within the local area network (LAN). It is used to uniquely identify the device within the LAN. The intranet IP address is usually used within the private IP address range and is used for communication and resource sharing between internal devices.
[0057] Asset management of servers in the cabinet is very important for the following reasons:
[0058] 1. Helps with asset tracking: By managing the assets of the servers in the cabinet, important data such as the model, serial number, network configuration information, etc. of each server can be accurately recorded, which helps track and manage the location and status of the server.
[0059] 2. Helps with equipment maintenance and repair: Asset management can help administrators keep abreast of the server’s warranty status, maintenance records, and repair history, which helps to perform maintenance and repair work in a timely manner and ensure the normal operation of the server.
[0060] 3. Helps with security management: Through asset management, security audits and monitoring of servers can be performed to ensure server security and data protection, preventing unauthorized access and data leakage.
[0061] 4. Helps with resource planning: Asset management can help administrators understand server usage and resource allocation, help with resource planning and optimization, and improve server utilization and performance.
[0062] 5. Avoid waste of resources: Through asset management, idle or outdated servers can be discovered in time, avoiding waste of resources and saving costs.
[0063] In summary, asset management of servers in the cabinet can improve the efficiency and security of server management, ensure the normal operation of the server and the rational use of resources. Based on the above reasons, asset management of servers in the cabinet becomes necessary.
[0064] In view of this, an embodiment of the present application provides a method for managing servers in a cabinet, which pre-builds a fully connected cabinet internal management network between the servers in the cabinet, so that the management node in the cabinet can obtain the cabinet's intranet IP list, and access the server in the cabinet according to the intranet IP address in the intranet IP list, obtain the server's device information, and generate a server asset list based on the device information of each server, thereby realizing asset management of the server in the cabinet. Based on this method, there is no need to equip additional hardware equipment, and the management cost is relatively lower; based on this method, there is no need to limit the U-position information or port connection relationship of each server to remain unchanged, wherein the U-position information of the server refers to the specific location of the server in the cabinet. The embodiment of the present application can access the server in the cabinet through the intranet IP address to obtain the latest device information of the server, and the flexibility and practicality of management and operation and maintenance are higher.
[0065] For example, Figure 1 This is a schematic diagram of the architecture of a server in a cabinet provided in an embodiment of the present application. Figure 1As shown, a switch 11 and multiple servers 12 (servers 1 to N) are deployed in the cabinet 10, and the switch 11 is connected to each server 12. The server 12 can provide computing, storage, service and other functions, and each server 12 can also install different operating systems and applications to meet actual business needs; the switch 11 is mainly used to manage and forward data packets. The switch 11 establishes a temporary communication path between servers and between servers and remote devices 13, so that data can be efficiently transmitted between devices. The near-end device 14 can be connected to the server through a network port, WIFI, USB network port, etc. to achieve data transmission and device control.
[0066] For example, Figure 2 A network topology diagram in a cabinet provided in an embodiment of the present application. To implement the solution of the embodiment of the present application, as Figure 2 As shown, in the network topology inside the cabinet, not only is there a cabinet external management network, but there is also a cabinet internal management network pre-built. Among them, the cabinet external management network is a communication network between the server and the remote device inside the cabinet. Based on the cabinet external management network, the remote device can manage the server and other devices inside the cabinet; the cabinet external management network communicates with the server and cabinet management board inside the cabinet through the downlink port of the management switch, and the management switch communicates with the remote device through the uplink port, thereby realizing the communication between the cabinet management board, the server and the external network. The cabinet internal management network is a local area network between the servers inside the cabinet. Based on the cabinet internal management network, the cabinet internal operation and maintenance management and asset management can be performed; each server and cabinet management board in the cabinet is connected to the cabinet internal management network through the downlink port of the management switch, and is not connected to the remote device.
[0067] Among them, this application does not limit the connection method between the switch and the server. For example, the server and the switch can be connected through a cable backplane or cable. The cable backplane is a new type of circuit board that can realize the connection between the server and the switch without wiring. The cable backplane is also called a cable backplane, a cable backplane, etc. In addition, the server and the switch can also be connected together through network cables, link aggregation technology, etc., and the appropriate connection method can be selected according to the specific network requirements and device support.
[0068] Understandably, combined Figure 1 and Figure 2, when the devices in the cabinet are only connected to the cabinet external management network and no cabinet internal management network is built, at the remote end, only when the network configuration and connection of the entire external network are normal, if the external network IP address, user name, password and other information of the managed server are known in advance, the management personnel can access the managed servers in the cabinet through the computer room network and the switch in the cabinet based on tools / network management / stand-alone web / command line interface (CLI), and perform server operation and maintenance management and asset management individually or in batches. For example, the servers in the cabinet can be configured, backed up, restored, etc. individually or in batches, but the servers in the cabinet cannot automatically discover other servers in the cabinet and perform unified management and maintenance. In addition, in some scenarios, for example, in the scenario of configuring servers at the beginning, all servers have the same factory default configuration (including network configuration). When the network management and server network are not ready, it is impossible to configure the servers in batches remotely; for example, in the scenario of replacing the motherboard spare parts of the server, if the server that replaces the motherboard spare parts is to be configured as the factory configuration, it is necessary to manually configure or import the original configuration information, and it is impossible to automatically back up and restore through other servers with factory configurations. At the near end, the management personnel can use portable tools / stand-alone web / command line interface CLI, mobile phone (app), etc. to access the servers one by one through the redundant management network port of the server, or Bluetooth, or WIFI, or USB network port, etc., to achieve the operation and maintenance management of the servers one by one, but at the near end, it is also impossible to batch configure, back up, restore, etc. of other servers in the cabinet through any server in the cabinet. However, when the cabinet internal management network is built in the cabinet, the above problems can be solved, wherein the specific implementation scheme is introduced in the following embodiment.
[0069] in, Figure 2 The cabinet management board shown in is an optional device in the cabinet, for example, the cabinet management board can be a KVM (Keyboard Video Mouse) management board, etc. In some cabinets, a cabinet management board is provided, and in some cabinets, a cabinet management board is not provided. Regardless of whether a cabinet management board is provided, the method of the embodiment of the present application is applicable.
[0070] Optionally, the cabinet external management network and the cabinet internal management network can be isolated inside the switch through a virtual local area network (VLAN). VLAN is a logical division technology that can divide different ports in a switch into different virtual local area networks, thereby achieving isolation and segmentation between different networks. By configuring different VLANs on the switch, the devices in the internal network and the external network can be divided into different virtual networks, respectively, so that the communication between them is restricted, thereby improving network security. When the cabinet external management network does not use VLAN, the port virtual local area network identifier (PortVLAN Identifier, PVID) of the port is used to build a forwarding network inside the switch. When the cabinet external management network uses VLAN, the corresponding VLAN is used to build a forwarding network inside the switch. The cabinet management network port does not use VLAN to the external network. VLAN is added using the switch port PVID. When the external management network uses VLAN, the PVID of the downstream port configures the VLAN value of the external network.
[0071] Among them, the internal management network of the cabinet can be automatically constructed based on the characteristics of the switch, and its implementation principle is as follows: pre-configure the switch so that the switch regularly sends link layer discovery protocol LLDP message information to each server connected to the switch, wherein the link layer discovery protocol LLDP message can carry the switch model, IP address, connection port identification number and other information. When the baseboard management controller BMC of each server receives the LLDP message, it parses the LLDP message information and can obtain the connection port identification number of the server itself. According to the preset intranet segment and the connection port identification number of the server itself, the intranet IP address of the server in the cabinet can be generated. The specific method of generating the intranet IP address can refer to the subsequent description. When all servers connected to the switch complete the construction of the intranet IP, a fully connected cabinet internal management network is formed. Based on the constructed fully connected cabinet internal management network, the management method of the server in the cabinet provided in the embodiment of the present application can be implemented.
[0072] It should be noted that the management method of the server in the cabinet provided in the embodiment of the present application is applied to the management node in the cabinet. Among them, the management node is provided with a device for data processing to achieve the management of the server assets in the cabinet. For example, the management node may be configured with a baseboard management controller BMC, etc., and the baseboard management controller BMC is used to manage the server assets in the cabinet.
[0073] The embodiment of the present application takes the execution subject as the management node as an example to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0074] Figure 3 A schematic diagram of a method for managing a server in a cabinet provided in an embodiment of the present application. Figure 3 As shown, the management method of the server in the cabinet provided in this embodiment includes the following steps:
[0075] S301. The management node obtains an intranet Internet protocol IP list.
[0076] Among them, the intranet IP list includes the intranet IP address of each server set in the cabinet. The intranet IP address is pre-generated based on the connection port identification number. The connection port identification number is the identification number of the connection port between the server and the switch. The switch can be set in the server cabinet or not.
[0077] Exemplarily, when the management node wants to perform asset management on the server in the cabinet, it first obtains the cabinet's intranet Internet interconnection protocol IP list, which includes the intranet IP address of each server in the cabinet. The subsequent management node can then access the server in the cabinet based on the server's intranet IP address in the cabinet to perform asset management.
[0078] The present application does not restrict how to obtain the intranet Internet Protocol IP list. For example, the management node can receive the intranet IP address of each server manually input by the user to obtain the intranet IP list; or, if a cabinet management board is installed inside the cabinet, the management interface of the cabinet management board can be logged in to view the IP address list of the device connected to the management board.
[0079] In a possible implementation, the management node obtains the intranet Internet protocol IP list, which may include steps S1 to S4:
[0080] S1. The management node obtains a connection port identification number table of a switch.
[0081] The connection port identification number table includes all connection port identification numbers of the switch.
[0082] Optionally, the connection port identification number may be a panel interface number or an internal switching port number of a switch.
[0083] Exemplarily, the panel interface number of a switch generally refers to the number of the physical interface on the switch panel. These numbers are usually printed on the switch panel to identify the location and order of each physical port. The panel interface number is generally numbered sequentially starting from 1. The panel interface number is usually used as a reference during physical installation and connection to facilitate identification and management of specific physical ports. According to the panel interface number, users can accurately connect and manage servers connected to the switch. In addition, the panel interface number can also be numbers, letters, symbols, or a combination thereof, depending on the design and manufacturer of the switch. For example, the panel interface number can be a sequential number of 1, 2, 3, etc.
[0084] The internal switch port number of a switch usually refers to the number of the internal logical port used in the configuration and management of the switch. It is the internal interface number, which may or may not be consistent with the panel interface number. In some advanced switches or modular switches, the switch port interface number may contain more information. Similarly, the internal switch port number can also be numbers, letters, symbols, or a combination of them, depending on the actual configuration. For example, the internal switch port number can be represented by G0 / 1 / 1, G0 / 1 / 2, G0 / 1 / 3, etc. according to the coding rules.
[0085] Optionally, obtaining a connection port identification number table of a switch may include:
[0086] S11. The management node receives Link Layer Discovery Protocol (LLDP) message information sent by the switch. The LLDP message information includes the model of the switch.
[0087] S12: The management node parses the LLDP message information to obtain the model of the switch in the cabinet, and performs query processing according to the model of the switch to obtain a connection port identification number table of the switch.
[0088] Exemplarily, based on the configuration, the switch will periodically send LLDP message information to the in-cabinet management board or server (more specifically, the baseboard management controller BMC of the server) connected to the switch. The server or in-cabinet management board that receives the LLDP message information can parse the LLDP message information to obtain its own connection port identification number, switch model, IP address and other information, and generate its own intranet IP address in the cabinet according to the preset intranet segment and its own connection port identification number, thereby completing the construction of the internal management network of the cabinet.
[0089] In an embodiment of the present application, the management node can be any server connected to the switch in the cabinet. In some embodiments, when a cabinet management board is deployed in the cabinet, the cabinet management board can realize the function of the management node. Therefore, when the switch sends an LLDP message, the management node connected to the switch will naturally receive the LLDP message information. After the management node receives the link layer discovery protocol LLDP message information sent by the switch, it parses and processes the LLDP message information, and not only can the connection port identification number of the management node be obtained to generate the intranet IP address of the management node itself, but also the model of the switch in the cabinet can be obtained, and then the management node can search based on the model of the switch in the database storing the connection port identification number table of switches of different models to find the connection port identification number table of the switch in the cabinet.
[0090] Optionally, in a possible implementation, a connection port identification number table may also be pre-stored in the switch. When the switch sends LLDP message information to the management node, the connection port identification number table may be included in the LLDP message information. In this way, after the management node receives the link layer discovery protocol LLDP message information sent by the switch, it can directly parse the LLDP message information and obtain the connection port identification number table.
[0091] S2. The management node generates an intranet IP address corresponding to each connection port identification number according to each connection port identification number in the connection port identification number table and a preset intranet segment.
[0092] The preset intranet segment is used to represent the IP address range in the internal management network of the cabinet.
[0093] Exemplarily, each intranet segment is usually composed of a specific IP address range and subnet mask to uniquely identify each device in the network and determine which devices belong to the same network. The present application does not limit the specific content of the preset intranet segment. For example, the preset intranet segment can be 172.31.XXX.XXX. Presetting a reasonable intranet segment helps to manage and optimize network traffic and achieve effective communication and resource sharing between devices. For each connection port identification number in the connection port identification number table, the management node can generate the intranet IP address corresponding to the connection port identification number based on the connection port identification number and the preset intranet segment.
[0094] Exemplarily, the intranet IP address can be generated by using the preset intranet segment + connection port identification number. It can be understood that the connection port identification number can be a number 1, 2, 3, etc. encoded in sequence, or a combination of letters and numbers G0 / 1 / 1, G0 / 1 / 2, G0 / 1 / 3, etc. represented by the encoding rules. According to the conventional writing rules of IPv4 addresses, IP addresses are generally composed of numbers. Therefore, when generating an IP address, the connection port identification number can be first mapped to a specific number, and the specific number is used to represent the connection port identification number, thereby generating an intranet IP address. For example, if the connection port identification number "1" is mapped to "00.1", the intranet IP address corresponding to the connection port identification number "1" can be "172.31.00.1"; if the connection port identification number "2" is mapped to "00.5", the intranet IP address corresponding to the connection port identification number "2" can be "172.31.00.5". For another example, if the connection port identification number "G0 / 1 / 1" is mapped to "255.1", the corresponding intranet IP address of the connection port identification number "G0 / 1 / 1" may be "172.31.255.1"; if the connection port identification number "G0 / 1 / 2" is mapped to "255.2", the corresponding intranet IP address of the connection port identification number "G0 / 1 / 2" may be "172.31.255.2". The above IP addresses are only used to illustrate how to generate intranet IP addresses, and do not involve any relevant information of the corresponding IP addresses that actually exist.
[0095] S3. The management node accesses the server corresponding to the intranet IP address through the intranet IP address.
[0096] S4. The management node determines the intranet IP address of the server that has been successfully accessed, which is the intranet IP address in the intranet IP list.
[0097] For example, since the connection port identification number table includes all the connection port identification numbers of the switch, but not all ports corresponding to the connection port identification numbers are connected to servers, after generating the intranet IP address corresponding to each connection port identification number, the management node also needs to access the server corresponding to the intranet IP address through the intranet IP address corresponding to each connection port identification number. Only when the access is successful can it be determined that the server cabinet is normally connected to the switch, and the intranet IP address of the normally connected server is the intranet IP address in the intranet IP list.
[0098] When accessing the server corresponding to each connection port identification number, the ping command or other network tools can be used to verify whether the communication between the servers is normal. If the communication is normal, the access is considered successful; if the communication is abnormal, the access is considered unsuccessful.
[0099] Through the above method, the real-time intranet IP list of the cabinet can be obtained, so that the obtained intranet IP list is the latest IP list, thereby providing a more accurate data basis for subsequent asset management.
[0100] S302: The management node accesses the server according to the intranet IP address in the intranet IP list to obtain device information of the server.
[0101] Exemplarily, the management node can access each corresponding server through each intranet IP address in the intranet list.
[0102] Then, some system commands are executed to obtain the device information of the server. In some examples, if the server manufacturer provides a management interface or tool, the device information of the server can be displayed on the management interface, and the management node can also obtain the device information of the server by accessing the background or database that displays these interfaces.
[0103] Optionally, the device information of the server may include one or more of the device name, product serial number, device model, manufacturer information, network configuration information, connection port identification number of the server and the switch, U-bit location information, intranet IP address, etc. The management node can obtain one or more of the above device information according to resource management requirements.
[0104] For example, when obtaining different device information, different system command lines need to be executed on different operating systems. For example, on a Windows system, you can use the command `systeminfo` to view the server's device name, product serial number, device model, manufacturer information, and other information, and you can use the command `ipconfig` to view network configuration information; on a Linux system, you can use the command `dmidecode` or `lshw` to obtain the server's device name, product serial number, device model, manufacturer information, and other information, and you can use the command `ifconfig` or `ip addr show` to view network configuration information.
[0105] For the U-position location information, in some possible embodiments, the management node can be determined by the connection port identification number. In the embodiment of the present application, the connection port identification number is the identification of the connection port on the switch that is connected to the server. When the switch and the service are connected through a cable backplane, when the switch is connected to the cable backplane, and the position of the cable backplane in the cabinet is fixed, once the server is installed in its corresponding cabinet position, the connection port identification number of the server and the switch can be determined, so that the location information of the server in the cabinet can be determined. Among them, the location information of the server in the cabinet is generally represented by the U-position location information. In the embodiment of the present application, the management node can save the corresponding relationship between the connection port identification number of any server connected to the switch and its U-position location information in the cabinet in the database of the management node, so that after the connection port identification number between the server and the switch in the cabinet is determined, the location information of the server in the cabinet can be determined according to the connection port identification number.
[0106] Exemplarily, Table 1 is a mapping relationship table between a connection port identification number and U-bit position information in a cabinet provided in an embodiment of the present application.
[0107] Table 1
[0108] Connection port identification number U position information Identification number 1 1U Identification number 2 2U ...... ......
[0109] As shown in Table 1, when the connection port identification number of the server connected to the switch is identification number 1, the location information of the server in the cabinet can be determined as 1U, and when the connection port identification number of the server connected to the switch is identification number 2, the location information of the server in the cabinet can be determined as 2U. According to the connection port identification number, by querying Table 1, the location information of the server in the cabinet can be known.
[0110] S303: The management node generates a server asset list according to the device information of each server.
[0111] Optionally, the management node generates a server asset list based on the device information of each server, which may include:
[0112] S100. The management node creates an asset inventory table for the cabinet.
[0113] S100: The management node enters the device information of each server into the asset list table to obtain a server asset list.
[0114] For example, if the management node has pre-established an asset list table for the cabinet, the device information of each server can be directly entered into the pre-set asset list table to obtain the updated server asset list of the cabinet. If the management node does not have a pre-established asset list table, it is necessary to first create an asset list table for the cabinet, and then enter the device information of each server into the created asset list table, so as to obtain a server asset list and realize asset management of the servers in the cabinet.
[0115] Optionally, the asset inventory table is indexed by any one of the serial number of the server, the identification number of the connection port between the server and the switch, and the U-bit position information.
[0116] For example, the serial number SN of the server is used as the unique identifier of the server. When the serial number of the server is used as an index, the server can be found quickly and accurately during the subsequent management of the server. In addition, for some servers that use cable backplane connections and have fixed server locations and port connection relationships, the standard U-position location information of the server in the cabinet can also be used as an index to quickly find the server in the cabinet.
[0117] The server management method provided in the embodiment of the present application is applied to the management node, and can obtain the intranet Internet Protocol IP list; access the server according to the intranet IP address in the intranet IP list to obtain the server's device information; generate a server asset list based on the device information of each server. Through the above method, the management node can automatically access the server through the intranet IP address of each server to obtain the device information of each server, thereby realizing the asset management of the server in the cabinet without adding additional hardware equipment, and the management cost is relatively lower; based on this method, there is no need to limit the U-bit position information or port connection relationship of each server to remain unchanged. By accessing the server in the cabinet through the intranet IP address, the latest device information of the server can be obtained, and the flexibility and practicality of management and operation are higher.
[0118] Figure 4 A flowchart of another method for managing a server in a cabinet provided in an embodiment of the present application is shown below. Figure 4 As shown, the management method of the server in the cabinet provided in this embodiment includes the following steps:
[0119] S401. The management node obtains an intranet Internet protocol IP list.
[0120] It should be noted that the implementation of step S401 can refer to the description of the aforementioned step S301, which will not be repeated here.
[0121] S402: The management node responds to the maintenance instruction by sending the maintenance instruction to the server via the intranet IP address of the server in the cabinet.
[0122] The maintenance instructions include one or more of configuration instructions, modification instructions, backup instructions, and restoration instructions.
[0123] Exemplarily, the servers can be maintained and managed through the intranet IP address of each server in the cabinet; wherein maintenance management includes one or more of configuration management, modification management, backup management and restore management. Among them, configuration management mainly refers to the management of the hardware and software configuration of the server to ensure the stability and consistency of the system. Modification management mainly refers to the management process when changing the server configuration and environment to ensure the controllability and traceability of the changes. Backup management mainly refers to the regular backup of data and configuration on the server to prevent data loss. Restore management mainly refers to restoring data and configuration from backup in case of data loss or system failure.
[0124] Exemplarily, a scheduled maintenance instruction can be set in the management node, so that the management node responds to the scheduled maintenance instruction and sends the maintenance instruction to the server through the intranet IP address of the server in the cabinet. In addition, after the management node obtains the intranet IP list of the cabinet, the administrator can also access the management node through the remote network or the proximal interface through tools, network management, stand-alone web, etc., and send an operation instruction to maintain the target server to the management node, so that the management node can respond to the maintenance instruction and send the maintenance instruction to the server through the intranet IP address of the target server. Among them, the target server is one or more of the servers corresponding to each intranet IP address in the intranet IP list, and then, batch configuration, modification, backup, restoration, etc. of other servers in the cabinet can be realized, thereby realizing unified management and operation and maintenance of other server nodes in the cabinet through the management node, solving the problem in the related technology that it is impossible to perform batch configuration, backup, restoration and other operation and maintenance management of other servers in the cabinet through any server in the cabinet, and improving the convenience and practicality of management.
[0125] Understandably, if the switch and server are connected via a network cable or other insecure means, when the administrator accesses the management node through remote tools, network management, stand-alone web, etc., in order to improve data security, the user password is generally required to log in to the control interface before entering maintenance instructions to maintain and manage the server inside the cabinet. If the server and switch are connected using a cable backplane, since the cable backplane is wire-free and has no external physical interface, it meets the security requirements, and the server inside the cabinet can be maintained and managed directly without a user password, which is more convenient.
[0126] Optionally, in an embodiment of the present application, the management node can be any server in the cabinet connected to the switch. In some embodiments, when a cabinet management board is deployed in the cabinet, the cabinet management board can realize the function of the management node. When any server in the cabinet is a management node, other servers in the cabinet can be managed. Based on this, other servers in the cabinet can be uniformly managed and maintained through any server in the cabinet, and operation and maintenance management can be more convenient in scenarios such as initial configuration, adding new servers to the cabinet, replacing spare parts, and near-end access. It no longer depends on its configuration constraints (such as whether the external network configuration is OK, whether the remote network is a near-end access point). As long as the new server is put into the cabinet, it can manage other nodes or be managed by other nodes, which improves the convenience and practicality of management.
[0127] Figure 5 A schematic diagram of another method for managing servers in a cabinet provided in an embodiment of the present application. Figure 5 As shown, when building the internal management network of the cabinet, the switch in the cabinet will send LLDP message information to the management node and the general node connected to it, wherein the LLDP message information carries the switch model, IP address, corresponding connection port identification number and other information, and the management node and the general node that receive the LLDP message information will parse the LLDP message information to obtain the node's own connection port identification number, and generate their own intranet IP addresses in the cabinet according to the preset intranet segment and their own connection port identification number, thereby completing the construction of the internal management network of the cabinet.
[0128] Optionally, the management node is an in-cabinet management board or any server in the cabinet, and the general node is a server other than the server serving as the management node in the cabinet. If the general node is a server supporting a liquid crystal display LCD, it can also output information of the switch such as the IP address, the corresponding connection port identification number, etc., and can also display its own serial number and other device information.
[0129] In addition, compared to general nodes, when building the internal management network of the cabinet, after receiving the LLDP message information of the switch, the management node can parse the LLDP message information to obtain the model of the switch, and according to the model of the switch, the connection port identification number table of the switch can be obtained, so that the intranet IP address corresponding to each connection port identification number in the connection port identification number table and the preset intranet segment can be generated, and the server can be accessed through the intranet IP address, and then the intranet IP list of the cabinet can be obtained. Furthermore, when performing cabinet asset management, the management node accesses the server in the cabinet according to the intranet IP address in the intranet IP list, and can obtain the server's device name, product serial number SN, device model, connection port identification number of the server and the switch, device IP and other information, so as to generate a server asset list according to the device information of each server, and realize the asset management of the server in the cabinet. Further, when performing cabinet operation and maintenance management, the management node can also perform single and batch maintenance management on the servers in the cabinet through the intranet according to the server asset list.
[0130] It should be noted that Figure 5 The specific implementation of each step in the embodiment is similar to the above embodiment. For the contents not described in this embodiment, reference may be made to the description of any of the above embodiments, which will not be repeated here.
[0131] Accordingly, the embodiment of the present application builds a fully connected cabinet internal management network between each server, so that the management node can automatically access the server through the intranet IP address of each server to obtain the device information of each server, thereby realizing asset management of the servers in the cabinet without adding additional hardware equipment, nor requiring the U-bit location information or port connection relationship of each server to remain unchanged, without adding additional hardware costs, and also improving the flexibility and practicality of management and operation and maintenance of servers in the cabinet; in addition, it also solves the problem in the related art that it is impossible to perform batch configuration, backup, restoration and other operation and maintenance management of other servers in the cabinet through any server in the cabinet, thereby improving management convenience and practicality.
[0132] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0133] Figure 6 The schematic diagram of the structure of a management device for a server in a cabinet provided in an embodiment of the present application. The management device for a server in a cabinet provided in an embodiment of the present application is applied to a management node. Figure 6 As shown, the management device 60 for servers in a cabinet provided in an embodiment of the present application includes a first acquisition unit 601 , a second acquisition unit 602 and a generation unit 603 .
[0134] Among them, the first acquisition unit 601 is used to obtain the intranet Internet interconnection protocol IP list; wherein the intranet IP list includes the intranet IP address of each server set in the cabinet, and the intranet IP address is generated based on the connection port identification number, and the connection port identification number is the identification number of the connection port connecting the server and the switch.
[0135] The second acquisition unit 602 is used to access the server according to the intranet IP address in the intranet IP list to obtain device information of the server.
[0136] The generating unit 603 is used to generate a server asset list according to the device information of each server.
[0137] In one implementation, the first acquisition unit 601 is specifically configured to:
[0138] Obtaining a connection port identification number table of a switch; wherein the connection port identification number table includes all connection port identification numbers of the switch;
[0139] Generate an intranet IP address corresponding to each connection port identification number according to each connection port identification number in the connection port identification number table and a preset intranet segment; wherein the preset intranet segment is used to represent the IP address range in the internal management network of the cabinet;
[0140] Access the server corresponding to the intranet IP address through the intranet IP address;
[0141] Confirm the intranet IP address of the server that is successfully accessed, which is the intranet IP address in the intranet IP list.
[0142] In one implementation, the first acquisition unit 601 is specifically configured to:
[0143] Receive the link layer discovery protocol LLDP message information sent by the switch; wherein the LLDP message information includes the model of the switch;
[0144] Parse the LLDP message information to obtain the model of the switch, and perform query processing based on the model of the switch to obtain the connection port identification number table of the switch;
[0145] Alternatively, the LLDP message information includes a connection port identification number table, and the LLDP message information is parsed to obtain the connection port identification number table.
[0146] In one implementation, the connection port identification number is a panel interface number or an internal switching port number of the switch, wherein the panel interface number is the number of a physical interface on the switch panel, and the internal switching port number is the number of an internal logical port of the switch.
[0147] In one implementation, the device information includes one or more of a device name, a product serial number, a device model, manufacturer information, network configuration information, a connection port identification number of a server and a switch, and U-bit location information.
[0148] In one implementation, the generating unit 603 is specifically configured to:
[0149] Create an asset inventory form for the cabinet;
[0150] Enter the device information of each server in the asset list table to obtain the server asset list.
[0151] In one implementation, the asset inventory table is indexed by any one of the serial number of the server, the identification number of the connection port with the switch, and the U-bit position information.
[0152] In one implementation, the management node is any server in the cabinet connected to the switch.
[0153] In one implementation, the management device for a server in a cabinet provided in an embodiment of the present application also includes a response unit, which is used to: respond to a maintenance instruction, send a maintenance instruction to the server through the intranet IP address of the server in the cabinet; wherein the maintenance instruction includes one or more of a configuration instruction, a modification instruction, a backup instruction, and a restore instruction.
[0154] The device provided in this embodiment can be used to execute the method of the above embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.
[0155] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. In addition, it can also be stored in the memory of the above device in the form of program code, and the functions of the above data processing modules can be called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0156] Figure 7A schematic diagram of the structure of a management node is provided for an embodiment of the present application. The management node provided in the embodiment of the present application is deployed in a cabinet, and a switch and multiple servers are also deployed in the cabinet, and the switch is connected to each server. Figure 7 As shown, the management node 70 includes a processor 701 and a memory 702 communicatively connected to the processor.
[0157] The memory 702 is used to store programs. Specifically, the program may include program codes, and the program codes include computer operation instructions. The memory 702 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0158] The processor 701 is used to execute the computer-executable instructions stored in the memory 702 to implement the network configuration method described in the aforementioned method embodiment. The processor 701 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0159] The management node 70 may further include a communication interface 703, so as to communicate and interact with an external device through the communication interface 703. The external device may be, for example, a server or other management nodes.
[0160] In specific implementation, if the communication interface 703, the memory 702 and the processor 701 are implemented independently, the communication interface 703, the memory 702 and the processor 701 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0161] Optionally, in a specific implementation, if the communication interface 703, the memory 702 and the processor 701 are integrated on a chip, the communication interface 703, the memory 702 and the processor 701 can communicate through an internal interface.
[0162] The management node provided in this embodiment can execute the technical solution in the above method embodiment, and its beneficial effects are similar, which will not be described again here.
[0163] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the technical solution provided by any of the aforementioned method embodiments.
[0164] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by the aforementioned method embodiment when executed by a processor.
[0165] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the embodiments of the present application have been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for managing a server, It is characterized in that The method is applied to a management node, and the method comprises: Obtaining an intranet Internet Protocol IP list; wherein the intranet IP list includes an intranet IP address of each server set in the cabinet, and the intranet IP address is generated based on a connection port identification number, and the connection port identification number is an identification number of a connection port for connecting the server to a switch in the cabinet; Access the server according to the intranet IP address in the intranet IP list to obtain device information of the server; Generate a server asset list based on the device information of each server.
2. The method according to claim 1, It is characterized in that Get the list of intranet Internet protocol IP addresses, including: Acquire a connection port identification number table of the switch; wherein the connection port identification number table includes all connection port identification numbers of the switch; Generate an intranet IP address corresponding to each connection port identification number according to each connection port identification number in the connection port identification number table and a preset intranet network segment; wherein the preset intranet network segment is used to represent the IP address range in the internal management network of the cabinet; Access the server corresponding to the intranet IP address through the intranet IP address; The intranet IP address of the server successfully accessed is determined to be the intranet IP address in the intranet IP list.
3. The method according to claim 2, It is characterized in that Obtaining the connection port identification number table of the switch includes: Receiving Link Layer Discovery Protocol (LLDP) message information sent by the switch; wherein the LLDP message information includes the model of the switch; Parsing the LLDP message information to obtain the model of the switch, and querying according to the model of the switch to obtain a connection port identification number table of the switch; Alternatively, the LLDP message information includes a connection port identification number table, and the connection port identification number table is obtained by parsing the LLDP message information.
4. The method according to any one of claims 1 to 3, It is characterized in that The connection port identification number is a panel interface number or an internal switching port number of the switch, wherein the panel interface number is the number of a physical interface on the switch panel, and the internal switching port number is the number of an internal logical port of the switch.
5. The method according to any one of claims 1 to 3, It is characterized in that The device information includes one or more of a device name, a product serial number, a device model, manufacturer information, network configuration information, a connection port identification number of a server and a switch, and U-bit location information.
6. The method according to any one of claims 1 to 3, It is characterized in that Generate a server asset list based on the device information of each server, including: Create an asset inventory form for the cabinet; The equipment information of each server is entered into the asset list table to obtain a server asset list.
7. The method according to claim 6, It is characterized in that The asset list table is indexed by any one of the serial number of the server, the identification number of the connection port with the switch, and the U-bit position information.
8. The method according to any one of claims 1 to 3, It is characterized in that The management node is any server in the cabinet connected to the switch.
9. The method according to any one of claims 1 to 3, It is characterized in that After obtaining the intranet Internet Protocol IP list, the method further includes: In response to the maintenance instruction, the maintenance instruction is sent to the server via the intranet IP address of the server in the cabinet; wherein the maintenance instruction includes one or more of a configuration instruction, a modification instruction, a backup instruction, and a restoration instruction.
10. A management node, It is characterized in that The management node is deployed in a cabinet, and a switch and a plurality of servers are also deployed in the cabinet, and the switch is connected to each of the servers; the management node includes: a processor, and a memory in communication with the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.
Citation Information
Cited By
Automatic equipment discovery method and device, cloud platform and medium
CN121418464A
