- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Re: bulk delete licenses on MDS
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bulk delete licenses on MDS
Hello,
Does anybody know a way bulk delete or clean the lic db on a MDS?
We have lics that have replicated 39000 time due to an error that was caused by an auto-licensing issue on Check Points backend.
I can only see I can delete one at a time, and that's gonna take 6 years, alternatively I will reinstall the whole thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Open a support ticket with TAC on licensing, they will help you to clean up the database , then import support contracts again.
Don't try anything stupid... don't wanna cry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, already tried that, they cant help, I think I will reinstall it on a new VM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If they all have the same signature, maybe one command will remove them all.
If this doesn't work, you can create a script get all signatures in the server to a file and run "cplic del <signature>" in a loop. If all the licenses are identical you can cut the loop short by 1 iteration or remove relevant string from file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
unfortunatly not the same signature, the script part might work, but its still a lot of work to pull out all the signatures
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Example: cplic print -x | awk '{print $3}' > licenses.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanx, I will try this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let us know if it works.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just curious, what sort of licences would that command remove?
Best,
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That will put all signature in a file, each signature in its own line.
I created a loop for the file to run "cplic del $(cat <filename> | head -1)" for the number of lines in file and remove first line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got it, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Very neat, just tested it on my Azure lab.
Andy
[Expert@azurefw:0]# cplic print -x | awk '{print $3}' > licenses.txt
[Expert@azurefw:0]# more licenses.txt
Signature
dM7FLELPxQSEBZSPr9UBLPrS7sYa9Z878n8j
Expiration
XTPC0EZ
CPSB-FW
4O5ZRLS
CPSB-FW
RIAM3XA
CPSB-FW
KPQ5A3P
CPSB-FW
DB4BQMP
CPSB-FW
[Expert@azurefw:0]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the feed back, I think something else i wrong I get "Failed to delete license", I will contact TAC again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe also check with Account services, they might be also able to help.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried, but no luck. thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What did they say?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We appreciate your response.
I wanted to clarify that this is not a mistake of any specific person or team. This was an auto-generation license error, as previously stated.
Unfortunately, Account Services does not currently have any syntax from our development department that would allow us to immediately delete a large amount of licenses. The maximum amount our licensing expert has determined you may delete at one time is the 100 instances I provided in the previous email.
If you would like to speak with your security engineer and attempt to find an alternate way to delete licenses at once, please feel free to do so. We understand that the provided process will take some time and apologize for the inconvenience.
Please let me know if you have any further questions or concerns regarding this matter.
And then they closed the case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thats unfortunate, but I get it...could Sales person assist more?
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Licenses are stored in $CPDIR/conf/cp.license.
Each license is a single line.
I believe you can manipulate this file directly (make backups, etc before doing so) on each affected module.
You will need to execute a cprestart after editing this file (best to do via maintenance window).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I will try that
