Go to main content
Oracle® ZFS Storage Appliance 管理ガイド、Release OS8.7.0

印刷ビューの終了

更新: 2017 年 3 月
 
 

NTP の構成 (CLI)

  1. configuration services ntp の下で、authkey コマンドを使用して承認を編集します。
    hostname:configuration services ntp> authkey
    hostname:configuration services ntp authkey>
    
  2. このコンテキストから、create コマンドを使用して新しい鍵を追加できます。
    hostname:configuration services ntp authkey> create
    hostname:configuration services ntp authkey-000 (uncommitted)> get
                            keyno = (unset)
                             type = (unset)
                              key = (unset)
    hostname:configuration services ntp authkey-000 (uncommitted)> set keyno=1
                            keyno = 1 (uncommitted)
    hostname:configuration services ntp authkey-000 (uncommitted)> set type=A 
                             type = A (uncommitted)
    hostname:configuration services ntp authkey-000 (uncommitted)> set key=coconuts
                              key = ******** (uncommitted)
    hostname:configuration services ntp authkey-000 (uncommitted)> commit
    hostname:configuration services ntp authkey> 
  3. CLI によって認証鍵をサーバーに関連付けるには、serverkeys プロパティーを、servers プロパティーの対応するサーバーに関連付けられる鍵の値のリストに設定します。

    サーバーが認証を使用しない場合、対応するサーバー鍵は 0 に設定されます。たとえば、上記で作成された鍵を使用してサーバー「gefilte」と「carp」を認証するには、次のように入力します。

    hostname:configuration services ntp> set servers=gefilte,carp
                          servers = gefilte,carp (uncommitted)
    hostname:configuration services ntp> set serverkeys=1,1
                       serverkeys = 1,1 (uncommitted)
    hostname:configuration services ntp> commit
    hostname:configuration services ntp>
  4. 認証鍵をサーバーに関連付けるには、serverkeys プロパティーを、servers プロパティーの対応するサーバーに関連付けられる鍵の値のリストに設定します。

    サーバーが認証を使用しない場合、対応するサーバー鍵は 0 に設定されます。たとえば、上記で作成された鍵を使用してサーバー「gefilte」と「carp」を認証するには、次のように入力します。

    hostname:configuration services ntp> set servers=gefilte,carp
                          servers = gefilte,carp (uncommitted)
    hostname:configuration services ntp> set serverkeys=1,1
                       serverkeys = 1,1 (uncommitted)
    hostname:configuration services ntp> commit
    hostname:configuration services ntp>
  5. 鍵 1 を使ってサーバー「gefilte」を認証し、鍵 2 を使って「carp」を認証し、鍵 3 を使って「dory」を認証するには、次のように入力します。
    hostname:configuration services ntp> set servers=gefilte,carp,dory
                          servers = gefilte,carp,dory (uncommitted)
    hostname:configuration services ntp> set serverkeys=1,2,3
                       serverkeys = 1,2,3 (uncommitted)
    hostname:configuration services ntp> commit
    hostname:configuration services ntp>
  6. 鍵 1 を使ってサーバー「gefilte」と「carp」を認証し、さらに NTP サーバー「dory」の認証が行われないようにするには、次のように入力します。
    hostname:configuration services ntp> set servers=gefilte,carp,dory
                          servers = gefilte,carp,dory (uncommitted)
    hostname:configuration services ntp> set serverkeys=1,1,0
                       serverkeys = 1,1,0 (uncommitted)
    hostname:configuration services ntp> commit
    hostname:configuration services ntp>