How to set up Active Directory access to Netapp 8.3

domain tunnel add

cluster1::> vserver cifs create -vserver vs0 -cifs-server vs0cifs 
-domain companyname.example.com  
cluster1::> security login domain-tunnel create -vserver vs0
cluster1::> security login create -vserver cluster1 -username 
DOMAIN1\Administrator -application ssh -authmethod domain

then

security login create -vserver anystor300 -username domain\userorgroupname -application ontapi -authmethod domain -role admin
security login create -vserver anystor300 -username domain\userorgroupname -application ssh -authmethod domain -role admin
security login create -vserver anystor300 -username domain\userorgroupname -application http -authmethod domain -role admin

Add NetApp volume to VMware with PowerShell

Add-PSSnapin vmware.vimautomation.core
$vcenter = Read-Host "Virtual Center Server"
$clusterName= Read-Host "CLuster"
$VM_Datastore= Read-Host "VMWare Datastore Name"
$NFS_vol= Read-Host "SAN Volume Name"
$NFS_IP = Read-Host "NFS IP"
Write-Host "Connecting to $vcenter" -ForegroundColor Green
#$cred = Get-Credential
Try{
Connect-VIServer $vcenter -ErrorAction Stop #-Credential $cred | Out-Null
}
catch
{
$ErrorMessage = $_.Exception.Message
$ErrorMessage
break

}

try {



$hosts=get-cluster $clusterName -ErrorAction Stop| get-vmhost
$NFSSTORE='/'+$NFS_vol
foreach ($Process_host in $hosts)
{
$VM_name=$Process_host.Name


write-host "New-datastore -Vmhost $VM_name -NFS -Name $VM_Datastore -Path $NFSSTORE -NfsHost $NFS_IP" -ErrorAction Stop

New-datastore -Vmhost $VM_name -NFS -Name $VM_Datastore -Path $NFSSTORE -NfsHost $NFS_IP -ErrorAction Stop
}


}
Catch
{

$ErrorMessage = $_.Exception.Message
$ErrorMessage
Write-Host 'please Look in VMWare to view Details of the Error'
break
}