Forum Discussion
Satoshi_Toyosa1
Jan 20, 2019Employee
If you are after the output from
tmsh show sys license
, then send a GET request to the BIG-IP's /mgmt/tm/sys/license
endpoint: e.g.,
curl -sku : https:///mgmt/tm/sys/license
To grab just the date related fields, pipe the output to a JSON parser and grep.
... | python -m json.tool | grep -E -A 1 'license.+Date|serviceCheckDate'
An example output:
"licenseEndDate": {
"description": "2019/01/29"
--
"licenseStartDate": {
"description": "2018/11/04"
--
"licensedOnDate": {
"description": "2018/12/19"
--
"serviceCheckDate": {
"description": "2018/12/30"