Microsoft Virtualization Discussions

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

shead2
2,082 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)

1 ACCEPTED SOLUTION

hmoubara
2,041 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

3 REPLIES 3

hmoubara
2,042 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 

NetApp_SR
2,038 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/

 

shead2
2,011 Views

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

Public