Microsoft Virtualization Discussions

how to change volume or nfs attributes using PS v9.x

shead2

Can someone show me a simple script on how to change the below attributes?  See bold.  I'got thousands to do.

nfs show -vserver XXXXXX
General NFS Access: true
NFS v3: enabled
NFS v4.0: disabled
NFSv4.0 ACL Support: disabled
NFSv4.0 Read Delegation Support: disabled
NFSv4.0 Write Delegation Support: disabled
NFSv4 ID Mapping Domain: uhc.com
Default Windows Group: -
NFSv4.1 Read Delegation Support: disabled
NFSv4.1 Write Delegation Support: disabled
NFS Mount Root Only: enabled
NFS Root Only: disabled
Permitted Kerberos Encryption Types: des, des3, aes-128, aes-256
Showmount Enabled: enabled (switch this to disable)

1 ACCEPTED SOLUTION

hmoubara

Hello,

 

If you have alot of nfs vserver that need the showmount option disabled you can use the cmdline and specify a wild card * when modifying that option:

 

vserver nfs modify -vserver * -showmount disabled

 

Thanks 

View solution in original post

3 REPLIES 3

hmoubara

Hello,

 

If you have alot of nfs vserver that need the showmount option disabled you can use the cmdline and specify a wild card * when modifying that option:

 

vserver nfs modify -vserver * -showmount disabled

 

Thanks 

View solution in original post

NetApp_SR

This might be a good time to explore Ansible. It can be used for multiple administrative tasks.

 

NetApp and Ansible
https://www.netapp.com/devops-solutions/ansible/

 

Getting Started with NetApp and Ansible: Install Ansible
https://netapp.io/2018/10/08/getting-started-with-netapp-and-ansible-install-ansible/

 

shead2

Thank you for pointing me in that direction.  This might be the jump start I am looking for.

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