Microsoft Virtualization Discussions

nfs exports

VENKATA09

Hi All,

I am looking to export exportfs and /etc/exports to excel sheet, is there a way to do this quickly using power shell

Any ideas please ?

1 ACCEPTED SOLUTION

VENKATA09
5 REPLIES 5

billyd

Give this a shot:

Get-NaNfsExport | select pathname,@{n="RO";e={$_.SecurityRules.ReadOnly -join ','}},@{n="RW";e={$_.SecurityRules.ReadWrite -join ','}},@{n="Root";e={$_.SecurityRules.root -join ','}} | Export-Csv -LiteralPath C:\work\nfs_shares.csv -NoTypeInformation

The CSV produces this:

PathnameRORWRoot
/vol/alpha3data192.168.100.15

VENKATA09

JGPSHNTAP

Billy..

Nice work.. I have a thread going in the PS forum.

I forgot to post this as well.. I was doing similiar.. then I stopped because I wanted to build objects,  

Please post it on the other thread.

Thanks

As for the above from operations manager, click file systems - nfs exports

JGPSHNTAP

I was working on this as well in powershell.. If you need root/rw print out it becomes more difficult.

Easiest way right now is to dump nfs export report from operations manager

VENKATA09

thanks JGPSHNTAP

Cna you please advice how to I dump /etc/exports from operations manager ?

I was only able to pull reports at aggr level, volume level, vFiler level but couldn't find a way to dump exports report

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