ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

ESXi Commands List – Storage

By Vladan SEGET | Last Updated: May 12, 2016

Shares

Learning CLI commands might not be fun for someone, but let's try to add another post today. You could already learn about how-to monitor snapshot deletion from the CLI in our previous post – ESXi Commands List – Snapshot Deletion Monitoring – or get hand on some ESXi CLI Networking commands. ESXi Commands List – Storage, is today's post.

Storage, storage. When getting started with VMware ESXi Free version or with VMware vSphere, one of the most important information you need to know is information about your storage. Most of the information you can get via the GUI, but sometimes it's just faster to fire up Putty (or PuttyTray…) and launch one or two commands to get the info. But for this you must know those commands!

In this post we'll get started.

Is device managed by nmp (native multipath plugin) or by some third-party plugin? For this we'll use the command:

esxcli storage nmp device list

It displays all storage attached to the host… In our case I have only one shared storage configured on the host, the other datastores are are local only.

Note that each storage device has its unique identifier number starting with naa. (<naaID>)

ESXi CLI commands - Storage

Which VAAI primitives are supported?

vSphere APIs for Array integration is shown as supported? Good for you!. That's the VAAI. The command is:

esxcli storage core device vaai status get -d <naaID>

The output… No luck for me … I have an old array with no VAAI support… -:( But you can setup a software based FreeNAS which supports some VAAI commands (7 of those)…

ESXi CLI Commands - Storage

What's next. We can also check queue depth for this device. And as you can see,  32 I/Os can be queued to the device. We'll do this with this command….

esxcli storage core device list -d <naaID>

The output… And as you can see, 32 I/Os can be queued to the device. Plus many other details about the device itself can be found (including the one line VAAI status).

Check a queue depth of a device

SMART info …

With following command you can gather some info when using VSAN (with some Flash drives) as those are SMART attributes of a flash disk drives reveal some interesting info….

esxcli storage core device smart get -d <naaID>

The output from one of my SSDs…

ESXii CLI Commands - Storage

LUN MultiPathhing info…

esxcli storage core path list

will give you LUN multipathing information from the ESXi host command line…

ESXi Commands - Storage

Path details..

esxcli storage core path list -d <naaID>

In our case…  we get the detailed information of the corresponding paths for a specific device.

ESXi Commands - Storage

Wrap Up

Storage commands are not only useful but necessary to know if you're going after some VMware certifications. VCP? VCAP? You can check some of my resources:

  • VCP6-DCV Study Guide Page

Sources: 

  • Obtaining LUN pathing information for ESX or ESXi hosts
  • VMware PDF – vSphere Command-Line Interface Concepts and Examples
  • Frequently Asked Questions for vStorage APIs for Array Integration

ESXi Commands series:

  • ESXi Commands List – Getting started
  • ESXi Commands List – networking commands
  • ESXi Commands List – Snapshot Deletion Monitoring
  • ESXi Commands List – Storage – (This post)
Shares
4.7/5 - (3 votes)

| Filed Under: How To, Server Virtualization Tagged With: ESXi Commands List - Storage

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. karthick says

    May 28, 2019 at 2:31 pm

    Hi,

    How to filter out RDM luns and datastore luns using cli.

    please share the command.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Nakivo Backup and Replication v11.1 BETA adds more Proxmox friendly features
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in