Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 171725

Is there a quick command to detect VMs suspended (Hibernated) status?

$
0
0
I want to check if the VM is in suspended state from the command line.

Here is my way right now:
Code:
qm status <vmid> --verbose | grep suspended
It will have a line in output, if this <vmid> is suspended.

However, this way is tooooo slow. The qm status command will use near 1 second. if there have 100 stoped VMs ( pre-checked by qm list ), just check suspended, will use 100 seconds. This way is terrible.

So, any better way to check all VMs: does they are suspended ?

ps...

Read more

Viewing all articles
Browse latest Browse all 171725

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>