Software Development Kit (SDK) and API Discussions

api to match volume name to export information

AWOODWARD

I'm looking for a way from the api to match the volume name to the export entry. I've found that generally /vol/{name} maps to the volume name, but that doesn't appear to be a given. Is there a method that i can fetch this information.

3 REPLIES 3

bbjholcomb

For 7mode, Get-NaNfsExport [[-Path] <String>] [-Persistent] [-Controller <NaController>] [<CommonParameters>] or you use cli, exportfs -q /vol/xxx.

AWOODWARD

our mode is 7-mode

exportfs -q dosen't return the volume information, just the export path and actual export path in the below i would expect that somewhere it would identify the volumes test2, or vol0. In the first case, the volume name could maybe be regexed out of the actualpath, but in the second it becomes more complicated.

exportfs -q /vol/test2_22

/vol/test2_22   -actual=/vol/test2,sec=sys,(ruleid=222),rw

exportfs -q /vol/vol0/home

/vol/vol0/home  -sec=sys,(ruleid=1),rw,root=10.224.0.68,nosuid

I'll need to check what the psh Get-NaNfsExport is running, i would assume its running <nfs-exportfs-list-rules /> or <nfs-exportfs-list-rules-2 />, neither return volume information

aashray

Are you on 7-mode or C-mode?

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public