JP2004013247A - Computer system, computer control method, and program - Google Patents

Computer system, computer control method, and program Download PDF

Info

Publication number
JP2004013247A
JP2004013247A JP2002162368A JP2002162368A JP2004013247A JP 2004013247 A JP2004013247 A JP 2004013247A JP 2002162368 A JP2002162368 A JP 2002162368A JP 2002162368 A JP2002162368 A JP 2002162368A JP 2004013247 A JP2004013247 A JP 2004013247A
Authority
JP
Japan
Prior art keywords
relay
file
command
control
transfer destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002162368A
Other languages
Japanese (ja)
Inventor
Osamu Yaegashi
八重樫 修
Masanori Saito
斉藤 将徳
Hirofumi Ahiko
阿彦 浩文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2002162368A priority Critical patent/JP2004013247A/en
Publication of JP2004013247A publication Critical patent/JP2004013247A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To perform command controls and file transfers with a single operation on a plurality of remote computers connected via a network. <P>SOLUTION: A plurality of relay and server devices 1 operated on relay or remote computers comprise: a communication server controller 11 having a socket communication server function; a switch controller 12 for analyzing a telegraph message allowing a client device 0 to control the plurality of relay and server devices 1 and 2 to distribute processing to a control function, a command control function or a file control function; a command controller 13 performing a command execution control according to the distributed processing, a file controller 16 reading and writing file contents; and a communication controller 14 having a socket communication client function that carries out transmitting and receiving operations with another relay and server device 2. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明はコンピュータシステム、コンピュータの制御方法及びプログラムに関するものである。
【0002】
【従来の技術】
従来、TCP/IPを使用したネットワーク上にあるコンピュータからネットワークを通じてピア・ツー・ピア接続できるコンピュータに対して、1対1で遠隔コマンド制御やファイル転送する方法は提供されている。
【0003】
【発明が解決しようとする課題】
しかしながら、上記した従来技術では、ネットワーク接続された単一のコンピュータに対して、遠隔コマンド制御又はファイル転送は可能であるが、複数の遠隔コンピュータに対しては1回の操作でコマンド制御やファイル転送を行うことができないという問題があった。
【0004】
【課題を解決するための手段】
上記課題を解決するため、本発明はオペレータが操作する操作コンピュータ上で動作し、データの送受信を行うソケット通信機能と遠隔制御機能とファイル制御機能とを有するクライアント装置と、中継又は遠隔コンピュータ上で動作し、データの送受信を行うソケット通信機能と自コンピュータへのコマンド制御機能とファイル制御機能と他コンピュータへのソケット通信機能を持つ中継制御機能とを有する複数の中継&サーバ装置とを備え、クライアント装置と中継&サーバ装置間、中継&サーバ装置と中継&サーバ装置間のソケット通信により中継制御、コマンド制御又はファイル制御するための情報を設定し、その電文を解析して中継制御機能、コマンド制御又はファイル制御機能への分配を行い、複数の中継&サーバ装置に対してコマンド制御又はファイル転送制御を行うようにしたものである。
【0005】
また、本発明はクライアント装置から、通信サーバ制御部と切替制御部とコマンド制御部とファイル制御部と通信中継制御部とを備えた複数の中継&サーバ装置に対し、リモート制御を行うコンピュータの制御方法であって、切替制御部は、受信した電文を転送先情報とコマンド/ファイル情報とに分解し、前記転送先情報から転送先情報数を取り出し、前記転送先情報数を分解し、転送先情報とコマンド/ファイル情報で転送先IPの中継&サーバ装置に対する電文を作成し、通信中継制御部を起動してその中継&サーバ装置に電文を送信し、この工程を転送先情報数分だけ繰り返し、転送先情報のリモート制御情報を参照し、リモート制御情報がOFFの時はリモート制御を行わず、ONの時はコマンド/ファイル情報を参照し、コマンドの時はコマンド制御部を起動してコマンド制御を行い、ファイルの時はファイル制御部を起動してファイル制御を行うようにしたものである。
【0006】
なお、本発明においては、リモート制御は、コマンド制御又はファイル制御を総称したものとして使用する。
【0007】
【発明の実施の形態】
図1は本発明の実施形態を示すブロック図である。
図はクライアントサーバ型のコンピュータシステムを示し、クライアント装置0と中継&サーバ装置1、中継&サーバ装置1と中継&サーバ装置2がそれぞれネットワークで相互接続されている。
【0008】
クライアント装置0は、オペレータが操作する操作コンピュータ上で動作して、キーボード入力や結果表示などといったオペレータと対話を行う入出力制御部01と、ファイル転送のためにファイル02のファイル内容の読み書きなどを行うファイル制御部03と、中継&サーバ装置1とデータの送受信を行うソケット通信クライアント機能を持つ通信クライアント装置04とを備えている。
【0009】
中継&サーバ装置1は、中継コンピュータ上で動作して、クライアント装置0又は他の中継&サーバ装置とデータの送受信を行うソケット通信サーバ機能を持つ通信サーバ制御部11と、クライアント装置0又は他の中継&サーバ装置からの電文を解析して処理を振り分ける切替制御部12と、コマンド制御時に動作して自コンピュータでのコマンド実行制御を行うコマンド制御部13と、遠隔コンピュータ制御時に動作して他の遠隔コンピュータ上で動作している中継&サーバ装置2とデータの送受信を行うソケット通信クライアント機能を持つ通信中継制御部14と、ファイル転送時に動作して自コンピュータのファイル15のファイル内容の読み書きなどを行うファイル制御部16とを備えている。
【0010】
中継&サーバ装置2は、中継&サーバ装置1と全く同じ構成をしており、遠隔コンピュータ上で動作して、中継&サーバ制御部21と、切替制御部22と、コマンド制御部23と、通信中継制御部24と、ファイル25を制御するファイル制御部26を備えている。
【0011】
図2は送信データの概念を示す図である。
送信データは、クライアント装置が複数の中継&サーバ装置を制御するために必要な送信情報を示している。
送信データは、転送先IP(転送先のIPアドレスを省略して表示、以下同じ)と、リモート制御情報であるリモート制御フラグと、次転送先情報と、コマンド/ファイル情報であるコマンド/ファイル識別及びコマンド/ファイルデータとを有している。
【0012】
リモート制御フラグは中継&サーバ装置がリモート制御対象になるかどうか、即ちコマンド実行先又はファイル転送先になるかどうかを設定したフラグである。
次転送情報は転送先IPとリモート制御フラグと次転送先情報とから成り、転送先サーバ分だけ設定される。
更にそれぞれの次転送情報にも同様の情報が設定され、転送先がない場合はNULLが設定される。
【0013】
コマンド/ファイル職別はコマンド制御か又はファイル転送制御かを設定するもので、コマンド/ファイルデータはコマンド制御又はファイル転送制御するファイル又はコマンドを設定する。
【0014】
図3は送信電文フォーマットを示す図である。
この電文フォーマットは実際のソケット通信におけるもので、電文サイズD−1と、コマンド/ファイル情報オフセットD−2と、転送先情報D−3と、コマンド/ファイル情報D−4とで構成される。
【0015】
電文サイズD−1は電文のサイズを示すデータ、コマンド/ファイル情報オフセットD−2はコマンド/ファイル情報のオフセット値、転送先情報D−3は転送先IPD−5とリモート制御フラグD−6と転送先情報数D−7と転送先情報オフセットD−8〜D−10及び転送先情報D−11〜D−13で構成される。コマンド/ファイル情報D−4はコマンド/ファイル識別D−14とコマンド/ファイルデータD−15で構成される。
【0016】
図4は切替制御部の動作フローを示す図である。
図1のブロック構成と図3の送信電文フォーマットを参照しながら、図4の切替制御部12の動作フローを説明する。
まず、クライアント装置0の通信クライアント制御部04から中継&サーバ装置1の通信サーバ制御部11に図3で示した電文フォーマットが通信され、通信サーバ制御部11で受信したその電文をパラメータにして切替制御部12が起動される。
【0017】
切替制御部12は、フローF1で電文解析処理として、電文内容を転送先情報D−3とコマンド/ファイル情報D−4に分解し、中継&サーバ装置1の転送先情報D−3から転送先情報数D−7を取り出し、「転送先情報1」D−11から「転送先情報n」D−13の転送先情報を分解する。
フローF2で「転送先情報1」D−11とコマンド/ファイル情報D−4の情報で「転送先情報1」D−11の転送先IPD−5の中継&サーバ装置2に対する電文を作成して、フローF3で中継&サーバ装置1の通信中継制御部14を起動する。
通信中継制御部14はこの電文を中継&サーバ装置2の通信サーバ制御部21に送信する。
フローF4,F5で、この処理を転送先情報数D−7数分、「転送先情報1」D−11を「転送先情報2」D−12から「転送先情報n」D−13まで置き換えて繰り返す。
【0018】
転送先情報数D−7分の処理が終了すると、フローF6で転送先情報D−3のリモート制御フラグD−6を参照して中継&サーバ装置1でリモート制御を行うか判断する。
リモート制御フラグD−6が「OFF」の時は中継&サーバ装置1でリモート制御は行わないため、切替制御部12から抜ける。
リモート制御フラグD−6が「ON」の時はフローF7でコマンド/ファイル情報D−4のコマンド/ファイル識別D−14を判断する。
コマンド/ファイル識別D−14が「コマンド」の時はフローF8でコマンド制御部13を起動して切替制御部12から抜ける。コマンド制御部13はコマンド/ファイルデータD−15に設定されたコマンドを実行する。
【0019】
フローF7で、コマンド/ファイル識別D−14が「ファイル」の時はフローF9でファイル制御部16を起動して切替制御部12から抜ける。ファイル制御部16はコマンド/ファイルデータD−15に設定されたコマンドに基いてファイルの書き込み等を実行する。
同様の処理を中継&サーバ装置2の切替制御部22で実施する。
上記した制御動作は手順をコンピュータに実行させるためのプログラムによって実行される。
【0020】
図5は接続&リモート制御形態その1を示す図、図6は接続&リモート制御形態その2を示す図、図7は接続&リモート制御形態その3を示す図である。
【0021】
図5に、中継&サーバ装置1は中継のみを行い、中継&サーバ装置2と中継&サーバ装置3はリモート制御を行う例を示す。尚、電文イメージは必要情報のみ記述する。
【0022】
クライアント装置0は、中継&サーバ装置1に対して電文Aを送信する。電文Aには、中継&サーバ装置1に対する情報として、転送先IP1−1に中継&サーバ装置1のIPアドレス「xxx.xxx.xxx.xxx」を、リモート制御フラグ1−2にリモート制御を行わないので「OFF」を、中継&サーバ装置1を中継して中継&サーバ装置2と中継&サーバ装置3に通信中継制御を行うため、転送先情報数1−3に「2」を設定する。
【0023】
転送先IP1−5に中継&サーバ装置2のIPアドレス「yyy.yyy.yyy.yyy」を、リモート制御フラグ1−6にリモート制御を行うので「ON」を、中継&サーバ装置2は他の中継&サーバ装置に対しての通信中継制御はしないため、転送先情報数1−7に「0」を設定する。
【0024】
転送先IP1−9に中継&サーバ装置3のIPアドレス「zzz.zzz.zzz.zzz」を、リモート制御フラグ1−10にリモート制御を行うので「ON」を、中継&サーバ装置3は他の中継&サーバ装置に対しての通信中継制御はしないため転送先情報1−11に「0」を設定する。
【0025】
電文Aの最後に中継&サーバ装置2と中継&サーバ装置3に対するリモート制御内容としてコマンド/ファイル識別1−12に「コマンド」、コマンド/ファイルデータ1−13に「ls」を指定する。
lsとは、ディレクトリ配下にあるファイル又はディレクトリをリスト表示するUNIX(登録商標)コマンドである。尚、他のOSの場合はリスト表示するコマンドを使用すれば良い。
【0026】
中継&サーバ装置1は、クライアント装置0から受信した電文Aを解析し、電文Bを作成して中継&サーバ装置2に送信し、電文Cを作成して中継&サーバ装置3に送信する。
【0027】
電文Bには、転送先IP1−5を転送先IP2−1に、リモート制御フラグ1−6をリモート制御フラグ2−2に、転送先情報数1−7を転送先情報数2−3に、コマンド/ファイル識別1−12をコマンド/ファイル識別2−4に、コマンド/ファイルデータ1−13をコマンド/ファイルデータ2−5に設定する。
【0028】
電文Cには、転送先IP1−9を転送先IP3−1に、リモート制御フラグ1−10をリモート制御フラグ3−2に、転送先情報数1−11を転送先情報数3−3に、コマンド/ファイル識別1−12をコマンド/ファイル識別を3−4に、コマンド/ファイルデータ1−13をコマンド/ファイルデータ3−5に設定する。
【0029】
中継&サーバ装置2は、中継&サーバ装置1から受信した電文Bを解析し、リモート制御のみが指定されているため、lsコマンドを実施して終了する。
中継&サーバ装置3は、中継&サーバ装置1から電文Cを解析し、リモート制御のみが指定されているため、lsコマンドを実施して終了する。
【0030】
図6に、中継&サーバ装置1は中継とリモート制御を行い、中継&サーバ装置2と中継&サーバ装置3はリモート制御を行う例を示す。尚、電文イメージは必要情報のみ記述する。
【0031】
クライアント装置0は、中継&サーバ装置1に対して電文Aを送信する。電文Aには、中継&サーバ装置1に対する情報として、転送先IP1−1に中継&サーバ装置1のIPアドレス「xxx.xxx.xxx.xxx」を、リモート制御フラグ1−2にリモート制御を行うので「ON」を、中継&サーバ装置1を中継して中継&サーバ装置2と中継&サーバ装置3に通信制御を行うため、転送先情報数1−3に「2」を設定する。
【0032】
転送先IP1−5に中継&サーバ装置2のIPアドレス「yyy.yyy.yyy.yyy」を、リモート制御フラグ1−6にリモート制御を行うので「ON」を、中継&サーバ装置2は他の中継&サーバ装置に対しての通信中継制御はしないため、転送先情報数1−7に「0」を設定する。
【0033】
転送先IP1−9に中継&サーバ装置3のIPアドレス「zzz.zzz.zzz.zzz」を、リモート制御フラグ1−10にリモート制御を行うので「ON」を、中継&サーバ装置3は他の中継&サーバ装置に対しての通信中継制御はしないため、転送先情報1−11に「0」を設定する。
【0034】
電文Aの最後に中継&サーバ装置1と中継&サーバ装置2と中継&サーバ装置3に対するリモート制御内容としてコマンド/ファイル識別1−12に「コマンド」、コマンド/ファイルデータ1−13に「ls」を指定する。
【0035】
中継&サーバ装置1は、クライアント装置0から受信した電文Aを解析し、電文Bを作成して中継&サーバ装置2に送信し、電文Cを作成して中継&サーバ装置3に送信し、リモート制御のためlsコマンドを実施して終了する。
【0036】
電文Bには、転送先IP1−5を転送先IP2−1に、リモート制御フラグ1−6をリモート制御フラグ2−2に、転送先情報数1−7を転送先情報数2−3に、コマンド/ファイル識別1−12をコマンド/ファイル識別2−4に、コマンド/ファイルデータ1−13をコマンド/ファイルデータ2−5に設定する。
【0037】
電文Cには、転送先IP1−9を転送先IP3−1に、リモート制御フラグ1−10をリモート制御フラグ3−2に、転送先情報数1−11を転送先情報数3−3に、コマンド/ファイル識別1−12をコマンド/ファイル識別3−4に、コマンド/ファイルデータ1−13をコマンド/ファイルデータ3−5に設定する。
【0038】
中継&サーバ装置2は、中継&サーバ装置1から受信した電文Bを解析し、リモート制御のみが指定されているため、lsコマンドを実施して終了する。
【0039】
中継&サーバ装置3は、中継&サーバ装置1から受信した電文Cを解折し、リモート制御のみが指定されているため、lsコマンドを実施して終了する。
【0040】
図7に、中継&サーバ装置1は中継とリモート制御を行い、中継&サーバ装置2も中継とリモート制御を行い、中継&サーバ装置3はリモート制御を行う例を示す。尚、電文イメージは必要情報のみ記述する。
【0041】
クライアント装置0は、中継&サーバ装置1に対して電文Aを送信する。電文Aには、中継&サーバ装置1に対する情報として、転送先IP1−1に中継&サーバ装置1のIPアドレス「xxx.xxx.xxx.xxx」を、リモート制御フラグ1−2にリモート制御を行うので「ON」を、中継&サーバ装置1を中継して中継&サーバ装置2に通信中継制御を行うため、転送先情報数1−3に「1」を指定する。
【0042】
転送先IP1−5に中継&サーバ装置2のIPアドレス「yyy.yyy.yyy.yyy」を、リモート制御フラグ1−6にリモート制御を行うので「ON」を、中継&サーバ装置2を中継して中継&サーバ装置3に通信中継制御を行うため、転送先情報数1−7に「1」を設定する。
【0043】
転送先IP1−9に中継&サーバ装置3のIPアドレス「zzz.zzz.zzz.zzz」を、リモート制御フラグ1−10にリモート制御を行うので「ON」を、中継&サーバ装置3は他の中継&サーバ装置に対しての通信中継制御はしないため、転送先情報1−11に「0」を設定する。
【0044】
電文Aの最後に中継&サーバ装置1と中継&サーバ装置2と中継&サーバ装置3に対するリモート制御内容としてコマンド/ファイル識別1−12に「コマンド」、コマンド/ファイルデータ1−13に「ls」を指定する。
【0045】
中継&サーバ装置1は、クライアント装置0から受信した電文Aを解析し、電文Bを作成して中継&サーバ装置2に送信し、リモート制御のためlsコマンドを実施して終了する。
【0046】
電文Bには、転送先IP1−5を転送先IP2−1に、リモート制御フラグ1−6をリモート制御フラグ2−2に、転送先情報数1−7を転送先情報数2−3に、転送先IP1−9を転送先2−7に、リモート制御フラグ1−10をリモート制御フラグ2−8に、転送先情報数1−11を転送先情報数2−9に、コマンド/ファイル識別1−12をコマンド/ファイル識別2−4にコマンド/ファイルデータ1−13をコマンド/ファイルデータ2−5に設定する。
【0047】
中継&サーバ装置2は、中継&サーバ装置1から受信した電文Bを解析し、電文Cを作成して中継&サーバ装置3に送信し、リモート制御のためlsコマンドを実施して終了する。
【0048】
電文Cには、転送先IP2−7を転送先IP3−1に、リモート制御フラグ2−8をリモート制御フラグ3−2に、転送先情報数2−9を転送先情報数3−3に、コマンド/ファイル識別2−4をコマンド/ファイル識別3−4にコマンド/ファイルデータ2−5をコマンド/ファイルデータ3−5に設定する。
【0049】
中継&サーバ装置3は、中継&サーバ装置2から受信した、電文Cを解析し、リモート制御のみが指定されているためlsコマンドを実施して終了する。
【0050】
以上のように、本願発明の実施形態によれば、ネットワーク上の中継&サーバ装置に対してクライアント装置から同一コマンド又は同一ファイル転送を1回の操作で実施することができる。
さらに、コマンド制御やファイル転送で通信されるデータは、クライアント装置と中継&サーバ装置間、中継&サーバ装置と中継&サーバ装置間の接続が1つのソケット通信で接続されている場合には、複数の中継&サーバ装置に対しても1つの中継&サーバ装置を制御する情報量と同じになるため、ネットワークの負荷を軽減させることもできる。
【0051】
【発明の効果】
以上のように、本発明によれば、ネットワークにおける複数のコンピュータへのコマンド制御又はファイル転送制御を1回の操作で容易に実施することができる。
【図面の簡単な説明】
【図1】本発明の実施形態を示すブロック図
【図2】送信データの概念を示す図
【図3】送信電文フォーマットを示す図
【図4】切替制御部の動作フローを示す図
【図5】接続&リモート制御形態その1を示す図
【図6】接続&リモート制御形態その2を示す図
【図7】接続&リモート制御形態その3を示す図
【符号の説明】
0        クライアント装置
01       入出力制御部
02       ファイル
03       ファイル制御部
04       通信クライアント制御部
1,2,3    中継&サーバ装置
11,21    通信サーバ制御部
12,22    切替制御部
13,23    コマンド制御部
14,24    通信中継制御部
15,25    ファイル
16,26    ファイル制御部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a computer system, a computer control method, and a program.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, there has been provided a method of one-to-one remote command control and file transfer from a computer on a network using TCP / IP to a computer capable of peer-to-peer connection through the network.
[0003]
[Problems to be solved by the invention]
However, in the above-described conventional technology, remote command control or file transfer can be performed on a single computer connected to a network, but command control and file transfer can be performed on a plurality of remote computers by a single operation. There was a problem that can not be done.
[0004]
[Means for Solving the Problems]
In order to solve the above problems, the present invention operates on an operation computer operated by an operator, a client device having a socket communication function for transmitting and receiving data, a remote control function, and a file control function, and a relay or remote computer. A plurality of relay and server devices having a socket communication function that operates and transmits / receives data, a command control function to its own computer, a file control function, and a relay control function having a socket communication function to another computer; Set information for relay control, command control or file control by socket communication between the device and the relay & server device, or between the relay & server device and the relay & server device, analyze the message and relay control function, command control Or distribute to the file control function, and to multiple relay & server devices It is obtained to perform the demand control or file transfer controlling.
[0005]
The present invention also provides a method for controlling a computer that performs remote control from a client device to a plurality of relay and server devices including a communication server control unit, a switching control unit, a command control unit, a file control unit, and a communication relay control unit. A switching control unit that divides the received message into transfer destination information and command / file information, extracts the number of transfer destination information from the transfer destination information, decomposes the transfer destination information number, and Creates a message to the relay & server device of the transfer destination IP with the information and the command / file information, activates the communication relay control unit, sends the message to the relay & server device, and repeats this process for the number of transfer destination information. When the remote control information is OFF, remote control is not performed. When the remote control information is ON, command / file information is referred to. When performs command control by starting the command control unit, when the file is obtained to perform the file control activates the file control unit.
[0006]
In the present invention, remote control is used as a generic term for command control or file control.
[0007]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 is a block diagram showing an embodiment of the present invention.
The figure shows a client-server type computer system, in which a client device 0 and a relay & server device 1, and a relay & server device 1 and a relay & server device 2 are interconnected by a network.
[0008]
The client device 0 operates on an operation computer operated by the operator, and performs an input / output control unit 01 for interacting with the operator such as a keyboard input and a result display, and a read / write operation of a file content of the file 02 for file transfer. It has a file control unit 03 for performing communication, and a communication client device 04 having a socket communication client function for transmitting and receiving data to and from the relay & server device 1.
[0009]
The relay & server device 1 operates on the relay computer, and has a communication server control unit 11 having a socket communication server function for transmitting and receiving data to and from the client device 0 or another relay & server device, and the client device 0 or another communication device. A switching control unit 12 that analyzes messages from the relay & server device and distributes processing, a command control unit 13 that operates at the time of command control to control command execution on its own computer, and operates at the time of remote computer control to perform other operations. A communication relay control unit 14 having a socket communication client function for transmitting and receiving data to and from the relay & server device 2 operating on a remote computer, and operating at the time of file transfer to read and write the file contents of the file 15 of the own computer And a file control unit 16 for performing the operation.
[0010]
The relay & server device 2 has exactly the same configuration as the relay & server device 1, operates on a remote computer, and communicates with the relay & server control unit 21, the switching control unit 22, the command control unit 23, A relay control unit 24 and a file control unit 26 that controls a file 25 are provided.
[0011]
FIG. 2 is a diagram illustrating the concept of transmission data.
The transmission data indicates transmission information necessary for the client device to control the plurality of relay & server devices.
The transmission data includes a transfer destination IP (a transfer destination IP address is omitted, and the same applies hereinafter), a remote control flag as remote control information, a next transfer destination information, and a command / file identification as command / file information. And command / file data.
[0012]
The remote control flag is a flag that sets whether the relay & server device is to be remotely controlled, that is, whether it is to be a command execution destination or a file transfer destination.
The next transfer information includes a transfer destination IP, a remote control flag, and next transfer destination information, and is set only for the transfer destination server.
Further, similar information is set in each of the next transfer information. If there is no transfer destination, NULL is set.
[0013]
The command / file type sets command control or file transfer control, and the command / file data sets a file or command for command control or file transfer control.
[0014]
FIG. 3 is a diagram showing a transmission message format.
This message format is used in actual socket communication, and includes a message size D-1, command / file information offset D-2, transfer destination information D-3, and command / file information D-4.
[0015]
The message size D-1 is data indicating the size of the message, the command / file information offset D-2 is the command / file information offset value, and the transfer destination information D-3 is the transfer destination IPD-5 and the remote control flag D-6. It is composed of transfer destination information number D-7, transfer destination information offsets D-8 to D-10, and transfer destination information D-11 to D-13. The command / file information D-4 includes a command / file identification D-14 and command / file data D-15.
[0016]
FIG. 4 is a diagram illustrating an operation flow of the switching control unit.
The operation flow of the switching control unit 12 in FIG. 4 will be described with reference to the block configuration in FIG. 1 and the transmission message format in FIG.
First, the message format shown in FIG. 3 is communicated from the communication client control unit 04 of the client device 0 to the communication server control unit 11 of the relay & server device 1, and the message received by the communication server control unit 11 is switched to a parameter. The control unit 12 is activated.
[0017]
The switching control unit 12 decomposes the message content into transfer destination information D-3 and command / file information D-4 as a message analysis process in the flow F1, and converts the message content from the transfer destination information D-3 of the relay & server device 1 to the transfer destination information. The number of information D-7 is extracted, and the transfer destination information of the "transfer destination information n" D-13 from the "transfer destination information 1" D-11 is decomposed.
In the flow F2, a message to the relay & server device 2 of the transfer destination IPD-5 of the "destination information 1" D-11 is created based on the information of the "destination information 1" D-11 and the command / file information D-4. Then, the communication relay control unit 14 of the relay & server device 1 is activated in the flow F3.
The communication relay control unit 14 transmits this message to the communication server control unit 21 of the relay & server device 2.
In the flows F4 and F5, this processing is replaced by the number of transfer destination information D-7, and the "transfer destination information 1" D-11 is replaced with "transfer destination information 2" D-12 to "transfer destination information n" D-13. Repeat.
[0018]
When the processing for the number of transfer destination information D-7 is completed, it is determined in the flow F6 whether the remote control is performed by the relay & server apparatus 1 with reference to the remote control flag D-6 of the transfer destination information D-3.
When the remote control flag D-6 is “OFF”, the remote control is not performed by the relay & server device 1, and the process exits from the switching control unit 12.
When the remote control flag D-6 is "ON", the command / file identification D-14 of the command / file information D-4 is determined in a flow F7.
When the command / file identification D-14 is “command”, the command control unit 13 is started in the flow F8 and the process exits from the switching control unit 12. The command control unit 13 executes the command set in the command / file data D-15.
[0019]
When the command / file identification D-14 is “file” in the flow F7, the file control unit 16 is activated in the flow F9 and exits from the switching control unit 12. The file control unit 16 executes file writing and the like based on the command set in the command / file data D-15.
The same processing is performed by the switching control unit 22 of the relay & server device 2.
The control operation described above is executed by a program for causing a computer to execute the procedure.
[0020]
FIG. 5 is a diagram showing a connection & remote control mode 1, FIG. 6 is a diagram showing a connection & remote control mode 2, and FIG. 7 is a diagram showing a connection & remote control mode 3.
[0021]
FIG. 5 shows an example in which the relay & server device 1 performs only relay, and the relay & server device 2 and the relay & server device 3 perform remote control. The message image describes only necessary information.
[0022]
The client device 0 transmits the message A to the relay & server device 1. In the message A, the IP address “xxx.xxx.xxx.xxx” of the relay & server device 1 is transmitted to the transfer destination IP1-1 as the information for the relay & server device 1, and the remote control is performed to the remote control flag 1-2. Since there is no relay destination, "2" is set to the transfer destination information number 1-3 in order to perform relay control of communication between the relay & server apparatus 2 and the relay & server apparatus 3 by relaying the relay & server apparatus 1.
[0023]
The IP address “yyy.yyy.yyy.yyy” of the relay & server device 2 is set to the transfer destination IP 1-5, “ON” is set for the remote control flag 1-6 because remote control is performed, and the relay & server device 2 is set to another Since communication relay control for the relay & server device is not performed, "0" is set to the transfer destination information number 1-7.
[0024]
The IP address “zzz.zzz.zzz.zzz” of the relay & server device 3 is set to the transfer destination IP 1-9, the remote control flag 1-10 is set to “ON” because the remote control is performed, and the relay & server device 3 is set to another address. Since communication relay control for the relay & server device is not performed, “0” is set to the transfer destination information 1-11.
[0025]
At the end of the message A, "command" is specified as the command / file identification 1-12 and "ls" is specified as the command / file data 1-13 as the remote control contents for the relay & server device 2 and the relay & server device 3.
ls is a UNIX (registered trademark) command for displaying a list of files or directories under the directory. In the case of another OS, a command for displaying a list may be used.
[0026]
The relay & server device 1 analyzes the message A received from the client device 0, creates a message B and sends it to the relay & server device 2, creates a message C and sends it to the relay & server device 3.
[0027]
In the message B, the transfer destination IP1-5 is set to the transfer destination IP2-1, the remote control flag 1-6 is set to the remote control flag 2-2, the transfer destination information number 1-7 is set to the transfer destination information number 2-3, The command / file identification 1-12 is set to the command / file identification 2-4, and the command / file data 1-13 is set to the command / file data 2-5.
[0028]
In the message C, the transfer destination IP 1-9 is set to the transfer destination IP 3-1; the remote control flag 1-10 is set to the remote control flag 3-2; the transfer destination information number 1-11 is set to the transfer destination information number 3-3; Command / file identification 1-12 is set to command / file identification 3-4, and command / file data 1-13 is set to command / file data 3-5.
[0029]
The relay & server device 2 analyzes the message B received from the relay & server device 1 and executes only the ls command because only the remote control is specified, and terminates.
The relay & server device 3 analyzes the message C from the relay & server device 1 and executes only the ls command because only the remote control is specified, and terminates.
[0030]
FIG. 6 shows an example in which the relay & server apparatus 1 performs relay and remote control, and the relay & server apparatus 2 and the relay & server apparatus 3 perform remote control. The message image describes only necessary information.
[0031]
The client device 0 transmits the message A to the relay & server device 1. In the message A, the IP address “xxx.xxx.xxx.xxx” of the relay & server device 1 is transmitted to the transfer destination IP 1-1 as information for the relay & server device 1, and the remote control flag 1-2 is remotely controlled. Therefore, "ON" is set, and "2" is set to the transfer destination information number 1-3 in order to control the communication between the relay & server apparatus 2 and the relay & server apparatus 3 via the relay & server apparatus 1.
[0032]
The IP address “yyy.yyy.yyy.yyy” of the relay & server device 2 is set to the transfer destination IP 1-5, “ON” is set for the remote control flag 1-6 because remote control is performed, and the relay & server device 2 is set to another Since communication relay control for the relay & server device is not performed, "0" is set to the transfer destination information number 1-7.
[0033]
The IP address “zzz.zzz.zzz.zzz” of the relay & server device 3 is set to the transfer destination IP 1-9, the remote control flag 1-10 is set to “ON” because the remote control is performed, and the relay & server device 3 is set to another address. Since communication relay control for the relay & server device is not performed, “0” is set to the transfer destination information 1-11.
[0034]
At the end of the message A, "command" for command / file identification 1-12 and "ls" for command / file data 1-13 as remote control contents for the relay & server device 1, the relay & server device 2, and the relay & server device 3 Is specified.
[0035]
The relay & server device 1 analyzes the message A received from the client device 0, creates a message B and sends it to the relay & server device 2, creates a message C and sends it to the relay & server device 3, and An ls command is executed for control, and the processing ends.
[0036]
In the message B, the transfer destination IP1-5 is set to the transfer destination IP2-1, the remote control flag 1-6 is set to the remote control flag 2-2, the transfer destination information number 1-7 is set to the transfer destination information number 2-3, The command / file identification 1-12 is set to the command / file identification 2-4, and the command / file data 1-13 is set to the command / file data 2-5.
[0037]
In the message C, the transfer destination IP 1-9 is set to the transfer destination IP 3-1; the remote control flag 1-10 is set to the remote control flag 3-2; the transfer destination information number 1-11 is set to the transfer destination information number 3-3; The command / file identification 1-12 is set in the command / file identification 3-4, and the command / file data 1-13 is set in the command / file data 3-5.
[0038]
The relay & server device 2 analyzes the message B received from the relay & server device 1 and executes only the ls command because only the remote control is specified, and terminates.
[0039]
The relay & server device 3 breaks the message C received from the relay & server device 1 and executes only the ls command because only the remote control is designated, and terminates.
[0040]
FIG. 7 shows an example in which the relay & server device 1 performs relay and remote control, the relay & server device 2 also performs relay and remote control, and the relay & server device 3 performs remote control. The message image describes only necessary information.
[0041]
The client device 0 transmits the message A to the relay & server device 1. In the message A, the IP address “xxx.xxx.xxx.xxx” of the relay & server device 1 is transmitted to the transfer destination IP 1-1 as information for the relay & server device 1, and the remote control flag 1-2 is remotely controlled. Therefore, "ON" is designated, and "1" is designated as the transfer destination information number 1-3 in order to perform communication relay control to the relay & server apparatus 2 via the relay & server apparatus 1.
[0042]
The IP address “yyy.yyy.yyy.yyy” of the relay & server device 2 is transferred to the transfer destination IP 1-5, and “ON” is relayed to the remote control flag 1-6, so that the relay & server device 2 is relayed. In order to perform communication relay control on the relay & server device 3, “1” is set to the transfer destination information number 1-7.
[0043]
The IP address “zzz.zzz.zzz.zzz” of the relay & server device 3 is set to the transfer destination IP 1-9, the remote control flag 1-10 is set to “ON” because the remote control is performed, and the relay & server device 3 is set to another address. Since communication relay control for the relay & server device is not performed, “0” is set to the transfer destination information 1-11.
[0044]
At the end of the message A, "command" for command / file identification 1-12 and "ls" for command / file data 1-13 as remote control contents for the relay & server device 1, the relay & server device 2, and the relay & server device 3 Is specified.
[0045]
The relay & server device 1 analyzes the message A received from the client device 0, creates a message B and transmits the message B to the relay & server device 2, executes the ls command for remote control, and terminates.
[0046]
In the message B, the transfer destination IP1-5 is set to the transfer destination IP2-1, the remote control flag 1-6 is set to the remote control flag 2-2, the transfer destination information number 1-7 is set to the transfer destination information number 2-3, Transfer destination IP 1-9 to transfer destination 2-7, remote control flag 1-10 to remote control flag 2-8, transfer destination information number 1-11 to transfer destination information number 2-9, command / file identification 1 -12 is set in the command / file identification 2-4 and the command / file data 1-13 is set in the command / file data 2-5.
[0047]
The relay & server device 2 analyzes the message B received from the relay & server device 1, creates a message C, transmits the message C to the relay & server device 3, executes the ls command for remote control, and terminates.
[0048]
In the message C, the transfer destination IP2-7 is set to the transfer destination IP3-1, the remote control flag 2-8 is set to the remote control flag 3-2, the transfer destination information number 2-9 is set to the transfer destination information number 3-3, The command / file identification 2-4 is set to the command / file identification 3-4, and the command / file data 2-5 is set to the command / file data 3-5.
[0049]
The relay & server device 3 analyzes the message C received from the relay & server device 2 and executes only the ls command because only the remote control is designated, and terminates.
[0050]
As described above, according to the embodiment of the present invention, the same command or the same file transfer can be performed from the client device to the relay & server device on the network by one operation.
Furthermore, data communicated by command control or file transfer includes a plurality of data when the connection between the client device and the relay & server device and between the relay & server device and the relay & server device are connected by one socket communication. Since the amount of information for controlling one relay and server device is the same as that for one relay and server device, the load on the network can also be reduced.
[0051]
【The invention's effect】
As described above, according to the present invention, command control or file transfer control to a plurality of computers in a network can be easily performed by one operation.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a diagram showing the concept of transmission data. FIG. 3 is a diagram showing a transmission message format. FIG. 4 is a diagram showing an operation flow of a switching control unit. FIG. 6 shows connection & remote control mode 1 FIG. 6 shows connection & remote control mode 2 FIG. 7 shows connection & remote control mode 3
0 Client device 01 I / O control unit 02 File 03 File control unit 04 Communication client control unit 1, 2, 3 Relay & server device 11, 21 Communication server control unit 12, 22, Switching control unit 13, 23 Command control unit 14, 24 Communication relay control unit 15, 25 File 16, 26 File control unit

Claims (5)

オペレータが操作する操作コンピュータ上で動作し、データの送受信を行うソケット通信機能と遠隔制御機能とファイル制御機能とを有するクライアント装置と、
中継又は遠隔コンピュータ上で動作し、データの送受信を行うソケット通信機能と自コンピュータへのコマンド制御機能とファイル制御機能と他コンピュータへのソケット通信機能を持つ中継制御機能とを有する複数の中継&サーバ装置とを備え、
クライアント装置と中継&サーバ装置間、中継&サーバ装置と中継&サーバ装置間のソケット通信により中継制御、コマンド制御又はファイル制御するための情報を設定し、その電文を解析して中継制御機能、コマンド制御又はファイル制御機能への分配を行い、複数の中継&サーバ装置に対してコマンド制御又はファイル転送制御を行うことを特徴とするコンピュータシステム。
A client device that operates on an operation computer operated by an operator and has a socket communication function for transmitting and receiving data, a remote control function, and a file control function;
A plurality of relays and servers having a socket communication function that operates on a relay or a remote computer to transmit and receive data, a command control function to the own computer, a file control function, and a relay control function having a socket communication function to another computer. Equipment and
Information for relay control, command control or file control is set by socket communication between the client device and the relay & server device, and between the relay & server device and the relay & server device. The message is analyzed, and the relay control function and the command are set. A computer system for performing distribution to control or file control functions and performing command control or file transfer control for a plurality of relay and server devices.
前記中継&サーバ装置が、ソケット通信サーバ機能を有する通信サーバ制御部と、前記クライアント装置が複数の中継&サーバ装置を制御するための電文を解析して、中継制御機能、コマンド制御機能又はファイル制御機能へ処理の分配を行う切替制御部と、前記切替制御部で分配された処理に従って自コンピュータでコマンド実行制御を行うコマンド制御部と、ファイル転送のために自コンピュータのファイル内容の読み書きを行うファイル制御部と、遠隔コンピュータ上で動作している他の中継&サーバ装置とデータの送受信を行うソケット通信クライアント機能を有する通信中継制御部とを備えたことを特徴とする請求項1記載のコンピュータシステム。The relay & server device analyzes a message for the client device to control a plurality of relay & server devices with a communication server control unit having a socket communication server function, and relay control function, command control function or file control. A switching control unit for distributing processing to functions, a command control unit for performing command execution control on the own computer according to the processing distributed by the switching control unit, and a file for reading and writing the file contents of the own computer for file transfer 2. The computer system according to claim 1, further comprising: a control unit; and a communication relay control unit having a socket communication client function for transmitting / receiving data to / from another relay / server device operating on a remote computer. . 前記電文は転送先情報と、リモート制御情報と、コマンド/ファイル情報とを有することを特徴とする請求項1又は2記載のコンピュータシステム。3. The computer system according to claim 1, wherein the message includes transfer destination information, remote control information, and command / file information. クライアント装置から、通信サーバ制御部と切替制御部とコマンド制御部とファイル制御部と通信中継制御部とを備えた複数の中継&サーバ装置に対し、リモート制御を行うコンピュータの制御方法であって、
前記切替制御部が、受信した電文を転送先情報とコマンド/ファイル情報とに分解し、前記転送先情報から転送先情報数を取り出し、前記転送先情報数を分解する工程と、
前記転送先情報とコマンド/ファイル情報で転送先IPの中継&サーバ装置に対する電文を作成し、通信中継制御部を起動して前記中継&サーバ装置に電文を送信する工程と、
前記工程を前記転送先情報数分だけ繰り返す工程と、
前記転送先情報のリモート制御情報を参照し、前記リモート制御情報がOFFの時はリモート制御を行わず、ONの時は前記コマンド/ファイル情報を参照し、コマンドの時はコマンド制御部を起動してコマンド制御を行い、ファイルの時はファイル制御部を起動してファイル制御を行う工程と
を有することを特徴とするコンピュータの制御方法。
A method of controlling a computer that performs remote control from a client device to a plurality of relay & server devices including a communication server control unit, a switching control unit, a command control unit, a file control unit, and a communication relay control unit,
A step in which the switching control unit decomposes the received message into transfer destination information and command / file information, extracts the number of transfer destination information from the transfer destination information, and decomposes the transfer destination information number;
Creating a message for the relay & server device of the transfer destination IP based on the transfer destination information and the command / file information, starting a communication relay control unit and transmitting the message to the relay & server device;
Repeating the step by the number of the transfer destination information;
The remote control information of the transfer destination information is referred to. When the remote control information is OFF, the remote control is not performed. When the remote control information is ON, the command / file information is referred to. Performing a command control, and in the case of a file, activating a file control unit to perform the file control.
クライアント装置から複数の中継&サーバ装置に対しリモート制御を行うためのプログラムであって、
中継&サーバ装置が受信した電文を転送先情報とコマンド/ファイル情報とに分解し、前記転送先情報から転送先情報数を取り出し、前記転送先情報数を分解する手順と、
前記転送先情報とコマンド/ファイル情報で転送先IPの中継&サーバ装置に対する電文を作成し、前記中継&サーバ装置に電文を送信する手順と、
前記手順を前記転送先情報数分だけ繰り返す手順と、
前記転送先情報のリモート制御情報を参照し、前記リモート制御情報がOFFの時はリモート制御を行わず、ONの時は前記コマンド/ファイル情報を参照し、コマンドの時はコマンド制御を行い、ファイルの時はファイル制御を行う手順とを
コンピュータに実行させるためのプログラム。
A program for remotely controlling a plurality of relay & server devices from a client device,
Disassembling the message received by the relay & server device into transfer destination information and command / file information, extracting the number of transfer destination information from the transfer destination information, and decomposing the transfer destination information number;
Creating a message to the relay & server device of the transfer destination IP based on the transfer destination information and the command / file information, and transmitting the message to the relay & server device;
Repeating the procedure for the number of the destination information,
The remote control information of the transfer destination information is referred to. When the remote control information is OFF, the remote control is not performed. When the remote control information is ON, the command / file information is referred to. In this case, a program for causing a computer to execute a file control procedure.
JP2002162368A 2002-06-04 2002-06-04 Computer system, computer control method, and program Pending JP2004013247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002162368A JP2004013247A (en) 2002-06-04 2002-06-04 Computer system, computer control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002162368A JP2004013247A (en) 2002-06-04 2002-06-04 Computer system, computer control method, and program

Publications (1)

Publication Number Publication Date
JP2004013247A true JP2004013247A (en) 2004-01-15

Family

ID=30431123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002162368A Pending JP2004013247A (en) 2002-06-04 2002-06-04 Computer system, computer control method, and program

Country Status (1)

Country Link
JP (1) JP2004013247A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8001255B2 (en) * 2006-01-05 2011-08-16 International Business Machines Corporation System, method and program to synchronize file transmission in a distributed computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8001255B2 (en) * 2006-01-05 2011-08-16 International Business Machines Corporation System, method and program to synchronize file transmission in a distributed computer system

Similar Documents

Publication Publication Date Title
US8316225B2 (en) Automated integration of fault reporting
CN102918511A (en) Relay device, relay system, relay method, program, and storage medium capable of reading from computer storing said program
KR101558289B1 (en) Composing message processing pipelines
US20070199065A1 (en) Information processing system
JP2007140712A (en) Client terminal switching method in server/client system
JP2004013247A (en) Computer system, computer control method, and program
JP4428287B2 (en) Thin client system
JP2007086860A (en) Method of transferring data and data transfer system
JP2004355511A (en) Information processing system
WO2008050585A1 (en) Two-way communication system, server apparatus, relay apparatus, two-way communication method and program
CN114281563A (en) Application program reconstruction method and device
JP3545777B2 (en) Network connection type communication processing system and test system
JP2008234122A (en) Cooperation method of screen display information and cooperation method
JP5577140B2 (en) Information processing system and information processing method
JP3494545B2 (en) Distributed computer system, computer and distributed processing method
JP4432368B2 (en) Linking screen display information
JPH0766096A (en) Apparatus for managing manufacture of semiconductor
CN116095061A (en) Public cloud system and related method thereof
JP2003030081A (en) System and method for transferring file
CN107896234B (en) Method for transmitting message in Modbus communication network, Modbus communication network system and Modbus communication network equipment
JP2000207268A (en) Device and method for file transfer
CN107707581A (en) Document handling method and device
CN117176749A (en) Internet of things management method, device, equipment and storage medium based on MQTT protocol
JP2006227775A (en) Weather observation device, weather data provision method and data logger
JP2020184098A (en) Interface apparatus and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070501

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070702

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070724