Get-Datastore | Where {$_.Type -eq "NFS"} gives useful info
but what it does not give is the filer IP ... can we get that somehow
Hello, esxi1979-
I believe that you are talking about getting the NFS server address -- the address of the RemoteHost for the NFS server. If so, you can get that via the RemoteHost property of the returned datastore objects. Like:
Get-Datastore | Where {$_.Type -eq "NFS"} | Select Name, FreeSpaceGB, CapacityGB, RemoteHost, RemotePath
How does that do for you?
Any idea why it gives me
RemoteHost |
System.String[] |
i got Lucd Stuff
Get-Datastore | where {$_.type -eq "NFS"} | Get-View | select @{N="Host"; E={$_.Info.Nas.RemoteHost}},
@{N="Path"; E={$_.Info.Nas.RemotePath}},
@{N="Capacity"; E={$_.Info.Nas.Capacity}},
@{N="Free"; E={$_.Info.FreeSpace}} | ft -Wrap
Hello-
It appears that the given datastore has multiple values for that RemoteHost property. This can be the case when using NFS v4.1 -- multiple remote host name values in the property.
dumb Q.. afaik we use nfs 3. So does that mean its esxported as nfs 4 from filer & also mounted at esxi node level ? vcenter does not allow to specify the mount options ... does the negotiation happens automattically ?
mine is esxi 5.5 here