Solaris のシステム管理 (ネーミングとディレクトリサービス : FNS、NIS+ 編)

割り当てに関する情報を表示する

fnlookup は、複合名の割り当てに関する情報を表示するのに使用します。


fnlookup [-v][-L] composite_name
表 25–14 fnlookup コマンドのオプション

オプション 

説明 

-v

割り当てに関する詳細な情報を表示する 

-L

「XFN リンクの割り当て先となるのはどのリファレンスか」を表示する 

たとえば、以下の例では、ユーザー darwin の割り当てに関する情報が表示されます。


# fnlookup -v user/darwin/
Reference type: onc_fn_user
Address type: onc_fn_nisplus
 length: 52
 context type: user
 representation: normal
 version: 0
 internal name: fns_user_darwin.ctx_dir.sales.doc.com.

ここで user/Charles.Darwinuser/darwin にリンクされているとすると、下の例の最初のコマンドでは、user/Charles.Darwin の割り当て先 (XFNリンク) が表示されます。 2 番目のコマンドでは、XFNリンク user/jjones が調べられ、user/darwin の割り当て先 (user コンテキスト) が表示されます。


# fnlookup user/Charles.Darwin
Reference type: fn_link_ref
Address type: fn_link_addr
 Link name: user/darwin
# fnlookup -L user/Charles.Darwin
Reference type: onc_fn_user
Address type: onc_fn_nisplus
 context type: user