A key operation control method and device, and a storage medium

By obtaining and verifying the activation code of the terminal device, the problem of unauthorized or erroneous operation in server operation is solved, and higher security is achieved.

CN114117399BActive Publication Date: 2025-10-17INSPUR BUSINESS MACHINE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111407328.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2025-10-17
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

In the prior art, when maintenance personnel perform local operations on a server, unauthorized operations or erroneous operations may occur, resulting in insufficient server security.

Method used

By obtaining the activation code of the terminal device and verifying its validity, it decides whether to respond to the server's key operation, ensuring that only legal and valid activation codes can unlock the server's key control permissions.

Benefits of technology

Improves the security of server operations, prevents unauthorized or erroneous operations, and enhances the security of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114117399B_ABST
    Figure CN114117399B_ABST
Patent Text Reader

Abstract

The application discloses a kind of control method and device of key operation, it is applied to server, when obtaining the authorization request to server, it is obtained from terminal device activation code, when receiving the activation code sent by terminal device, it is checked whether activation code is effective, further according to the effectiveness of activation code, it is determined whether the key operation of server is responded.This application obtains the activation code to server from terminal device and according to the effectiveness of activation code, decides whether to respond the key operation of server.Compared with prior art directly according to the key operation of server to control server, the security of server operation can be improved.The application also discloses a kind of computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of servers, in particular to a control method and device for key operation. The present application also relates to a computer readable storage medium. BACKGROUND

[0002] With the rise and rapid development of cloud platforms and services, distributed storage, big data and other businesses, servers have entered a stage of rapid development. However, the actual application scenarios of servers have continuously increased the demand for server product security.

[0003] In the prior art, when maintenance personnel perform local operations on servers, such as operating the keys corresponding to the servers, unauthorized operations or misoperations may occur, such as the maintenance personnel not accurately identifying the target server and actually operating a server without authorization, or mistakenly operating a server that is not the target server. SUMMARY

[0004] The purpose of the present application is to provide a control method and device for key operation, which is applied to servers and can improve the security of server operation. The present application also provides a computer readable storage medium.

[0005] To achieve the above purpose, the present application provides the following technical solutions:

[0006] A control method for key operation applied to a server, comprising:

[0007] When an authorization request for the server is obtained, an activation code is obtained from a terminal device;

[0008] When the activation code sent by the terminal device is received, it is checked whether the activation code is valid;

[0009] According to the validity of the activation code, it is determined whether to respond to the key operation of the server.

[0010] Preferably, when an authorization request for the server is obtained, an activation code is obtained from a terminal device, comprising:

[0011] When an authorization request for the server is obtained, a communication request is sent to each terminal device listed in the list to realize communication with the terminal device;

[0012] When communication with the terminal device is realized, the activation code is obtained from the terminal device.

[0013] Preferably, the step of sending a communication request to each of the listed terminal devices to implement communication with the terminal devices comprises the steps of: searching for each of the listed terminal devices by wireless means, and if the terminal device is found, sending a communication request to the terminal device to establish a wireless connection with the terminal device and implement communication with the terminal device.

[0014] Preferably, the step of verifying whether the activation code is valid comprises the steps of: verifying whether the activation code is legal and verifying whether the activation code is within a valid period, and if the activation code is legal and within the valid period, the activation code is valid, otherwise, the activation code is invalid.

[0015] Preferably, before the step of obtaining an authorization request for the server, the method further comprises the step of: importing the activation code into the terminal device.

[0016] Preferably, before the step of obtaining an authorization request for the server, the method further comprises the step of:

[0017] The list is set for the server, and the list lists the terminal devices that have control authority over the server.

[0018] The terminal device listed in the list is implemented to communicate with the terminal device, and the activation code is imported into the terminal device.

[0019] Preferably, the step of determining whether to respond to the key operation of the server according to the validity of the activation code comprises the step of: if the activation code is valid, responding to the first key operation of the server generated after determining that the activation code is valid.

[0020] Preferably, the step of determining whether to respond to the key operation of the server according to the validity of the activation code comprises the step of:

[0021] If the activation code is valid, the type of the key operation of the server is determined.

[0022] According to the type of the key operation of the server, an instruction corresponding to the type of the key operation of the server is sent to the server to control the server to perform a corresponding action.

[0023] A key operation control device applied to a server, for executing the key operation control method described above.

[0024] A computer readable storage medium, the computer readable storage medium has a computer program stored thereon, the computer program is executed by a processor to implement the steps of the key operation control method described above.

[0025] According to the technical scheme, the control method and device of the key operation provided by the application are applied to a server, an activation code is obtained from a terminal device when an authorization request for the server is obtained, and when the activation code sent by the terminal device is received, it is checked whether the activation code is valid, and further, according to the validity of the activation code, it is determined whether the key operation of the server is responded.

[0026] Therefore, the control method and device of the key operation applied to the server can obtain the activation code for the server from the terminal device and determine whether to respond to the key operation of the server according to the validity of the activation code. Compared with the prior art of directly controlling the server according to the key operation of the server, the security of the operation of the server can be improved.

[0027] The application also provides a computer readable storage medium, which can achieve the beneficial effects. BRIEF DESCRIPTION OF DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.

[0029] Figure 1 The flow chart of the control method of the key operation provided by the embodiment of the present application;

[0030] Figure 2 The flow chart of the control method of the key operation provided by another embodiment of the present application;

[0031] Figure 3 The method flow chart for responding to the key operation of the server in the embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the person skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present application.

[0033] Please refer to Figure 1 , Figure 1A flow chart of a key operation control method provided by the embodiment is shown in the figure. The key operation control method is applied to a server and includes the following steps:

[0034] S10: When an authorization request for the server is obtained, an activation code is obtained from a terminal device.

[0035] When a maintenance personnel is on site to perform a local operation on the server, an authorization request is initiated for the server to be operated. Thus, when an authorization request for the server is obtained, an activation code is obtained from a terminal device.

[0036] S11: When the activation code sent by the terminal device is received, it is checked whether the activation code is valid.

[0037] S12: According to the validity of the activation code, it is determined whether to respond to the key operation of the server. If the activation code is valid, the key operation of the server is responded to. If no valid activation code is received, the key operation of the server is not responded to.

[0038] According to the validity of the received activation code, it is determined whether to respond to the key operation of the server or not to respond to the key operation of the server.

[0039] The key operation control method applied to the server of the embodiment obtains an activation code for the server from a terminal device and determines whether to respond to the key operation of the server according to the validity of the activation code. Compared with the prior art of directly controlling the server according to the key operation of the server, the security of the operation of the server can be improved.

[0040] The key operation control method will be described in detail in combination with the specific embodiments. Please refer to Figure 2 , Figure 2 A flow chart of a key operation control method provided by another embodiment is shown in the figure. The key operation control method is applied to a server and includes the following steps:

[0041] S20: When an authorization request for the server is obtained, a communication request is sent to each terminal device listed in the list to communicate with the terminal device.

[0042] The list lists each terminal device having control authority over the server, that is, when an activation code sent by a terminal device in the list is received, the control authority over the key of the server can be unlocked.

[0043] When the authorization request for the server is acquired, a communication request is sent to each terminal device in the list to enable communication with the terminal devices to acquire the activation code and authorization for the key operation of the server. In this embodiment, the manner of communication with the terminal device is not limited, for example, a wired connection can be established with the terminal device to enable communication, or a wireless connection can be established with the terminal device to enable communication.

[0044] Preferably, a wireless connection is established with the terminal device to enable communication, so that the operation is more convenient in actual application. Specifically, when the authorization request for the server is acquired, each terminal device listed in the list is searched by a wireless manner, if the terminal device is searched, a communication request is sent to the terminal device to establish a wireless connection with the terminal device and enable communication with the terminal device. In this embodiment, the specific manner of wireless communication is not limited, for example, it can be a wireless communication manner such as WIFI, Bluetooth, etc.

[0045] Optionally, a search duration threshold can be set, if the terminal device is powered off or far away, the terminal device can not be searched, and if the search duration for the terminal device exceeds the search duration threshold, the search for the terminal device is stopped.

[0046] S21: Determine whether communication with the terminal device is enabled. If yes, go to step S22, if no, go to step S20.

[0047] S22: Acquire the activation code from the terminal device enabling communication.

[0048] If the communication connection with the terminal device is established, the activation code is acquired from the terminal device enabling communication. If the communication connection with the terminal device is not successfully established, each terminal device listed in the list is continuously searched, and a communication request is sent to each terminal device to enable communication with the terminal device.

[0049] S23: Verify whether the received activation code is valid. If yes, go to step S24.

[0050] S24: Respond to the key operation of the server.

[0051] If the received activation code is valid, the control authority of the server key is unlocked, and when the key of the server is operated on site, the system responds to the key operation of the server. If no valid activation code is received, the key operation of the server is not responded. If no valid activation code is received, the control authority of the server key cannot be unlocked, and when the key of the server is operated on site, the system does not respond to the key operation of the server.

[0052] Preferably, the step of checking whether the activation code is valid comprises: checking whether the activation code is legal and checking whether the activation code is within a valid period, and if the activation code is legal and the activation code is within the valid period, the activation code is valid, otherwise, the activation code is invalid.

[0053] If the received activation code is legal and the activation code is within the valid period, the activation code is valid. If the received activation code is not legal, or the activation code is not within the valid period, or the received activation code is not legal and the activation code is not within the valid period, the activation code is invalid. By setting a valid period for the activation code, the security of the server operation can be further improved. For example, if the terminal device used by the maintenance personnel is lost, if the activation code of the terminal device is always valid, other people can use the terminal device to unlock the control authority of the server buttons to operate the server, which threatens the security of the server operation. Therefore, by setting a valid period for the activation code, if the activation code provided by the terminal device is not within the valid period, other people cannot use the terminal device to unlock the server buttons.

[0054] Further, before obtaining the authorization request for the server, the method further comprises: importing the activation code into the terminal device. The activation code can be imported into the terminal device in advance. In actual application, the activation code corresponding to each server can be imported into the terminal device used by the maintenance personnel according to which servers the maintenance personnel is responsible for managing.

[0055] Optionally, the activation code for the server can be obtained by performing an encryption operation on the information data of the server.

[0056] Optionally, the activation code can be imported into the terminal device in advance by the following process, comprising the following steps:

[0057] S31: setting the list for the server, the list listing the terminal devices having control authority over the server.

[0058] S32: communicating with the terminal devices listed in the list, and importing the activation code into the terminal devices.

[0059] The list is set for the server. For the terminal device that first joins the list, the activation code for the server is imported into the terminal device. For the terminal device that joins the list, the terminal device is communicated with, and the activation code is imported into the terminal device. In the embodiment, the way of communicating with the terminal device is not limited, for example, a wired connection can be established with the terminal device to realize communication, or a wireless connection can be established with the terminal device to realize communication.

[0060] Preferably, in this embodiment, the first key operation generated by the server after determining that the activation code is valid is responded to if the activation code is valid. The activation code used is valid for single use, i.e. if the activation code obtained from the terminal device is valid, it can allow one key operation to the server. If the key operation to the server has been performed by the maintenance personnel after determining that the activation code is valid and the system has responded to the key operation, if the key operation to the server is performed again, the system will not respond to the key operation, and if a response is needed, the authorization needs to be obtained from the terminal device again. Thus, the control method of the key operation in this embodiment uses the activation code for single unlocking, which can further improve the security of the operation to the server.

[0061] Further optionally, if the activation code is valid, the response to the key operation to the server can include the following process, please refer to Figure 3 , Figure 3 The method flow chart for responding to the key operation to the server in this embodiment is shown in the figure, which includes the following steps:

[0062] S121: Determine the type of the key operation to the server.

[0063] S122: According to the type of the key operation to the server, issue an instruction corresponding to the type of the key operation to the server to the server to control the server to perform corresponding actions.

[0064] For example, the key operation to the server is to start the server, then issue a start instruction to the server to control the server to start. If the key operation to the server is to shut down the server, then issue a shutdown instruction to the server to control the server to shut down.

[0065] Further, before obtaining the authorization request for the server, it further includes: judging whether the control mode of the server is a global lock control mode, if yes, obtaining the authorization request for the server. The control mode of the server can be set in advance, and if the current control mode of the server is a global lock mode, the key operation to the server is controlled by the method described above.

[0066] For example, if the current control mode of the server is a default control mode, the key operation to the server is directly responded, i.e. no unlocking is needed by obtaining the activation code from the terminal device, when the key operation to the server is generated, the type of the key operation to the server is directly determined, according to the type of the key operation to the server, an instruction corresponding to the type of the key operation to the server is issued to the server to control the server to perform corresponding actions.

[0067] Correspondingly, the embodiment also provides a key operation control device, which is applied to a server and used for executing the key operation control method.

[0068] The key operation control device of the embodiment is applied to a server, and when an authorization request for the server is acquired, an activation code is acquired from a terminal device. When the activation code sent by the terminal device is received, it is verified whether the activation code is valid. Further, according to the validity of the activation code, it is determined whether to respond to the key operation of the server.

[0069] Therefore, the key operation control device applied to the server of the embodiment can acquire the activation code for the server from the terminal device and determine whether to respond to the key operation of the server according to the validity of the activation code. Compared with the prior art of directly controlling the server according to the key operation of the server, the security of the operation of the server can be improved.

[0070] Optionally, the key operation control device of the embodiment can be integrated on a baseboard management control device of the server. The terminal device can be a terminal device carried by a staff. When a maintenance personnel wants to operate the server on site, an authorization request for the server is sent to the control device. The control device acquires the activation code from the terminal device according to the authorization request to verify whether the control authority of the key operation of the server is unlocked, so as to determine whether the on-site maintenance personnel is allowed to operate the key operation of the server.

[0071] The embodiment also provides a computer readable storage medium, and the computer readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the key operation control method are implemented.

[0072] The computer readable storage medium of the embodiment can acquire the activation code for the server from the terminal device and determine whether to respond to the key operation of the server according to the validity of the activation code. Compared with the prior art of directly controlling the server according to the key operation of the server, the security of the operation of the server can be improved.

[0073] The key operation control method and device and storage medium provided by the embodiment are described in detail. The principle and implementation mode of the embodiment are described by using specific examples. The above description of the embodiments is only used to help understand the method and core idea of the embodiment. It should be pointed out that, for those skilled in the art, without departing from the principle of the embodiment, the embodiment can be improved and modified. These improvements and modifications also fall within the protection scope of the claims of the embodiment.

Claims

1. A key operation control method, applied to a server, characterized in that: include: When receiving an authorization request from the server, obtain an activation code from the terminal device; When receiving the activation code sent by the terminal device, verifying whether the activation code is valid; Determining whether to respond to the key operation of the server according to the validity of the activation code; Before obtaining the authorization request for the server, the method further includes: setting a list for the server, the list listing the terminal devices that have control authority over the server; communicating with the terminal devices listed in the list, and importing the activation code into the terminal devices; When receiving an authorization request from the server, obtaining an activation code from the terminal device includes: When an authorization request for the server is obtained, a communication request is sent to each of the terminal devices listed in the list to achieve communication with the terminal device, including: searching for each of the terminal devices listed in the list by wireless means, and if the terminal device is found, a communication request is sent to the terminal device to establish a wireless connection with the terminal device to achieve communication with the terminal device, wherein a search time threshold is set, and if the search time for the terminal device exceeds the search time threshold, the search for the terminal device is stopped; When communication is achieved with the terminal device, the activation code is obtained from the terminal device.

2. The key operation control method according to claim 1, characterized in that: Verifying whether the activation code is valid includes: verifying whether the activation code is legal and verifying whether the activation code is within the validity period. If the activation code is legal and within the validity period, the activation code is valid; otherwise, the activation code is invalid.

3. The key operation control method according to claim 1, characterized in that: Before obtaining the authorization request for the server, the method further includes: importing the activation code into the terminal device.

4. The key operation control method according to any one of claims 1 to 3, characterized in that: Determining whether to respond to the key operation of the server according to the validity of the activation code includes: if the activation code is valid, responding to the first key operation generated by the server after determining that the activation code is valid.

5. The key operation control method according to any one of claims 1 to 3, characterized in that: Determining whether to respond to the key operation of the server according to the validity of the activation code includes: If the activation code is valid, determining the type of key operation of the server; According to the type of the key operation of the server, an instruction corresponding to the type of the key operation of the server is sent to the server to control the server to perform a corresponding action.

6. A key-operated control device, applied to a server, characterized in that: A control method for executing the key operation according to any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the key operation control method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Access method, router, and terminal

    CN105554845A

  • Control method and control device for intelligent planting equipment, and terminal

    CN106302392A