ONTAP Hardware

How to list all lun serial numbers on netapp

netapptema
6,938 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
6,937 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
6,938 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
6,938 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