Close Menu
DPC Virtual Tips
    Read More

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Slurm Node Is DRAINED: How to Find the Exact Reason

    August 10, 2026

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    August 9, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Tuesday, August 11
    DPC Virtual Tips
    • Home
    • Operating Systems
    • PowerFlex
    • HPC
    • Virtualization
    • About the Author
    • About Us
    • Contact
    DPC Virtual Tips
    Home » Nutanix Command Line Interface (nCLI) Overview
    Virtualization

    Nutanix Command Line Interface (nCLI) Overview

    DaniloBy DaniloNovember 25, 2024Updated:July 31, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Nutanix nCLI commands
    Share
    Facebook Twitter LinkedIn Pinterest Email

    The Nutanix Command Line Interface (nCLI) Overview explains how to use nCLI commands to retrieve and manage important information from a Nutanix Cluster. This command-line tool provides administrators with another option for performing management tasks directly from the Controller VM (CVM).

    In this article, we will demonstrate practical examples of nCLI commands used to check cluster configuration, host information, and virtual machine details. These commands can be useful during administration, troubleshooting, and daily Nutanix operations.

    To execute nCLI commands, connect to any Controller VM (CVM) in the Nutanix cluster. After accessing the CVM command line, administrators can run different nCLI namespaces to retrieve specific environment information.

    First and foremost, How can I execute the nCLI?

    To run nCLI, we can access any Controller VM (CVM) in the cluster:

    Since we are using the Nutanix AOS 6.5 in our lab environment, the following documentation can be used for all nCLI options:

    • https://portal.nutanix.com/page/documents/details?targetId=Command-Ref-AOS-v6_5:man-ncli-c.html

    Executing nCLI to Get Cluster Details (ncli cluster)

    Checking the configured cluster name servers (DNS servers) and NTP servers:

    #Getting configured DNS servers on the Nutanix cluster:
    ncli cluster get-name-servers
    
    #Getting configured NTP servers on the Nutanix cluster:
    ncli cluster get-ntp-servers

    We can use the following command to get:

    • Cluster ID and UUID
    • Cluster Name and Version
    • Virtual IP address (aka External IP address)
    • Node count
    • External IP Data Services
    • RF1 Container Support (Enabled or not)
    • NCC version
    • Etc…….
    ncli cluster get-params

    If you need to get only the cluster version:

    ncli cluster version

    To get the cluster redundancy state (Redundancy Factor) and resiliency preference:

    #Getting the cluster redundancy state:
    ncli cluster get-redundancy-state
    
    #Getting the cluster resiliency preference:
    ncli cluster get-resiliency-preference

    To get the status for all cluster services (on all Controller VMs):

    ncli cluster status

    (…we have omitted the total command output….)

    Executing nCLI to Get Host Details (ncli host)

    To list all hosts (hypervisors) and their details:

    ncli host list

    To get stats data for hosts:

    ncli host list-stats

    Example of usage: To get the current CPU and Memory usage (%) for all Hypervisors:

    ncli host list-stats | egrep -i "Hypervisor|CPU Usage|Memory" | awk '/CPU Usage Percent/ {print; print "-----------------------"} !/CPU Usage Percent/ {print}'
    
    or
    
    ncli host list-stats | egrep -i "Hypervisor|CPU Usage|Memory" | sed '/CPU Usage Percent/a --------------------------'

    Executing nCLI to Get VM Details (ncli virtualmachine)

    To list all virtual machines (VMs):

    ncli virtualmachine list

    To get stats for each virtual machine (VM):

    ncli virtualmachine list-stats

    Example of Usage: To get the CPU usage (%) and Memory Usage (bytes) for all Controller VMs (CVMs):

    ncli virtualmachine list-stats | egrep -i "Name|CPU Usage|Memory Usage" | grep -A2 '\CVM' | sed '/Memory Usage/a --'

    That’s it 🙂

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleNet Acropolis Command-Line Interface (aCLI) Overview
    Next Article Introducing the PowerFlex Solution
    Danilo

    Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.

    Related Posts

    VM Replication with vSphere Replication and Site Recovery Manager

    June 16, 2025

    Changing DNS Settings on ESXi Hosts

    May 20, 2025

    Changing NTP Settings on ESXi Hosts

    May 19, 2025

    Comments are closed.

    Search
    Categories
    • HPC (10)
    • Operating Systems (83)
    • PowerFlex (22)
    • Virtualization (129)
    Read More
    Operating Systems

    How to Investigate TCP Retransmissions on Linux

    By DaniloAugust 11, 20260
    HPC

    Slurm Node Is DRAINED: How to Find the Exact Reason

    By DaniloAugust 10, 20260
    HPC

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    By DaniloAugust 9, 20260
    Operating Systems

    Linux Process Resource Usage: How to Find Heavy Processes

    By DaniloAugust 6, 20260
    HPC

    Lustre Filesystem Commands: A Practical Admin Guide

    By DaniloAugust 5, 20260
    Latest Posts

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Slurm Node Is DRAINED: How to Find the Exact Reason

    August 10, 2026

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    August 9, 2026
    Images from Gallery
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    shell scripting
    vSAN Trace Files
    Categories
    • HPC
    • Operating Systems
    • PowerFlex
    • Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to ensure your best experience on our website. If you continue using our website, we'll assume you agree to our cookie policy