NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

Get-NcVol won't show path from Get-NcCifsShare

sillywalk
2,950 Views

Hi all,

 

Most of our CIFS volumes have their namespace under vol, a leftover from our 7-mode days. Recently, we have simply allowed Ontap to create the namespace, which results in /flexvol1 instead of /vol/flexvol1 as a path. Using

 

$sharedetails = Get-NcCifsShare $sharename
Get-NcVol $sharedetails.Path

gives a result for Get-NcVol $sharedetails.Path if the namespace is in /vol. But the same query on a volume in / returns a null. Anyone have any ideas? TIA.

1 ACCEPTED SOLUTION

donny_lang
2,828 Views

I get the same behavior running ONTAP 9.3P14 with version 9.6 of the PowerShell Toolkit. However, if you pipe your Get-NcCifsShare output to Get-NcVol, it does actually return the proper data, so that might be an option for you.

 

Get-NcCifsShare <share_name> | Get-NcVol 

 

View solution in original post

1 REPLY 1

donny_lang
2,829 Views

I get the same behavior running ONTAP 9.3P14 with version 9.6 of the PowerShell Toolkit. However, if you pipe your Get-NcCifsShare output to Get-NcVol, it does actually return the proper data, so that might be an option for you.

 

Get-NcCifsShare <share_name> | Get-NcVol 

 

Public