F5Networks / f5-common-python

Python SDK for configuration and monitoring of F5® BIG-IP® devices via the iControl® REST API.
https://f5-sdk.readthedocs.org
Apache License 2.0
262 stars 133 forks source link

How can I re-activate my license ? #1551

Open ciscoCruz opened 4 years ago

ciscoCruz commented 4 years ago

I have tried the following but it does not seem to work:

mgmt.tm.shared.licensing.activation.modify(automaticActivation= True, activationMethod="AUTOMATIC")

Any help would be appreciated

lizhi1989 commented 4 years ago

I encounter the same issue. I remove the license file manually. You should be able to remove using below API also.

https://BIGIP/mgmt/tm/util/bash POST: { "command": "run", "utilCmdArgs": " -c ' rm -f /config/bigip.license'" }

after that I install the license. https://BIGIP/mgmt/tm/util/bash

POST: { "command": "run", "utilCmdArgs": " -c ' tmsh install /sys license registration-key [Your-License-Key]'" }