Avamar:mapall ツールの使用方法
Summary: Avamarには、グリッド内の1つ以上のノードに命令を発行できる「mapall」というコマンドライン ツールがあります。この記事では、ツールの使用方法について説明します。
Instructions
この記事では、Avamar mapall ツールを使用して、ユーティリティー ノードから他のノードにコマンドを発行します。
「 mapall ツールは、で定義されているAvamarノードにアクセスできます。 probe.xml ファイルで定義)を使用することが重要です。
これらのスクリプトは、標準のセキュアシェル (ssh) ツール (ssh)とセキュアコピープロトコル(SCP))で、すべてPerlで書かれています。
mapall- 複数のノードにコマンドを送信- SSNの - IPアドレスやホスト名の代わりに(物理的な)ノード番号を受け入れるsshのラッパー
- SCNの - 上記のようにSCPのラッパー
詳細については、以下を参照してください。Avamar:Avamarサーバーにログインし、さまざまなキーをロードする方法について説明します。」
マポール:
コマンドを実行するノードの指定:
選択したノードでのみコマンドを実行するには、次の手順を実行します。
ノード0でのみ <コマンド> を実行します。0、0。2 と 0 です。3:
mapall --nodes=0.0,0.2,0.3 <command>
ユーティリティー ノードと0.0を除くすべてのノードで <コマンド> を実行するには、次のコマンドを実行します。
mapall --nodes=all+,-0.s,0.0 <command>
便利なフラグ:
他の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'
mapall copy コマンドを使用すると、 tarball 指定されたファイルを含む。
scp を押して、 tarball すべてのノードに。
tarball ユーザーのホーム ディレクトリー。
Additional Information
SSNの例:
node 0.1に接続し、対話型シェルを開きます。
ssn 0.1
ノード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つのノード間でファイルを直接転送します。