Bash command to get the proxmox license state

peterge

Well-Known Member
Apr 3, 2019
57
5
48
26
Harperscheid
blog.peterge.de
Hey, I am building a solution via Gitlab ci/cd that acts like a cmdb for our proxmox hosts.

Is there any command that displays the repository & license status?

I basically would like to get this info that is shown in the webui:
1713163609323.png

But I prefer bash to get this instead of API, because I would like to keep the querys in the same language (KISS).

Is there any way to get this?
 
Please note that it is not a license (which is AGLP3) but a subscription (which is really a different legal thing in English). I do apologize for not knowing the answer to your question,
 
root@proxmox1:~# pvesh get /nodes/proxmox1/subscription
┌─────────────┬──────────────────────────────────────────────┐
│ key │ value │
╞═════════════╪══════════════════════════════════════════════╡
│ checktime │ 1712975520 │
├─────────────┼──────────────────────────────────────────────┤
│ key │ pve1c-the_actual_key │
├─────────────┼──────────────────────────────────────────────┤
│ level │ c │
├─────────────┼──────────────────────────────────────────────┤
│ nextduedate │ 2025-01-14 │
├─────────────┼──────────────────────────────────────────────┤
│ productname │ Proxmox VE Community Subscription 1 CPU/year │
├─────────────┼──────────────────────────────────────────────┤
│ regdate │ 2022-01-14 00:00:00 │
├─────────────┼──────────────────────────────────────────────┤
│ serverid │ the_actual_service_id │
├─────────────┼──────────────────────────────────────────────┤
│ sockets │ 1 │
├─────────────┼──────────────────────────────────────────────┤
│ status │ active │
├─────────────┼──────────────────────────────────────────────┤
│ url │ https://www.proxmox.com/proxmox-ve/pricing
└─────────────┴──────────────────────────────────────────────┘

I found this :)
 
Last edited: