NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

ONTAP Discussions

ns-switch vs source order

netappmagic
4,629 Views

I have two commands as listed below. 

 

I thought nsswitch should define the sequene to find a object. But, why ns-switch here is empty?

Then The source order here seems like similar to what nsswitch is supposed to do. Source Order and ns-switch, what are differences?

 

 

 

clus::vserver services name-service*> vserver show -vserver vserver1 -fields ns-switch
vserver ns-switch
--------- ---------
vserver1 -


clus::vserver services name-service*> vserver services name-service ns-switch show -vserver vserver1
                              Source
Vserver Database Order
--------------- ------------ ---------
vserver1 hosts files,
                         dns
vserver1 group files, 
                         ldap
vserver1 passwd files,
                            ldap
vserver1 netgroup files
vserver1 namemap files
5 entries were displayed.

3 REPLIES 3

netappmagic
4,515 Views

Can somebody please pick up this question? Thanks!

naveens17
4,495 Views

it should be listed as file or ldap

 

 

 

vserver services name-service*> vserver show -vserver vserver1 -fields ns-switch
vserver ns-switch
------- ---------
vserver1 file

 

 

netappmagic
4,464 Views

I know what should be listed.

 

However, why nothing has been listed there? and what problem would that cause( I hve not see issues so far)? What is the different between ns-switch and "srouce order" ( to me they are the same)? 

Public