Data ONTAP Discussions

ns-switch vs source order

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

Re: ns-switch vs source order

Can somebody please pick up this question? Thanks!

Re: ns-switch vs source order

it should be listed as file or ldap

 

 

 

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

 

 

Re: ns-switch vs source order

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)? 

Forums