Microsoft Virtualization Discussions

Script to create luns in Data ONTAP 8.2

ARUN_KAKARLA
4,182 Views

Hi All,

I am trying to automate lun creations in NetApp and would like to know if there is any script to automate lun creations.

Thanks in Advance.

Thanks & Regards

Arun

7 REPLIES 7

JGPSHNTAP
4,182 Views

There are many factors into lun creations automatically..  Do you have something to get started with...

JGPSHNTAP
4,182 Views

One other thing, take a look at WFA

ARUN_KAKARLA
4,182 Views

Hi,

Thank you for the response.

I am looking for a basic script which will create volumes,luns,initiator groups and map the luns to igroups.

With the input provided in a file.

Thanks & Regards

Arun

JGPSHNTAP
4,182 Views

Ok, i'm not going to write the entire script for you.  You need to at least start somewhere...

Your input file should be a csv file with column headers that you can import..

$import = import-csv file.csv

Then you can script off your csv with filters..

Start with get-nahelp or show-nahelp to get started

ARUN_KAKARLA
4,182 Views

Hi,

For WFA do we need any license from NetApp ?

Thanks & Regards

Arun

dburkland
4,182 Views

I believe it is free to all NetApp customers. On a side note I also use WFA to automate my storage provisioning needs. If you would like a copy of my WFA workflow for LUN provisioning let me know.

Dan

ELACKINGER_H
4,182 Views

I user templates on a script basis.

So if you have a UNIX/LINUX Server somewehre around you, I might have a script for you.

You just enter LUN-Name, size, LUN-Number in a simple text file and start the template script e.g. for AIX ode VM, etc.

The output are ONTAP-commands which you copy and paste to your Console window.

In that way it is guaranteed that all LUNs have same options, etc.

Not so experienced admins could use these simple templates, too

Public