Avamar:mapall ツールの使用方法

Summary: Avamarには、グリッド内の1つ以上のノードに命令を発行できる「mapall」というコマンドライン ツールがあります。この記事では、ツールの使用方法について説明します。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

この記事では、Avamar mapall ツールを使用して、ユーティリティー ノードから他のノードにコマンドを発行します。

mapall ツールは、で定義されているAvamarノードにアクセスできます。 probe.xml ファイルで定義)を使用することが重要です。

これらのスクリプトは、標準のセキュアシェル (ssh) ツール (ssh)とセキュアコピープロトコル(SCP))で、すべてPerlで書かれています。

 

mapall、ssh、scpスクリプト

 

  • mapall - 複数のノードにコマンドを送信 
  • SSNの  - IPアドレスやホスト名の代わりに(物理的な)ノード番号を受け入れるsshのラッパー
  • SCNの - 上記のようにSCPのラッパー
注:Avamarユーティリティー ノードにログインし、sshキーをロードしてsshツールを使用します。

詳細については、以下を参照してください。Avamar:Avamarサーバーにログインし、さまざまなキーをロードする方法について説明します。」
 
 

マポール:

コマンドを実行するノードの指定:

選択したノードでのみコマンドを実行するには、次の手順を実行します。

ノード0でのみ <コマンド> を実行します0、02 と 0 です。3:

mapall --nodes=0.0,0.2,0.3 <command>
 

ユーティリティー ノードと0.0を除くすべてのノードで <コマンド> を実行するには、次のコマンドを実行します。

mapall --nodes=all+,-0.s,0.0 <command>
 

便利なフラグ:

以下は、3つのツールで使用できる便利なフラグです。(フラグについては、Avamar技術補遺に詳しく記載されています
他のAvamarコマンド ライン タスクと同様に、実行時には注意が必要です。
  • --user=<username> : Specify the user on the remote system that runs the command.
  • --verbose : Provides maximum information.
  • --quiet : Disable all messages.
  • --parallel : Runs the command on all nodes simultaneously.
  • --noerror : Do not stop if an error occurs. (This flag should always be used) For legacy reasons, mapall command execution stops if an error occurs.
  • --bg : Run the command in the background and does not wait for completion.
  • --debug : Enable extended debugging information (for example, which nodes map to which IP addresses).
  • --copy : Copies a file from the utility node to remote nodes.
  • --get : Pulls a file to the utility node from remote nodes.
  • --all : Issues the command on all the data nodes plus the utility node
  • --all+ : Issues the command on all the nodes in probe.xml, including NDMP accelerator nodes, spare nodes so forth.

 

 

MAPALL の例:

MAPALL GET: これは、copy コマンドの逆です。  

取得 GSAN バイナリーを作成し、Avamarユーティリティー ノードにコピーして /home/admin/0.*/gsanが使用するJava Runtime Environmentへのパスを定義します。

mapall --noerror get 'gsan'  
 

MAPALコピー:

をコピーします。 /etc/hosts ファイルを /root/etc/hosts 各データ ノード上。

mapall --noerror --user=root copy 'etc/hosts' 
 
これが実際にどのように機能するか:
1.「 mapall copy コマンドを使用すると、 tarball 指定されたファイルを含む。
2.用途 scp を押して、 tarball すべてのノードに。
3.を解凍します。 tarball ユーザーのホーム ディレクトリー。

Additional Information

SSNの例:

node 0.1に接続し、対話型シェルを開きます。

ssn 0.
 

ノード0.2に接続し、dateコマンドを発行します。

ssn 0.2 'date' 
 

SCNの例:

をコピーします。 /home/admin/gsan node 0.1 から btfix ディレクトリーにあります。

scn 0.1:/home/admin/gsan ./btfix
 

コピー "testscript" ユーティリティー ノードの/home/adminディレクトリーからnode 0.2に移動し、次のように配置します。runscript" で /data01/curが使用するJava Runtime Environmentへのパスを定義します。

scn testscript 0.2:/data01/cur/runscript
 
注:scn コマンドを使用して、1つのデータ ノードから別のデータ ノードにファイルをコピーすることはできません。

ファイルは、ユーティリティー ノードを使用して2ステップの操作でコピーするか、代わりに scp を使用して、2つのノード間でファイルを直接転送します。

Affected Products

Avamar, Avamar Server

Products

Avamar
Article Properties
Article Number: 000156632
Article Type: How To
Last Modified: 01 Oct 2025
Version:  10
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.