Mac 関係覚え書き

http://til.info.apple.co.jp/cgi-bin/WebObjects/TechInfo.woa/wa/showTIL?id=107849 に参考情報がある.

  1. ワークグループマネージャのコンピュータアカウントで, 新たにコンピュータグループをつくり,そこに MAC アドレスとホスト名の対を登録する.
  2. Netinfo マネージャで,machines ディレクトリに 以下のプロパティを登録していく.
    • ホスト名(hostname)
    • IP アドレス(ip_address)
    • MAC アドレス(en_address)

GUI からの一斉登録はできないので,nidump, niload を使うとよい.

1)nidump で /machines をテキストデータに落とす.

% sudo nidump -r /machines . > /tmp/ni.machines

2)落した ni.machines ファイルを編集. (作成スクリプト filemknimachies.pl

3)作成した ni.machines を niload で Netinfo DB にロード.

% sudo niload -d -r /machines . < /tmp/ni.machines

ni.machines

{
 "name" = ( "machines" );
 CHILDREN = (
   {
     "name" = ( "localhost" );
     "ip_address" = ( "127.0.0.1" );
     "serves" = ( "./local" );
   },
   {
     "name" = ( "broadcasthost" );
     "ip_address" = ( "255.255.255.255" );
     "serves" = ( "../network" );
   },
   {
     "name" = ( "client01" );
     "ip_address" = ( "192.168.1.1" );
     "en_address" = ( "00:00:11:22:33:44:55:66" );
   }
 )
}

添付ファイル: filemknimachies.pl 364件 [詳細]

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2005-02-07 (月) 12:49:59