ONTAP Discussions

ns-switch vs source order

netappmagic
3,432 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
3,318 Views

Can somebody please pick up this question? Thanks!

naveens17
3,298 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
3,267 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