How to update expiry date for associated accounts for On-prem from Ancor CLI

Modified on Sun, 16 Mar at 5:06 PM

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,

  1. Log in to your ancor server via terminal.
  2. Type ancor-cli and enter the password.
  3. 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

  4. Once the sync is completed, type ‘exit’ to come out of it:

    >Ancor:>ancormgmt>exit

  5.  Type 'accountmgmt' to go to the Account Management CLI.

    >Ancor>AccountMgmt
    >Ancor>AccountMgmt>listallusers

     It will show the admin ID

 

  1.  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

 

  1. 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

 

  1. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article