Solaris Naming Administration Guide

Binding an Existing Name to a New Name

The syntax of fnbind for binding existing names to new names is:


fnbind [-s][-v][-L] oldname newname
Table 24-4 fnbind Command Options (Binding Names)

Option 

Description 

oldname

The existing composite name 

newname

The new name to which you are binding the old name 

-s

Supersedes any existing binding of the original composite name 

-v

Prints out the reference used for the binding 

-L

Creates an XFN link using name and binding it to new_name

For example, to bind the name user/julio/service/printer to the reference of myorgunit/service/printer you would enter:


# fnbind myorgunit/service/printer user/julio/service/printer

If the given newname is already bound, fnbind -s must be used or the operation will fail. In the above example, if user/julio/service/printer is already bound, the -s option must be used to overwrite the existing binding with that of myorgunit/service/printer as shown below:


# fnbind -s myorgunit/service/printer user/julio/service/printer

The -v option prints out the reference used for the binding.


# fnbind -v myorgunit/service/printer user/julio/service/printer
Reference type: onc_printers
Address type: onc_fn_printer_nisplus

The following command constructs an XFN link out of user/jjones and binds it to the name user/James.Jones:


# fnbind -L user/jjones user/James.Jones

Similarly, to create a link from user/julio/service/printer to myorgunit/service/printer you would enter:


# fnbind -sL myorgunit/service/printer user/julio/service/printer