Problem:
I would like to view both node count entitlement, as well as the expiration date of my Automate 2 license.
Solution:
You can get the license expiration this way, but it does not show the node entitlement
chef-automate license status
This is the involved way, but it does show the licensed node count of 500 in the measure element. You can pass this command either a literal license string, or a file containing a license string
hab pkg exec chef/license-control-service license-control-service pretty-print mylicense.jwt
{
"id": "1120ceae-b600-42b4-b643-4281fa2ea837",
"version": "1",
"type": "commercial",
"generator": "chef/license-2.0.0",
"key_sha256": "e0df28c8bc68150edbfef98cd6b7dc439c1f80c7e7ef747893a6893a2f7b60ed7",
"generation_date": {
"seconds": 1569950592
},
"customer": "MyCorp",
"customer_id": "00680000019bZvsAAE",
"customer_id_version": "1",
"entitlements": [
{
"name": "MyCorp 500",
"measure": "nodes",
"limit": 500,
"start": {
"seconds": 1569369600
},
"end": {
"seconds": 1664063999
}
}
]
}
Comments
0 comments
Article is closed for comments.