Wednesday, January 16, 2019

NetApp Cluster ontap useful commands

below commad to check lif mac address for associated port.
network port show -node cnaabcd-01 -port a0a-185

temprature
system node environment sensors show

command to check volume stats.
statistics volume show -interval 5 -iterations 5 -max 25 -volume test_vol

command to remove export-policy from qtree
volume qtree modify -vserver svm_test -qtree-path /vol/test/test1-export-policy ""

ping -lif lif_file_185_01 -vserver svm_abcd -destination 172.0.0.8
autosupport invoke -type test -node cnabcd04-01

system service-processor network show

network interface show

event filter show

storage disk show

metrocluster check show

Metrocluster show

node::> volume create -vserver vs0 -volume user_jdoe -aggregate aggr1 -state online
            -policy default_expolicy -user jdoe -group dev -junction-path /user/jdoe -size 250g
-space-guarantee volume -percent-snapshot-space 20 -foreground false

volume offline -vserver SVM_tst01 -volume test_vol
check-access -vserver svm_bva07_nas_01 -volume sgg1_fr_ba_prod_arc -client-ip 172.23.20.X -authentication-method sys -protocol nfs4 -access-type read-write   
export-policy rule show -vserver svm_bva07_nas_01 -policyname default -ruleindex 1
export-policy rule create -policyname default -clientmatch 0.0.0.0/0 -rorule any -rwrule never -allow-suid true -allow-dev true -ruleindex 1 -protocol nfs -vserver svm_bva07_nas_01
export-policy show -vserver svm_bva07_nas_01 -policyname default_export_policy
export-policy create -policyname default_export_policy -vserver svm_bva07_nas_01

if you connect filer from serial port and want to go to SP mode 
*> to SP mode --- press ctrl+G
system console to switch filer console

check-access -vserver SVM_tst01 -volume volumename-client-ip 10.0.0.1 -authentication-method sys -protocol nfs4 -access-type read 

vserver security file-directory show -vserver svm_nas_01 -path /billing_nfs

volume show -vserver svm_nas_01 -volume sg_vol -fields volume, junction-path


volume mount -volume sg_vol -junction-path /sg_vol


No comments: