How to Query/List Unprotected VMs? | Nutanix Community
Skip to main content

I need to monitor Nutanix replication and one of the metrics is not having unprotected vms.
Is there any way to list these VMs with nCLI or another command?

Hello,

ncli> virtualmachine {} }="name" ] ]="id" ] ]="host_id" ] ]="get_unprotected_cbr_vms_only" ] ]="count" ] ]="pageNumnber" ] 

Required arguments

None

Optional arguments

name

Name of the Virtual Machine

id

ID of the Virtual Machine

host-id

ID of the Physical Host running Virtual Machines

get-unprotected-cbr-vms-only

Get only unprotected Virtual Machines that can participate in Nutanix Converged Backup and Recovery?

Default: false

count

Count of the Virtual Machine

pageNumnber

PageNumber of the Virtual Machine

Default: false


Run this command on a CVM:

ncli virtualmachine list get-unprotected-cbr-vms-only=true

More information can be found here: virtualmachine: Virtual Machine