Microsoft Virtualization Discussions

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

shead2
views-count 723 Views

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)

3 REPLIES 3

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

hmoubara
views-count 724 Views

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

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

NetApp_SR
views-count 724 Views

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/

 

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

shead2
views-count 724 Views

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

G2 Review Banner
All Community Forums
Public