Microsoft Virtualization Discussions

Support for UNIX

wippel
2,996 Views

I'm missing  cmdlets for a better UNIX support.

Is there a possibility for a reverse lookup, to get the hostname for an IP?

Is ther a posibility to get the hosts of a netgroup?

The NETAPP commands used for this purpose are YPWHICH and YPMATCH in addition to YPCAT and YPGROUP.

Why does Test-NaNfsExportPermission not support qtrees in its path?

PS R:\> Test-NaNfsExportPermission -host 10.200.29.210 -path /vol/vol1/? -permission root
True

1 ACCEPTED SOLUTION

cknight
2,996 Views

Hello, Josef.  I do, but that wouldn't seem to matter.  The API docs don't mention any qtree limitations.

PS C:\> foreach ($export in (Get-NaNfsExport)) { Write-Host $export.Pathname ":" (Test-NaNfsExportPermission -Path $export.Pathname -Host 10.61.167.61 -Permission root) }


/vol/AS_5_12_1 : False
/vol/vol2 : False
/vol/vol1 : False
/vol/vol0 : False
/vol/vol0/home : False
/vol/vol2clone : False
/vol/vol1clone : False
/vol/testvol4 : False
/vol/SC_3_3_0 : False
/vol/vol2/testqtree : True
/vol/opalis : False
/vol/clinton_backup : False

View solution in original post

2 REPLIES 2

cknight
2,996 Views

Hello, wippel.  I have captured your unix requests for consideration in a future release.  Thanks for the suggestion.

As for Test-NaNfsExportPermission, it should work with qtrees:


PS C:\> Set-NaNfsExport /vol/vol2/testqtree -Root 10.61.167.61

PS C:\> Test-NaNfsExportPermission -Path /vol/vol2/testqtree -Host 10.61.167.61 -Permission root

True

Test-NaNfsExportPermission doesn't support wildcards as your example suggests, but you could get the same result like this:

PS C:\> Get-NaNfsExport | ? {$_.Pathname -LIKE "/vol/vol2/*"} | Test-NaNfsExportPermission -Host 10.61.167.61 -Permission root

True

cknight
2,997 Views

Hello, Josef.  I do, but that wouldn't seem to matter.  The API docs don't mention any qtree limitations.

PS C:\> foreach ($export in (Get-NaNfsExport)) { Write-Host $export.Pathname ":" (Test-NaNfsExportPermission -Path $export.Pathname -Host 10.61.167.61 -Permission root) }


/vol/AS_5_12_1 : False
/vol/vol2 : False
/vol/vol1 : False
/vol/vol0 : False
/vol/vol0/home : False
/vol/vol2clone : False
/vol/vol1clone : False
/vol/testvol4 : False
/vol/SC_3_3_0 : False
/vol/vol2/testqtree : True
/vol/opalis : False
/vol/clinton_backup : False

Public