CN-115632812-B - License multiplexing method and device
Abstract
The application relates to the technical field of authorization management, in particular to a License multiplexing method and device. The method is applied to a License server which is deployed independently of a disaster recovery main and standby system, the disaster recovery main and standby system comprises a first system serving as the disaster recovery main system and a second system serving as the disaster recovery standby system, the method comprises the steps of receiving a first License acquisition request which is sent by the first system and carries target License information and system identification information of the first system, establishing a binding relation between a target License and the system identification of the first system and authorizing the target License to the first system, receiving a second License acquisition request which is sent by the second system and carries the system identification of the first system and the system identification of the second system, determining the target License based on the system identification of the first system, and authorizing the target License to the second system.
Inventors
- LUO XUEFANG
Assignees
- 新华三技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20220909
Claims (10)
- 1. The License multiplexing method is characterized by being applied to a License server, wherein the License server is deployed independently of a disaster recovery main and standby system, the disaster recovery main and standby system comprises a first system serving as a disaster recovery main system and a second system serving as a disaster recovery standby system, the first system and the second system are respectively connected with the License server, and the method comprises the following steps: Receiving a first License acquisition request sent by the first system, wherein the first License acquisition request comprises target License information required by the first system and preconfigured system identification information of the first system; Acquiring the target License from a License resource pool, establishing a binding relationship between the target License and a system identifier of the first system, and authorizing the target License to the first system; Receiving a second License acquisition request sent by the second system, wherein the second system acquires a system identifier of the first system after detecting the first system fault and switching to a main system, and sends a second License acquisition request comprising the system identifier of the first system and the system identifier of the second system to the License server; Determining the target License bound with the system identifier of the first system based on the system identifier of the first system included in the second License acquisition request, recovering the target License authorization issued to the first system, establishing a binding relationship between the target License authorization and the system identifier of the second system, and authorizing the target License to the second system.
- 2. The method of claim 1, wherein client accounts are preconfigured for the first system and the second system, the first system logs in the License server through a first client account, a connection is established with the License server, and the second system logs in the License server through a second client account, and a connection is established with the License server.
- 3. The method of claim 1, wherein the step of reclaiming the target License authorization issued to the first system comprises: and releasing the binding relationship between the target License authorization and the system identifier of the first system.
- 4. The method of any of claims 1-3, wherein the License server maintains an identification set of system identifications of the first system and system identifications of the second system, the method further comprising: when the first License obtaining request sent by the first system is received, obtaining the target License from a License resource pool, establishing a binding relation between the target License and the identification set, and authorizing the target License to the first system.
- 5. The method of claim 4, wherein the method further comprises: If a second License acquisition request sent by the second system is received, determining the target License bound with the identifier set based on a system identifier of the second system included in the second License acquisition request, recovering the target License authorization issued to the first system, and authorizing the target License to the second system.
- 6. The License multiplexing device is characterized by being applied to a License server, wherein the License server is deployed independently of a disaster recovery main and standby system, the disaster recovery main and standby system comprises a first system serving as a disaster recovery main system and a second system serving as a disaster recovery standby system, the first system and the second system are respectively connected with the License server, and the device comprises: A receiving unit, configured to receive a first License acquisition request sent by the first system, where the first License acquisition request includes target License information required by the first system and preconfigured system identification information of the first system; The establishing unit is used for acquiring the target License from the License resource pool, establishing a binding relationship between the target License and the system identifier of the first system, and authorizing the target License to the first system; the receiving unit is further configured to receive a second License obtaining request sent by the second system, where the second system obtains a system identifier of the first system after detecting the first system fault and switching to a main system, and sends a second License obtaining request including the system identifier of the first system and the system identifier of the second system to the License server; the recovery unit is used for determining the target License bound with the system identifier of the first system based on the system identifier of the first system included in the second License acquisition request, and recovering the target License authorization issued to the first system; The establishing unit is further configured to establish a binding relationship between the target License authorization and a system identifier of the second system, and authorize the target License to the second system.
- 7. The apparatus of claim 6, wherein client accounts are preconfigured for the first system and the second system, the first system logs in the License server through a first client account, a connection is established with the License server, and the second system logs in the License server through a second client account, and a connection is established with the License server.
- 8. The apparatus of claim 6, wherein the recycling unit is specifically configured to, upon recycling the target License grant issued to the first system: and releasing the binding relationship between the target License authorization and the system identifier of the first system.
- 9. The apparatus of any of claims 6-8, wherein the License server maintains an identification set consisting of a system identification of the first system and a system identification of the second system; the receiving unit is further configured to receive the first License acquisition request sent by the first system; The establishing unit is further configured to obtain the target License from a License resource pool, establish a binding relationship between the target License and the identifier set, and authorize the target License to the first system.
- 10. The apparatus of claim 9, wherein the apparatus further comprises: The receiving unit is further configured to receive a second License acquisition request sent by the second system; The recycling unit is further configured to determine the target License bound to the identifier set based on a system identifier of the second system included in the second License acquisition request, and recycle the target License authorization issued to the first system; the establishing unit is further configured to authorize the target License to the second system.
Description
License multiplexing method and device Technical Field The application relates to the technical field of License authorization, in particular to a License multiplexing method and device. Background The different-place disaster recovery scene refers to that two sets of systems are respectively deployed in two physical places, such as two cities. The two systems are in backup relation. One set of system is used as the main use to process business, and the other set of system is used as the standby use. When the original main system fails, the standby system takes over the service and upgrades the service to the main system. License is an authorization management mechanism. The License file is an authorization file for controlling whether or not the use of system-specific functions is permitted, and controlling the number of managed resources. In the disaster recovery scene of different places, the main system and the standby system manage the same set of equipment resources without the need of a user to purchase two sets of authorizations. At present, in order to solve the problem of authorized file sharing between two sets of systems in a disaster recovery scene in different places, a License server can be deployed in each of the main and standby systems, and then ESN electronic serial numbers (ESN is an identifier for identifying the systems) of the main and standby systems are collected respectively. Logging into the License website binds both the ESN of the primary system and the ESN of the backup system to the License file. Before uploading the License file, the current host system needs to be queried, and then the host system is logged in to upload the License file. However, when the ESN of the system changes, since the License file binds the ESN, it is necessary to collect the ESN of the main system and the standby system again, log in the License website to update the binding relationship between the License file and the ESN, download the updated License file, upload the updated License file to the latest main system, and complicate the modification process. Disclosure of Invention The application provides a License multiplexing method and device. In a first aspect, the present application provides a License multiplexing method, applied to a License server, where the License server is deployed independent of a disaster recovery main and standby system, the disaster recovery main and standby system includes a first system serving as a disaster recovery main system and a second system serving as a disaster recovery standby system, and the first system and the second system respectively establish connection with the License server, where the method includes: Receiving a first License acquisition request sent by the first system, wherein the first License acquisition request comprises target License information required by the first system and preconfigured system identification information of the first system; Acquiring the target License from a License resource pool, establishing a binding relationship between the target License and a system identifier of the first system, and authorizing the target License to the first system; Receiving a second License acquisition request sent by the second system, wherein the second system acquires a system identifier of the first system after detecting the first system fault and switching to a main system, and sends a second License acquisition request comprising the system identifier of the first system and the system identifier of the second system to the License server; Determining the target License bound with the system identifier of the first system based on the system identifier of the first system included in the second License acquisition request, recovering the target License authorization issued to the first system, establishing a binding relationship between the target License authorization and the system identifier of the second system, and authorizing the target License to the second system. Optionally, client accounts are preconfigured for the first system and the second system, the first system logs in the License server through the first client account, connection is established with the License server, and the second system logs in the License server through the second client account, and connection is established with the License server. Optionally, the step of recovering the target License authorization issued to the first system includes: and releasing the binding relationship between the target License authorization and the system identifier of the first system. Optionally, the License server maintains an identification set consisting of the system identification of the first system and the system identification of the second system, and the method further comprises: when the first License obtaining request sent by the first system is received, obtaining the target License from a License resource pool, establishing a binding relation between th