Clinton,
I looked at this, and put something together. It is very rough, as I don't have a filer in front of me, but could do the trick.
It is a little long winded, as I commented everything.
This would be done using the vSphere PowerCLI:
#Load Data ONTAP PowerShell Toolkit
Import-Module DataONTAP
#Connect to vCenter
Connect-VIServer vcenter.domain.com
#Grab all the datastores that are NFS
$datastores Get-Datastore | where {$_.type -eq "NFS"}
#Loop through the results
foreach ($datastore in $datastores) {
#Get a specific datastore
$objDataStore = Get-Datastore -Name $_.Name
#Get the a view of the datastore, by the ID, so we can get extended properties
$objDataStoreView = Get-DataStoreView -id $objDataStore.id
#Grab the URL, as it has the filer IP address, and the export path
#It will look something like this: netfs://10.10.10.92//vol/demodata/
$objDataStoreURL = $objDataStoreView.info.URL
#Split it up, using "//" as the delimiter
$SplitURL = $objDataStoreURL.split("//")
#Position 0 has netfs: and will not be used, Position 1 has the IP of the filer, Position 2 has the export path, without a leading / and with a trailing /
$filer = $SplitURL[1]
$export = "/"+$SplitURL[2].Trimend("/")
#Connect to the filer, prompting for Credentials (this could be done beforehand in a single filer environment)
Connect-NaController $filer -Credential (Get-Credential)
#Get the NFS Export info...
Get-NaNfsExportStoragePath $export |Get-NaVol
}
Again, this is pretty rough draft, and I haven't used the Get-NaNfsExportStoragePath cmdlet before. But this is a start.