ONTAP Discussions

Home directory search path using cifs-home-directory-search-path-get-iter

Madhurish

We are trying to map the home directories with their search path, and the cifs-home-directory-search-path-get-iter API seems to give a response of just the share path and not being mapped to any of the actual home directories.
it is also observed that the share path count is inconsistent with the actual expected count of paths.  

Is there another way to get the list of home directory cifs share and their corresponding share paths?
Thanks in advance 🙂 

1 ACCEPTED SOLUTION

paul_stejskal

No, as the CLI doesn't do this, nor will an API. You could use File System Analytics to create an API call to do this for a specific volume.

 

View solution in original post

5 REPLIES 5

paul_stejskal

That's the wrong command.

 

pstejska_vsim::> cifs home-directory search-path show
Vserver Position Path
----------- -------- -----------------
svm0 1 /users_fg/

pstejska_vsim::>

 

You could try a "set advanced; node run <node> ls /vol/volumename" and see if it gives you a iist.

 

The way DHD works is that it searches all paths. It doesn't keep a static map of all users to all folders in ONTAP itself.

 

Does that help?

 

Madhurish

Hi @paul_stejskal , I see that you have provided the ONTAP CLI command to get the information, however we need to get it via the OTAPI API and cannot rely on the cli commands for our use case. Is there any solution for this?

paul_stejskal

No, as the CLI doesn't do this, nor will an API. You could use File System Analytics to create an API call to do this for a specific volume.

 

Madhurish

Hi @paul_stejskal , thank you for your responses. This helps. Just had one follow up question, which would help us in moving forward in this regard.
Wanted to know if all the home directories belonging to a vserver would be mapped to the same volume(s) for the search path, and if we update the search path for one of the home directory cifs share if it would be reflected on all the cifs shares within the vserver /svm.
Thanks in advance! 

paul_stejskal

You're welcome. If you add a volume to the list of volumes for home directories to search, it uses all of them for the lookup as a user connects.

 

This KB isn't quite what you're asking, but I get the feeling it may help explain it:

https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_do_Dynamic_Home_Directories_improve_performance%3F

 

Also if you have any suggestions for a KB or any content which could be helpful in improving the topic, please let us know and we can create the content. We're trying to make KBs to where the same question shouldn't have to be asked twice and customers can find answers easier.

Public