Overview:
In response to update the expiry date in all the accounts associated under admin for On-prem account.
This document provides guidance to update the expiry date for all the accounts from Ancor CLI. This will reduce the manual work to update in individual accounts. This is applicable if it is necessary to set the same expiry date for all accounts.
Note: The challenge arises because MSP accounts manage multiple client accounts, each with custom settings for expiry dates and enabled modules based on individual client requirements.
Applicable Platform:
On-premises Deployment
Steps to update expiry date in the Ancor for all accounts associated with admin:
Please do a manual sync, then update the Expiry date via CLI using the below steps,
- Log in to your ancor server via terminal.
- Type ancor-cli and enter the password.
- To synchronize definitions and data between the on-premises Ancor and SecPod Cloud:
-Type ancormgmt to go to the Ancor Management CLI.
-Type sync -o all and press ENTER
> Ancor:>ancormgmt>sync -o all - Once the sync is completed, type ‘exit’ to come out of it:
>Ancor:>ancormgmt>exit - Type 'accountmgmt' to go to the Account Management CLI.
>Ancor>AccountMgmt
>Ancor>AccountMgmt>listallusers
It will show the admin ID
- Then type 'updateadmin' in the below format and update the subscription count:
>updateadmin -u <admin id> -e YYYY-MM-DD
for eg: updateadmin -u <admin ID> -e 2025-06-17
- If it is necessary to set the same expiry date for all accounts, you can use the following command from your Ancor CLI:
updateadmin -u <admin ID> -e 2025-06-17 -c true
- To verify if the expiry date has been set, you can use the command below:
getadminaccountinfo : Get information of all accounts under an admin account
getadminaccountinfo -u <admin ID>
This command will provide information on all accounts under an admin account.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article