A server management method, device, equipment and medium
By installing cameras on server racks to automatically collect location and asset information and communicating with the management system, the high cost and low efficiency problems caused by traditional manual management are solved. This achieves automated binding of server location and IP address, improving the accuracy and efficiency of the management system.
Patent Information
- Application Number
- CN202411095308.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2044-08-09
AI Technical Summary
Traditional server rack management relies on manual record keeping, resulting in high labor costs, a high risk of errors, and low management efficiency, making it difficult to meet the management needs of large-scale server racks.
By setting up multiple cameras on the server rack to acquire server location and asset information, and then communicating and connecting with the management system, the system automatically compares and binds IP addresses, thereby achieving automated binding and management of server location and IP addresses.
It can accurately bind server location and IP address without human intervention, reducing management costs and improving management efficiency and accuracy.
Smart Images

Figure CN119211196B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of server technology, and in particular to a server management method, apparatus, device and medium. Background Technology
[0002] With the surge in server usage and the continuous expansion of server room scale, server rack management technologies have become increasingly diversified.
[0003] In traditional server rack management, it is usually necessary to manually record the location of each server and manually assign and configure IP addresses. This management method has the following problems:
[0004] 1. High labor costs: Dedicated managers are needed for record keeping and management, which increases the company's operating costs.
[0005] 2. Prone to errors: Manual recording is prone to errors, resulting in inaccurate information such as server 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 racks. Summary of the Invention
[0007] In view of the above, embodiments of this application provide a server management method, apparatus, device, and medium to overcome or at least partially solve the above problems.
[0008] A first aspect of this application provides a server management method, the method comprising:
[0009] After the first server is confirmed to be on the rack, multiple cameras installed on the rack are used to obtain the first relevant information of the first server and store the first relevant information in the database. The first relevant information includes the location information of the first server and the first asset information of the first server.
[0010] After the first server establishes a communication connection with the management system, it obtains 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 obtained by the management system to determine the correspondence between the first relevant information and the IP address of the first server, and the IPMI address of the first server is reset.
[0012] Optionally, the location information is determined based on the original location of the first server in the rack and the recommended location of the first server in the rack. The recommended location is obtained through a pre-set location judgment logic. The step of acquiring the first relevant information of the first server through multiple cameras installed on the rack includes:
[0013] The original position of the first server in the rack is captured by the multiple cameras.
[0014] Obtaining the recommended location through the pre-set location determination logic includes:
[0015] Obtain the required space size for the first server, and the remaining space in the rack;
[0016] Determine whether the first server is the first server in the rack;
[0017] When the first server is the first server in the rack, determine whether the original position is installed starting from the first sequential position;
[0018] When the original position is determined to be the installation starting from the first sequence position, the recommended position is determined to be the same as the original position;
[0019] When the first server is not the first server in the rack, determine whether the distance between the original position of the first server and at least one other server already mounted in the rack is not greater than a preset distance.
[0020] When the distance between the original location of the first server and other servers already mounted in the rack is not greater than a preset location size, the recommended location is determined to be the same as the original location.
[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 includes:
[0023] When the first server is the first server in the rack, and it is determined that the original position is not installed starting from the first sequence position, the recommended position is determined based on the first sequence position and the required size of the first server.
[0024] The management system issues a prompt message indicating the recommended location, suggesting that the first server be installed starting from the first sequence position.
[0025] When the first server is not the first server in the rack, and the size of the space between the original position of the first server and other servers already mounted in the rack is greater than the preset position size, the recommended position is determined based on the available space adjacent to the other servers already mounted in the rack and the required space size of the first server.
[0026] The management system issues a prompt message indicating the recommended location, suggesting that the first server be installed starting from the available location.
[0027] Optionally, the step of capturing the original position of the first server in the rack using the plurality of cameras includes:
[0028] The first asset information contained in the server nameplate of the first server and the size of the server nameplate in the images captured by the multiple cameras are collected.
[0029] Based on the dimensions, calculate the original position of the first server in the rack.
[0030] Optionally, the plurality of cameras includes a first camera and a second camera with identical parameters. The first camera and the second camera are distributed in the upper left and upper right corners of the rack and are symmetrically distributed with respect to the center line of the rack. Calculating the original position of the first server in the rack based on the dimensions includes:
[0031] Obtain the first imaging plane coordinates of the server nameplate on the first camera and the second imaging plane coordinates of the server nameplate on the second camera;
[0032] Based on the first imaging plane coordinates and the second imaging plane coordinates, calculate the parallax of the server nameplate between the first camera and the second camera;
[0033] The original position of the first server in the cabinet is determined based on the distance between the first camera and the second camera, the parallax, the focal length of the plurality of cameras, and the height of the first server, wherein the unit of the parallax is pixels.
[0034] Optionally, the location information is obtained using the following calculation formula:
[0035] d = U1 - U2;
[0036] The location information of the first server is (z, z+u);
[0037] Where z represents the upper bound of the server in the rack in the location information, z+u represents the lower bound of the server in the rack 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 plurality of cameras, and the first asset information includes the height of the first server.
[0038] Optionally, the rack is equipped with a Hall sensor, and before determining whether the server is to be racked, it further includes:
[0039] When the cabinet door is opened, the Hall sensor sends an opening signal to the management system.
[0040] The management system activates the data acquisition function of the multiple cameras based on the door opening signal;
[0041] Multiple cameras installed on the rack are used to capture the movement direction of the first server as it enters and exits the rack.
[0042] If the first server is moving towards the rack and the size of the first server in the images captured by the multiple cameras is getting smaller and smaller, it is determined that the first server is in the process of being put into the rack.
[0043] When the first server is moving in a direction away from the rack, and the size of the first server in the images captured by the multiple cameras is getting larger and larger, it is determined that the first server is in the process of being taken off the rack.
[0044] The method further includes:
[0045] Once it is determined that the first server has been taken down, the first related information stored in the database related to the first server will be discarded, and the discarded first related information will be transferred to the history.
[0046] Optionally, determining that the first server has been taken offline includes:
[0047] Read the IP address from the first asset information of the first server in the records of the database;
[0048] If a connection cannot be established with the IP address of the first server, the first server is determined to be taken offline.
[0049] Once it is confirmed that the second server is online, the second asset information of the second server is collected through the multiple cameras;
[0050] 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 records;
[0051] Determine whether the second server is the same as the first server that has been delisted:
[0052] When it is determined that the second server is the first server that has been delisted, the first related information corresponding to the delisted first server stored in the historical records is transferred to the database and stored as the second related information of the second server.
[0053] Optionally, comparing the first asset information in the database with the second asset information obtained by the management system to determine the correspondence between the first relevant information and the IP address of the first server includes:
[0054] The second asset information is compared with multiple asset information in the database to determine the IP address of the first asset information that matches the second asset information among the multiple asset information;
[0055] Write the correspondence between the location information of the first server and the IP address into the database;
[0056] The step of resetting the IPMI address of the first server includes: resetting the IPMI address of the first server using out-of-band management technology according to the set network address range through the management system.
[0057] A second aspect of this application provides a server management device, the device comprising:
[0058] The first relevant information acquisition module is used to acquire first relevant information of the first server through multiple cameras set on the rack after it is determined that the first server is on the rack, and store the first relevant information in the database. The first relevant information includes the location information of the first server and the first asset information of the first server.
[0059] The second asset information acquisition module is used to acquire the second asset information of the first server through the management system after the first server and the management system are connected.
[0060] The 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 this application provides an electronic device including 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 this application provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the server management method as described in the first aspect.
[0063] The beneficial effects of this application are:
[0064] This application provides a server management method, apparatus, device, and medium, comprising: after determining that a first server is mounted, acquiring first relevant information of the first server through multiple cameras installed on the server rack, and storing the first relevant information in a database, wherein the first relevant information includes the location information of the first server and the first asset information of the first server; after the first server establishes a communication connection with a management system, acquiring second asset information of the first server through the management system; 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, and resetting the IPMI address of the first server.
[0065] After the server is deployed, multiple cameras can collect the server's location and primary asset information. Once the server is connected to the network, secondary asset information can be acquired. By comparing the primary and secondary asset information, it can be determined which asset information corresponds to the primary server's IP address. This establishes a correspondence between the relevant information and the primary server's IP address. Furthermore, the relationship between the primary server's location information and its IP address is determined. Finally, the primary server's IPMI address is reset. This achieves automated binding between the primary server's physical address and its network IP address, as well as the allocation of the primary server's IPMI address, without manual intervention. This ensures that the management system correctly communicates with and manages the primary server, thereby reducing manual management costs, improving the accuracy of server location and IP address matching, and enhancing server management efficiency. Attached Figure Description
[0066] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an undue limitation of this application.
[0067] To more clearly illustrate the technical solution of this application, the drawings used in the description of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0068] Figure 1 This is a flowchart illustrating a server management method according to an embodiment of this application;
[0069] Figure 2 This is a schematic diagram of the rack structure in a server management method provided in one embodiment of this application;
[0070] Figure 3 This is another structural diagram of the server rack in a server management method provided in one embodiment of this application;
[0071] Figure 4 This is an architecture diagram of server rack management in a server management method provided in one embodiment of this application;
[0072] Figure 5 This is a flowchart illustrating the output of a recommended location based on location judgment logic in a server management method provided in one embodiment of this application;
[0073] Figure 6 This is a schematic diagram of a server nameplate provided in one embodiment of this application;
[0074] Figure 7 This is a schematic diagram illustrating how to determine the original location of a first server according to an embodiment of this application;
[0075] Figure 8 This is a schematic diagram of a Hall sensor on a server rack according to an embodiment of this application.
[0076] Figure 9 This is another flowchart of a server management method provided in this application;
[0077] Figure 10 This is a schematic diagram of the framework of a server management device provided in this application. Detailed Implementation
[0078] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other.
[0079] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0080] Figure 1 This is a flowchart illustrating a server management method according to an embodiment of this application, as shown below. Figure 1 As shown, one embodiment of this application provides a server management method, the method comprising:
[0081] In step S101, after determining that the first server is mounted, the first relevant information of the first server is obtained through multiple cameras installed on the rack, and the first relevant information is stored in the database. The first relevant information includes the location information of the first server and the first asset information of the first server.
[0082] In step S102, after the first server establishes a communication connection with the management system, 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 and the second asset information obtained by the management system are compared to determine the correspondence between the first relevant information and the IP address of the first server, and the IPMI address of the first server is reset.
[0084] Figure 2 This is a schematic diagram of the rack structure in a server management method provided in one embodiment of this application. Figure 3 This is another structural diagram of a server rack in a server management method provided in one embodiment of this application. The server rack in this application is used to install, store, and manage multiple servers, such as... Figure 2 As shown, two cameras are installed above the cabinet, located at the upper left and upper right corners of the cabinet respectively, symmetrically distributed with the center line of the cabinet, forming a binocular vision system. The horizontal distance between the two cameras is D.
[0085] like Figure 3 As shown, in the rack, a positioning hole is set every 1U (the common rack height is 42U, and the height of each U (unit) is 1.75 inches (about 44.45 mm)) for mounting the server rails. There is no restriction on the height of the server in each rack, and servers of different heights (such as 1U, 2U, 3U, 4U, etc.) can be flexibly installed in the rack.
[0086] First, in step S101, the first server is a server that needs to be racked in a server rack but has not yet been associated and managed. After the first server is manually racked in the server rack by technicians, multiple cameras installed on the server rack (this embodiment uses two cameras as an example; in actual applications, the number of cameras and their installation positions can be set according to actual needs) are used to obtain the first relevant information of the racked first server. The first relevant information includes the location information of the first server and the first asset information of the first server. The location information is the position of the first server in the server rack after the technicians manually racked it in the rack (for example, if the height of the first server is 4U, the location information can be 1U to 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. The first relevant information of the racked first server is stored in a database, which can be set on a local server, cloud server, or other network storage device.
[0087] further, Figure 4 This is an architecture diagram of server rack management in a server management method provided in one embodiment of this application, as shown below. Figure 4 As shown, in step S102, the first server and the management system are connected to the internal switch in the cabinet via a network cable. Communication between the first server and the management system is achieved through the internal switch connected to the first server and the public switch connected to the server where the management system resides. The management system also communicates with the database. Through the network connection with the first server, and based on IPMI (Intelligent Platform Management Interface) out-of-band management technology, the management system can communicate with the first server's BMC (Baseboard Management Console) via the IPMI protocol. The controller (baseboard management controller) is a separate hardware chip or firmware embedded on the server's motherboard for monitoring, managing, diagnosing, and recovering server hardware. It communicates with the server to obtain the second asset information of the first server. This second asset information is the server's built-in asset information and contains at least the same content as the first asset information. The second asset information includes at least: the first server's hardware configuration information (such as processor model, memory capacity, and hard drive size), network configuration information (such as IP address, MAC address, and gateway), software information (such as detailed information about the operating system and applications installed on the first server, including operating system version, patch update status, and installed software packages), and operational status information (CPU utilization, memory utilization, and disk space utilization).
[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. The management system should contain second asset information for multiple servers. Therefore, it is necessary to determine whether there is second asset information in the management system that matches the first asset information. After the management system finds second asset information that matches the first asset information of the first server, it determines the correspondence between the IP address contained in the matched second asset information and the first related information of the first server. This mainly involves determining the correspondence between the location information of the first server and the IP address of the second asset information. This correspondence is then written into the database. Through the management system, in the preset rack network segment, the IPMI out-of-band management technology is used to reset the IPMI address of the first server corresponding to the location information in the rack. This ensures that the management system can communicate and manage the first server through the correct address, thereby achieving dynamic and intelligent server management.
[0089] Through the above embodiments, after the server is installed, multiple cameras collect the server's location information and first asset information. After the server connects to the network, second asset information is obtained. By comparing the first and second asset information, it can be determined which asset information corresponds to the first server's IP address. This establishes a correspondence between the first relevant information and the first server's IP address. Furthermore, the relationship between the first set of server location information and the first server's IP address is determined. Finally, the first server's IPMI address is reset. This achieves automated binding between the actual physical address of the first server and its network IP address, as well as the allocation of the first server's IPMI address, without manual intervention, ensuring that the management system can correctly communicate and manage the first server.
[0090] Optionally, the location information is determined based on the original location of the first server in the rack and the recommended location of the first server in the rack. The recommended location is obtained through a pre-set location judgment logic. Step S101 includes:
[0091] The original position of the first server in the rack is captured by the multiple cameras.
[0092] Obtaining the recommended location through the pre-set location determination logic includes:
[0093] Obtain the required space size for the first server, and the remaining space in the rack;
[0094] Determine whether the first server is the first server in the rack;
[0095] When the first server is the first server in the rack, determine whether the original position is installed starting from the first sequential position;
[0096] When the original position is determined to be the installation starting from the first sequence position, the recommended position is determined to be the same as the original position;
[0097] When the first server is not the first server in the rack, determine whether the distance between the original position of the first server and at least one other server already mounted in the rack is not greater than a preset distance.
[0098] When the distance between the original location of the first server and other servers already mounted in the rack is not greater than a preset location size, the recommended location is determined to be the same as the original location.
[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 this embodiment, the location information of the first server in the rack collected by multiple cameras is the actual location of the first server obtained after adjusting the original location and the recommended location. The original location is the position of the first server in the rack after the technician manually puts it on the rack in advance. The recommended location is the optimal location for the first server to be installed, output by the management system based on the current rack location collected by multiple cameras and the preset location judgment logic. After obtaining the recommended location, if the technician believes it is necessary to adjust the location of the first server, the location of the first server can be adjusted manually or by machine. The location information at this time is the recommended location. If the technician believes that no adjustment is needed, the original location information of the first server is used as the location information of the first server.
[0101] Figure 5 This is a flowchart illustrating the output of a recommended location based on location judgment logic in a server management method provided in one embodiment of this application, as shown below. Figure 5 As shown,
[0102] First, multiple cameras mounted above the rack capture images of the first server after it has been installed, showing its initial position (e.g., 1U to 4U) within the rack. Next, using the product information of the first server included in the first asset information, the required space size (e.g., 4U) for the first server is determined. Then, using multiple cameras, the remaining space in the rack (including the space occupied by the first server's initial position) is captured to determine if the first server is the first server in the rack. If the remaining space in the rack matches all the available spaces, then the first server is the first server in the rack. If the remaining space does not match all the available spaces, then the first server is not the first server in the rack, and other servers already installed exist in the rack.
[0103] When the first server is the first server in the rack, determine whether the original location of the first server is to start installation from the first sequential position (the first sequential position is understood as the first or last position in the rack). In order to ensure the reasonable use and allocation of each position in the rack, the first server should be installed starting from the beginning position of the rack. Therefore, when it is determined that the original location is to start installation from the first sequential position, the recommended location of the first server is also to indicate that the first server should start installation from the first sequential position. At this time, the recommended location is the same as the original location.
[0104] If the first server is not the first server in the rack, it is necessary to further determine whether the size of the original location of the first server and the space between it and at least one other server already mounted in the rack is not greater than the preset space size (e.g., 2U). If the size of the original location of the first server and the space between it and the other servers already mounted in the rack is not greater than the preset space size, for example, if the size of the original location and the space between it and other adjacent servers is 1U or 2U, it means that the space between the original location and the space between it and at least one other server already mounted in the rack is a space reserved by technicians and cannot be occupied by the first server. Therefore, the recommended location is the location of the original location. In this case, it is determined that the recommended location is the same as the original location. When the recommended location is the same as the original location, the location information in the first relevant information of the first server is directly determined to be the original location.
[0105] Through the above embodiments, the recommended installation location for the first server is determined by the location judgment logic. The recommended location can serve as a reference for the installation location of the first server, thereby achieving a reasonable allocation of various locations in the rack. Determining the location information of the first server based on the original location and the recommended location can reduce the number of subsequent server location adjustments and improve the accuracy of the correspondence between the subsequent location information and IP address.
[0106] Optionally, the method further includes:
[0107] When the first server is the first server in the rack, and it is determined that the original position is not installed starting from the first sequence position, the recommended position is determined based on the first sequence position and the required size of the first server.
[0108] The management system issues a prompt message indicating the recommended location, suggesting that the first server be installed starting from the first sequence position.
[0109] When the first server is not the first server in the rack, and the size of the space between the original position of the first server and other servers already mounted in the rack is greater than the preset position size, the recommended position is determined based on the available space adjacent to the other servers already mounted in the rack and the required space size of the first server.
[0110] The management system issues a prompt message indicating the recommended location, suggesting that the first server be installed starting from the available location.
[0111] Specifically, in this embodiment, when the first server is the first server in the rack and it is determined that the original position of the first server is not installed starting from the first priority position, for example, when the required space size of the first server is 4U, the first server as the first server in the rack is installed starting from the 2U position, and the original position is 2U to 5U. At this time, it is necessary to determine the recommended position based on the first priority position and the required space size of the first server. The first priority position is 1U, so the recommended position at this time is 1U to 4U. This ensures that the 1U position of the rack is reasonably allocated, and there will be no situation where the 1U position is difficult to be flexibly allocated to other servers because the 2U to 5U positions are occupied.
[0112] Therefore, after determining the recommended location, the management system can further issue prompts to indicate the recommended location. The prompts suggest that the first server should be installed starting from the first position. For example, the management system can control the indicator lights at the corresponding positions (1U to 4U) to flash, or send prompts via email, SMS, voice, etc. to the technicians' terminals.
[0113] When the first server is not the first server in the rack, and the space between the first server's original location and other servers already mounted in the rack is larger than a preset space size (e.g., the original location of the first server is 3U away from its adjacent servers), this 3U space is difficult to flexibly allocate to other servers. Therefore, a recommended location for the first server needs to be determined based on the available space adjacent to the already mounted servers in the rack and the required space size for the first server. For example, the recommended location might be to start installing the first server from an available space adjacent to an already mounted server. The management system then issues a prompt message indicating the recommended location, suggesting that the first server be installed starting from an available space.
[0114] Through the above embodiments, in the two situations described above, 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 already racked server, so as to facilitate the rational use of the rack space.
[0115] Optionally, the step of capturing the original position of the first server in the rack using the plurality of cameras includes:
[0116] The first asset information contained in the server nameplate of the first server and the size of the server nameplate in the images captured by the multiple cameras are collected.
[0117] Based on the dimensions, calculate the original position of the first server in the rack.
[0118] Specifically, in this embodiment of the application, multiple cameras are used to capture images of the server nameplate of the first server. Figure 6 This is a schematic diagram of a server nameplate provided in one embodiment of this application, as shown below. Figure 6 As shown, a barcode is set on the server nameplate. Multiple cameras can scan the information on the barcode on the server nameplate to obtain the first asset information of the first server. Furthermore, since the positions of the server rack and the multiple cameras are relatively fixed, the size and position of each server nameplate in the images captured by the multiple cameras can be known in advance after the server is installed. Therefore, by using the size and position of the server nameplate in the images captured by the multiple cameras, the original position of the first server in the server rack can be calculated and determined.
[0119] Through the above embodiments, the original location of the first server can be quickly determined based on the imaging of multiple cameras on the server nameplate, thus achieving efficiency and convenience in the original location acquisition process.
[0120] Optionally, the plurality of cameras includes a first camera and a second camera with identical parameters. The first camera and the second camera are distributed in the upper left and upper right corners of the rack and are symmetrically distributed with respect to the center line of the rack. Calculating the original position of the first server in the rack based on the dimensions includes:
[0121] Obtain the first imaging plane coordinates of the server nameplate on the first camera and the second imaging plane coordinates of the server nameplate on the second camera;
[0122] Based on the first imaging plane coordinates and the second imaging plane coordinates, calculate the parallax of the server nameplate between the first camera and the second camera;
[0123] The original position of the first server in the cabinet is determined based on the distance between the first camera and the second camera, the parallax, the focal length of the plurality of cameras, and the height of the first server, wherein the unit of the parallax is pixels.
[0124] Specifically, in the embodiments of this application, such as Figure 2 As shown, multiple cameras include a first camera and a second camera with the same parameters. The first camera and the second camera are distributed in the upper left and upper right corners of the cabinet and are symmetrically distributed with respect to the center line of the cabinet. As an example, the first camera is distributed in the upper left corner of the cabinet and the second camera is distributed in the upper right corner of the cabinet.
[0125] Figure 7 This is a schematic diagram illustrating the determination of the original location of a first server according to an embodiment of this application, as shown below. Figure 7 As shown.
[0126] First, obtain the server nameplate from the first camera ( Figure 7 The first imaging plane coordinates (S1) on the plane are ( Figure 7 The U1 in the middle and the server nameplate are on the second camera ( Figure 7 The second imaging plane coordinates on S2) Figure 7 Based on the coordinates of the first imaging plane and the second imaging plane, the parallax (U1-U2) of the server nameplate between the first camera and the second camera is calculated. Furthermore, the distance between the first server and the second camera is determined based on the image of the first camera nameplate on the images captured by the first and second cameras. Figure 7 D), parallax (U1-U2), focal length of multiple cameras ( Figure 7 (f) and the height of the first server ( Figure 7The parallax is represented by z, which determines the original position of the first server in the rack. The unit of parallax is pixels.
[0127] Through the above embodiments, without manual operation, the management system can quickly calculate the original position in the server rack directly through the images captured by the camera.
[0128] Optionally, the location information is obtained using the following calculation formula:
[0129] d = U1 - U2;
[0130] The location information of the first server is (z, z+u);
[0131] Where z represents the upper bound of the server in the rack in the location information, z+u represents the lower bound of the server in the rack 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 plurality of cameras, and the first asset information includes the height of the first server.
[0132] Specifically, in this embodiment, the position information of the first server can be calculated using the above 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 and second cameras. For example, assuming the distance between the first and second cameras is D, the focal length of both cameras is f, the vertical distance between the server nameplate and the camera is z, the coordinates of the server nameplate on the first imaging plane of the first camera are U1, and the coordinates of the server nameplate on the second imaging plane of the second camera are U2, based on the similar triangle relationship, the following formula can be obtained:
[0133]
[0134] After sorting, we can obtain: 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 embodiments, the location information of the first server can be quickly determined based on the imaging of the server nameplate of the first server.
[0136] Optionally, the rack is equipped with a Hall sensor, and before determining whether the server is to be racked, it further includes:
[0137] When the cabinet door is opened, the Hall sensor sends an opening signal to the management system.
[0138] The management system activates the data acquisition function of the multiple cameras based on the door opening signal;
[0139] Multiple cameras installed on the rack are used to capture the movement direction of the first server as it enters and exits the rack.
[0140] If the first server is moving towards the rack and the size of the first server in the images captured by the multiple cameras is getting smaller and smaller, it is determined that the first server is in the process of being put into the rack.
[0141] When the first server is moving in a direction away from the rack, and the size of the first server in the images captured by the multiple cameras is getting larger and larger, it is determined that the first server is in the process of being taken off the rack.
[0142] The method further includes:
[0143] Once it is determined that the first server has been taken down, the first related information stored in the database related to the first server will be discarded, and the discarded first related information will be transferred to the history.
[0144] Specifically, in the embodiments of this application, Figure 8 This is a schematic diagram of a Hall sensor on a server rack according to an embodiment of this application, as shown below. Figure 8As shown, the Hall sensor is located on the surface of the rack. When the rack door opens, the Hall sensor detects the opening, indicating the start of server mounting / unmounting. At this time, the Hall sensor sends an opening signal to the management system. Based on the opening signal sent by the Hall sensor, the management system controls multiple cameras on the rack to activate their data acquisition function. The cameras capture the movement direction of the first server as it moves in and out of the rack. The movement direction includes moving towards the rack and moving away from the rack. When the first server moves towards the rack and its size in the multiple camera feeds decreases, it can be determined that the first server is being mounted and is being pushed into the rack. When the first server moves away from the rack and its size in the multiple camera feeds increases, it can be determined that the first server is being unmounted and is being moved out of the rack. Once the first server is determined to be delisted, since the location information of the delisted first server has changed, it is necessary to discard the first-related information stored in the database that is related to the delisted first server, and transfer the discarded first-related information to the history record so that technicians can view the delisting and removal records of each server in the rack through the history record.
[0145] Through the above embodiments, the status of the first server being taken off the shelf can be determined by multiple cameras, and after the first server is taken off the shelf, the first related information of the taken-off server is transferred to the historical record. The recording and deletion process of the first related information of the server can be completed automatically without human intervention.
[0146] Optionally, determining that the first server has been taken offline includes:
[0147] Read the IP address from the first asset information of the first server in the records of the database;
[0148] If a connection cannot be established with the IP address of the first server, the first server is determined to be taken offline.
[0149] Once it is confirmed that the second server is online, the second asset information of the second server is collected through the multiple cameras;
[0150] 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 records;
[0151] Determine whether the second server is the same as the first server that has been delisted:
[0152] When it is determined that the second server is the first server that has been delisted, the first related information corresponding to the delisted first server stored in the historical records is transferred to the database and stored as the second related information of the second server.
[0153] Specifically, in this embodiment of the application, when the camera determines that the first server is in the process of being taken down, the management system needs to obtain the IP address of the first server in the process of being taken down from the database in advance, 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 (Ping fails), it can be determined that the first server corresponding to the IP address has been taken down.
[0154] Once the second server is confirmed to be listed, its second asset information is collected using multiple cameras. This involves scanning the barcode on the server's nameplate to obtain its second related information. This second related information is then compared with the first asset information from the previously listed first related information in the historical records. If the first and second asset information match, the second server is confirmed to be the previously listed first server. At this point, all the first related information (excluding the location information) corresponding to the previously listed first server stored in the historical records can be directly transferred to the database as the second related information of the second server. The location information of the second server is also stored in the database.
[0155] Through the above embodiments, after the first server is delisted, it is possible to determine whether the second server is the first server that has been delisted by reading the database, detecting the connection, collecting camera information and comparing historical records, and storing the corresponding information. Historical records facilitate the tracking of server replacements and the management of server information, improving the convenience of the server delisting process and server management.
[0156] Optionally, step S103 includes:
[0157] The second asset information is compared with multiple asset information in the database to determine the IP address of the first asset information that matches the second asset information among the multiple asset information;
[0158] Write the correspondence between the location information of the first server and the IP address into the database;
[0159] The step of resetting the IPMI address of the first server includes: resetting the IPMI address of the first server using out-of-band management technology according to the set network address range through the management system.
[0160] Specifically, in the embodiments of this application, in the process of comparing 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 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 and 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 rack. Furthermore, when the content of the second asset information is more than that of the first asset information, the second asset information can be directly stored in the database as the asset information of the first server. In addition, the management system resets the IPMI address of the first server according to the set network address range using out-of-band management technology.
[0162] Through the above embodiments, after the first server is put into 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 rack, which facilitates the subsequent management of the first server.
[0163] The following section explains the process of adding or removing servers from the platform. Figure 9 This is another flowchart of a server management method provided in this application, such as... Figure 9 As shown.
[0164] First, when the cabinet door is opened, the Hall sensor located in the cabinet inputs an opening signal to the management system. The management system then activates the camera acquisition function of the cabinet. Further, based on the movement direction of the third server captured by the camera, it determines whether the third server is being put on or taken off the rack. When it is determined that the third server is to be taken off the rack, the location information in the first relevant information of the third server in the database is transferred to the historical record, thus completing the process of taking the third server off the rack.
[0165] Once the fourth server is racked, the barcode on its nameplate is scanned to identify its location information, obtaining its second relevant information, which is then written to the database. Next, the optimal rack location is determined; if not, a notification is sent to the management system with a recommended location. After the fourth server connects to the network, it obtains its IP address via DHCP provided by the management system. The management system then uses out-of-band management technology to obtain the fourth server's second asset information and compares it with its first asset information to determine the correspondence between the server's actual location in the rack and its IP address. Finally, the management system resets the fourth server's IPMI address using out-of-band IPMI management technology within the pre-defined rack network segment. This completes the racking process for the fourth server.
[0166] Optionally, the technical solution of this application can further extend the management system to obtain IP information stored in the database. Simultaneously, by using out-of-band management technology, data related to server operation is read from the server's Baseboard Management Controller (BMC). Then, this acquired information is integrated into a monitoring page of a management system to achieve dynamic monitoring of the server.
[0167] Specifically, the management system connects to a database through a monitoring page, retrieving stored IP addresses. Then, using out-of-band management technology, it accesses server hardware-level information via the BMC (Browser Control Center), such as temperature, power status, and fan speed. This data helps administrators understand the server's operational status and health in real time.
[0168] Furthermore, the management system integrates information obtained from the database and BMC into the monitoring page, displaying various performance data of multiple servers across multiple racks and providing dynamic monitoring. Administrators can monitor the server's operational status in real time through the monitoring page, promptly identify and resolve potential problems, and ensure the server's normal operation.
[0169] It enables administrators to easily obtain and monitor server IP addresses and performance data related to server operation, thereby enabling dynamic server supervision.
[0170] In summary, the technical solution of this application can achieve the following technical effects:
[0171] 1. By using the server's nameplate as the data collection point, the system enables automated collection and management of server information after the server is installed, expanding its applicability, greatly reducing labor costs, and increasing efficiency.
[0172] 2. Adopting a binocular depth-of-field calculation algorithm, the system automatically obtains the server's location information, reducing the amount of computation required for manual server height calculation and improving efficiency;
[0173] 3. It adopts the DHCP to STATIC technology of soft router to automatically configure and manage the IP addresses of the racked servers. The intelligent processing with almost zero human intervention further improves the automation level of rack management.
[0174] 4. Through multiple cameras, automatically determine the server's onboarding and offboarding actions, and automatically update the server's location and IP information to achieve intelligent and automated server monitoring services;
[0175] 5. It has an algorithm that automatically determines and recommends rack locations, effectively standardizing rack placement and improving rack space utilization.
[0176] Figure 10 This is a schematic diagram of the framework of a server management device provided in this application, such as... Figure 10 As shown, one embodiment of this application provides a server management device, the device comprising:
[0177] The first relevant information acquisition module 11 is used to acquire first relevant information of the first server through multiple cameras set on the rack after determining that the first server is on the rack, and store the first relevant information in the database. The first relevant information includes the location information of the first server and the first asset information of the first server.
[0178] The second asset information acquisition module 12 is used to acquire the second asset information of the first server through the management system after the first server and the management system are connected.
[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 the original location of the first server in the rack and the recommended location of the first server in the rack. The recommended location is obtained through a pre-set location judgment logic. The first relevant information acquisition module 11 includes:
[0181] The acquisition module is used to acquire 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 pre-set location judgment logic, including:
[0183] The acquisition unit is used to acquire the required space size of the first server and the remaining space in the rack;
[0184] The first determination unit is used to determine whether the first server is the first server in the rack;
[0185] The first determining unit is used to determine whether the original position is installed starting from the first sequential position when the first server is the first server in the rack;
[0186] The second determining unit is configured to determine that the recommended position is the same as the original position when the original position is determined to be the first sequential position for installation.
[0187] The second judgment unit is used to determine whether the position size between the original position of the first server and at least one other server already mounted in the rack is not greater than a preset position size when the first server is not the first server in the rack.
[0188] The third determining unit is used to determine that the recommended position is the same as the original position when the distance between the original position of the first server and other servers already mounted in the rack is not greater than a preset position size.
[0189] The fourth determining unit is used to determine the location information in the first relevant information of the first server as the original location when the recommended location is the same as the original location.
[0190] Optionally, the device further includes:
[0191] The fifth determining unit is used to determine the recommended position based on the first sequence position and the required position size of the first server when the first server is the first server in the rack and it is determined that the original position is not installed starting from the first sequence position.
[0192] The first instruction unit is used to issue a prompt message through the management system to indicate the recommended location, the prompt message being used to suggest that the first server be installed starting from the first sequence position;
[0193] The sixth determining unit is used to determine the recommended position based on the available space adjacent to the other servers already installed in the rack and the required position size of the first server when the first server is not the first server in the rack, and the position size between the original position of the first server and other servers already installed in the rack is greater than the preset position size.
[0194] The second instruction unit is used to issue a prompt message through the management system to indicate the recommended location, the prompt message being used to suggest that the first server be installed starting from the available location.
[0195] Optionally, the acquisition module includes:
[0196] The acquisition unit is used to acquire, through the multiple cameras, the first asset information contained in the server nameplate of the first server and the size of the server nameplate in the captured images of the multiple cameras;
[0197] A calculation unit is used to calculate the original position of the first server in the rack based on the dimensions.
[0198] Optionally, the plurality of cameras includes a first camera and a second camera with identical parameters. The first camera and the second camera are distributed in the upper left and upper right corners of the cabinet and are symmetrically distributed with respect to the center line of the cabinet. The computing unit includes:
[0199] An imaging plane coordinate acquisition unit is used to acquire the first imaging plane coordinates of the server nameplate on the first camera and the second imaging plane coordinates of the server nameplate on the second camera;
[0200] A parallax calculation unit is used 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] The original position determination unit is used to determine the original position of the first server in the cabinet based on the distance between the first camera and the second camera, the parallax, the focal length of the plurality of cameras, and the height of the first server, wherein the parallax is in pixels.
[0202] Optionally, a Hall sensor is installed on the cabinet, and the device further includes:
[0203] The door opening signal input module is used to input a door opening signal to the management system via the Hall sensor when the cabinet door is opened before the server is confirmed to be mounted.
[0204] The data acquisition function activation module is used by the management system to activate the data acquisition function of the multiple cameras based on the door opening signal;
[0205] The movement direction acquisition module is used to acquire the movement direction of the first server as it enters and exits the rack through multiple cameras installed on the rack.
[0206] The first racking status determination module is used to determine that the first server is in the racking state when the first server is moving towards the rack and the size of the first server in the captured images of the multiple cameras is getting smaller and smaller.
[0207] The second racking status determination module is used to determine that the first server is in the process of being de-racked when the first server is moving in the direction away from the rack and the size of the first server in the captured images of the multiple cameras is getting larger and larger.
[0208] The device further includes:
[0209] The obsolescence module is used to obsolescence the first related information stored in the database after it is determined that the first server has been taken down, and to transfer the obsolescence-related first related information to the historical record.
[0210] Optionally, the discarded module includes:
[0211] The reading unit is used to read the IP address from the first asset information of the first server in the records of the database;
[0212] The removal unit is used to determine the removal of the first server when a connection cannot be established with the IP address of the first server.
[0213] The second asset information collection unit is used to collect the second asset information of the second server through the multiple cameras after it is determined that the second server is online.
[0214] The comparison unit is used 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 records;
[0215] The "Determine whether to remove" unit is used to determine whether the second server is the same as the first server that has already been removed from the platform.
[0216] The transfer unit is used to transfer the first related information corresponding to the delisted first server stored in the historical records to the database as the second related 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] The IP address determination unit is used to compare the second asset information with multiple asset information in the database and determine the IP address of the first asset information that is consistent with the second asset information among the multiple asset information;
[0219] The writing unit is used to write the correspondence between the location information of the first server and the IP address into the database;
[0220] The reset unit, used to reset the IPMI address of the first server, includes: a reset subunit, used to reset the IPMI address of the first server using out-of-band management technology according to a pre-defined network address range through the management system.
[0221] Based on the same inventive concept, another embodiment of this application also provides an electronic device, including 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 this application also provides a computer program product, including a computer program that is executed by a processor as the server management method described in any of the above embodiments.
[0223] Based on the same inventive concept, another embodiment of this application provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the server management method as described in any of the above embodiments.
[0224] As the apparatus is basically similar to the method embodiment, it is described in a relatively simple way. For relevant details, please refer to the description of the method embodiment.
[0225] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0226] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products 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] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0228] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The 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 equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0230] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0231] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes the element.
[0232] The above provides a detailed description of a server management method, apparatus, device, and medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A server management method, characterized in that, The method includes: After the first server is confirmed to be on the rack, multiple cameras installed on the rack are used to obtain the first relevant information of the first server and store the first relevant information in the database. The first relevant information includes the location information of the first server and the first asset information of the first server. After the first server establishes a communication connection with the management system, it obtains 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 obtained by the management system to determine the correspondence between the first relevant information and the IP address of the first server, and the IPMI address of the first server is reset. The rack is equipped with Hall effect sensors, and before determining whether the server is to be racked, it also includes: When the cabinet door is opened, the Hall sensor sends an opening signal to the management system. The management system activates the data acquisition function of the multiple cameras based on the door opening signal; Multiple cameras installed on the rack are used to capture the movement direction of the first server as it enters and exits the rack. If the first server is moving towards the rack and the size of the first server in the images captured by the multiple cameras is getting smaller and smaller, it is determined that the first server is in the process of being put into the rack. When the first server is moving in a direction away from the rack, and the size of the first server in the images captured by the multiple cameras is getting larger and larger, it is determined that the first server is in the process of being taken off the rack. The method further includes: Once it is determined that the first server has been taken down, the first related information stored in the database related to the first server will be discarded, and the discarded first related information will be transferred to the history. The determination of the removal of the first server includes: Read the IP address from the first asset information of the first server in the records of the database; If a connection cannot be established with the IP address of the first server, the first server is determined to be taken offline. Once it is confirmed that the second server is online, second relevant information about the second server is collected through the multiple cameras; 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 records; Determine whether the second server is the same as the first server that has been delisted: When it is determined that the second server is the first server that has been delisted, the first related information corresponding to the delisted first server stored in the historical records is transferred to the database and stored as the second related information of the second server.
2. The server management method according to claim 1, characterized in that, The step of comparing the first asset information in the database with the second asset information obtained by the management system to determine the correspondence between the first relevant information and the IP address of the first server includes: The second asset information is compared with multiple asset information in the database to determine the IP address of the first asset information that matches the second asset information among the multiple asset information; Write the correspondence between the location information of the first server and the IP address into the database; The step of resetting the IPMI address of the first server includes: resetting the IPMI address of the first server using out-of-band management technology according to the set network address range through the management system.
3. The server management method according to claim 1, characterized in that, The location information is determined based on the first server's original location in the rack and its recommended location in the rack. The recommended location is obtained through pre-set location judgment logic. The first relevant information of the first server is acquired through multiple cameras installed on the rack, including: The original position of the first server in the rack is captured by the multiple cameras. Obtaining the recommended location through the pre-set location determination logic includes: Obtain the required space size for the first server, and the remaining space in the rack; Determine whether the first server is the first server in the rack; When the first server is the first server in the rack, determine whether the original position is installed starting from the first sequential position; When the original position is determined to be the installation starting from the first sequence position, the recommended position is determined to be the same as the original position; When the first server is not the first server in the rack, determine whether the distance between the original position of the first server and at least one other server already mounted in the rack is not greater than a preset distance. When the distance between the original location of the first server and other servers already mounted in the rack is not greater than a preset location size, the recommended location is determined to be the same as the original location. 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.
4. The server management method according to claim 3, characterized in that, The method further includes: When the first server is the first server in the rack, and it is determined that the original position is not installed starting from the first sequence position, the recommended position is determined based on the first sequence position and the required size of the first server. The management system issues a prompt message indicating the recommended location, suggesting that the first server be installed starting from the first sequence position. When the first server is not the first server in the rack, and the size of the space between the original position of the first server and other servers already mounted in the rack is greater than the preset position size, the recommended position is determined based on the available space adjacent to the other servers already mounted in the rack and the required space size of the first server. The management system issues a prompt message indicating the recommended location, suggesting that the first server be installed starting from the available location.
5. The server management method according to claim 3, characterized in that, The step of capturing the original position of the first server in the rack using the multiple cameras includes: The first asset information contained in the server nameplate of the first server and the size of the server nameplate in the images captured by the multiple cameras are collected. Based on the dimensions, calculate the original position of the first server in the rack.
6. The server management method according to claim 5, characterized in that, The plurality of cameras includes a first camera and a second camera with identical parameters. The first camera and the second camera are distributed in the upper left and upper right corners of the rack and are symmetrically distributed with respect to the center line of the rack. The step of calculating the original position of the first server in the rack based on the dimensions includes: Obtain the first imaging plane coordinates of the server nameplate on the first camera and the second imaging plane coordinates of the server nameplate on the second camera; Based on the first imaging plane coordinates and the second imaging plane coordinates, calculate the parallax of the server nameplate between the first camera and the second camera; The original position of the first server in the cabinet is determined based on the distance between the first camera and the second camera, the parallax, the focal length of the plurality of cameras, and the height of the first server, wherein the unit of the parallax is pixels.
7. The server management method according to claim 6, characterized in that, The location information is obtained through the following calculation formula: The location information of the first server is (z, z+u); Where z represents the upper bound of the server in the rack in the location information, z+u represents the lower bound of the server in the rack 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 plurality of cameras, and the first asset information includes the height of the first server.
8. A server management device, characterized in that, The device includes: The first relevant information acquisition module is used to acquire first relevant information of the first server through multiple cameras set on the rack after determining that the first server has been put on the rack, and store the first relevant information in the database. The first relevant information includes the location information of the first server and the first asset information of the first server. The second asset information acquisition module is used to acquire the second asset information of the first server through the management system after the first server and the management system are connected. The 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. The cabinet is equipped with a Hall sensor, and the device further includes: The door opening signal input module is used to input a door opening signal to the management system via the Hall sensor when the cabinet door is opened before the server is confirmed to be mounted. The data acquisition function activation module is used by the management system to activate the data acquisition function of the multiple cameras based on the door opening signal; The movement direction acquisition module is used to acquire the movement direction of the first server as it enters and exits the rack through multiple cameras installed on the rack. The first racking status determination module is used to determine that the first server is in the racking state when the first server is moving towards the rack and the size of the first server in the captured images of the multiple cameras is getting smaller and smaller. The second racking status determination module is used to determine that the first server is in the process of being de-racked when the first server is moving in the direction away from the rack and the size of the first server in the captured images of the multiple cameras is getting larger and larger. The device further includes: The obsolescence module is used to obsolescence the first related information stored in the database after it is determined that the first server has been taken down, and to transfer the obsolescence-obsolescence-related first related information to the historical record. The discarded module includes: The reading unit is used to read the IP address from the first asset information of the first server in the records of the database; The removal unit is used to determine the removal of the first server when a connection cannot be established with the IP address of the first server. The second asset information collection unit is used to collect second relevant information about the second server through the multiple cameras after it is determined that the second server has been put on the server. The comparison unit is used 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 records; The "Determine whether to remove" unit is used to determine whether the second server is the same as the first server that has already been removed from the platform. The transfer unit is used to transfer the first related information corresponding to the delisted first server stored in the historical records to the database as the second related information of the second server when it is determined that the second server is the first server that has been delisted.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory, wherein the processor executes the computer program to implement the server management method as described in any one of claims 1-7.
10. A computer-readable medium, characterized in that, It stores a computer program, wherein the computer program, when executed by a processor, implements the server management method as described in any one of claims 1-7.
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