ONTAP Hardware

How to list all lun serial numbers on netapp

netapptema

Hi guys;

I'm the new about netapp.

I hope I'll find a solution about LUN in here.

I wanna list all lun but the list must contain only details of lun path and lun serial number.

"lun show -v" display all details of luns.

Any idea ?

Thanks.

1 ACCEPTED SOLUTION

AdvUniMD

A quick way is to do the following:

fas3020c1> stats list instances lun
Instances for object name: lun
        /vol/esxX_Boot/LUNs/slesx5.lun-C4iRVoX0ZVhf
        /vol/esxX_Boot/LUNs/slesx4.lun-C4iRVoWqMs1a
        /vol/esxX_Boot/LUNs/slesx3.lun-C4iRVoWqMrwj
        /vol/esxX_Boot/LUNs/slesx1.lun-C4iRVoWqMmq7
        /vol/esxX_Boot/LUNs/slesx2.lun-C4iRVoWqMrq8

it gives you the unique LUN "id" that is used for stats monitoring, which just happens to be the LUN path followed by the LUN serial, separated by a hyphen.

-Michael

View solution in original post

2 REPLIES 2

AdvUniMD

A quick way is to do the following:

fas3020c1> stats list instances lun
Instances for object name: lun
        /vol/esxX_Boot/LUNs/slesx5.lun-C4iRVoX0ZVhf
        /vol/esxX_Boot/LUNs/slesx4.lun-C4iRVoWqMs1a
        /vol/esxX_Boot/LUNs/slesx3.lun-C4iRVoWqMrwj
        /vol/esxX_Boot/LUNs/slesx1.lun-C4iRVoWqMmq7
        /vol/esxX_Boot/LUNs/slesx2.lun-C4iRVoWqMrq8

it gives you the unique LUN "id" that is used for stats monitoring, which just happens to be the LUN path followed by the LUN serial, separated by a hyphen.

-Michael

View solution in original post

eric_barlier

Hi and welcome

Have you got operations manager installed? even if you do AFAIK your only options are doing it via OM and then excel. Or via scripting. There is no CLI on the controller

that will give you exactly those two pieces of info.

Eric

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public