Introduction to PowerShell Cmdlets

NetApp Manageability SDK provides support to Windows Cmdlets in PowerShell for both Data ONTAP APIs and DataFabric Manager APIs for the OnCommand Package. The DLL files contain interfaces to establish a connection with either the Data ONTAP server or the DataFabric Manager server. By using the DLL files, you can create Cmdlets to communicate with NetApp storage systems.

 

The Data ONTAP APIs and their corresponding Help files are as follows:

DLL

Help file

Ontap.8.1.dll

Ontap.8.1.chm (link TBD)

Ontap.8.0.1.dll

Ontap.8.0.1.chm (link TBD)

Ontap.8.0.dll

Ontap.8.0.chm

Ontap.7.3.5.dll

Ontap.7.3.5.chm (link TBD)

Ontap.7.3.3.dll

Ontap.7.3.3.chm

Ontap.7.3.1.dll

Ontap.7.3.1.chm

Ontap.7.3.dll

Ontap.7.3.chm

Ontap.7.2.1.dll

Ontap.7.2.1.chm

 

You can use Ontap.7.2.1.dll for Data ONTAP 7.2.1, Data ONTAP 7.2.2, Data ONTAP 7.2.3, and Data ONTAP 7.2.4.

 

The following are the DLL files for DataFabric Manager APIs for the OnCommand Package:

DLL

Help files

DfmServerApi.4.1.dll

DfmServerApi.4.1.chm (link TBD)

DfmServerApi.4.0.dll

DfmServerApi.4.0.chm

DfmServerApi.3.8.dll

DfmServerApi.3.8.chm

 

How to use the DLL files  to create a Cmdlet:

To create a Cmdlet from the library, do the following:

  1. In Visual Studio, add reference to either a Data ONTAP library file or a DataFabric Manager library file. Also, add reference to the log4net.dll file.

  2. Create a script and a PSSnapIn file by using the classes and methods defined in the library file.

  3. Build a DLL file from the script.

  4. Install the DLL file in a Microsoft .NET environment by using the InstallUtil.exe command.

  5. To obtain the corresponding Cmdlet, add the SnapIn file to PowerShell by using add-pssnapin command.

 

 


Related Topics