CN113032066B - Server management method and device - Google Patents

Server management method and device Download PDF

Info

Publication number
CN113032066B
CN113032066B CN202110199273.3A CN202110199273A CN113032066B CN 113032066 B CN113032066 B CN 113032066B CN 202110199273 A CN202110199273 A CN 202110199273A CN 113032066 B CN113032066 B CN 113032066B
Authority
CN
China
Prior art keywords
server
servers
session table
bmc
current interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110199273.3A
Other languages
Chinese (zh)
Other versions
CN113032066A (en
Inventor
张新兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN202110199273.3A priority Critical patent/CN113032066B/en
Publication of CN113032066A publication Critical patent/CN113032066A/en
Application granted granted Critical
Publication of CN113032066B publication Critical patent/CN113032066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The specification provides a server management method and device, and relates to the technical field of communication. A server management method, comprising: respectively establishing connection with BMCs on at least two servers, and generating session table entries of the corresponding BMCs in a session table; acquiring interfaces of the at least two servers through the BMC; displaying interfaces of at least two servers in at least two display areas; acquiring management instructions for at least two servers; and respectively sending the acquired management instructions to the selected server in the at least two servers through the BMC according to the session table. By the method, the servers connected with the host can be managed respectively, so that the time consumed by repeated operation is reduced, and the management efficiency of the user on the servers is improved.

Description

Server management method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for managing a server.
Background
With the popularization of networks, the application of servers is also increasing, and the demands for server operation and maintenance are also increasing. KVM (keyboard, video and mouse, keyboard, video, mouse) is a program that enables remote server access, which can be controlled remotely through the keyboard, video and mouse ports of a session (KVM over IP) connected server.
In the current implementation, a user accesses a BMC (baseboard management controller ) of a server through a personal computer to establish a connection to enable data interaction with the server, so that an input device and a display device may not be required to be locally provided at the server to operate the server and display a section running in the server. However, when the user cannot control the plurality of servers at the same time, if the user operates the plurality of servers, connection needs to be established between the user and the plurality of servers, so that the user needs to consume more time to establish connection with the plurality of servers, and the efficiency of managing the servers by the user is reduced.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a server management method and apparatus.
With reference to the first aspect of the embodiments of the present specification, the present application provides a server management method, including:
respectively establishing connection with baseboard management controllers BMCs on at least two servers, and generating session table items of the corresponding BMCs in a session table;
acquiring interfaces of at least two servers through the BMC;
displaying interfaces of at least two servers in at least two display areas;
acquiring management instructions for at least two servers displaying interfaces;
and respectively sending the acquired management instructions to the selected server in the at least two servers through the BMC according to the session table.
Optionally, the at least two display areas include a main screen area and a plurality of auxiliary screen areas, wherein the size of the main screen area is larger than that of the auxiliary screen area;
displaying interfaces of at least two servers in at least two display areas, comprising:
if the generated session table entry is the first session table entry in the session table, displaying an interface of a server acquired through the BMC corresponding to the session table entry in a main screen area;
and if the generated session table entry is not the first session table entry in the session table, displaying the interface of the server acquired through the BMC corresponding to the session table entry in the auxiliary screen area.
Optionally, the session table includes an IP address of the BMC and a server identifier;
after the interface of the at least two servers is displayed in the at least two display areas, the method further comprises:
and displaying the IP address of the BMC corresponding to the display area and the server identifier corresponding to the BMC at a preset position in the display area.
Further, according to the session table, the sending, by the BMC, the acquired management instruction to the selected server of the at least two servers respectively includes:
acquiring a selected server and a selected management instruction;
determining the IP address of the BMC corresponding to the selected server according to the session table;
and managing instructions to the selected server according to the IP address of the corresponding BMC.
Optionally, after displaying the interfaces of the at least two servers in the at least two display areas, the method further includes:
if the batch processing is triggered, intercepting current interfaces of at least two servers through corresponding BMCs, wherein the current interface corresponding to a first server in the at least two servers is used as a first current interface, and the interface corresponding to a second server except the first server in the at least two servers is used as a second current interface;
determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface;
and correcting the mouse pointer of the second server to the position of the mouse pointer of the first server according to the offset.
Further, determining an offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface includes:
determining a size ratio between the first current interface and the second current interface;
the size of the second current interface and the size of the first current interface are adjusted to be the same size according to the size proportion;
an offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface is determined, wherein the offset includes a lateral offset and a longitudinal offset.
Optionally, after correcting the mouse pointer of the second server to the position of the mouse pointer of the first server according to the offset, the method further includes:
acquiring mouse operation aiming at a first server, and determining a first displacement of the mouse operation;
determining a second displacement of the mouse of the second server according to the size proportion and the first displacement;
and transmitting a second displacement amount to the second server so that the mouse of the second server moves according to the second displacement amount.
With reference to the second aspect of the embodiments of the present specification, the present application provides a server management apparatus, including:
the establishing unit is used for establishing connection with BMCs on at least two servers respectively and generating session table items corresponding to the BMCs in the session table;
the intercepting unit is used for acquiring interfaces of at least two servers through the BMC;
the display unit is used for displaying interfaces of at least two servers in at least two display areas;
the system comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring management instructions aiming at least two servers with interfaces;
and the management unit is used for respectively sending the acquired management instructions to the selected servers in the at least two servers through the BMC according to the session table.
Optionally, the at least two display areas include a main screen area and a plurality of auxiliary screen areas, wherein the size of the main screen area is larger than that of the auxiliary screen area;
the display unit is specifically configured to display, in a main screen area, an interface of a server acquired through a BMC corresponding to a session table entry if the generated session table entry is a first session table entry in the session table; and if the generated session table entry is not the first session table entry in the session table, displaying the interface of the server acquired through the BMC corresponding to the session table entry in the auxiliary screen area.
Optionally, the session table includes an IP address of the BMC and a server identifier;
the display unit is further used for displaying the IP address of the BMC corresponding to the display area and the server identifier corresponding to the BMC at a preset position in the display area.
Further, the management unit includes:
the instruction module is used for acquiring the selected server and the selected management instruction;
the determining module is used for determining the IP address of the BMC corresponding to the selected server according to the session table;
and the sending module is used for managing the instruction to the selected server according to the IP address of the corresponding BMC.
Optionally, the device further includes:
the triggering unit is used for intercepting the current interfaces of at least two servers through the corresponding BMCs if the batch processing is triggered, wherein the current interface corresponding to a first server in the at least two servers is used as a first current interface, and the interface corresponding to a second server except the first server in the at least two servers is used as a second current interface;
the computing unit is used for determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface;
and the synchronization unit is used for correcting the mouse pointer of the second server to the position of the mouse pointer of the first server according to the offset.
Further, the operation unit includes:
the proportion module is used for determining the size proportion between the first current interface and the second current interface;
the adjusting module is used for adjusting the size of the second current interface and the size of the first current interface to be the same size according to the size proportion;
and the offset module is used for determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface, wherein the offset comprises a transverse offset and a longitudinal offset.
Further, the device is further used for acquiring the mouse operation aiming at the first server and determining a first displacement of the mouse operation;
the operation unit is also used for determining a second displacement of the mouse of the second server according to the size proportion and the first displacement;
and the synchronization unit is also used for transmitting a second displacement to the second server so as to enable the mouse of the second server to move according to the second displacement.
The technical scheme provided by the embodiment of the specification can comprise the following beneficial effects:
in the embodiment of the specification, the session is established with the BMC of the plurality of servers, the session list items related to the BMC of the plurality of servers are generated in the session list maintained locally, the interface of the server acquired by the BMC is displayed, and after the management instruction of the user based on the interface of the displayed server is acquired, the management instruction is issued to the selected server based on the session list items, so that the management of the plurality of servers by one operation of the user can be realized, the time for repeatedly operating the plurality of servers is reduced, and the efficiency of managing the servers by the user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a flow chart of a server management method according to the present application;
FIG. 2 is a schematic diagram of a KVM page of the present application;
FIG. 3 is a schematic view of the display area in the KVM of the present application;
FIG. 4 is a schematic diagram of the structure of a menu bar in the KVM of the present application;
FIG. 5 is a schematic view of a display area in another KVM according to the present application;
FIG. 6 is a schematic diagram of determining an offset of a mouse pointer in accordance with the present application;
fig. 7 is a schematic structural diagram of a server management device according to the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
The application provides a server management method, as shown in fig. 1, including:
s100, connection is established with BMCs on at least two servers respectively, and session table entries corresponding to the BMCs are generated in the session table.
According to the requirements of users, a plurality of servers can be deployed, each server is provided with a main board and a BMC module, and the BMC module is provided with a BMC and a peripheral circuit for realizing communication with the main boards of the servers. The BMC module can be an independent processor embedded on a server main board or a separate circuit board arranged on the main board in a plugging manner. The BMC module may collect information on a server through an IPMB (intelligent platform management bus ), an LPC bus (Low Pin Count bus), an SMBus (system management bus ), etc., and send the collected information or control server to a host used by a user through a network, etc.
The user operation host can remotely access the server, and the BMC has information such as an own IP address and the like. The remote access networking mode may be that the host and the server are deployed in one local area network, and the other remote access networking mode may be that the host and the server respectively belong to different local area networks, and data interaction between the host and the server is realized through network devices such as a router, a switch and the like.
After the server deployment is completed, the user may initiate a KVM to manage the server. Because the deployment of the server is done by the user, the user can obtain information such as the IP address of the BMC, and information such as the user name and password necessary to start the KVM. Specific ways to activate KVM may include, but are not limited to, the following two ways:
mode 1:
the user may input the IP address of the BMC through a browser or the like for access. At this time, the BMC module can return to the monitoring interface and display the monitoring interface on the display screen of the host. In this process, the BMC module may return to the KVM start-up procedure, and the user clicks the start-up procedure to start the KVM to manage the server. Alternatively, a button for starting the KVM may be provided on the monitor interface, and after the user clicks the button, the BMC module returns the KVM start program to the host.
After that, the user can input the user name and the password of the BMC module in the KVM window interface, and after the BMC module authenticates the user name and the password, the user can manage the server corresponding to the accessed BMC module in the KVM page.
Mode 2:
the host computer can be pre-stored with a starting program of the KVM, and the IP address allocated to the BMC, the user name of the BMC module and the password are input in a window interface of the KVM, and after the BMC module authenticates the user name and the password, a user can manage a server corresponding to the accessed BMC module in a page of the KVM.
In embodiment 1, compared with embodiment 2, since the BMC module is accessed in advance by the IP address of the BMC, when the KVM is started, the IP address of the BMC can be directly filled in the corresponding input field, so that the time for the user to input the IP address of the BMC can be saved.
A session table may be generated on the host, which may be stored in a file or in a table form. After the user inputs the IP address, user name, and password of the BMC in the KVM interface, the host and KVM may establish a session and store session entries of the IP address and session identification of the BMC, etc. in the session table.
The user can repeat the above operations for a plurality of servers respectively until the session list item is established with the server to be managed. Of course, other information may also be stored in the session table, so as to implement data interaction between the BMC module and the host.
As shown in fig. 2, the window interface of the KVM may include a menu bar, in which buttons of a plurality of operation objects may be disposed, for example, a start item, a power source, a mouse, a keyboard, and the like, and of course, the operation objects may include other devices or peripherals, which is not limited thereto.
In order to enable visual management of the server, after the host establishes a connection with the BMC and generates a session table entry, an interface of the server located at a remote end may be acquired. After step S100, further includes:
s101, acquiring interfaces of at least two servers through the BMC.
S102, displaying interfaces of at least two servers in at least two display areas.
After the host starts the KVM, a plurality of display areas may be preset in the KVM, and the display areas may be in a non-display state when the interface sent by the BMC is not acquired. The at least two display areas may include a main screen area and a plurality of auxiliary screen areas, the main screen area is used for displaying an interface of a first server received by the host, and the auxiliary screen area is used for displaying an interface of a later server received by the host.
In order to synchronize a plurality of servers, the interface displayed in the main screen area is generally used as a reference, and it is required to make it easier to distinguish, so that the size of the main screen area can be set to be larger than that of the sub screen area. However, the size is not limited thereto, and the size of the main screen area may be the same as or smaller than the size of the sub-screen area. For example, the primary and secondary screen areas may be sized in KVM as shown in FIG. 3.
After the host and the server establish a connection, the BMC may periodically read the interface from the managed server and transmit to the host.
Step S102, including:
S102A, if the generated session table entry is the first session table entry in the session table, displaying an interface of a server acquired through the BMC corresponding to the session table entry in a main screen area.
S102B, if the generated session table entry is not the first session table entry in the session table, displaying an interface of a server acquired through the BMC corresponding to the session table entry in the secondary screen area.
Since the corresponding session table entry is stored in the session table, it can be determined whether the BMC that is establishing a connection with the host is the first BMC according to whether the session table entry is already stored in the session table.
When a session table entry is generated by the host, if the session table is an empty table, i.e. no session table entry is stored therein, it may be determined that the BMC currently establishing the connection is the first BMC, i.e. BMC1 corresponding to server a in fig. 4.
After the server is started, the BMC can periodically acquire an interface to be displayed by the server, and after the BMC establishes connection with the host, the acquired interface is forwarded to the host. At this time, the host may adjust the interface of the server a to be adapted to the size of the home screen area and display the same in the home screen area.
Thereafter, the host and BMC2 in server B may establish a connection, generating a session entry for the BMC in server B. Since the session table has already recorded the session entry of BMC1 of server a, after the second session entry is written into the session table, the host obtains the interface sent by BMC2 of server B. After receiving the interface, the host computer will display the interface in the secondary screen area. The display area on the KVM is shown in fig. 3.
And if the host computer and other servers are connected, continuing to display the acquired interface of the server to the auxiliary screen area for display until the upper limit of the display area is set in the KVM. And, the interface of other servers can be prompted to be unable to be continuously displayed.
By the mode, interfaces of a plurality of servers can be displayed in the KVM, so that a user can better find the current server state and can operate different servers respectively.
S103, acquiring management instructions for at least two servers showing interfaces.
In the window interface of the KVM, the user may select the management command by clicking the touch object, as shown in fig. 4, after clicking the power supply and the start item, a corresponding window may be popped up for the user to click the operation to be performed on the server, and select the server to be performed on the operation, where the server as the operation object is displayed in the display area in the window interface of the KVM. For example, in fig. 4, the user selects the server a and the server B, and performs a restarting operation. And, upon a restart, the system is loaded from the hard disk (HDD).
At this time, the host computer can determine the management instruction to be issued to the BMC according to the operation of the user. For example, management instructions for restarting the server a and the server B are issued to the BMC module, so that the BMC module controls the server a and the server B to restart.
S104, according to the session table, the acquired management instructions are respectively sent to the selected servers in the at least two servers through the BMC.
Specifically, step S104 includes:
S104A, determining the IP address of the BMC corresponding to the selected server according to the session table.
And S104B, sending a management instruction to the selected server according to the IP address of the corresponding BMC.
At this time, the host computer operated by the user searches the session table entries corresponding to the server a and the server B in the session table, and obtains the IP address and the session identifier of the BMC from the session table entries.
The host may send based on an interconnection protocol with the server, and carry the acquired management instruction in the sent management message. After the BMC acquires the management message, the management message is analyzed, and a carried management instruction is acquired, so that the server is controlled through the connection between the BMC module and the server.
The BMC module controls the server to be implemented by the current KVM based on the management instruction, and the description is omitted.
In the embodiment of the specification, the session is established with the BMC of the plurality of servers, the session list items related to the BMC of the plurality of servers are generated in the session list maintained locally, the interface of the server acquired by the BMC is displayed, and after the management instruction of the user based on the interface of the displayed server is acquired, the management instruction is issued to the selected server based on the session list items, so that the management of the plurality of servers by one operation of the user can be realized, the time for repeatedly operating the plurality of servers is reduced, and the efficiency of managing the servers by the user is improved
Optionally, the session table may further include an IP address of the BMC and a server identifier obtained from the corresponding server. The server identifier may be a character code configured by a user for the server, the character code may be stored in the BMC module by a register or a memory, and when the host interacts with the BMC, the character code is carried in a message and sent to the host, and is recorded in a session table.
Optionally, after step S102, the method further includes:
s105, displaying the IP address of the BMC corresponding to the display area and the server identification corresponding to the BMC at a preset position in the display area.
The IP address of the BMC and the server identification (serial number SN of the server) are read from the session table, and the IP address and the server identification are displayed in the corresponding display area, so that interfaces from different servers can be distinguished on the display area of the KVM, as shown in fig. 5.
When a user operates interfaces of a plurality of servers through a host, the user needs to select different display areas in the KVM and operate in each display area. These repetitive operations consume a lot of time as the number of servers controlled by the host increases.
In order to improve the efficiency of the user operating the plurality of servers, a special function may be set in the KVM, which may be called synchronous operation. When clicking on the function, the KVM may synchronize the user's operations with respect to one server, through session entries recorded in the session table, into multiple servers. Such as keyboard operations and mouse operations on the host computer by the user.
The explanation will be made taking a keyboard operation as an example. When the user clicks the synchronous operation function and correspondingly selects the keyboard operation, an instruction for synchronizing the keyboard operation can be issued to the BMC corresponding to the session table item through the session table item recorded in the session table, and based on the instruction, the BMC can control the corresponding server to start an instruction operation interface. After that, the host computer obtains the keyboard operation of the user on the host computer based on the hardware interrupt of the host computer, and the obtained keyboard operation is issued to the server for execution through the session connection between the BMC and the host computer, so that the corresponding synchronous operation is completed.
In the following, a mouse operation is taken as an example, and the mouse operation needs to depend on the interface currently displayed by the server in the display area of the KVM. Accordingly, a server management method further includes:
after step S104, further including:
s106, if the batch processing is triggered, intercepting the current interfaces of at least two servers through the corresponding BMCs respectively.
The current interface corresponding to a first server in the at least two servers is used as a first current interface, and the interface corresponding to a second server except the first server in the at least two servers is used as a second current interface.
The server A is firstly connected with a host, a session table item corresponding to the BMC1 in the server A is generated in the host and is called as the session table item 1, and at the moment, the BMC1 displays the acquired current interface of the server A in a main screen area. After that, the server B establishes a connection with the host, and generates a session entry corresponding to the BMC2 in the server B, which is referred to as session entry 2, in the host. At this time, the BMC2 displays the acquired current interface of the server B in the secondary screen area, and the KVM display style is shown in fig. 3.
S107, determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface.
To perform synchronized mouse operations, it is necessary that multiple servers are at the same interface of their system and that the mouse pointer is at the same location of that interface. Here, this can be achieved in at least the following two ways.
Mode 1:
after the user clicks the function key for synchronous operation in the KVM, the host may control the corresponding server to restart through the BMC. The server after restarting will be placed in the initial interface and the location of the mouse pointer will also be placed in the initial location in the interface. At this time, the interfaces of the servers are the same, the mouse pointers in the interfaces are at the same position, and synchronous mouse operations can be performed on the plurality of servers through the host.
Mode 2:
and reading interfaces of the servers into a host, comparing the interfaces as images, and determining the offset of the mouse pointer in the interfaces. When determining the offset, one interface needs to be used as a reference interface, the other interface needs to be used as an interface to be corrected, the reference interface refers to an interface with the mouse pointer in the interface as a position unchanged, and the interface to be corrected refers to an interface needing to offset the mouse pointer in the interface to the reference interface. For example, an interface loaded to the main screen area in the KVM is used as a reference interface, and an interface loaded to the auxiliary screen area is used as an interface to be corrected. After the offset between the reference interface and the interface to be corrected is determined, the host computer issues displacement operation to the corresponding server through the session table entry, and the mouse pointer in the interface to be corrected is moved to a position consistent with the mouse pointer in the reference interface, so that the synchronous operation can be performed on the mouse pointer positioned at the same position relative to the interface.
The first current interface is an interface to be displayed in the main screen area, and the second current interface is an interface to be displayed in the auxiliary screen area.
Specifically, step S107 includes:
and S107A, determining the size ratio of the first server and the second server.
In different servers, the sizes of the displayed interfaces may be the same or different, so that the KVM needs to be considered in calculating the offset to acquire the sizes of the interfaces of the different servers, and the offset of the mouse pointer in the interface to be corrected relative to the mouse pointer in the reference interface is determined according to the size proportion. Also, since the size of the interface includes the lateral size and the longitudinal size, the size ratio includes the lateral size ratio and the longitudinal size ratio. For example, when the host obtains the size of the interface of the server a to be 1024×768 (pixels), and the size of the interface of the server B to be 800×600 (pixels), the lateral dimension ratio may be determined to be 32:25, and the longitudinal dimension ratio may be determined to be 32:25.
And S107B, adjusting the size of the second current interface and the size of the first current interface to be the same size according to the size proportion.
S107C, determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface.
The offset may include a lateral offset and a longitudinal offset, among others.
Since the sizes of the interfaces of the server a and the server B are different, the mouse pointer offset of the two needs to take into account the difference in the size of the interface, and thus, the size of the second current interface may be stretched/compressed to the size of the first current interface or the size of the first current interface may be stretched/compressed to the size of the second current interface according to the size ratio that has been determined. In this way, the calculated offset may actually reflect the offset of the mouse pointer in both interfaces. Specifically, since the position of the mouse pointer of the second current interface needs to be unified to the position of the mouse pointer of the first current interface, the size of the first current interface is stretched/compressed to the size of the second current interface, so that the offset required to be issued to the second server can be directly obtained, and the operation can be reduced.
The interface presented by the host in the KVM may be understood as an image (a picture or a frame in a video stream), and each point in the interface may be understood as being presented in pixels. The host can analyze the image to obtain the required elements in the image. Such as a mouse pointer, and/or a feature item, etc.
The parsing element may be obtained based on an element template, which may be a pattern of a mouse pointer, a pattern of a feature item, or the like. The position of the element template in the image can be resolved according to the element template. Generally, the position is a coordinate value calculated with one reference point, including a transverse coordinate and a longitudinal coordinate. As shown in fig. 6, after the first current interface is adjusted, the first current interface and the second current interface are consistent in size. At this time, the first current interface is used as a reference interface to determine the offset of the mouse pointer in the second current interface relative to the mouse pointer in the first current interface, i.e. the lateral offset X 1 And a longitudinal offset Y 1 . Of course, the offset direction may be agreed upon depending upon the positive or negative offset, such as positive to the right and downward, and negative to the left and upward.
The lateral offset X 1 And a longitudinal offset Y 1 Is the offset on the image, i.e. at the hostAnd issuing the number of times of instruction issuing required when issuing the movement instruction to the server.
S108, correcting the mouse pointer of the second server to the position of the mouse pointer of the first server according to the offset.
After determining the offset, the KVM issues the offset of the mouse to the corresponding server (i.e., server B) through the session entry established with the BMC in the server. The offset is sent in the form of a management message that will be at the KVM to BMC, carrying a lateral offset and a longitudinal offset.
After the BMC2 of the server B receives the offset, the mouse pointer in the server B is controlled to move in the transverse direction and the longitudinal direction of the interface based on the moving amount, and the mouse pointer of the server B and the mouse pointer of the server A are positioned at the same position, so that the server A and the server B can perform synchronous mouse operation.
After the synchronous operation is started, a user can respectively issue operation instructions to a plurality of servers based on one-time mouse operation of the KVM on the host, so that the KVM can more effectively realize the operation of the plurality of servers, and the management efficiency of the host to the plurality of servers is improved. Specifically, after step S108, the method further includes:
s109, acquiring mouse operation aiming at a first server, and determining a first displacement of the mouse operation.
S110, determining a second displacement of the mouse of the second server according to the size proportion and the first displacement.
And S111, issuing a second displacement amount to the second server so that the mouse of the second server moves according to the second displacement amount.
Wherein the displacement will also be divided into a transverse direction and a longitudinal direction. Here, although the user performs a mouse operation in the home screen area of the KVM, the acquired displacement amount is also performed for the interface shown in the home screen area, and thus the determined first displacement amount is the displacement amount for the server a. In order to synchronously control the movement of the mouse pointer in the server B, a management message carrying the displacement amount still needs to be issued to the BMC in the server B.
For the second displacement of the server B, the calculation may be performed according to the first displacement and the size ratio, for example, the user moves 64 pixels in the horizontal direction and 64 pixels in the vertical direction in the main screen area for the mouse pointer in the server a, and according to the horizontal size ratio and the vertical size ratio of 32:25, it may be calculated that 50 pixels are moved in the server B, respectively. Finally, a second displacement is issued to the server B based on the session table entry to perform mouse operation. At this time, the mouse pointer on the server B moves to the position corresponding to the second current interface according to the displacement amounts of the horizontal 50 pixels and the vertical 50 pixels carried in the management message.
By the method, the host can manage the servers respectively, and management efficiency is improved.
Correspondingly, the application also discloses a server management device, as shown in fig. 7, including:
the establishing unit is used for establishing connection with BMCs on at least two servers respectively and generating session table items corresponding to the BMCs in the session table;
the intercepting unit is used for acquiring interfaces of at least two servers through the BMC;
the display unit is used for displaying interfaces of at least two servers in at least two display areas;
the system comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring management instructions aiming at least two servers with interfaces;
and the management unit is used for respectively sending the acquired management instructions to the selected servers in the at least two servers through the BMC according to the session table.
Optionally, the at least two display areas include a main screen area and a plurality of auxiliary screen areas, wherein the size of the main screen area is larger than that of the auxiliary screen area;
the display unit is specifically configured to display, in a main screen area, an interface of a server acquired through a BMC corresponding to a session table entry if the generated session table entry is a first session table entry in the session table; and if the generated session table entry is not the first session table entry in the session table, displaying the interface of the server acquired through the BMC corresponding to the session table entry in the auxiliary screen area.
Optionally, the session table includes an IP address of the BMC and a server identifier;
the display unit is further used for displaying the IP address of the BMC corresponding to the display area and the server identifier corresponding to the BMC at a preset position in the display area.
Further, the management unit includes:
the instruction module is used for acquiring the selected server and the selected management instruction;
the determining module is used for determining the IP address of the BMC corresponding to the selected server according to the session table;
and the sending module is used for managing the instruction to the selected server according to the IP address of the corresponding BMC.
Optionally, the device further includes:
the triggering unit is used for intercepting the current interfaces of at least two servers through the corresponding BMCs if the batch processing is triggered, wherein the current interface corresponding to a first server in the at least two servers is used as a first current interface, and the interface corresponding to a second server except the first server in the at least two servers is used as a second current interface;
the computing unit is used for determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface;
and the synchronization unit is used for correcting the mouse pointer of the second server to the position of the mouse pointer of the first server according to the offset.
Further, the operation unit includes:
the proportion module is used for determining the size proportion between the first current interface and the second current interface;
the adjusting module is used for adjusting the size of the second current interface and the size of the first current interface to be the same size according to the size proportion;
and the offset module is used for determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface, wherein the offset comprises a transverse offset and a longitudinal offset.
Further, the device is further used for acquiring the mouse operation aiming at the first server and determining a first displacement of the mouse operation;
the operation unit is also used for determining a second displacement of the mouse of the second server according to the size proportion and the first displacement;
and the synchronization unit is also used for transmitting a second displacement to the second server so as to enable the mouse of the second server to move according to the second displacement.
In the embodiment of the specification, the session is established with the BMC of the plurality of servers, the session list items related to the BMC of the plurality of servers are generated in the session list maintained locally, the interface of the server acquired by the BMC is displayed, and after the management instruction of the user based on the interface of the displayed server is acquired, the management instruction is issued to the selected server based on the session list items, so that the management of the plurality of servers by one operation of the user can be realized, the time for repeatedly operating the plurality of servers is reduced, and the efficiency of managing the servers by the user is improved.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (12)

1. A server management method, comprising:
respectively establishing connection with baseboard management controllers BMCs on at least two servers, and generating session table items of the corresponding BMCs in a session table;
acquiring interfaces of the at least two servers through the BMC;
displaying interfaces of the at least two servers in at least two display areas;
acquiring management instructions for at least two servers displaying interfaces;
according to the session table, the BMC sends acquired management instructions to selected servers in the at least two servers respectively;
the at least two display areas comprise a main screen area and a plurality of auxiliary screen areas, wherein the size of the main screen area is larger than that of the auxiliary screen area;
the displaying the interfaces of the at least two servers in at least two display areas comprises:
if the generated session table entry is the first session table entry in the session table, displaying an interface of a server acquired through the BMC corresponding to the session table entry in the main screen area;
and if the generated session table entry is not the first session table entry in the session table, displaying the interface of the server acquired through the BMC corresponding to the session table entry in the secondary screen area.
2. The method of claim 1, wherein the session table includes an IP address of the BMC and a server identifier;
after the interfaces of the at least two servers are displayed in the at least two display areas, the method further comprises:
and displaying the IP address of the BMC corresponding to the display area and the server identifier corresponding to the BMC at a preset position in the display area.
3. The method according to claim 1, wherein the sending, by the BMC, the acquired management instructions to the selected server of the at least two servers, respectively, according to the session table, includes:
acquiring a selected server and a selected management instruction;
according to the session table, determining the IP address of the BMC corresponding to the selected server;
and managing instructions to the selected server according to the IP address of the corresponding BMC.
4. The method of claim 1, further comprising, after presenting the interfaces of the at least two servers in at least two display areas:
if the batch processing is triggered, intercepting current interfaces of the at least two servers through corresponding BMCs, wherein the current interface corresponding to a first server in the at least two servers is used as a first current interface, and the interface corresponding to a second server except the first server in the at least two servers is used as a second current interface;
determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface;
correcting the position of the mouse pointer of the second server to the position of the mouse pointer of the first server according to the offset.
5. The method of claim 4, wherein the determining an offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface comprises:
determining a size ratio between the first current interface and the second current interface;
the size of the second current interface and the size of the first current interface are adjusted to be the same size according to the size proportion;
and determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface, wherein the offset comprises a lateral offset and a longitudinal offset.
6. The method of claim 5, further comprising, after correcting the mouse pointer of the second server to the position of the mouse pointer of the first server according to the offset:
acquiring mouse operation aiming at the first server, and determining a first displacement of the mouse operation;
determining a second displacement of a mouse of the second server according to the size proportion and the first displacement;
and transmitting the second displacement to the second server so that the mouse of the second server moves according to the second displacement.
7. A server management apparatus, comprising:
the establishing unit is used for establishing connection with BMCs on at least two servers respectively and generating session table items corresponding to the BMCs in the session table;
the intercepting unit is used for acquiring interfaces of the at least two servers through the BMC;
the display unit is used for displaying interfaces of the at least two servers in at least two display areas;
the system comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring management instructions aiming at least two servers with interfaces;
the management unit is used for respectively sending acquired management instructions to selected servers in the at least two servers through the BMC according to the session table;
the at least two display areas comprise a main screen area and a plurality of auxiliary screen areas, wherein the size of the main screen area is larger than that of the auxiliary screen area;
the display unit is specifically configured to display, in the main screen area, an interface of the server obtained through the BMC corresponding to the session table entry if the generated session table entry is the first session table entry in the session table; and if the generated session table entry is not the first session table entry in the session table, displaying the interface of the server acquired through the BMC corresponding to the session table entry in the secondary screen area.
8. The apparatus of claim 7, wherein the session table includes an IP address of the BMC and a server identification;
the display unit is further configured to display, at a preset position in the display area, an IP address of a BMC corresponding to the display area and a server identifier corresponding to the BMC.
9. The apparatus of claim 7, wherein the management unit comprises:
the instruction module is used for acquiring the selected server and the selected management instruction;
the determining module is used for determining the IP address of the BMC corresponding to the selected server according to the session table;
and the sending module is used for managing the instruction to the selected server according to the IP address of the corresponding BMC.
10. The apparatus as recited in claim 7, further comprising:
the triggering unit is used for intercepting the current interfaces of the at least two servers through the corresponding BMCs if the batch processing is triggered, wherein the current interface corresponding to a first server in the at least two servers is used as a first current interface, and the interface corresponding to a second server except the first server in the at least two servers is used as a second current interface;
the computing unit is used for determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface;
and the synchronization unit is used for correcting the mouse pointer of the second server to the position of the mouse pointer of the first server according to the offset.
11. The apparatus of claim 10, wherein the arithmetic unit comprises:
the proportion module is used for determining the size proportion between the first current interface and the second current interface;
the adjusting module is used for adjusting the size of the second current interface and the size of the first current interface to be the same size according to the size proportion;
and the offset module is used for determining the offset of the mouse pointer in the second current interface relative to the mouse pointer of the first current interface, wherein the offset comprises a transverse offset and a longitudinal offset.
12. The apparatus of claim 11, wherein the device comprises a plurality of sensors,
the acquisition unit is further used for acquiring mouse operation aiming at the first server and determining a first displacement of the mouse operation;
the operation unit is further used for determining a second displacement of the mouse of the second server according to the size proportion and the first displacement;
the synchronization unit is further configured to issue the second displacement to the second server, so that the mouse of the second server moves according to the second displacement.
CN202110199273.3A 2021-02-23 2021-02-23 Server management method and device Active CN113032066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110199273.3A CN113032066B (en) 2021-02-23 2021-02-23 Server management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110199273.3A CN113032066B (en) 2021-02-23 2021-02-23 Server management method and device

Publications (2)

Publication Number Publication Date
CN113032066A CN113032066A (en) 2021-06-25
CN113032066B true CN113032066B (en) 2023-05-23

Family

ID=76461019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110199273.3A Active CN113032066B (en) 2021-02-23 2021-02-23 Server management method and device

Country Status (1)

Country Link
CN (1) CN113032066B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794786B (en) * 2021-08-25 2023-12-26 新华三大数据技术有限公司 Management equipment and service system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597475A (en) * 2018-12-03 2019-04-09 郑州云海信息技术有限公司 A kind of server power supply information processing method, apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005222A1 (en) * 2006-06-07 2008-01-03 Lambert Timothy M System and Method for Server Information Handling System Management Through Local I/O Devices
US9853938B2 (en) * 2014-09-08 2017-12-26 Quanta Computer Inc. Automatic generation of server network topology
US10599504B1 (en) * 2015-06-22 2020-03-24 Amazon Technologies, Inc. Dynamic adjustment of refresh rate
WO2017122353A1 (en) * 2016-01-15 2017-07-20 株式会社日立製作所 Computer system and method for control thereof
CN112328299A (en) * 2020-11-19 2021-02-05 浪潮电子信息产业股份有限公司 Server firmware information viewing method, device, equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597475A (en) * 2018-12-03 2019-04-09 郑州云海信息技术有限公司 A kind of server power supply information processing method, apparatus and system

Also Published As

Publication number Publication date
CN113032066A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
JP3753244B2 (en) Real-time web sharing system
CN101902491B (en) Remote management system and control device
CN110515572A (en) Throw screen method, apparatus, storage medium and computer equipment
US20100079796A1 (en) Communication system
WO2017056487A1 (en) Communication system, information processing apparatus, and method for communication
JP2007115039A (en) Image processor, and control method of remote access apparatus for remotely controlling image processor
TW201027416A (en) Systems and methods for iconic graphical user interface and embedded device manager
JPH09223096A (en) Manager and client device
CN113032066B (en) Server management method and device
JP2016134069A (en) Image processing apparatus, image processing system and image processing method
JP2017167971A (en) Information processing device, system, program, and processing method
CN112835485A (en) Application interface processing method and device, electronic equipment and readable storage medium
CN111078104A (en) Redirection method of multi-point touch equipment on cloud desktop and computer equipment
US20140364968A1 (en) Equipment management device, equipment management method, program and equipment management system
CN110581885A (en) Method, device and equipment for determining equipment synchronization and storage medium
CN113590146A (en) Server and container upgrading method
CN114968023A (en) Terminal control method, terminal control device, electronic equipment and storage medium
US9268869B2 (en) Image processing apparatus that displays icon, method of controlling the same, image processing system, and storage medium
CN112306591A (en) Remote debugging method and device based on page
CN115357340A (en) Device and method for improving performance of virtual equipment
JP2004280636A (en) Information processing system including communication connection type information processing apparatus excluding user interface and its control method
JP2001337663A (en) Method, terminal unit and system for screen display
JP4161806B2 (en) Management device, management method, and network system
CN112738279B (en) Multi-mode invisible deployment method and device of data processing equipment
US20240095190A1 (en) Device management system capable of managing devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant