I'm writing a script to validate that our DR SVM is recoverable, in terms of having the same CIFS properties, shares, access, and user mappings. That said, CIFS shares can be created on any inode, not just a qtree, and a perfectly legal command to create a share will fail if the folder being shared has been deleted. I'd like to include a check to see that the path I've saved is a valid target for a CIFS share, but I would rather not have to check this by opening the share with NFS or CIFS. Is there a way to do this in the CLI or API?
mohammaj-cluster::*> node run -node mohammaj-cluster-01 "priv set diag; ls /vol/odx" . .. dir1 dir11
mohammaj-cluster::*> node run -node mohammaj-cluster-01 "priv set diag; ls /vol/odx/dir1" <--- you can add somthing like this to your script. . .. odx_2
Usually you will have "/vol/volumename" as a path for your volume. Note that if you will have the same volume name living on the same node for different vservers. you may have diffrent path. example "/vol/volumename(1)"
mohammaj-cluster::*> node run -node mohammaj-cluster-01 "priv set diag; vol status" Volume State Status Options vol0 online vs1_root online odx online <------- odx volume on vs1 odx(1) online <------- odx volume on vserver1