Forum Discussion

James_Thomson_0's avatar
James_Thomson_0
Historic F5 Account
Jun 16, 2014

iControl REST way to activate a license based on Base Reg Key

I'm looking for a way to use iControl rest to send in a base RegKey and a command to have the BIG-IP go and license itself. I know there's the get-dossier command to grab a dossier manually, but the BIG-IP has a feature which allows it to go out and grab a license all by itself.

 

Any ideas on if this is possible? I saw this https://devcentral.f5.com/wiki/iControl.pyControl-v2-License-BIGIP.ashx and https://devcentral.f5.com/wiki/icontrol.BigIpLicensingCommandLineTool.ashx but all these deal with grabbing the dossier and going to activate.f5.com yourself.

 

7 Replies

  • iControl doesn't but if you have CLI access you can send the SOAPLicenseClient command which the BIGIP uses underneath the hood to do the automatic licensing in the GUI..

     

    [user@bigip1:Active:In Sync] config which SOAPLicenseClient /usr/local/bin/SOAPLicenseClient [user@bigip1:Active:In Sync] config SOAPLicenseClient

     

    ***Error: Base registration key is required for licensing.

     

    Usage: SOAPLicenseClient --basekey <"basekey1,basekey2..."> [--addkey <"addkey1,addkey2...">] [--host ] [--port ] [--email ] [--firstname ] [--lastname ] [--company ] [--phone ] [--title ] [--address <address>] [--city <city>] [--state <state>] [--zip <zip>] [--country <country>] [--interactive] [--help] [--verbose] [--checkonly]</p> <pre class="prettyprint lang-tcl"><code>interactive Interactive mode - Information will be prompted for when needed. verbose Print out extra messages -- debug mode. help Print out this message. checkonly Retrieve the license, but do not activate. host Host name or IP address of target License Server. port Port number to communicate with the License Server. basekey Base registration key(s) used to get the product license. If there are multiple keys, separate them with commas. addkey Add-on key(s) used to get the product license. If there are multiple keys, separate them with commas. The below parameters are needed during the initial licensing, but not required for license re-activation. email User registration information - email used for verification. firstname User registration information - first name used for verification. lastname User registration information - last name used for verification. company User registration information - company name used for verification. phone User registration information - phone number used for verification. title User registration information - job title used for verification. address User registration information - address used for verification. city User registration information - city used for verification. state User registration information - state used for verification. zip User registration information - postal code used for verification. country User registration information - country used for verification. </code></pre>

     

  • iControl doesn't but if you have CLI access you can send the SOAPLicenseClient command which the BIGIP uses underneath the hood to do the automatic licensing in the GUI..

     

    [user@bigip1:Active:In Sync] config which SOAPLicenseClient /usr/local/bin/SOAPLicenseClient [user@bigip1:Active:In Sync] config SOAPLicenseClient

     

    ***Error: Base registration key is required for licensing.

     

    Usage: SOAPLicenseClient --basekey <"basekey1,basekey2..."> [--addkey <"addkey1,addkey2...">] [--host ] [--port ] [--email ] [--firstname ] [--lastname ] [--company ] [--phone ] [--title ] [--address <address>] [--city <city>] [--state <state>] [--zip <zip>] [--country <country>] [--interactive] [--help] [--verbose] [--checkonly]</p> <pre class="prettyprint lang-tcl"><code>interactive Interactive mode - Information will be prompted for when needed. verbose Print out extra messages -- debug mode. help Print out this message. checkonly Retrieve the license, but do not activate. host Host name or IP address of target License Server. port Port number to communicate with the License Server. basekey Base registration key(s) used to get the product license. If there are multiple keys, separate them with commas. addkey Add-on key(s) used to get the product license. If there are multiple keys, separate them with commas. The below parameters are needed during the initial licensing, but not required for license re-activation. email User registration information - email used for verification. firstname User registration information - first name used for verification. lastname User registration information - last name used for verification. company User registration information - company name used for verification. phone User registration information - phone number used for verification. title User registration information - job title used for verification. address User registration information - address used for verification. city User registration information - city used for verification. state User registration information - state used for verification. zip User registration information - postal code used for verification. country User registration information - country used for verification. </code></pre>

     

  • iControl doesn't but if you have CLI access you can send the SOAPLicenseClient command which the BIGIP uses underneath the hood to do the automatic licensing in the GUI..

     

    [user@bigip1:Active:In Sync] config which SOAPLicenseClient /usr/local/bin/SOAPLicenseClient [user@bigip1:Active:In Sync] config SOAPLicenseClient

     

    ***Error: Base registration key is required for licensing.

     

    Usage: SOAPLicenseClient --basekey <"basekey1,basekey2..."> [--addkey <"addkey1,addkey2...">] [--host ] [--port ] [--email ] [--firstname ] [--lastname ] [--company ] [--phone ] [--title ] [--address <address>] [--city <city>] [--state <state>] [--zip <zip>] [--country <country>] [--interactive] [--help] [--verbose] [--checkonly]</p> <pre class="prettyprint lang-tcl"><code>interactive Interactive mode - Information will be prompted for when needed. verbose Print out extra messages -- debug mode. help Print out this message. checkonly Retrieve the license, but do not activate. host Host name or IP address of target License Server. port Port number to communicate with the License Server. basekey Base registration key(s) used to get the product license. If there are multiple keys, separate them with commas. addkey Add-on key(s) used to get the product license. If there are multiple keys, separate them with commas. The below parameters are needed during the initial licensing, but not required for license re-activation. email User registration information - email used for verification. firstname User registration information - first name used for verification. lastname User registration information - last name used for verification. company User registration information - company name used for verification. phone User registration information - phone number used for verification. title User registration information - job title used for verification. address User registration information - address used for verification. city User registration information - city used for verification. state User registration information - state used for verification. zip User registration information - postal code used for verification. country User registration information - country used for verification. </code></pre>

     

  • iControl doesn't but if you have CLI access you can send the SOAPLicenseClient command which the BIGIP uses underneath the hood to do the automatic licensing in the GUI..

     

    [user@bigip1:Active:In Sync] config which SOAPLicenseClient /usr/local/bin/SOAPLicenseClient [user@bigip1:Active:In Sync] config SOAPLicenseClient

     

    ***Error: Base registration key is required for licensing.

     

    Usage: SOAPLicenseClient --basekey <"basekey1,basekey2..."> [--addkey <"addkey1,addkey2...">] [--host ] [--port ] [--email ] [--firstname ] [--lastname ] [--company ] [--phone ] [--title ] [--address <address>] [--city <city>] [--state <state>] [--zip <zip>] [--country <country>] [--interactive] [--help] [--verbose] [--checkonly]</p> <pre class="prettyprint lang-tcl"><code>interactive Interactive mode - Information will be prompted for when needed. verbose Print out extra messages -- debug mode. help Print out this message. checkonly Retrieve the license, but do not activate. host Host name or IP address of target License Server. port Port number to communicate with the License Server. basekey Base registration key(s) used to get the product license. If there are multiple keys, separate them with commas. addkey Add-on key(s) used to get the product license. If there are multiple keys, separate them with commas. The below parameters are needed during the initial licensing, but not required for license re-activation. email User registration information - email used for verification. firstname User registration information - first name used for verification. lastname User registration information - last name used for verification. company User registration information - company name used for verification. phone User registration information - phone number used for verification. title User registration information - job title used for verification. address User registration information - address used for verification. city User registration information - city used for verification. state User registration information - state used for verification. zip User registration information - postal code used for verification. country User registration information - country used for verification. </code></pre>

     

  • If you have CLI access, you could script something using the SOAPLicenseClient which BIGIP uses underneath the hood to license in the GUI:

     

    [user@10-0-0-1:Active:In Sync] config SOAPLicenseClient

     

    ***Error: Base registration key is required for licensing.

     

    Usage: SOAPLicenseClient --basekey <"basekey1,basekey2..."> [--addkey <"addkey1,addkey2...">] [--host ] [--port ] [--email ] [--firstname ] [--lastname ] [--company ] [--phone ] ....

     

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account
    iConotrol REST will support licensing in 12.0, something like curl -k -u admin:admin -X POST -H "Content-type: application/json" -d '{"command":"install", "registrationKey":"''"}' https://192.168.1.245/mgmt/tm/sys/license'