Server management method and device, equipment and medium

By setting up a camera on the server cabinet, automatically collecting location and asset information and comparing it with the management system, the high cost and low efficiency problems under traditional manual management methods are solved, and the automated binding of server location and IP addresses is realized, improving the improvement of Management efficiency and accuracy are achieved.

CN119211196AActive Publication Date: 2024-12-27JINAN INSPUR DATA TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411095308.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-12-27
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

Traditional server cabinet management methods require manual recording and management, resulting in high labor costs, prone to errors and inefficient management, making it difficult to meet the management needs of large-scale server cabinets.

Method used

By setting up multiple cameras on the cabinet, obtaining the server's location and asset information, and communicating with the management system, automatically comparing and resetting the IPMI address, and automatically binding the server's location and IP address.

Benefits of technology

It reduces the cost of manual management, improves the accuracy of matching server location and IP address, improves the efficiency of server management, and realizes automated binding of server physical address and network address.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211196A_ABST
    Figure CN119211196A_ABST
Patent Text Reader

Abstract

The invention provides a server management method and device, equipment and a medium, and relates to the technical field of servers, and the method comprises the steps: obtaining first related information of a first server through a plurality of cameras after determining that the first server is on shelf, and storing the first related information in a database, the first related information comprises position information and first asset information, after the first server is in communication connection with the management system, second asset information of the first server is obtained through the management system, the first asset information and the second asset information are compared, and the corresponding relation between the first related information and the IP address of the first server is determined; according to the method, the IP address of the network and the actual physical address of the first server are automatically bound, the IPMI address of the first server is reset, automatic binding between the actual physical address of the first server and the IP address of the network and distribution of the IPMI address of the first server can be achieved without manual participation, and it is ensured that a management system can correctly communicate with and manage the first server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to a server management method, device, equipment and medium. Background Art

[0002] As the usage of servers increases dramatically, the size of server rooms continues to expand, and the resulting server cabinet management technologies are becoming increasingly diverse.

[0003] In traditional server cabinet management, it is usually necessary to manually record the location of each server and manually assign and set the IP address. This management method has the following problems:

[0004] 1. High labor costs: Specialized managers are required to record and manage, which increases the operating costs of the enterprise.

[0005] 2. Error-prone: Manual records are prone to errors, resulting in inaccurate information such as the server's location and IP address, which brings difficulties to the company's operation and maintenance work.

[0006] 3. Low management efficiency: Manual management is inefficient and cannot meet the management needs of large-scale server cabinets. Summary of the invention

[0007] In view of this, embodiments of the present application provide a server management method, apparatus, device and medium to overcome the above problems or at least partially solve the above problems.

[0008] A first aspect of an embodiment of the present application provides a server management method, the method comprising:

[0009] After determining that the first server is on the rack, first relevant information of the first server is obtained through multiple cameras arranged on the cabinet, and the first relevant information is stored in a database, wherein the first relevant information includes location information of the first server and first asset information of the first server;

[0010] After the first server is connected to the management system through communication, obtaining the second asset information of the first server through the management system;

[0011] The first asset information in the database is compared with the second asset information acquired by the management system, the corresponding relationship between the first relevant information and the IP address of the first server is determined, and the IPMI address of the first server is reset.

[0012] Optionally, the location information is determined based on an original location of the first server in the cabinet and a recommended location of the first server in the cabinet, the recommended location is obtained by a preset location judgment logic, and the acquiring the first relevant information of the first server through a plurality of cameras arranged on the cabinet includes:

[0013] Using the multiple cameras, collecting the original position of the first server in the cabinet;

[0014] Acquiring the recommended location by using the preset location judgment logic includes:

[0015] Obtaining the space size required by the first server and the remaining space of the cabinet;

[0016] Determining whether the first server is the first server of the cabinet;

[0017] When the first server is the first server of the cabinet, determining whether the original position is installed from a first sequential position;

[0018] When it is determined that the original position is installed from the first sequence position, determining that the recommended position is the same as the original position;

[0019] When the first server is not the first server of the cabinet, determining whether the position size between the original position of the first server and at least one other server already on the rack in the cabinet is not greater than a preset position size;

[0020] When the distance between the original position of the first server and other servers already mounted in the cabinet is not greater than a preset distance, determining that the recommended position is the same as the original position;

[0021] When the recommended location is the same as the original location, the location information in the first relevant information of the first server is determined to be the original location.

[0022] Optionally, the method further comprises:

[0023] When the first server is the first server of the cabinet and it is determined that the original position is not installed starting from the first sequence position, determining the recommended position based on the first sequence position and the position size required by the first server;

[0024] issuing, by the management system, prompt information for indicating the recommended position, wherein the prompt information is used to indicate that it is recommended to install the first server starting from the first sequence position;

[0025] When the first server is not the first server in the cabinet, and the position size between the original position of the first server and other servers already on the cabinet is greater than the preset position size, the recommended position is determined based on the free positions in the cabinet adjacent to the other servers already on the cabinet and the position size required by the first server;

[0026] Prompt information indicating the recommended position is issued by the management system, and the prompt information is used to indicate that it is recommended to install the first server starting from the vacant position.

[0027] Optionally, collecting the original position of the first server in the cabinet by using the multiple cameras includes:

[0028] Collecting, by means of the multiple cameras, first asset information included in the server nameplate of the first server and the size of the server nameplate in the shooting pictures of the multiple cameras;

[0029] Based on the size, an original position of the first server in the cabinet is calculated.

[0030] Optionally, the multiple cameras include a first camera and a second camera having the same parameters, the first camera and the second camera are distributed at the upper left corner and the upper right corner of the cabinet, and are symmetrically distributed with respect to a center line of the cabinet, and the calculating the original position of the first server in the cabinet based on the size includes:

[0031] Acquire a first imaging plane coordinate of the server nameplate on the first camera and a second imaging plane coordinate of the server nameplate on the second camera;

[0032] Calculate the parallax of the server nameplate between the first camera and the second camera based on the first imaging plane coordinates and the second imaging plane coordinates;

[0033] The original position of the first server in the cabinet is determined according to the distance between the first camera and the second camera, the parallax, the focal lengths of the multiple cameras, and the height of the first server, wherein the unit of the parallax is pixel.

[0034] Optionally, the location information is obtained by the following calculation formula:

[0035] d = U1-U2;

[0036] The location information of the first server is (z, z+u);

[0037] Among them, z represents the upper limit of the server in the cabinet in the location information, z+u represents the lower limit of the server in the cabinet in the location information, u represents the height of the first server, D represents the distance between the first camera and the second camera, d represents the parallax, U1 represents the first imaging plane coordinates of the server nameplate on the first camera, U2 represents the second imaging plane coordinates of the server nameplate on the second camera, f represents the focal length of the multiple cameras, and the first asset information includes the height of the first server.

[0038] Optionally, a Hall sensor is provided on the cabinet, and before determining that the server is mounted on the cabinet, the method further includes:

[0039] When the cabinet door is opened, a door opening signal is input to the management system through the Hall sensor;

[0040] The management system starts the acquisition functions of the multiple cameras based on the door opening signal;

[0041] Using multiple cameras arranged on the cabinet, collecting the movement direction of the first server entering and exiting the cabinet;

[0042] When the moving direction of the first server is toward the cabinet and the size of the first server in the captured images of the multiple cameras becomes smaller and smaller, it is determined that the first server is in a state of being put on the rack;

[0043] When the moving direction of the first server is the direction away from the cabinet, and the size of the first server in the captured images of the multiple cameras becomes larger and larger, it is determined that the first server is in a state of being removed from the rack;

[0044] The method further comprises:

[0045] After it is determined that the first server is removed from the shelf, the first related information stored in the database and related to the first server is discarded, and the discarded first related information is transferred to the historical record.

[0046] Optionally, the determining that the first server is to be removed from the shelf includes:

[0047] Reading the IP address in the first asset information of the first server recorded in the database;

[0048] When a connection relationship cannot be established with the IP address of the first server, determining that the first server is removed from the shelf;

[0049] After determining that the second server is on the shelf, collecting second asset information of the second server through the multiple cameras;

[0050] comparing the second relevant information of the second server with the first asset information in the first relevant information that has been removed from the historical record;

[0051] Determine whether the second server is the first server that has been decommissioned:

[0052] When it is determined that the second server is the first server that has been delisted, the first related information corresponding to the first server that has been delisted and stored in the historical record is transferred to the database for storage as the second related information of the second server.

[0053] Optionally, comparing the first asset information in the database with the second asset information acquired by the management system to determine a correspondence between the first relevant information and the IP address of the first server includes:

[0054] Compare the second asset information with the multiple asset information in the database to determine the IP address in the first asset information that is consistent with the second asset information among the multiple asset information;

[0055] Writing the correspondence between the location information of the first server and the IP address into the database;

[0056] The resetting of the IPMI address of the first server includes: resetting the IPMI address of the first server by the management system according to a set network address range and using an out-of-band management technology.

[0057] A second aspect of an embodiment of the present application provides a server management device, the device comprising:

[0058] A first related information acquisition module is used to, after determining that the first server is on the rack, acquire first related information of the first server through multiple cameras arranged on the cabinet, and store the first related information in a database, wherein the first related information includes location information of the first server and first asset information of the first server;

[0059] A second asset information acquisition module, configured to acquire second asset information of the first server through the management system after the first server is connected to the management system through communication;

[0060] A comparison module is used to compare the first asset information in the database with the second asset information obtained by the management system, determine the correspondence between the first relevant information and the IP address of the first server, and reset the IPMI address of the first server.

[0061] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the server management method as described in the first aspect.

[0062] A fourth aspect of an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the server management method as described in the first aspect is implemented.

[0063] Beneficial effects of this application:

[0064] The embodiments of the present application provide a server management method, apparatus, device and medium, including: after determining that a first server is on a rack, obtaining first relevant information of the first server through multiple cameras arranged on a cabinet, and storing the first relevant information in a database, wherein the first relevant information includes location information of the first server and first asset information of the first server; after the first server is communicatively connected with a management system, obtaining second asset information of the first server through the management system; comparing the first asset information in the database with the second asset information obtained by the management system, determining the correspondence between the first relevant information and the IP address of the first server, and resetting the IPMI address of the first server.

[0065] After the server is put on the shelf, the location information and the first asset information of the server can be collected through multiple cameras, and after the server is connected to the network, the second asset information of the server can be obtained. By comparing the first asset information and the second asset information, it can be determined which asset information corresponds to the IP address of the first server. In this way, the correspondence between the first related information and the IP address of the first server can be established. Then, the relationship between the location information of the first server and the IP address of the first server is determined, and finally the IPMI address of the first server is reset, so that the actual physical address of the first server and the IP address of the network can be automatically bound without manual intervention, and the IPMI address of the first server can be allocated, ensuring that the management system correctly communicates and manages the first server, thereby achieving the technical effect of reducing manual management costs, improving the accuracy of matching the location and IP address of the server, and improving the efficiency of server management. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.

[0067] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0068] Figure 1 It is a flow chart of a server management method provided by an embodiment of the present application;

[0069] Figure 2 It is a structural schematic diagram of a cabinet in a server management method provided by an embodiment of the present application;

[0070] Figure 3 is another structural schematic diagram of a cabinet in a server management method provided by an embodiment of the present application;

[0071] Figure 4 It is an architectural diagram of server cabinet management in a server management method provided in an embodiment of the present application;

[0072] Figure 5 It is a flow chart of outputting a recommended location through location judgment logic in a server management method provided by an embodiment of the present application;

[0073] Figure 6 is a schematic diagram of a server nameplate provided in an embodiment of the present application;

[0074] Figure 7 is a schematic diagram of determining an original location of a first server provided by an embodiment of the present application;

[0075] Figure 8 This is a schematic diagram of a Hall sensor on a cabinet provided in an embodiment of the present application.

[0076] Fig. 9 is another flow chart of a server management method provided by the present application;

[0077] Fig.10 It is a framework diagram of a server management device provided by this application. DETAILED DESCRIPTION

[0078] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0079] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0080] Figure 1 is a flow chart of a server management method provided by an embodiment of the present application, such as Figure 1 As shown, an embodiment of the present application provides a server management method, the method comprising:

[0081] In step S101, after determining that the first server is on the rack, first relevant information of the first server is obtained through multiple cameras arranged on the cabinet, and the first relevant information is stored in a database, wherein the first relevant information includes location information of the first server and first asset information of the first server;

[0082] In step S102, after the first server is connected to the management system through communication, the second asset information of the first server is obtained through the management system;

[0083] In step S103, the first asset information in the database is compared with the second asset information acquired by the management system, the correspondence between the first relevant information and the IP address of the first server is determined, and the IPMI address of the first server is reset.

[0084] Figure 2 is a schematic diagram of the structure of a cabinet in a server management method provided by an embodiment of the present application. Figure 3 is another structural diagram of a cabinet in a server management method provided by an embodiment of the present application. The cabinet of the present application is used to install, store and manage the structure of multiple servers, such as Figure 2 As shown, two cameras are installed above the cabinet, respectively distributed in the upper left corner and the upper right corner of the cabinet, symmetrically distributed with the center line of the cabinet, forming a binocular vision system, and the horizontal distance between the two cameras is D.

[0085] like Figure 3 As shown, in the cabinet, a positioning hole is set every 1U (the common cabinet height is 42U, and the height of each U (unit) is 1.75 inches (about 44.45 mm)) on the cabinet for installing the server guide rail. There is no limit on the height of the server in each cabinet, and servers of different heights (such as 1U, 2U, 3U, 4U, etc.) can be flexibly installed in the cabinet.

[0086] First, in step S101, the first server is a server that needs to be put on the cabinet and has not yet been associated and managed. After the first server is manually put on the cabinet by a technician, the first relevant information of the first server that has been put on the cabinet is obtained through multiple cameras set on the cabinet (the embodiment of the present application takes two cameras as an example. In actual applications, the number of cameras and their installation positions can be set according to actual needs). The first relevant information includes the first server location information and the first asset information of the first server. The location information is the position of the first server in the cabinet after the technician manually puts the first server on the cabinet (for example, the height of the first server is 4U, and the location information can be 1U~4U). The first asset information is the product serial number, product information (such as server model, configuration information, network connection information), production time, etc. of the first server collected by multiple cameras, and the first relevant information of the first server that has been put on the cabinet is stored in a database, wherein the database can be set on a local server, a cloud server or other network storage device.

[0087] further, Figure 4 is an architectural diagram of server cabinet management in a server management method provided in an embodiment of the present application, such as Figure 4 As shown, in step S102, the first server and the management system are connected to the internal switch in the cabinet through a network cable, and the communication connection between the first server and the management system is realized through the internal switch connected to the first server and the public switch connected to the server where the management system is located, and the management system is communicated with the database. The management system can be connected to the network of the first server, and based on the IPMI (Intelligent Platform Management Interface) out-of-band management technology, the management system can communicate with the BMC (Baseboard Management Interface) of the first server through the IPMI protocol. Controller, baseboard management controller, an independent hardware chip or firmware, embedded in the mainboard of the server, used to monitor, manage, diagnose and restore server hardware) to communicate with the first server to obtain the second asset information of the first server, the second asset information is the built-in asset information of the first server, the content included in the second asset information is not less than the content included in the first asset information, and the second asset information at least includes: hardware configuration information of the first server (such as processor model, memory capacity, hard disk size), network configuration information (such as IP address, MAC address, gateway, etc.), software information (such as detailed information of the operating system and application installed on the first server, including operating system version, patch update status, installed software packages, etc.), and operation status information (CPU utilization, memory utilization, disk space utilization, etc.).

[0088] Finally, in step S103, the first asset information obtained from the database is compared with the second asset information obtained from the management system. There should be second asset information of multiple servers in the management system. Therefore, it is necessary to determine whether there is second asset information matching the first asset information in the management system. After the second asset information matching the first asset information of the first server is found in the management system, the correspondence between the IP address contained in the matched second asset information and the first related information of the first server is determined, wherein the correspondence between the location information of the first server and the IP address of the second asset information is mainly determined, and the correspondence is written into the database. Through the management system, in the preset cabinet network segment, the IPMI out-of-band management technology is used to reset the IPMI URL of the first server corresponding to the location information in the cabinet, to ensure that the management system can communicate and manage the first server through the correct address, thereby realizing dynamic and intelligent server management.

[0089] Through the above embodiment, after the server is put on the shelf, the location information and the first asset information of the server are collected through multiple cameras, and after the server is connected to the network, the second asset information of the server is obtained. By comparing the first asset information and the second asset information, it can be determined which asset information corresponds to the IP address of the first server. In this way, a corresponding relationship between the first related information and the IP address of the first server can be established. Then, the relationship between the location information of the first server and the IP address of the first server is determined, and finally the IPMI address of the first server is reset, so that the actual physical address of the first server and the IP address of the network can be automatically bound without human intervention, and the IPMI address of the first server can be allocated, ensuring that the management system can correctly communicate and manage the first server.

[0090] Optionally, the location information is determined based on an original location of the first server in the cabinet and a recommended location of the first server in the cabinet, and the recommended location is obtained by a preset location judgment logic. Step S101 includes:

[0091] Using the multiple cameras, collecting the original position of the first server in the cabinet;

[0092] Acquiring the recommended location by using the preset location judgment logic includes:

[0093] Obtaining the space size required by the first server and the remaining space of the cabinet;

[0094] Determining whether the first server is the first server of the cabinet;

[0095] When the first server is the first server of the cabinet, determining whether the original position is installed from a first sequential position;

[0096] When it is determined that the original position is installed from the first sequence position, determining that the recommended position is the same as the original position;

[0097] When the first server is not the first server of the cabinet, determining whether the position size between the original position of the first server and at least one other server already on the rack in the cabinet is not greater than a preset position size;

[0098] When the distance between the original position of the first server and other servers already mounted in the cabinet is not greater than a preset distance, determining that the recommended position is the same as the original position;

[0099] When the recommended location is the same as the original location, the location information in the first relevant information of the first server is determined to be the original location.

[0100] Specifically, in an embodiment of the present application, the position information of the first server in the cabinet collected by multiple cameras is the actual position of the first server obtained by adjusting the original position and the recommended position, wherein the original position is the position where the first server is placed in the cabinet after the technician manually puts the first server on the cabinet in advance, and the recommended position is the current cabinet position situation collected by the management system through multiple cameras, and the best position where the first server can be installed according to the output of the pre-set position judgment logic. After obtaining the recommended position, if the technician believes that it is necessary to adjust the position of the first server, the position of the first server can be adjusted by manual adjustment or machine adjustment. The position information at this time is the recommended position. If the technician believes that no adjustment is required, the information of the original position of the first server is used as the position information of the first server.

[0101] Figure 5 is a flow chart of outputting a recommended location through location judgment logic in a server management method provided by an embodiment of the present application, such as Figure 5 As shown,

[0102] First, the original position of the first server in the cabinet after it is put on the shelf is captured through multiple cameras set above the cabinet (for example, 1U to 4U). Further, the position size required by the first server (for example, 4U) is obtained through the product information of the first server contained in the first asset information. Then, the remaining position of the current cabinet is captured through multiple cameras (at this time, the remaining position should include the position occupied by the original position of the first server) to determine whether the first server is the first server in the cabinet. When the remaining position of the cabinet is the same as all the positions contained in the cabinet, the first server is the first server in the cabinet. When the remaining position of the cabinet is not exactly the same as all the positions contained in the cabinet, the first server is not the first server in the cabinet, and there are other servers in the cabinet that have been put on the shelf.

[0103] In the case that the first server is the first server in the cabinet, determine whether the original position of the first server is installed from the first sequence position (the first sequence position is understood as the first position or the last position of the cabinet). In order to ensure the reasonable occupancy and allocation of each position of the cabinet, the first server should be installed from the starting position of the cabinet. Therefore, when it is determined that the original position has been installed from the first sequence position, the recommended position of the first server at this time also indicates that the first server is installed from the first sequence position. At this time, the recommended position is the same as the original position.

[0104] In the case that the first server is not the first server in the cabinet, it is necessary to further determine whether the position size between the original position of the first server and at least one other server already on the cabinet is not greater than the preset position size (for example, 2U). When the position size between the original position of the first server and other servers already on the cabinet is not greater than the preset position size, for example, the position size between the original position and other adjacent servers is 1U or 2U, it means that the position between the original position and at least one other server already on the cabinet is a position reserved by a technician and cannot be occupied by the first server. Therefore, the recommended position is the position of the original position. At this time, it is determined that the recommended position is the same as the original position. When the recommended position is the same as the original position, the position information in the first related information of the first server is directly determined to be the original position.

[0105] Through the above embodiment, the installation position recommended by the management system for the first server is determined based on the position judgment logic. The recommended position can be used as a reference for the installation position of the first server, thereby achieving a reasonable allocation of various positions of the cabinet. The location information of the first server is determined based on the original position and the recommended position, which can reduce the number of subsequent server position adjustments and improve the accuracy of the subsequent determination of the correspondence between the location information and the IP address.

[0106] Optionally, the method further comprises:

[0107] When the first server is the first server of the cabinet and it is determined that the original position is not installed starting from the first sequence position, determining the recommended position based on the first sequence position and the position size required by the first server;

[0108] issuing, by the management system, prompt information for indicating the recommended position, wherein the prompt information is used to indicate that it is recommended to install the first server starting from the first sequence position;

[0109] When the first server is not the first server in the cabinet, and the position size between the original position of the first server and other servers already on the cabinet is greater than the preset position size, the recommended position is determined based on the free positions in the cabinet adjacent to the other servers already on the cabinet and the position size required by the first server;

[0110] Prompt information indicating the recommended position is issued by the management system, and the prompt information is used to indicate that it is recommended to install the first server starting from the vacant position.

[0111] Specifically, in an embodiment of the present application, when the first server is the first server in the cabinet, and it is determined that the original position of the first server is not installed from the first sequence position, for example, when the required position size of the first server is 4U, the first server as the first server in the cabinet is installed from the 2U position, and the original position is 2U~5U. At this time, it is necessary to determine the recommended position based on the first sequence position and the required position size of the first server. The first sequence position is 1U, then the recommended position at this time is 1U~4U. At this time, it is ensured that the 1U position of the cabinet is reasonably allocated, and the situation where the 2U~5U position is occupied will not make it difficult to flexibly allocate the 1U position to other servers.

[0112] Therefore, after determining the recommended position, the management system can further issue a prompt message indicating the recommended position. The prompt message is used to indicate that it is recommended to install the first server starting from the first sequence position. For example, the management system controls the indicator light of the corresponding position (1U~4U) to flash, or the management system initiates an email, text message, voice or other prompt message to the technician's terminal.

[0113] When the first server is not the first server in the cabinet, and the position size between the original position of the first server and other servers already on the cabinet is greater than the preset position size, for example, the position size between the original position of the first server and other adjacent servers is 3U. At this time, the 3U position is difficult to be flexibly allocated to other servers. Therefore, it is necessary to determine the recommended position of the first server based on the free positions adjacent to other servers already on the cabinet and the position size required by the first server. For example, the recommended position indicates that the first server should be installed starting from the free positions adjacent to other servers already on the cabinet. A prompt message indicating the recommended position is issued through the management system, and the prompt message is used to indicate that it is recommended to install the first server starting from the free position.

[0114] Through the above embodiments, in the above two situations, when the original location of the first server is not the optimal solution, the management system can issue a prompt to recommend a reasonable location for the server that has been put on the shelf, so as to facilitate the rational use of the cabinet location.

[0115] Optionally, collecting the original position of the first server in the cabinet by using the multiple cameras includes:

[0116] Collecting, by means of the multiple cameras, first asset information included in the server nameplate of the first server and the size of the server nameplate in the shooting pictures of the multiple cameras;

[0117] Based on the size, an original position of the first server in the cabinet is calculated.

[0118] Specifically, in the embodiment of the present application, the server nameplate of the first server is collected by multiple cameras. Figure 6 is a schematic diagram of a server nameplate provided in an embodiment of the present application, such as Figure 6 As shown, a barcode is provided on the server nameplate, and multiple cameras can scan the information of the barcode on the server nameplate to obtain the first asset information of the first server. Moreover, since the positions of the cabinet and multiple cameras are relatively fixed, after the servers are put on the shelf, the sizes of the positions of the nameplates of each server on the shooting screens of multiple cameras can be known in advance. Therefore, the original position of the first server in the cabinet can be calculated and determined through the sizes of the server nameplates in the shooting screens of multiple cameras and the positions of the server nameplates in the shooting screens of multiple cameras.

[0119] Through the above embodiment, the original position of the first server can be quickly determined based on the imaging of the server nameplate by multiple cameras, thereby achieving efficiency and convenience in the original position acquisition process.

[0120] Optionally, the multiple cameras include a first camera and a second camera having the same parameters, the first camera and the second camera are distributed at the upper left corner and the upper right corner of the cabinet, and are symmetrically distributed with respect to a center line of the cabinet, and the calculating the original position of the first server in the cabinet based on the size includes:

[0121] Acquire a first imaging plane coordinate of the server nameplate on the first camera and a second imaging plane coordinate of the server nameplate on the second camera;

[0122] Calculate the parallax of the server nameplate between the first camera and the second camera based on the first imaging plane coordinates and the second imaging plane coordinates;

[0123] The original position of the first server in the cabinet is determined according to the distance between the first camera and the second camera, the parallax, the focal lengths of the multiple cameras, and the height of the first server, wherein the unit of the parallax is pixel.

[0124] Specifically, in the embodiments of the present application, Figure 2 As shown, the multiple cameras include a first camera and a second camera with the same parameters. The first camera and the second camera are distributed at the upper left corner and the upper right corner of the cabinet, and are symmetrically distributed with respect to the center line of the cabinet. As an example, the first camera is distributed at the upper left corner of the cabinet, and the second camera is distributed at the upper right corner of the cabinet.

[0125] Figure 7 is a schematic diagram of determining the original location of a first server provided by an embodiment of the present application, such as Figure 7 shown.

[0126] First, get the server nameplate in the first camera ( Figure 7 The first imaging plane coordinates ( Figure 7 U1 in the second camera ( Figure 7 The second imaging plane coordinates ( Figure 7 U2 in the figure), calculate the parallax (U1-U2) of the server nameplate between the first camera and the second camera according to the first imaging plane coordinates and the second imaging plane coordinates, and further determine the distance (U1-U2) of the first server between the head and the second camera according to the imaging of the first camera nameplate on the shooting screen of the first camera and the second camera. Figure 7 D in the middle), parallax (U1-U2), focal length of multiple cameras ( Figure 7 f) and the height of the first server ( Figure 7The original position of the first server in the cabinet is determined, where the unit of the parallax is pixel.

[0127] Through the above embodiments, without manual operation, the management system can quickly calculate the original position in the server cabinet directly through the images collected by the camera.

[0128] Optionally, the location information is obtained by the following calculation formula:

[0129] d = U1-U2;

[0130] The location information of the first server is (z, z+u);

[0131] Among them, z represents the upper limit of the server in the cabinet in the location information, z+u represents the lower limit of the server in the cabinet in the location information, u represents the height of the first server, D represents the distance between the first camera and the second camera, d represents the parallax, U1 represents the first imaging plane coordinates of the server nameplate on the first camera, U2 represents the second imaging plane coordinates of the server nameplate on the second camera, f represents the focal length of the multiple cameras, and the first asset information includes the height of the first server.

[0132] Specifically, in the embodiment of the present application, the location information of the first server can be calculated by the above calculation formula. The original position of the first server is calculated by measuring the parallax (d=U1-U2) between the two viewpoints U1 and U2 of the first camera and the second camera. For example, assuming that the distance between the first camera and the second camera is D, the focal lengths of the first camera and the second camera are both f, the vertical distance between the server nameplate and the camera is z, the first imaging plane coordinates of the server nameplate on the first camera are U1, and the second imaging plane coordinates of the server nameplate on the second camera are U2. According to the relationship between similar triangles, the following formula can be obtained:

[0133]

[0134] After sorting, d=U1-U2, therefore, the original position of the first server is: (z,z+u), where u is the height of the first server.

[0135] Through the above embodiment, the location information of the first server can be quickly determined based on the image of the server nameplate of the first server.

[0136] Optionally, a Hall sensor is provided on the cabinet, and before determining that the server is mounted on the cabinet, the method further includes:

[0137] When the cabinet door is opened, a door opening signal is input to the management system through the Hall sensor;

[0138] The management system starts the acquisition functions of the multiple cameras based on the door opening signal;

[0139] Using multiple cameras arranged on the cabinet, collecting the movement direction of the first server entering and exiting the cabinet;

[0140] When the moving direction of the first server is toward the cabinet and the size of the first server in the captured images of the multiple cameras becomes smaller and smaller, it is determined that the first server is in a state of being put on the rack;

[0141] When the moving direction of the first server is the direction away from the cabinet, and the size of the first server in the captured images of the multiple cameras becomes larger and larger, it is determined that the first server is in a state of being removed from the rack;

[0142] The method further comprises:

[0143] After it is determined that the first server is removed from the shelf, the first related information stored in the database and related to the first server is discarded, and the discarded first related information is transferred to the historical record.

[0144] Specifically, in the embodiments of the present application, Figure 8 is a schematic diagram of a Hall sensor on a cabinet provided in an embodiment of the present application, such as Figure 8As shown, the Hall sensor is located on the surface of the cabinet. When the door of the cabinet is opened, the Hall sensor can detect that the door of the cabinet is opened, indicating that the server is started to be loaded and unloaded. At this time, the Hall sensor inputs a door opening signal to the management system. Based on the door opening signal sent by the Hall sensor, the management system controls multiple cameras on the cabinet to start the collection function. Through the multiple cameras set on the cabinet, the moving direction of the first server in and out of the cabinet is collected. The moving direction includes moving in the direction toward the cabinet and moving in the direction away from the cabinet. When the moving direction of the first server is toward the cabinet, and the size of the first server in the collection pictures of the multiple cameras is getting smaller and smaller, it can be determined that the first server is in the state of being loaded and pushed into the cabinet; when the moving direction of the first server is in the direction away from the cabinet, and the size of the first server in the collection pictures of the multiple cameras is getting larger and larger, it can be determined that the first server is in the state of being unloaded and moved out of the server. After it is determined that the first server has been removed from the shelf, since the location information of the removed first server has changed, it is necessary to discard the first related information stored in the database and transfer the discarded first related information to the historical records so that the technicians can view the records of taking the servers off the shelves and off the shelves of each server in the cabinet through the historical records.

[0145] Through the above embodiment, the on-shelf and off-shelf status of the first server can be determined through multiple cameras, and after it is determined that the first server has been taken off the shelves, the first related information related to the first server that has been taken off the shelves will be transferred to the historical record, and the recording and abolition process of the first related information of the server can be automatically completed without human intervention.

[0146] Optionally, the determining that the first server is to be removed from the shelf includes:

[0147] Reading the IP address in the first asset information of the first server recorded in the database;

[0148] When a connection relationship cannot be established with the IP address of the first server, determining that the first server is removed from the shelf;

[0149] After determining that the second server is on the shelf, collecting second asset information of the second server through the multiple cameras;

[0150] comparing the second relevant information of the second server with the first asset information in the first relevant information that has been removed from the historical record;

[0151] Determine whether the second server is the first server that has been decommissioned:

[0152] When it is determined that the second server is the first server that has been delisted, the first related information corresponding to the first server that has been delisted and stored in the historical record is transferred to the database for storage as the second related information of the second server.

[0153] Specifically, in the embodiment of the present application, when the camera determines that the first server is in a state of being taken off the shelf, the management system needs to obtain the pre-recorded IP address of the first server in a state of being taken off the shelf from the database, and confirm whether a network connection can be established with the first server through the IP address (Ping operation). When it is determined that a connection cannot be established with the first server through the IP address of the first server (Ping fails), it can be determined that the first server corresponding to the IP address has been taken off the shelf.

[0154] After it is determined that the second server is put on the shelf, the second asset information of the second server is collected through multiple cameras, that is, the barcode on the server nameplate of the second server is scanned to obtain the second relevant information of the second server, and the second relevant information of the second server is compared with the first asset information in the first relevant information that has been taken off the shelf in the historical record. When the first asset information is the same as the second asset information, it is determined that the second server is the first server that has been taken off the shelf. At this time, the other first relevant information corresponding to the first server that has been taken off the shelf stored in the historical record except for the location information of the first server can be directly transferred to the database for storage as the second relevant information of the second server, and the location information of the second server can be stored in the database.

[0155] Through the above embodiment, after the first server is taken off the shelf, it is possible to determine whether the second server is the first server that has been taken off the shelf by reading the database, detecting the connection, collecting camera information and comparing historical records, and store the corresponding information. The historical records can facilitate tracking of server replacement and management of server information, thereby improving the convenience of the server listing process and server management.

[0156] Optionally, the step S103 includes:

[0157] Compare the second asset information with the multiple asset information in the database to determine the IP address in the first asset information that is consistent with the second asset information among the multiple asset information;

[0158] Writing the correspondence between the location information of the first server and the IP address into the database;

[0159] The resetting of the IPMI address of the first server includes: resetting the IPMI address of the first server by the management system according to a set network address range and using an out-of-band management technology.

[0160] Specifically, in an embodiment of the present application, during the comparison process of the first asset information and the second asset information, it is necessary to compare the second asset information with the asset information of multiple servers stored in the database, determine the first asset information of the first server among the asset information of the multiple servers stored in the database, bind the correspondence between the IP address of the first server and the first related information of the first server, and write the correspondence between the location information of the first server and the IP address into the database.

[0161] In this process, the main task is to bind the IP address of the first server to the location information of the first server, so that the management system can know the actual location of the server connected to the management system through the network in the cabinet, and when the second asset information contains more content than the first asset information, the second asset information can be directly stored in the database as the asset information of the first server. Furthermore, through the management system, the IPMI address of the first server can be reset according to the set network address range using out-of-band management technology.

[0162] Through the above embodiment, after the first server is put on the rack, the IP address of the first server in the network can be associated with the actual location of the first server in the cabinet, which facilitates the subsequent management of the first server.

[0163] Next, we will explain the process of removing and delisting the server. Fig. 9 is another flow chart of a server management method provided by the present application, such as Fig. 9 shown.

[0164] First, when the cabinet door is opened, the Hall sensor located in the cabinet inputs a door opening signal to the management system, and the management system turns on the camera acquisition function of the cabinet. Further, based on the movement direction of the third server captured by the camera, it is determined whether the third server is put on the shelf or taken off the shelf. When it is determined that the third server is taken off the shelf, the location information in the first relevant information of the third server in the database is transferred to the historical record, thereby completing the removal process of the third server.

[0165] After the fourth server is put on the shelf, the barcode on the server nameplate of the fourth server is scanned, and the location information of the fourth server is identified to obtain the second relevant information of the fourth server and write it into the database. Further, it is determined whether the shelf location of the fourth server is the best solution. If not, a prompt message is sent to the management system to give a recommended location. Further, after the fourth server is connected to the network, the IP address of the fourth server is obtained through the DHCP service provided by the management system. Further, the management system obtains the second asset information of the fourth server through the out-of-band management technology, and compares it with the first asset information of the fourth server to determine the corresponding relationship between the actual location of the fourth server in the cabinet and the IP address. Finally, the management system resets the IPMI address of the fourth server through the preset cabinet network segment using the IPMI out-of-band management technology. So far, the fourth server is put on the shelf.

[0166] Optionally, the technical solution of the present application can further expand the management system so as to obtain the IP information stored in the database. At the same time, by using the out-of-band management technology, the data information related to the operation of the server is read from the baseboard management controller (BMC) of the server. Then, the obtained information is integrated into a monitoring page of a management system to realize dynamic supervision of the server.

[0167] Specifically, the management system can connect to the database and read the IP addresses stored in it by setting up the monitoring page. Then, using out-of-band management technology, it can access server hardware-level information such as temperature, power status, fan speed, etc. through the BMC. These data can help administrators understand the operating status and health of the server in real time.

[0168] Furthermore, the management system integrates the information obtained from the database and BMC into the monitoring page, and displays the performance data of multiple servers on multiple cabinets through the monitoring interface, and supervises them in a dynamic way. The administrator can monitor the operating status of the server in real time through the monitoring page, discover and solve potential problems in time, and ensure the normal operation of the server.

[0169] It enables administrators to easily obtain and monitor the server's IP address and information such as performance data related to server operation, thereby performing dynamic server supervision.

[0170] In summary, the technical solution of this application can achieve the following technical effects:

[0171] 1. Using the server nameplate as the collection point, the server information can be automatically collected and managed after the server is put on the shelf, which expands the scope of application, greatly reduces labor costs and increases benefits;

[0172] 2. Adopt binocular depth calculation algorithm to automatically obtain the server's location information, reduce the amount of manual calculation of server height, and improve efficiency;

[0173] 3. Adopt soft router DHCP to STATIC technology to automatically configure and manage the IP addresses of the servers on the racks, and intelligent processing with almost zero human involvement to further improve the automation level of cabinet management;

[0174] 4. Through multiple cameras, automatically determine the server's listing and delisting actions, automatically update the server's location and IP information, and realize intelligent and automated supervision services for the server;

[0175] 5. There is an algorithm for automatically determining the recommended position, which effectively standardizes the shelf position and improves the space utilization of the cabinet.

[0176] Fig.10 is a schematic diagram of a server management device provided by the present application, such as Fig.10 As shown, an embodiment of the present application provides a server management device, the device comprising:

[0177] A first related information acquisition module 11 is used to, after determining that the first server is on the rack, acquire first related information of the first server through multiple cameras arranged on the cabinet, and store the first related information in a database, wherein the first related information includes location information of the first server and first asset information of the first server;

[0178] A second asset information acquisition module 12, configured to acquire second asset information of the first server through the management system after the first server is connected to the management system through communication;

[0179] The comparison module 13 is used to compare the first asset information in the database with the second asset information obtained by the management system, determine the correspondence between the first relevant information and the IP address of the first server, and reset the IPMI address of the first server.

[0180] Optionally, the location information is determined based on an original location of the first server in the cabinet and a recommended location of the first server in the cabinet, and the recommended location is obtained by a preset location judgment logic. The first related information acquisition module 11 includes:

[0181] A collection module, used for collecting the original position of the first server in the cabinet through the multiple cameras;

[0182] The recommended location acquisition module is used to acquire the recommended location through the preset location judgment logic, including:

[0183] An acquiring unit, configured to acquire the space required by the first server and the remaining space of the cabinet;

[0184] A first judging unit, configured to judge whether the first server is the first server of the cabinet;

[0185] a first determining unit, configured to determine whether the original position is installed from a first sequential position when the first server is the first server of the cabinet;

[0186] a second determining unit, configured to determine that the recommended position is the same as the original position when it is determined that the original position is installed starting from the first sequence position;

[0187] A second judgment unit is used to judge whether the position size between the original position of the first server and at least one other server already on the rack in the cabinet is not greater than a preset position size when the first server is not the first server in the cabinet;

[0188] A third determining unit, configured to determine that the recommended position is the same as the original position when the position size between the original position of the first server and other servers already mounted in the cabinet is not greater than a preset position size;

[0189] A fourth determining unit is configured to determine, when the recommended location is the same as the original location, that the location information in the first relevant information of the first server is the original location.

[0190] Optionally, the device further comprises:

[0191] a fifth determining unit, configured to determine the recommended position based on the first sequence position and a position size required by the first server when the first server is the first server of the cabinet and it is determined that the original position is not installed starting from the first sequence position;

[0192] A first indicating unit, configured to issue a prompt message indicating the recommended position through the management system, wherein the prompt message indicates that it is recommended to install the first server starting from the first sequence position;

[0193] a sixth determining unit, configured to determine the recommended position based on an empty position in the cabinet adjacent to the other servers already on the rack and a position size required by the first server when the first server is not the first server in the cabinet and the position size between the original position of the first server and other servers already on the rack in the cabinet is greater than the preset position size;

[0194] The second indicating unit is used to issue a prompt message indicating the recommended position through the management system, wherein the prompt message is used to indicate that it is recommended to install the first server starting from the vacant position.

[0195] Optionally, the acquisition module includes:

[0196] A collection unit, configured to collect, through the multiple cameras, the first asset information included in the server nameplate of the first server and the size of the server nameplate in the shooting pictures of the multiple cameras;

[0197] A calculation unit is used to calculate an original position of the first server in the cabinet based on the size.

[0198] Optionally, the multiple cameras include a first camera and a second camera with the same parameters, the first camera and the second camera are distributed at the upper left corner and the upper right corner of the cabinet, and are symmetrically distributed with respect to a center line of the cabinet, and the computing unit includes:

[0199] An imaging plane coordinate acquisition unit, used to acquire a first imaging plane coordinate of the server nameplate on the first camera and a second imaging plane coordinate of the server nameplate on the second camera;

[0200] a parallax calculation unit, configured to calculate the parallax of the server nameplate between the first camera and the second camera based on the first imaging plane coordinates and the second imaging plane coordinates;

[0201] An original position determination unit is used to determine the original position of the first server in the cabinet according to the distance between the first camera and the second camera, the parallax, the focal lengths of the multiple cameras and the height of the first server, wherein the unit of the parallax is pixel.

[0202] Optionally, a Hall sensor is provided on the cabinet, and the device further comprises:

[0203] A door opening signal input module, used for inputting a door opening signal to the management system through the Hall sensor when the cabinet door is opened before the server is determined to be on the rack;

[0204] A collection function activation module, used for the management system to activate the collection functions of the multiple cameras based on the door opening signal;

[0205] A moving direction acquisition module, used to acquire the moving direction of the first server entering and exiting the cabinet through a plurality of cameras arranged on the cabinet;

[0206] A first shelf-loading state determining module, configured to determine that the first server is in a shelf-loading state when the moving direction of the first server is toward the cabinet and the size of the first server in the acquisition images of the multiple cameras becomes smaller and smaller;

[0207] A second shelf status determination module, configured to determine that the first server is in a state of being de-shelved when the moving direction of the first server is a direction away from the cabinet and the size of the first server in the captured images of the multiple cameras becomes larger and larger;

[0208] The device also includes:

[0209] The abandonment module is used to abandon the first related information about the first server stored in the database after determining that the first server is removed from the shelf, and transfer the abandoned first related information to the historical record.

[0210] Optionally, the discarding module includes:

[0211] A reading unit, configured to read the IP address in the first asset information of the first server recorded in the database;

[0212] A delisting unit, configured to determine that the first server is delisted when a connection relationship cannot be established with the IP address of the first server;

[0213] A second asset information collection unit is used to collect second asset information of the second server through the multiple cameras after determining that the second server is on the shelf;

[0214] A comparing unit, configured to compare the second relevant information of the second server with the first asset information in the first relevant information that has been removed from the historical record;

[0215] The unit for determining whether to remove the server from the shelf is used to determine whether the second server is the first server that has been removed from the shelf:

[0216] The transfer unit is used to transfer the first relevant information corresponding to the first server that has been delisted and stored in the historical record to the database for storage as the second relevant information of the second server when it is determined that the second server is the first server that has been delisted.

[0217] Optionally, the comparison module 13 includes:

[0218] An IP address determination unit, configured to compare the second asset information with a plurality of asset information in the database, and determine an IP address in a first asset information in the plurality of asset information that is consistent with the second asset information;

[0219] A writing unit, configured to write the corresponding relationship between the location information of the first server and the IP address into the database;

[0220] The resetting unit is used to reset the IPMI address of the first server, and comprises a resetting subunit, which is used to reset the IPMI address of the first server by using the out-of-band management technology through the management system according to the set network address range.

[0221] Based on the same inventive concept, another embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the server management method as described in any of the above embodiments.

[0222] Based on the same inventive concept, another embodiment of the present application further provides a computer program product, including a computer program, which is executed by a processor to implement the server management method as described in any of the above embodiments.

[0223] Based on the same inventive concept, another embodiment of the present application further provides a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the server management method as described in any of the above embodiments is implemented.

[0224] As for the device, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0225] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0226] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0227] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0228] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0229] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0230] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0231] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0232] The server management method, device, equipment and medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A server management method, characterized in that: The method comprises: After determining that the first server is on the rack, first relevant information of the first server is obtained through multiple cameras arranged on the cabinet, and the first relevant information is stored in a database, wherein the first relevant information includes location information of the first server and first asset information of the first server; After the first server is connected to the management system through communication, obtaining the second asset information of the first server through the management system; The first asset information in the database is compared with the second asset information acquired by the management system, the corresponding relationship between the first relevant information and the IP address of the first server is determined, and the IPMI address of the first server is reset.

2. The server management method according to claim 1, characterized in that: The cabinet is provided with a Hall sensor, and before determining that the server is mounted, the following steps are also included: When the cabinet door is opened, a door opening signal is input to the management system through the Hall sensor; The management system starts the acquisition functions of the multiple cameras based on the door opening signal; Using multiple cameras arranged on the cabinet, collecting the movement direction of the first server entering and exiting the cabinet; When the moving direction of the first server is toward the cabinet and the size of the first server in the captured images of the multiple cameras becomes smaller and smaller, it is determined that the first server is in a state of being put on the rack; When the moving direction of the first server is the direction away from the cabinet, and the size of the first server in the captured images of the multiple cameras becomes larger and larger, it is determined that the first server is in a state of being removed from the rack; The method further comprises: After it is determined that the first server is removed from the shelf, the first related information stored in the database and related to the first server is discarded, and the discarded first related information is transferred to the historical record.

3. The server management method according to claim 2, characterized in that: The step of determining to remove the first server from the shelf includes: Reading the IP address in the first asset information of the first server recorded in the database; When a connection relationship cannot be established with the IP address of the first server, determining that the first server is removed from the shelf; After determining that the second server is on the shelf, collecting second asset information of the second server through the multiple cameras; comparing the second relevant information of the second server with the first asset information in the first relevant information that has been removed from the historical record; Determine whether the second server is the first server that has been decommissioned: When it is determined that the second server is the first server that has been delisted, the first related information corresponding to the first server that has been delisted and stored in the historical record is transferred to the database for storage as the second related information of the second server.

4. The server management method according to claim 1, characterized in that: The comparing the first asset information in the database with the second asset information acquired by the management system to determine the correspondence between the first relevant information and the IP address of the first server includes: Compare the second asset information with the multiple asset information in the database to determine the IP address in the first asset information that is consistent with the second asset information among the multiple asset information; Writing the correspondence between the location information of the first server and the IP address into the database; The resetting of the IPMI address of the first server includes: resetting the IPMI address of the first server by the management system according to a set network address range and using an out-of-band management technology.

5. The server management method according to claim 1, characterized in that: The location information is determined based on an original location of the first server in the cabinet and a recommended location of the first server in the cabinet, wherein the recommended location is obtained by a preset location judgment logic, and the first related information of the first server is obtained by using a plurality of cameras arranged on the cabinet, including: Using the multiple cameras, collecting the original position of the first server in the cabinet; Acquiring the recommended location by using the preset location judgment logic includes: Obtaining the space size required by the first server and the remaining space of the cabinet; Determining whether the first server is the first server of the cabinet; When the first server is the first server of the cabinet, determining whether the original position is installed from a first sequential position; When it is determined that the original position is installed from the first sequence position, determining that the recommended position is the same as the original position; When the first server is not the first server of the cabinet, determining whether the position size between the original position of the first server and at least one other server already on the rack in the cabinet is not greater than a preset position size; When the distance between the original position of the first server and other servers already mounted in the cabinet is not greater than a preset distance, determining that the recommended position is the same as the original position; When the recommended location is the same as the original location, the location information in the first relevant information of the first server is determined to be the original location.

6. The server management method according to claim 5, characterized in that: The method further comprises: When the first server is the first server of the cabinet and it is determined that the original position is not installed starting from the first sequence position, determining the recommended position based on the first sequence position and the position size required by the first server; issuing, by the management system, prompt information for indicating the recommended position, wherein the prompt information is used to indicate that it is recommended to install the first server starting from the first sequence position; When the first server is not the first server in the cabinet, and the position size between the original position of the first server and other servers already on the cabinet is greater than the preset position size, the recommended position is determined based on the free positions in the cabinet adjacent to the other servers already on the cabinet and the position size required by the first server; Prompt information indicating the recommended position is issued by the management system, and the prompt information is used to indicate that it is recommended to install the first server starting from the vacant position.

7. The server management method according to claim 5, characterized in that: The collecting the original position of the first server in the cabinet by using the multiple cameras includes: Collecting, by means of the multiple cameras, first asset information included in the server nameplate of the first server and the size of the server nameplate in the shooting pictures of the multiple cameras; Based on the size, an original position of the first server in the cabinet is calculated.

8. The server management method according to claim 7, characterized in that: The multiple cameras include a first camera and a second camera having the same parameters, the first camera and the second camera are distributed at the upper left corner and the upper right corner of the cabinet and are symmetrically distributed with respect to the center line of the cabinet, and the calculating the original position of the first server in the cabinet based on the size includes: Acquire a first imaging plane coordinate of the server nameplate on the first camera and a second imaging plane coordinate of the server nameplate on the second camera; Calculate the parallax of the server nameplate between the first camera and the second camera based on the first imaging plane coordinates and the second imaging plane coordinates; The original position of the first server in the cabinet is determined according to the distance between the first camera and the second camera, the parallax, the focal lengths of the multiple cameras, and the height of the first server, wherein the unit of the parallax is pixel.

9. The server management method according to claim 8, characterized in that: The position information is obtained by the following calculation formula: d = U1-U2; The location information of the first server is (z, z+u); Among them, z represents the upper limit of the server in the cabinet in the location information, z+u represents the lower limit of the server in the cabinet in the location information, u represents the height of the first server, D represents the distance between the first camera and the second camera, d represents the parallax, U1 represents the first imaging plane coordinates of the server nameplate on the first camera, U2 represents the second imaging plane coordinates of the server nameplate on the second camera, f represents the focal length of the multiple cameras, and the first asset information includes the height of the first server.

10. A server management device, characterized in that: The device comprises: A first related information acquisition module is used to, after determining that the first server is on the rack, acquire first related information of the first server through multiple cameras arranged on the cabinet, and store the first related information in a database, wherein the first related information includes location information of the first server and first asset information of the first server; A second asset information acquisition module, configured to acquire second asset information of the first server through the management system after the first server is connected to the management system through communication; A comparison module is used to compare the first asset information in the database with the second asset information obtained by the management system, determine the correspondence between the first relevant information and the IP address of the first server, and reset the IPMI address of the first server.

11. An electronic device, characterized in that: The system comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the server management method according to any one of claims 1 to 9.

12. A computer-readable medium, characterized in that A computer program is stored thereon, wherein when the computer program is executed by a processor, the server management method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Server basic information management system and method

    CN111784179A

  • Machine room server out-of-band information management device and method and machine room

    CN113806179A

  • Server management method and device and related equipment

    CN113821838A

  • Server position information configuration method and device, equipment and medium

    CN114826897A

  • IP address asset management method, device and system and storage medium

    CN117793056A