Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
System Administration Commandsfnselect(1M)


NAME

 fnselect - select a specific naming service to use for the FNS Initial Context

SYNOPSIS

 fnselect [-D]
 fnselect naming-service

DESCRIPTION

 

fnselect is used to set the specified naming service to be used to construct the bindings in the FNS Initial Context. This setting affects the entire machine and affects applications that make subsequent calls to fn_ctx_handle_from_initial(3XFN). This setting can be changed only by an administrator who has root privilege on the machine.

OPTIONS

 
-D
Displays the actual naming service used to generate the FNS Initial Context.

OPERANDS

 
naming-service
The following are possible values for naming-service:
default
Use the FNS default algorithm for determining the target naming service.
nisplus
Use NIS+ as the target naming service.
nis
Use NIS as the target naming service.
files
Use /etc files as the target naming service.

USAGE

 

When the default option is selected, FNS determines the underlying naming service using the following algorithm:

  • First, it checks for NIS+ with FNS installed.
  • If the result is TRUE, then FNS assumes nisplus as the underlying naming service.
  • Otherwise, it checks if the system is a NIS client.
  • If TRUE, FNS assumes nis as the underlying naming service.
  • Otherwise, FNS assumes /etc files.

fnselect without any arguments displays the service currently selected for the Initial Context (one of default, nisplus, nis, or files).

When the -D option is specified and the current setting is default, fnselect will use the algorithm that is used by FNS and display the actual naming service used for the FNS Initial Context.

EXAMPLES

 Example 1. Using The fnselect Command
 

The command
 
example% fnselect nisplus
will select NIS+ as the underlying naming service for the FNS Initial Context.

The command
 
example% fnselect
will print the naming service currently being used to generate the FNS Initial Context.

EXIT STATUS

 
0
Operation was successful.
1
Operation failed.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWfns

SEE ALSO

 

fnbind(1), fnlist(1), fnlookup(1), fnunbind(1), fncreate(1M), fncreate_fs(1M), fncreate_printer(1M), fndestroy(1M), fn_ctx_handle_from_initial(3XFN), attributes(5), fns(5), fns_initial_context(5)


SunOS 5.9Go To TopLast Changed 21 Jul 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.