Operation and maintenance method and device for machine room server
By establishing a networking state between the operation and maintenance client and the server in the large computer room, and using the server as the intermediate business forwarding end, the problems of wasted monitor resources and complicated operation and maintenance in the large computer room are solved, and the operation and maintenance client is able to efficiently operate and maintain all servers in the computer room, reducing operation and maintenance costs.
Patent Information
- Application Number
- CN202510037373.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-04-11
AI Technical Summary
In large computer rooms, due to the large number of cabinets, configuring a monitor for each cabinet will result in wasting monitor resources, and manual operation and maintenance personnel need to operate manually.
Through the networking status of the operation and maintenance client and server, the server is connected to the server in the computer room. The server is used as the intermediate business forwarding end to establish a connection relationship between the operation and maintenance client and the target server, and realize the operation and maintenance of the target server when there is no physical connection relationship.
There is no need to configure a monitor for each cabinet, and only one operation and maintenance client can achieve operation and maintenance of all servers in the computer room, reducing operation and maintenance costs and improving user experience.
Smart Images

Figure CN119809613A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to an operation and maintenance method and device for a server in a computer room. Background Art
[0002] The operation and maintenance of servers in a computer room involves hardware management, software maintenance, network security, etc., and requires regular inspections. In related technologies, each cabinet is equipped with a display, and the operation and maintenance personnel can use the display to operate and maintain each server in the corresponding cabinet. However, there are many cabinets in a large computer room, and configuring a display for each cabinet will result in a waste of display resources. Summary of the invention
[0003] The present invention provides an operation and maintenance method and device for a server in a computer room. The technical solution is as follows:
[0004] On the one hand, an operation and maintenance method of a computer room server is provided, which is applied to a server, and the method comprises:
[0005] Based on whether the location of the operation and maintenance client is in the server room, determine whether server operation and maintenance is currently required;
[0006] When it is determined that server operation and maintenance is required, determining a target server that the operation and maintenance client needs to operate and maintain; there is no physical connection relationship between the operation and maintenance client and the target server;
[0007] Send operation and maintenance instructions to the target server, receive the operation and maintenance interface sent by the target server, forward the operation and maintenance interface to the operation and maintenance client, receive the operation and maintenance operations of the operation and maintenance client for the operation and maintenance interface, and forward the operation and maintenance operations to the target server so that the target server responds to the operation and maintenance operations.
[0008] On the other hand, an operation and maintenance device of a computer room server is provided, which is applied to a server, and the device includes:
[0009] A first determination unit is used to determine whether server operation and maintenance is currently required based on whether the operation and maintenance client is located in the server room;
[0010] The second determining unit is used to determine the target server that the operation and maintenance client needs to operate and maintain when it is determined that server operation and maintenance is required; there is no physical connection relationship between the operation and maintenance client and the target server;
[0011] The operation and maintenance unit is used to send operation and maintenance instructions to the target server, receive the operation and maintenance interface sent by the target server, forward the operation and maintenance interface to the operation and maintenance client, receive the operation and maintenance operations of the operation and maintenance client for the operation and maintenance interface, and forward the operation and maintenance operations to the target server so that the target server responds to the operation and maintenance operations.
[0012] On the other hand, a computer device is provided, which includes a memory and a processor, the memory is used to store computer programs, and the processor is used to execute the computer programs stored in the memory to implement the steps of the operation and maintenance method of the computer room server described above.
[0013] On the other hand, a computer-readable storage medium is provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the operation and maintenance method of the computer room server described above are implemented.
[0014] On the other hand, a computer program product is provided, including a computer program, which implements the steps of the operation and maintenance method of the computer room server described above when executed by a processor.
[0015] The technical solution provided by the present invention can at least bring the following beneficial effects:
[0016] The operation and maintenance client is connected to the server, and the server is connected to the server in the computer room. Even if there is no physical connection between the operation and maintenance client and the server being operated, the server can determine the target server that the operation and maintenance client needs to operate and maintain through the server, and then the server acts as an intermediate business forwarding end to establish a connection between the operation and maintenance client and the target server being operated, so that the operation and maintenance client can operate and maintain the target server even when there is no physical connection with the target server. It can be seen that in this solution, there is no need to configure a display for each cabinet, and only one operation and maintenance client is needed to realize the operation and maintenance of all servers in the computer room, which reduces the operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is a flow chart of an operation and maintenance method of a computer room server provided by an embodiment of the present invention;
[0019] Figure 2 This is a schematic diagram of the connection relationship between an operation and maintenance client, a service end, and a server provided by an embodiment of the present invention;
[0020] Figure 3 It is a structural diagram of an operation and maintenance device of a computer room server provided by an embodiment of the present invention;
[0021] Figure 4 It is a hardware architecture diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0023] Please refer to Figure 1 An operation and maintenance method of a computer room server provided by an embodiment of the present invention is applied to a server side, and the method comprises:
[0024] Step 100, determining whether server operation and maintenance is currently required based on whether the operation and maintenance client is located in the server room;
[0025] Step 102, when it is determined that server operation and maintenance is required, determining a target server that the operation and maintenance client needs to operate and maintain; there is no physical connection relationship between the operation and maintenance client and the target server;
[0026] Step 104, sending operation and maintenance instructions to the target server, receiving the operation and maintenance interface sent by the target server, forwarding the operation and maintenance interface to the operation and maintenance client, receiving the operation and maintenance operations of the operation and maintenance client for the operation and maintenance interface, and forwarding the operation and maintenance operations to the target server so that the target server responds to the operation and maintenance operations.
[0027] In the embodiment of the present invention, the operation and maintenance client is in a networked state with the server, and the server is in a networked state with the server in the computer room. Even if there is no physical connection between the operation and maintenance client and the operated server, the server can determine the target server that the operation and maintenance client needs to operate and maintain through the server, and then the server acts as an intermediate service forwarding end to establish a connection relationship between the operation and maintenance client and the operated target server, so that the operation and maintenance client can operate and maintain the target server even when there is no physical connection with the target server. It can be seen that in this solution, there is no need to configure a display for each cabinet, and only one operation and maintenance client is needed to realize the operation and maintenance of all servers in the computer room, which reduces the operation and maintenance cost.
[0028] Described below Figure 1 How the various steps are performed.
[0029] First, with respect to step 100, whether server operation and maintenance is currently required is determined based on whether the operation and maintenance client is located in the server room.
[0030] In a large server room, there are multiple rows of cabinets arranged in columns. Each row includes multiple cabinets, and each cabinet includes multiple servers. Generally, multiple servers on the cabinets are arranged up and down. The servers in the room need to be inspected regularly to operate and maintain the servers. The operation and maintenance content involves hardware management, software maintenance and network security.
[0031] In the embodiment of the present invention, an operation and maintenance client is used to replace the display equipped for the cabinet in the traditional way. The operation and maintenance client can be moved, and all servers in the computer room can be operated and maintained through one operation and maintenance client. Figure 2 , is a schematic diagram of the connection relationship between the operation and maintenance client, the service end and the server. The operation and maintenance client is connected to the server network, and the server is connected to the server network in the computer room. There is no physical connection between the operation and maintenance client and the server. The server acts as a bridge between the operation and maintenance client and the server, and is used to realize the operation and maintenance of the server by the operation and maintenance client.
[0032] In one embodiment of the present invention, a positioning module is provided on the operation and maintenance client, and the server obtains the location information of the operation and maintenance client in real time to determine whether server operation and maintenance is currently required based on whether the location of the operation and maintenance client is in the server room. When it is determined that the location of the operation and maintenance client is in the server room, it is determined that server operation and maintenance is required. It can be seen that this solution can determine whether server operation and maintenance is required based on the location of the operation and maintenance client, without the need for manual operation by the operation and maintenance personnel, thereby improving the user experience.
[0033] Then, with respect to step 102, when it is determined that server operation and maintenance is required, a target server that the operation and maintenance client needs to operate and maintain is determined.
[0034] In the embodiment of the present invention, since there are many servers in the server room, and the operation and maintenance personnel do not operate and maintain all servers during inspection, but only operate and maintain some servers, such as servers with problems or failures. In order for the server to know the target server that the operation and maintenance client needs to operate and maintain, the operation and maintenance personnel can input the relevant information of the operated server on the operation and maintenance client, and the operation and maintenance client sends the relevant information of the operated server to the server.
[0035] In another implementation, in order to improve user experience, the target server required for operation and maintenance by the operation and maintenance client may be determined through the following steps 200-204:
[0036] Step 200, using a camera installed in the server room, obtain a monitoring image in the server room; the operation and maintenance client is located in the monitoring image.
[0037] The monitoring image may be one image acquired by one camera or multiple images acquired by multiple cameras. The monitoring image needs to include the operation and maintenance client so that the location of the operation and maintenance client can be determined.
[0038] Step 202: input the monitoring image into a pre-trained positioning model to obtain the coordinate position of the operation and maintenance client output by the positioning model; the coordinate position is based on a set coordinate system;
[0039] In the embodiment of the present invention, the positioning model is pre-trained, and the training method may include:
[0040] A1: Using a camera installed in the server room, a plurality of sample images in the server room are obtained; the operation and maintenance client is located in the sample images;
[0041] A2: Identify the sample image based on the coordinate sample position of the operation and maintenance client;
[0042] A3: Use multiple labeled sample images to train the neural network so that the neural network can recognize and predict the labels in the sample images to obtain a trained positioning model.
[0043] The coordinate sample position of the operation and maintenance client identified in the sample image is also based on the set coordinate system. The set coordinate system can be a two-dimensional coordinate system or a three-dimensional coordinate system. For example, the origin of the set coordinate system is a corner point of the computer room, or the origin of the set coordinate system is the center point of the computer room. The set coordinate system remains unchanged during the model training process and the model use process.
[0044] It should be noted that in order to improve the output accuracy of the positioning model, when acquiring sample images, operation and maintenance personnel of different body sizes can bring operation and maintenance clients into the computer room, so that the operation and maintenance personnel on the sample images correspond to different body sizes. In this way, during the use of the positioning model, the influence of operation and maintenance personnel of different body sizes on the output results can be eliminated as much as possible.
[0045] Step 204: Determine the target server that the operation and maintenance client needs to operate and maintain according to the coordinate position and the correspondence between the pre-stored server information and the location area.
[0046] In the embodiment of the present invention, the server regularly maintains the correspondence between the information of each server in the computer room and the location area to ensure the accuracy of the stored server information.
[0047] In one embodiment of the present invention, if the coordinate system is set to a two-dimensional coordinate system, the coordinate position is a two-dimensional coordinate position, and the server information in the corresponding relationship can be cabinet information; if the coordinate system is set to a three-dimensional coordinate system, the coordinate position is a three-dimensional coordinate position, and the server information in the corresponding relationship can be cabinet information or information of a single server in the cabinet. When the server information in the corresponding relationship is information of a single server in the cabinet, the positioning model is used to directly locate the target server required for operation and maintenance; if the server information in the corresponding relationship is cabinet information, it is necessary to further determine which server in the cabinet is the target server required for operation and maintenance.
[0048] Specifically, when the server information in the correspondence is cabinet information, determining the target server required for operation and maintenance by the operation and maintenance client according to the coordinate position and the correspondence between the pre-stored server information and the location area may specifically include the following steps 2040-2044:
[0049] Step 2040, determining the target cabinet corresponding to the location area to which the coordinate position belongs based on the corresponding relationship;
[0050] Since the cabinets occupy a certain area, each cabinet has a corresponding location area. By determining which location area the coordinate position of the operation and maintenance client belongs to, it is determined in which cabinet the target server for the required operation and maintenance is located.
[0051] Step 2042, sending the server list of the target cabinet to the operation and maintenance client, so that the server list is displayed on the display screen of the operation and maintenance client;
[0052] Step 2044, obtaining a response from the operation and maintenance personnel based on the server list displayed by the operation and maintenance client, and determining a target server that the operation and maintenance client needs to operate and maintain based on the response.
[0053] The server stores the relationship between the cabinet and the servers in the cabinet. By sending the server list of the target cabinet and displaying it on the display screen of the operation and maintenance client, the operation and maintenance personnel can select the server to be operated and maintained.
[0054] In one implementation, the operation and maintenance personnel can determine the server that needs operation and maintenance through interactive operations with the operation and maintenance client. The interactive operation is to click on the server that needs operation and maintenance on the display screen. After the operation and maintenance client obtains the interactive operation, it sends the relevant information of the selected server to the server, so that the server can know the target server that needs operation and maintenance.
[0055] In another implementation, in order to further improve the user experience, the operation and maintenance personnel can inform the server which target server needs to be operated and maintained without interacting with the display screen. Specifically, the designated server is selected by default in the server list displayed on the operation and maintenance client; generally, multiple servers in the cabinet are arranged up and down, so the designated server can be the server located in the middle of the cabinet, or the designated server can be the server located at the top of the cabinet.
[0056] When the server obtains the response of the operation and maintenance personnel based on the server list displayed by the operation and maintenance client, the server may specifically include: using the camera to obtain the response of the operation and maintenance client to the server list through the swing state;
[0057] Then, determining the target server that the operation and maintenance client needs to operate based on the response includes: determining the server selection direction of the operation and maintenance client based on the swing state, and switching the selected server in the server list displayed by the operation and maintenance client according to the server selection direction; when the swing state is a pre-set selected state, the server currently selected in the server list is determined as the target server.
[0058] It should be noted that the swinging state may be the swinging of the operation and maintenance personnel's limbs, or the operation and maintenance personnel holding the operation and maintenance client and swinging the state of the operation and maintenance client.
[0059] For example, multiple servers in a cabinet are arranged up and down, and the server list displayed on the operation and maintenance client is also arranged up and down. Assuming that the server list is numbered 1 to 10 from top to bottom, the default selected designated server is server 5 located in the middle of the cabinet. The operation and maintenance personnel can determine the swing state based on the currently selected server. For example, if the swing state is upward swinging, the server can determine that the server selection direction of the operation and maintenance client is upward selection, and switch the selected server in the server list displayed by the operation and maintenance client according to the server selection direction. The selected server is switched to server 4. If it continues to swing upward, the selected server in the server list displayed by the operation and maintenance client is switched to server 3. If the swing state is a pre-set selection state, such as the selection state is paused for several seconds, the currently selected server in the server list is determined as the target server.
[0060] Furthermore, considering that in the process of selecting the operated server, the operation and maintenance personnel may not stabilize the operation and maintenance client, resulting in the state swing of the operation and maintenance client, which brings noise data to the identification of the swing state. Based on this, a swing amplitude threshold can be set. If the swing amplitude corresponding to the swing state exceeds the swing amplitude threshold, it is identified as the selection of the operated server in the server list, so as to determine the server selection direction of the operation and maintenance client based on the swing state; otherwise, the swing state is not identified as the selection of the operated server in the server list, and the operation of determining the server selection direction of the operation and maintenance client based on the swing state is not performed.
[0061] The swing amplitude threshold can be set according to the height of a single server in the cabinet. In one implementation, the swing amplitude threshold is equal to the height of a single server. For example, if the height of a single 2U server is about 9 cm, the swing amplitude threshold can be set to 9 cm.
[0062] It can be seen that in the embodiment of the present invention, the operation and maintenance personnel do not need to perform any interactive operations on the operation and maintenance client. They only need to carry the operation and maintenance client to conduct inspections in the computer room. When operation and maintenance of the server is required, they can enter the operation and maintenance interface by staying and swinging next to the target server to be operated and maintained, which greatly improves the user experience.
[0063] Finally, for step 104, an operation and maintenance instruction is sent to the target server, and an operation and maintenance interface sent by the target server is received, the operation and maintenance interface is forwarded to the operation and maintenance client, and the operation and maintenance operation of the operation and maintenance client for the operation and maintenance interface is received, and the operation and maintenance operation is forwarded to the target server so that the target server responds to the operation and maintenance operation.
[0064] In an embodiment of the present invention, after determining the target server, the server acts as a bridge between the operation and maintenance client and the target server. The server sends operation and maintenance instructions to the target server. After receiving the operation and maintenance instructions, the target server sends an operation and maintenance interface to the server. The server forwards the operation and maintenance interface to the operation and maintenance client, which displays the operation and maintenance interface on the display screen of the operation and maintenance client, and then uses the operation and maintenance interface to perform operation and maintenance operations.
[0065] In one embodiment of the present invention, the operation and maintenance interface is pushed by the target server based on a push strategy; the push strategy is used to determine whether to select an in-band resource push operation and maintenance interface or an out-band resource push operation and maintenance interface; the push strategy at least includes: when both in-band and out-band are connected, the in-band resource push operation and maintenance interface is given priority.
[0066] Server management methods include in-band management and out-of-band management. In-band management refers to a technology that performs remote management and monitoring through the existing network interface of the server. Unlike traditional out-of-band management, in-band management does not require additional hardware devices or dedicated network interfaces, but uses the server's own Ethernet port for communication. This method not only simplifies the management architecture, but also reduces costs and improves management flexibility and convenience.
[0067] Therefore, when the target server pushes the operation and maintenance interface, it gives priority to pushing the operation and maintenance interface through in-band resources.
[0068] Specifically, in addition to the above-mentioned "when both in-band and out-of-band are connected, in-band resources are preferred to be pushed to the operation and maintenance interface", the push strategy may also include the following strategies:
[0069] When only in-band or out-of-band network connectivity is available, select the connected resources to push the operation and maintenance interface;
[0070] If both the in-band and out-of-band networks are not connected, a black screen message is pushed, and the attribute information of the target server (such as cabinet number and location number in the cabinet) is sent to the operation and maintenance client, so that the operation and maintenance personnel can compare the pushed attribute information with the current target server to determine the status of the target server;
[0071] If the in-band network is connected but a problem with the operation and maintenance interface is detected, choose out-of-band resources to push the operation and maintenance interface;
[0072] The operation and maintenance client is provided with a custom selection function for in-band and out-of-band push. The operation and maintenance personnel manually select whether to push in-band resources or out-of-band resources. The target server pushes the operation and maintenance interface according to the corresponding selection result based on the selection result of the operation and maintenance client.
[0073] Furthermore, since the network connection between the server and the operation and maintenance client is a wireless network connection; the network connection between the server and the target server can be a wireless network connection or a physical connection through a switch. The server acts as a bridge between the operation and maintenance client and the target server. There may be an abnormal network status, which results in the inability to implement operation and maintenance between the operation and maintenance client and the target server through the wireless network. Based on this, in one embodiment of the present invention, after determining the target cabinet corresponding to the location area to which the coordinate position belongs based on the corresponding relationship, it also includes: sending the attribute information of each server in the server list to the operation and maintenance client; the attribute information includes at least the out-of-band embedded controller BMC login entry url and / or the in-band virtual network console VNC login entry url, so that when the network status between the server and the operation and maintenance client is abnormal, the operation and maintenance client can log in to the target server for operation and maintenance according to the url in the attribute information.
[0074] It should be noted that when the attribute information of each server in the server list is sent to the operation and maintenance client, it can be sent together with the server list, or it can be sent after a certain interval.
[0075] In the embodiment of the present invention, after locking the target server, the operation and maintenance personnel interact with the operation and maintenance client to send the operation and maintenance operation to the server, which is then forwarded to the target server, thereby realizing the operation and maintenance of the target server by the operation and maintenance client.
[0076] Furthermore, in order to ensure the user experience, after determining the target server, the server can also send a lock indication to the target server, which is used to instruct the target server to perform a lock operation to prompt the operation and maintenance personnel that the target server has been locked. The lock operation can be a light-on operation, for example, the UID positioning light is turned on.
[0077] When the operation and maintenance client completes the operation and maintenance of the target server, it can exit the lock mode and the server stops pushing operations to the operation and maintenance client.
[0078] After the operation and maintenance client completes the operation and maintenance of the target server, it can continue to locate and operate the next server.
[0079] In the embodiment of the present invention, there is no need to configure a display for each cabinet. Only one operation and maintenance client is needed to implement the operation and maintenance work of all servers in the computer room, which not only reduces the operation and maintenance cost, but also the operation and maintenance personnel only need to bring the operation and maintenance client into the computer room without performing any interactive operations on the operation and maintenance client. The operation and maintenance interface of the target server that needs operation and maintenance can be displayed on the operation and maintenance client, which greatly improves the user experience.
[0080] In addition, traditional technologies also use a physical connection between the operation and maintenance client and the server being operated to achieve operation and maintenance. However, the physical connection method not only requires the server being operated to reserve an operation and maintenance port, but also there are many ports on the server in the computer room, and the physical connection lines are also cumbersome. If the operation and maintenance client accidentally touches other connection lines during the plug-in and unplug process of the server being operated, it will cause other port connection lines to be virtual, thus affecting the normal operation of the server. It can be seen that in this solution, the server acts as a bridge to achieve operation and maintenance between the operation and maintenance client and the server being operated. There is no need for a physical connection between the operation and maintenance client and the server being operated, and the operation and maintenance personnel do not need to touch the server being operated, so the operation and maintenance work can be achieved without contact.
[0081] Please refer to Figure 3 The embodiment of the present invention provides an operation and maintenance device for a server in a computer room, the device comprising:
[0082] The first determining unit 300 is used to determine whether server operation and maintenance is currently required based on whether the location of the operation and maintenance client is in the server room;
[0083] The second determining unit 302 is used to determine the target server that the operation and maintenance client needs to operate and maintain when it is determined that server operation and maintenance is required; there is no physical connection relationship between the operation and maintenance client and the target server;
[0084] The operation and maintenance unit 304 is used to send operation and maintenance instructions to the target server, receive the operation and maintenance interface sent by the target server, forward the operation and maintenance interface to the operation and maintenance client, receive the operation and maintenance operations of the operation and maintenance client for the operation and maintenance interface, and forward the operation and maintenance operations to the target server so that the target server responds to the operation and maintenance operations.
[0085] In one embodiment of the present invention, when the second determining unit performs the step of determining the target server that the operation and maintenance client needs to operate and maintain, the second determining unit specifically includes:
[0086] A camera installed in a server room is used to obtain a monitoring image in the server room; the operation and maintenance client is located in the monitoring image; the monitoring image is input into a pre-trained positioning model to obtain the coordinate position of the operation and maintenance client output by the positioning model; the coordinate position is based on a set coordinate system; according to the coordinate position and the correspondence between pre-stored server information and location areas, the target server that the operation and maintenance client needs to operate and maintain is determined.
[0087] In one embodiment of the present invention, the server information in the corresponding relationship is cabinet information;
[0088] When the second determining unit determines the target server required to be operated and maintained by the operation and maintenance client according to the coordinate position and the correspondence between the pre-stored server information and the location area, the second determining unit specifically includes:
[0089] Based on the corresponding relationship, determine the target cabinet corresponding to the location area to which the coordinate position belongs; send the server list of the target cabinet to the operation and maintenance client, so that the server list is displayed on the display screen of the operation and maintenance client; obtain the response of the operation and maintenance personnel based on the server list displayed by the operation and maintenance client, and determine the target server that the operation and maintenance client needs to operate based on the response.
[0090] In one embodiment of the present invention, a designated server is selected by default in a server list displayed on the operation and maintenance client;
[0091] When the second determining unit executes the step of obtaining the response of the operation and maintenance personnel based on the server list displayed by the operation and maintenance client, the step specifically includes: using the camera to obtain the response of the operation and maintenance client to the server list through a swinging state;
[0092] When the second determining unit determines the target server that the operation and maintenance client needs to operate and maintain based on the response, it specifically includes:
[0093] The server selection direction of the operation and maintenance client is determined based on the swing state, and the selected server in the server list displayed by the operation and maintenance client is switched according to the server selection direction; when the swing state is a preset selected state, the currently selected server in the server list is determined as the target server.
[0094] In one embodiment of the present invention, the operation and maintenance unit is also used to send attribute information of each server in the server list to the operation and maintenance client; the attribute information at least includes an out-of-band embedded controller BMC login entry url and / or an in-band virtual network console VNC login entry url, so that when the network status between the server and the operation and maintenance client is abnormal, the operation and maintenance client can log in to the target server for operation and maintenance according to the url in the attribute information.
[0095] In one embodiment of the present invention, the operation and maintenance interface is pushed by the target server based on a push strategy; the push strategy is used to determine whether to select an in-band resource push operation and maintenance interface or an out-band resource push operation and maintenance interface; the push strategy at least includes: when both in-band and out-band are connected, the in-band resource push operation and maintenance interface is given priority.
[0096] It should be noted that the operation and maintenance device for the server in the computer room provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the operation and maintenance device for the server in the computer room provided in the above embodiment and the operation and maintenance method embodiment of the server in the computer room belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0097] The embodiment of the present application also provides a computer device, please refer to Figure 4 The computer device includes a processor and a memory, in which at least one instruction, at least one program, a code set or an instruction set is stored, and at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the operation and maintenance method of the computer room server provided by the above-mentioned method embodiments.
[0098] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the operation and maintenance method of the computer room server provided by the above-mentioned method embodiments.
[0099] An embodiment of the present application also provides a computer program product, which includes a computer program. A processor of a computer device reads the computer program from a computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the operation and maintenance method of the computer room server described in any of the above embodiments.
[0100] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0101] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0102] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0103] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for operating and maintaining a server in a computer room, characterized in that: Applied to the server, the method includes: Based on whether the location of the operation and maintenance client is in the server room, determine whether server operation and maintenance is currently required; When it is determined that server operation and maintenance is required, determining a target server that the operation and maintenance client needs to operate and maintain; there is no physical connection relationship between the operation and maintenance client and the target server; Send operation and maintenance instructions to the target server, receive the operation and maintenance interface sent by the target server, forward the operation and maintenance interface to the operation and maintenance client, receive the operation and maintenance operations of the operation and maintenance client for the operation and maintenance interface, and forward the operation and maintenance operations to the target server so that the target server responds to the operation and maintenance operations.
2. The method according to claim 1, characterized in that The step of determining the target server that the operation and maintenance client needs to operate and maintain includes: Using a camera installed in the server room, a monitoring image in the server room is obtained; the operation and maintenance client is located in the monitoring image; Input the monitoring image into a pre-trained positioning model to obtain the coordinate position of the operation and maintenance client output by the positioning model; the coordinate position is based on the set coordinate system; According to the coordinate position and the correspondence between the pre-stored server information and the location area, the target server required to be operated and maintained by the operation and maintenance client is determined.
3. The method according to claim 2, characterized in that The server information in the corresponding relationship is cabinet information; The step of determining the target server required to be operated and maintained by the operation and maintenance client according to the coordinate position and the correspondence between the pre-stored server information and the location area includes: Determine the target cabinet corresponding to the location area to which the coordinate position belongs based on the corresponding relationship; Sending the server list of the target cabinet to the operation and maintenance client, so that the server list is displayed on the display screen of the operation and maintenance client; A response from the operation and maintenance personnel based on the server list displayed by the operation and maintenance client is obtained, and a target server required to be operated and maintained by the operation and maintenance client is determined based on the response.
4. The method according to claim 3, characterized in that The specified server is selected by default in the server list displayed on the operation and maintenance client; The obtaining of the response of the operation and maintenance personnel based on the server list displayed by the operation and maintenance client includes: using the camera to obtain the response of the operation and maintenance client to the server list through a swinging state; The step of determining the target server that the operation and maintenance client needs to operate and maintain based on the response includes: Determining a server selection direction of the operation and maintenance client based on the swing state, and switching a server selected in a server list displayed by the operation and maintenance client according to the server selection direction; When the swing state is a preset selected state, the server currently selected in the server list is determined as the target server.
5. The method according to claim 3, characterized in that: After determining the target cabinet corresponding to the location area to which the coordinate position belongs based on the corresponding relationship, it also includes: sending attribute information of each server in the server list to the operation and maintenance client; the attribute information at least includes the out-of-band embedded controller BMC login entry url and / or the in-band virtual network console VNC login entry url, so that when the network status between the server and the operation and maintenance client is abnormal, the operation and maintenance client can log in to the target server according to the url in the attribute information for operation and maintenance.
6. The method according to any one of claims 1 to 5, characterized in that: The operation and maintenance interface is pushed by the target server based on a push strategy; the push strategy is used to determine whether to push the operation and maintenance interface for in-band resources or out-of-band resources; The push strategy at least includes: when both in-band and out-band are connected, in-band resources are preferentially selected to push the operation and maintenance interface.
7. An operation and maintenance device for a server in a computer room, characterized in that: Applied to the server, the device comprises: A first determination unit is used to determine whether server operation and maintenance is currently required based on whether the operation and maintenance client is located in the server room; The second determining unit is used to determine the target server that the operation and maintenance client needs to operate and maintain when it is determined that server operation and maintenance is required; there is no physical connection relationship between the operation and maintenance client and the target server; The operation and maintenance unit is used to send operation and maintenance instructions to the target server, receive the operation and maintenance interface sent by the target server, forward the operation and maintenance interface to the operation and maintenance client, receive the operation and maintenance operations of the operation and maintenance client for the operation and maintenance interface, and forward the operation and maintenance operations to the target server so that the target server responds to the operation and maintenance operations.
8. A computer device, characterized in that: The computer device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of any one of the methods described in claims 1-6.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Equipment operation and maintenance method and device, equipment and storage medium
CN120448224A
Server operation and maintenance processing method and device
CN120499178A