1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

TeraTarm ブロードキャストコマンドを試してみた

Last updated at Posted at 2023-06-03

はじめに

TeraTarmのブロードキャストコマンドとは同時に複数のサーバーに同じコマンドを実行する際に使用されるそうです。
あまり利用する機会はないですが便利な機能です。

前提条件
VirtualBoxでゲストOS 2台立てました CentOS7です。

試したこと

TeraTermでゲストOS2つに接続しました。

TeraTarmのコントロールを選択し、ブロードキャストを選択します。

image.png

ゲストOS2つにコマンドを実行してみた

対象サーバーを選択して、赤枠のボックスにコマンドを入れます。
※選択したサーバーは青色になります。

ユーザーを追加

useradd test5

image.png

ユーザーがゲストOS2台にTEST5ユーザーが登録されていることを確認した

tail -1  /etc/passwd

image.png

補足情報 リアルタイムにチェックあり

パスワードの設定を試したが、コピー&ペーストでパスワードを張るとうまくいきませんでした。
image.png

パスワードを手入力の場合は上手くパスワード設定出来ました。
image.png

追加情報 20230701 リアルタイムにチェックなし

リアルタイプのチェックを外したらパスワードをコピー&ペーストですが張り付けることが出来ました。
image.png

上記で設定するとSSH接続の際に認証に失敗します。現在調査中です。

まとめ

TeraTarm ブロードキャストコマンドは複数サーバーに同時に同じコマンドを実行する際に
便利な機能なため覚えておいた方が良いです。
パスワードの設定は上手くいきませんでした。
運用作業を効率化するためには便利な機能は探したら見つかる場合があります。
普段から効率が良い方法を見つける様にしたいです。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?