List of vms following the status

Hello
Can we have the list of vms following the status with onevm list ?
This syntax doesn’t sound good :
root@debian11:~# onevm list
ID USER GROUP NAME STAT CPU MEM HOST TIME
54 oneadmin oneadmin Rocky Linux 9-54 poff 0.1 768M node1 138d 00h47
root@debian11:~# onevm list --search stat=poff
ID USER GROUP NAME STAT CPU MEM HOST TIME
root@debian11:~# onevm list --search status=poweroff
ID USER GROUP NAME STAT CPU MEM HOST TIME
root@debian11:~#
Thank you very much

It seems that I should use --filter instead of --search

Hello @Marc-Antoine,

Correct, if you need more information, you cand find it on the documentation:
https://docs.opennebula.io/6.10/integration_and_development/references/vm_states.html

In any case, if you have any other question or doubt on how to manage OpenNebula, feel free to post it on this forum.

Regards,

1 Like