Bash command to get the proxmox license state

peterge

Well-Known Member
Apr 3, 2019
50
2
48
25
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!