NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Hardware

How to list all lun serial numbers on netapp

netapptema
8,590 Views

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

Darkstar
8,589 Views

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

eric_barlier
8,589 Views

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

Darkstar
8,590 Views

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

Public