Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3822013B2 - Host file management method and computer-readable medium - Google Patents
[go: Go Back, main page]

JP3822013B2 - Host file management method and computer-readable medium - Google Patents

Host file management method and computer-readable medium Download PDF

Info

Publication number
JP3822013B2
JP3822013B2 JP2000012638A JP2000012638A JP3822013B2 JP 3822013 B2 JP3822013 B2 JP 3822013B2 JP 2000012638 A JP2000012638 A JP 2000012638A JP 2000012638 A JP2000012638 A JP 2000012638A JP 3822013 B2 JP3822013 B2 JP 3822013B2
Authority
JP
Japan
Prior art keywords
host
divided
file
hosts
updated
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.)
Expired - Fee Related
Application number
JP2000012638A
Other languages
Japanese (ja)
Other versions
JP2001203699A5 (en
JP2001203699A (en
Inventor
輝夫 加藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2000012638A priority Critical patent/JP3822013B2/en
Publication of JP2001203699A publication Critical patent/JP2001203699A/en
Publication of JP2001203699A5 publication Critical patent/JP2001203699A5/ja
Application granted granted Critical
Publication of JP3822013B2 publication Critical patent/JP3822013B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Small-Scale Networks (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、通信プロトコルにTCP/IPを採用したクライアント=サーバ型のLANにおけるHOSTSファイルの効率的な管理に、関する。
【0002】
【従来の技術】
従来から、クライアント=サーバ型のLAN(Local Area Network)において、文字列からなるコンピュータ名を用いたTCP/IP(Transmission Control Protocol/Internet Protocol)通信を行いたい場合、HOSTSファイルが使われている。このHOSTSファイルには、LAN内だけで利用できるように各コンピュータに一意的に設定されたコンピュータ名(ホスト名)と,IP(Internet Protocol)上においてLAN内のコンピュータを特定する(プライベート)IPアドレスが列挙されている。
【0003】
LAN内の全てのサーバ及びクライアントには、同一の内容のHOSTSファイルが備えられており、LAN内の各コンピュータでは、独自にホスト名とIPアドレスとを変換することができる。例えば、ネットワークユーザが、LAN内のあるコンピュータのホスト名を指定してデータのやり取りをするようにコンピュータに命じると、このコンピュータは、格納されているHOSTSファイルから送受信先のホスト名に対応するIPアドレスを検出して読み出し、検索されたIPアドレスを元に通信先のコンピュータとデータの授受を行う。
【0004】
このようなLANを新規に構築する場合、或いは、既にLAN内の各コンピュータに備えられているHOSTSファイルにおいてホスト名及びIPアドレスを追加し,削除し,変更する場合、保守作業員やシステム管理者が、LAN内の各コンピュータを一つ一つ回って、書面に記録しておいたホスト名及びIPアドレスと照合しながら各HOSTSファイルを設定していた。
【0005】
【発明が解決しようとする課題】
しかしながら、LANに接続されるコンピュータの数が増減するたびに保守作業員等の手作業によって全てのコンピュータのHOSTSファイルを一つ一つ書き換えねばならないために、LANにおけるホスト名の管理には、極めて膨大な作業時間と人件費が掛からざるを得なかった。
【0006】
然も、多大な時間と費用を注ぎ込んでいるにも拘わらず、人手による設定作業であるために、どうしても幾つかのコンピュータのHOSTSファイルに入力ミスを生じさせてしまうことがあった。ホスト名又はIPアドレスを間違って記憶しているサーバ又はクライアントがLAN内に存在すると、このLAN内では正確に通信が行えなくなることがあった。
【0007】
そこで、本発明の課題は、TCP/IPを通信プロトコルに採用したクライアント=サーバ型のLANにおいて、保守作業者がわざわざLAN内の各コンピュータを回ってクライアントに備えられるHOSTSファイルの設定作業をしなくても、LAN内のコンピュータに付されるホスト名を簡単に設定することができるファイル管理方法を、提供することにある。
【0008】
【課題を解決するための手段】
上記の課題を達成するために構成された本発明は、複数のコンピュータをクライアントサーバ型に接続してなるネットワークシステムにおいて、ネットワークシステムを構成する各コンピュータをグループ分けしてそのグループ毎に定義するために各コンピュータが夫々備えるHOSTSファイルを管理するためのHOSTSファイル管理方法であって、何れか一のコンピュータ上では、何れかのグループに属するコンピュータについての定義を編集するための指示に応じて、そのグループに関する定義を前記HOSTSファイルから抽出し、抽出した定義を前記指示に従って編集し、編集がなされた前記定義を各コンピュータに通知するサーバプログラムが実行され、個々のコンピュータ上では、前記サーバプログラムによって通知された定義によって、自己が備える前記HOSTSファイルを書き換えるクライアントプログラムが実行されることを、特徴とする。
【0009】
このように構成されると、サーバプログラムは、HOSTSファイルから抽出して編集した定義をクライアントに通知し、クライアントプログラムは、自己が備えるHOSTSファイルのうち、サーバより通知された定義と同じグループの定義を抽出して削除するとともに、サーバより通知された定義をHOSTSファイルに書き込む。
【0010】
このため、サーバにおいてHOSTSファイルの編集作業をすれば、LAN内の個々のホストにおいてHOSTSファイルの編集作業をせずとも、ホストに備えられるHOSTSファイルの内容を書き換えることができる。従って、ネットワーク管理者がLAN内の各コンピュータを回ってクライアントに備えられるHOSTSファイルを一つ一つ設定しなくても良い。
【0011】
また、LAN内では、HOSTSファイル全体がサーバから搬送されるのではなく、抽出した定義のみを格納したファイルがサーバから搬送されるので、ネットワーク内を流れるメッセージデータを少量に抑えることができる。
【0012】
本発明によるコンピュータ取読可能な記録媒体に格納されたプログラムは、クライアントサーバ型に接続してなるネットワークシステムを構成する複数のコンピュータのうち何れかのコンピュータに対し、何れかのグループに属するコンピュータについての定義を編集するための指示に応じて、そのグループに関する定義を前記HOSTSファイルから抽出させ、抽出した定義を前記指示に従って編集させ、編集がなされた前記定義を各コンピュータに通知させる。
【0013】
【発明の実施の形態】
以下、本発明に係るHOSTSファイルの管理方法の実施形態について図面を参照しながら説明する。
【0014】
図1は、本発明に係るHOSTSファイルの管理方法の実施形態を示すシステム構成図である。図2は、本例によるサーバシステム10の概略構成図、図3は、本例のHOSTSファイルの管理方法が実施されるクライアントサーバシステムの概略全体図、図4は、本例によるHOSTSファイル1の記述の一例を示す例示図である。
【0015】
本発明であるHOSTSファイルの管理方法を実施するためのネットワーク媒体であるLAN(Local Area Network)は、サーバシステム10とサーバシステム10によって提供されるサービスを利用するクライアントシステム20,30,・・・とからなる複数のコンピュータをLANケーブルによって接続することにより一定範囲の通信網を形成する。そのサーバシステム10には、アプリケーションの実行を管理し、若しくはネットワーク管理等のシステム管理を行うためのOS(Operating System)が、備えられている。
【0016】
本例に使用されるLANでは、通信プロトコルにTCP/IP(Transmission Control Protocol/Internet Protocol)を用いているために、LAN内のコンピュータ同士は、TCP等の上位層から指示されるIPアドレスを利用してIP通信を行う。このため、サーバシステム10及びクライアントシステム20,30,・・・一台一台には、ドットで区切られた4つの数字により表されるIPアドレスを、互いに重複し合わないように割り当てている。
【0017】
但し、LANの利用者(ネットワークユーザ)にとっては、数字のみからなるアドレスを記憶したり識別したりすることが難しいので、LAN内の各コンピュータ(ホスト)10,20,・・・には、文字列からなるコンピュータ名(ホスト名)を付している。各ホスト10,20,・・・に付されるホスト名は、LAN内において重複しないように命名されており、LAN内の各ホスト10,20,・・・では、ネットワークユーザが指定した通信先のホスト名と一対一に対応するIPアドレスが、HOSTSファイルから検索され、検索されたIPアドレスを元に通信データが送受信される。
【0018】
図4では、上述のHOSTSファイルの一例を示している。この図4に示されるように、このHOSTSファイル1では、LAN内の全てのIPアドレス(192.168.111.111, 192.168.111.112,・・・)毎にこのIPアドレスに対応するホスト名(PPPPPPPP,QQQQQQQQ,・・・)と、このホスト名に係る備考(*Ga*HHHHHHHH,*Gb*IIIIIII,・・・)とを対応付けたホストテーブルとして、全データが保存されている。また、このHOSTSファイル1では、1ホスト分の「IPアドレス」,「ホスト名」及び「備考」のデータを、幾つかのスペースで区切って一行に並べて記述している。以下、この一行に記録されたデータを、1レコードと称することにする。
【0019】
ところで、本例では、LAN内の全ホスト10,20,・・・を幾つかのグループに分けて、各グループに対して互いに重複しないグループ名を、設定している。このグループは、LAN内のセグメント毎に分けて設定する場合と、各ホストを論理的な集団(例えば、ワークグループ)に分けて設定する場合とがあるが、どちらを利用しても良い。そして、図4に示されるように、各ホストが属するグループのグループ名(*Ga,*Gb,・・・)を、「備考」に記述している。
【0020】
また、「備考」に記述されるグループ名の隣には、ホスト名で説明しきれない補足事項(*HHHHHHH,*IIIIIII,・・・)を、書き込んでいる。この補足事項には、例えば、本例のLANがある企業の社屋内のネットワークを形成しているのであれば、『○○事業部××課』、或いは、『鈴木専用』、『1階10号室』のようなコメントを、記述する。
【0021】
そして、上述のようなHOSTSファイル1を複製し、同一内容のHOSTSファイル1を、LAN内のサーバ10及び全クライアント20,30,・・・に夫々格納している。
【0022】
本例では、上述したLANにホストを追加し,或いはLANに接続されるホストを削除し,若しくは各ホストのホスト名やIPアドレスを変更する場合、各ホスト10,20,・・・において、以下に示すような手順により、ホストを管理する。
【0023】
図1及び図2に示されるように、先ず、サーバシステム10においてサーバプログラム15を起動すると、このサーバプログラム15のHOSTSファイル入力部15aによってHOSTSファイル1が読み込まれる。このサーバプログラム15のデータ分割部15bでは、HOSTSファイル1の各レコードに示されているグループ名が検索され、各レコードがグループ毎に分割される。グループ毎に分割された各レコードは、プログラム15の分割HOSTSファイル作成部15cで、グループ毎に用意された分割HOSTSファイル1a,1b,・・・,1zに、保存される。
【0024】
次に、ネットワーク管理者は、LANに新たにホストを接続する場合,そのホストが属するグループの分割HOSTSファイル(例えば、1b)をサーバシステム10のディスク装置から読み出し、エディタ等を用いて新たなホスト名と,割り当てるIPアドレスと,属するグループ名を含む備考とからなる新たなレコードを、この分割HOSTSファイル1bに入力する。同様に、LANに接続されているホストをLANから取り外す場合、そのホストのレコードを分割HOSTSファイル(例えば、1b)から削除する。また、LAN内で使用するホスト名やIPアドレスを変更する場合、該当するホストが属するグループの分割HOSTSファイル(例えば、1b)から、そのホストのレコードにおけるホスト名又はIPアドレスを変更する。そして、上述のようにレコードを一部変更した分割HOSTSファイル1’bを、サーバシステム10のディスク装置に保存する。
【0025】
サーバシステム10では、HOSTSファイル1の分割HOSTSファイル1bに変更があったことが、各クライアントシステム20,30,・・・から自由にアクセスできるアプリケーション内に、表示される。各クライアントシステム20,30,・・・は、図1及び図3に示されるように、必要に応じて、又は定期的に、サーバシステム10のアプリケーションへとアクセスして、設定変更があった分割HOSTSファイル1’bを、受け取りに行くことができる。以下では、クライアントシステム20が分割HOSTSファイル1’bを受け取った場合を、説明する。
【0026】
先ず、分割HOSTSファイル1’bを受け取ったクライアントシステム20においてクライアントプログラム25を起動すると、このクライアントプログラム25の分割HOSTSファイル入力部25aによってこの分割HOSTSファイル1’bが読み込まれる。このクライアントプログラム25のHOSTSファイル書込部25bでは、分割HOSTSファイル1’bの「備考」に記述されているグループ名が読み取られるとともに、このグループ名と同じグループ名を有するレコードが、クライアントシステム20のディスク装置に格納されているHOSTSファイル1の中から検索されて削除される。そして、レコードの一部が削除されたHOSTSファイル1には、分割HOSTSファイル1’bに記録されているレコードが書き込まれ、記述内容が変更されたHOSTSファイル1’が、クライアントシステム20のディスク装置に保存される。
【0027】
ところで、サーバシステム10においても、各クライアントシステム20,30,・・・と同様の方法により、格納されているHOSTSファイル1の内容が書き換えられ、記述内容が変更されたHOSTSファイル1’が、サーバシステム10のディスク装置に保存される。
【0028】
以上のように本実施形態によれば、LANに接続されるコンピュータを追加したり、撤去したり、或いはコンピュータに付されるホスト名やIPアドレスを変更する場合、サーバシステム10とクライアントシステム20,30,・・・とに搭載されるプログラム15,25を相互に利用することにより、各ホスト10,20,・・・に備えられるHOSTSファイル1をHOSTSファイル1’に変更することができる。
【0029】
従って、LAN内の各ホスト10,20,・・・では、内容を変更したHOSTSファイル1’から検索されたIPアドレスを元に送受信先のホスト10,20,・・・と正確に通信することができる。
【0030】
また、記述内容を変更したHOSTSファイル1’をサーバ10から全てのクライアント20,30,・・・にブロードキャストする場合に比べると、記述内容を変更した分割HOSTSファイルのみを各クライアント20,30,・・・の要求に応じて搬送すればよいので、LAN上に搬送されるメッセージデータの量を少なくすることができる。
【0031】
【発明の効果】
以上に説明したように、本発明のファイル管理方法によると、TCP/IPを通信プロトコルに採用したクライアント=サーバ型のLANにおいて、保守作業者がわざわざLAN内の各コンピュータを回ってクライアントに備えられるHOSTSファイルの設定作業をしなくても、LAN内のコンピュータに付されるホスト名を簡単に設定することができる。
【図面の簡単な説明】
【図1】 本発明に係るHOSTSファイルの管理方法の実施形態を示すクライアントサーバシステムの概略構成図
【図2】 本例のHOSTSファイルの管理方法が実施されるサーバシステムの概略構成図
【図3】 本例のHOSTSファイルの管理方法が実施されるネットワークシステムの概略全体図
【図4】 本例のHOSTSファイルが実施されるシステムに格納されるHOSTSファイルの記述の一例を示す例示図
【符号の説明】
1,1’ HOSTSファイル
1a〜1z,1’b 分割HOSTSファイル
10 サーバシステム
15 サーバプログラム
20〜100 クライアントシステム
25 クライアントプログラム
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to efficient management of HOSTS files in a client = server type LAN adopting TCP / IP as a communication protocol.
[0002]
[Prior art]
Conventionally, in a client = server type LAN (Local Area Network), a HOSTS file is used to perform TCP / IP (Transmission Control Protocol / Internet Protocol) communication using a computer name consisting of a character string. This HOSTS file contains a computer name (host name) that is uniquely set for each computer so that it can be used only within the LAN, and a (private) IP address that identifies the computer in the LAN on the IP (Internet Protocol) Are listed.
[0003]
All servers and clients in the LAN have the same HOSTS file, and each computer in the LAN can independently convert the host name and IP address. For example, when a network user instructs a computer to exchange data by specifying the host name of a certain computer in the LAN, the computer uses the IP address corresponding to the destination host name from the stored HOSTS file. The address is detected and read out, and data is exchanged with the communication destination computer based on the searched IP address.
[0004]
When constructing a new LAN like this, or when adding, deleting, or changing the host name and IP address in the HOSTS file already provided on each computer in the LAN, maintenance personnel and system administrators However, each HOSTS file was set by going through each computer in the LAN one by one and checking it against the host name and IP address recorded in writing.
[0005]
[Problems to be solved by the invention]
However, every time the number of computers connected to the LAN increases or decreases, the HOSTS file of all computers must be rewritten one by one by maintenance workers. Enormous work hours and labor costs were inevitable.
[0006]
However, in spite of a great deal of time and money, it was a manual setting operation that inevitably caused input errors in HOSTS files on some computers. If a server or client that incorrectly stores the host name or IP address exists in the LAN, communication may not be performed accurately in the LAN.
[0007]
Therefore, the problem of the present invention is that in a client = server type LAN adopting TCP / IP as a communication protocol, a maintenance worker does not bother to go around each computer in the LAN and set a HOSTS file provided in the client. also, the full § i le management method is Ru can be easily set the host name to be added to the computer in the LAN, there is provided.
[0008]
[Means for Solving the Problems]
The present invention configured to achieve the above-described problem is a network system in which a plurality of computers are connected in a client-server manner, and the computers constituting the network system are grouped and defined for each group. A HOSTS file management method for managing a HOSTS file included in each computer in accordance with an instruction for editing definitions for computers belonging to any group on any one computer. A server program that extracts definitions related to groups from the HOSTS file, edits the extracted definitions according to the instructions, and notifies the edited definitions to each computer is executed. On each computer, the server program notifies the definition. By the defined definition That the client program for rewriting obtain the HOSTS file is executed, and features.
[0009]
When configured in this way, the server program notifies the client of the definition extracted and edited from the HOSTS file, and the client program defines definitions in the same group as the definition notified by the server in the HOSTS file provided by itself. Is extracted and the definition notified from the server is written to the HOSTS file.
[0010]
Therefore, if the HOSTS file is edited on the server, the contents of the HOSTS file provided in the host can be rewritten without editing the HOSTS file on each host in the LAN. Therefore, the network administrator does not have to set each HOSTS file provided in the client by going around each computer in the LAN.
[0011]
Also, in the LAN, the entire HOSTS file is not carried from the server, but a file storing only the extracted definitions is carried from the server, so that message data flowing in the network can be reduced to a small amount.
[0012]
A program stored in a computer-readable recording medium according to the present invention is a program that belongs to any group with respect to any one of a plurality of computers constituting a network system connected in a client-server type. In response to an instruction to edit the definition of the group, the definition relating to the group is extracted from the HOSTS file, the extracted definition is edited in accordance with the instruction, and the edited definition is notified to each computer.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of a HOSTS file management method according to the present invention will be described with reference to the drawings.
[0014]
FIG. 1 is a system configuration diagram showing an embodiment of a HOSTS file management method according to the present invention. 2 is a schematic configuration diagram of the server system 10 according to this example, FIG. 3 is a schematic overall view of a client server system in which the HOSTS file management method of this example is implemented, and FIG. 4 is a diagram of the HOSTS file 1 according to this example. It is an illustration figure which shows an example of description.
[0015]
A LAN (Local Area Network), which is a network medium for carrying out the HOSTS file management method of the present invention, is a server system 10 and client systems 20, 30,... That use services provided by the server system 10. A network of a certain range is formed by connecting a plurality of computers consisting of The server system 10 is provided with an OS (Operating System) for managing execution of applications or system management such as network management.
[0016]
Since the LAN used in this example uses TCP / IP (Transmission Control Protocol / Internet Protocol) as the communication protocol, computers in the LAN use IP addresses specified by higher layers such as TCP. To perform IP communication. For this reason, each of the server system 10 and the client systems 20, 30,... Is assigned with an IP address represented by four numbers separated by dots so as not to overlap each other.
[0017]
However, since it is difficult for LAN users (network users) to store and identify addresses consisting only of numbers, each computer (host) 10, 20,. The computer name (host name) consists of columns. The host names given to the hosts 10, 20,... Are not duplicated in the LAN, and the hosts 10, 20,. An IP address corresponding to the host name is searched from the HOSTS file, and communication data is transmitted and received based on the searched IP address.
[0018]
FIG. 4 shows an example of the above-described HOSTS file. As shown in FIG. 4, in this HOSTS file 1, for every IP address (192.168.111.111, 192.168.111.112,...) In the LAN, a host name (PPPPPPPP, QQQQQQQQ, ..) And the remarks (* Ga * HHHHHHHH, * Gb * IIIIIII,...) Relating to this host name, all data is stored. Further, in this HOSTS file 1, the data of “IP address”, “host name” and “remarks” for one host are described in a line separated by several spaces. Hereinafter, the data recorded in one line is referred to as one record.
[0019]
By the way, in this example, all the hosts 10, 20,... In the LAN are divided into several groups, and group names that do not overlap each other are set for each group. This group may be set separately for each segment in the LAN, or may be set separately for each host in a logical group (for example, work group), either of which may be used. Then, as shown in FIG. 4, the group name (* Ga, * Gb,...) Of the group to which each host belongs is described in “Remarks”.
[0020]
Further, supplementary items (* HHHHHHH, * IIIIIII,...) That cannot be explained by the host name are written next to the group name described in “Remarks”. For example, if the network of the company with the LAN of this example is formed in this supplementary item, “XX Division XX Section”, “Suzuki Exclusive”, “First Floor 10” Write a comment such as “Room”.
[0021]
Then, the HOSTS file 1 as described above is duplicated, and the HOSTS file 1 having the same contents is stored in the server 10 and all clients 20, 30,.
[0022]
In this example, when adding a host to the LAN described above, deleting a host connected to the LAN, or changing the host name or IP address of each host, each host 10, 20,... The host is managed by the procedure shown in
[0023]
As shown in FIGS. 1 and 2, first, when the server program 15 is activated in the server system 10, the HOSTS file 1 is read by the HOSTS file input unit 15a of the server program 15. In the data dividing unit 15b of the server program 15, the group name shown in each record of the HOSTS file 1 is searched, and each record is divided into groups. Each record divided for each group is stored in a divided HOSTS file 1a, 1b,..., 1z prepared for each group by the divided HOSTS file creation unit 15c of the program 15.
[0024]
Next, when a new host is connected to the LAN, the network administrator reads the divided HOSTS file (for example, 1b) of the group to which the host belongs from the disk device of the server system 10, and uses the editor or the like to read the new host A new record consisting of a name, an IP address to be assigned, and a remark including the group name to which it belongs is input to this divided HOSTS file 1b. Similarly, when a host connected to the LAN is removed from the LAN, the record of the host is deleted from the divided HOSTS file (for example, 1b). When changing the host name or IP address used in the LAN, the host name or IP address in the record of the host is changed from the divided HOSTS file (for example, 1b) of the group to which the corresponding host belongs. Then, the divided HOSTS file 1′b in which the record is partially changed as described above is stored in the disk device of the server system 10.
[0025]
In the server system 10, the fact that the divided HOSTS file 1b of the HOSTS file 1 has been changed is displayed in an application that can be freely accessed from each client system 20, 30,. As shown in FIG. 1 and FIG. 3, each client system 20, 30,... Accesses the application of the server system 10 as necessary or periodically, and has undergone a setting change. HOSTS file 1'b can be picked up. Hereinafter, a case where the client system 20 receives the divided HOSTS file 1′b will be described.
[0026]
First, when the client program 25 is activated in the client system 20 that has received the divided HOSTS file 1′b, the divided HOSTS file 1′b is read by the divided HOSTS file input unit 25a of the client program 25. In the HOSTS file writing unit 25b of the client program 25, the group name described in “Remarks” of the divided HOSTS file 1′b is read, and a record having the same group name as this group name is read by the client system 20. The HOSTS file 1 stored in the disk device is searched and deleted. In the HOSTS file 1 from which a part of the record is deleted, the record recorded in the divided HOSTS file 1′b is written, and the HOSTS file 1 ′ in which the description content is changed is the disk device of the client system 20. Saved in.
[0027]
By the way, also in the server system 10, the contents of the stored HOSTS file 1 are rewritten by the same method as the client systems 20, 30,. It is stored in the disk device of the system 10.
[0028]
As described above, according to the present embodiment, when adding or removing a computer connected to the LAN, or changing the host name or IP address assigned to the computer, the server system 10 and the client system 20, Can mutually change the HOSTS file 1 provided in each of the hosts 10, 20,... To the HOSTS file 1 ′.
[0029]
Therefore, each host 10, 20,... In the LAN can accurately communicate with the destination host 10, 20,... Based on the IP address retrieved from the changed HOSTS file 1 ′. Can do.
[0030]
Further, as compared with the case where the HOSTS file 1 'whose description is changed is broadcast from the server 10 to all the clients 20, 30,..., Only the divided HOSTS file whose description is changed is included in each client 20, 30,. ... It is only necessary to carry it according to the request, so that the amount of message data carried on the LAN can be reduced.
[0031]
【The invention's effect】
As described above, according to the full § i le management method of the present invention, in the client-server type of LAN that employs a TCP / IP as the communication protocol, the maintenance worker around the bother each computer in LAN You can easily set the host name assigned to a computer in the LAN without having to set up a HOSTS file on the client.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram of a client server system showing an embodiment of a HOSTS file management method according to the present invention. FIG. 2 is a schematic configuration diagram of a server system in which a HOSTS file management method of this example is implemented. Schematic overall view of the network system in which the HOSTS file management method of this example is implemented FIG. 4 is an exemplary diagram showing an example of the description of the HOSTS file stored in the system in which the HOSTS file of this example is implemented Explanation】
1, 1 'HOSTS file 1a-1z, 1'b divided HOSTS file 10 server system 15 server program 20-100 client system 25 client program

Claims (4)

ネットワークを介して相互通信自在に接続されている複数のホストのそれぞれについて、そのホストに設定されているIPアドレスとドメイン名とを対応付けた対応情報を格納するホスツファイルを管理するための方法であって、
前記各ホストのうちの何れか一つのホストが、前記各ホストの対応情報を幾つかのグループに分け、グループ毎に対応情報を分割ホスツファイルに格納して、編集自在に保持し、
前記各ホストが、前記各分割ホスツファイルに対する内容の更新がなされることを監視し、何れかの分割ホスツファイルに対して内容の更新がなされたと判断したときには、前記各分割ホスツファイルを保持するホストから、その内容更新がなされた分割ホスツファイルだけを取得し、自己が保持するホスツファイルの内容における対応する部分を、取得した分割ホスツファイルの内容で更新する
ことを特徴とするホスツファイル管理方法。
A method for managing a host file for storing correspondence information in which a plurality of hosts connected to each other via a network are connected to each other by associating an IP address set to the host with a domain name Because
Any one of the hosts divides the correspondence information of each host into several groups, stores the correspondence information for each group in a divided host file, and holds the editing information freely.
Each of the hosts monitors whether the contents of each of the divided host files are updated, and determines that the contents of any of the divided host files are updated. It is characterized in that only the divided host file whose contents are updated is acquired from the holding host, and the corresponding part of the contents of the host file held by itself is updated with the contents of the acquired divided host file. Hosts file management method.
前記対応情報は、IPアドレスとドメイン名とともに、それが属するグループを識別するためのグループ識別情報をも対応付けており、
前記各ホストは、取得した分割ホスツファイルを、自己の保持するホスツファイルに反映する際、取得した分割ホスツファイル内の対応情報に含まれるグループ識別情報と同じグループ特定情報を持つ対応情報を、自己のホスツファイルから一旦削除した後、取得した分割ホスツファイル内の対応情報を、自己のホスツファイルに追加する
ことを特徴とする請求項1記載のホスツファイル管理方法。
The correspondence information is associated with IP address and domain name as well as group identification information for identifying the group to which it belongs,
When each host reflects the acquired divided hosts file in its own host file, the correspondence information having the same group identification information as the group identification information included in the correspondence information in the acquired divided hosts file. 2. The host file management method according to claim 1, further comprising: adding correspondence information in the obtained divided host file to the host file after deleting the host file from the host file.
前記各分割ホスツファイルを保持するホストは、何れかの分割ホスツファイルの内容が更新されたときに、その内容が更新された分割ホスツファイルを特定する情報を、前記各ホストが取得自在な状態で、保持しておき、
前記各ホストは、前記各分割ホスツファイルを保持するホストへ定期的にアクセスし、内容が更新された分割ホスツファイルを特定する情報を取得できたときに、何れかの分割ホスツファイルに対して内容の更新がなされたと判断する
ことを特徴とする請求項1又は2記載のホスツファイル管理方法。
When the contents of any of the divided host files are updated, each host can freely acquire information for specifying the divided host file whose contents are updated. Keep it in a safe state,
Each of the hosts periodically accesses the host holding each of the divided host files, and when the information specifying the divided host file whose contents are updated can be acquired, 3. The host file management method according to claim 1, wherein it is determined that the content has been updated.
コンピュータを、
ネットワークを介して相互通信自在に接続されている複数のホストのそれぞれについて、そのホストに設定されているIPアドレスとドメイン名とを対応付けた対応情報を格納するホスツファイルを、記憶装置に記憶する記憶手段,
前記各コンピュータの対応情報を幾つかのグループに分け、グループ毎に対応情報を分割ホスツファイルに格納して、編集自在に保持するホストにおいて、何れかの分割ホスツファイルに対して内容の更新がなされることを監視する監視手段,
前記監視手段が、何れかの分割ホスツファイルに対して内容の更新がなされたと判断すると、前記各分割ホスツファイルを保持するホストから、その内容更新がなされた分割ホスツファイルだけを取得する取得手段,及び、
前記記憶装置内の自己のホスツファイルの内容における対応する部分を、前記取得手段が取得した分割ホスツファイルの内容で更新する更新手段
として機能させる
ことを特徴とするホスツファイル管理プログラム
が記録されたコンピュータ可読媒体。
Computer
For each of a plurality of hosts connected to be able to communicate with each other via a network, a host file that stores correspondence information in which the IP address set for the host is associated with a domain name is stored in a storage device. Storage means,
The correspondence information of each computer is divided into several groups, the correspondence information for each group is stored in a divided host file, and the contents of any divided host file are updated in the host that can be freely edited. Monitoring means for monitoring what happens
If the monitoring unit determines that the contents of any of the divided host files have been updated, only the divided host file whose contents have been updated is acquired from the host holding each of the divided host files. Acquisition means, and
A host file management program that causes a corresponding portion in the contents of its own host file in the storage device to function as an update unit that updates the content of the divided host file acquired by the acquisition unit is recorded Computer-readable medium.
JP2000012638A 2000-01-21 2000-01-21 Host file management method and computer-readable medium Expired - Fee Related JP3822013B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000012638A JP3822013B2 (en) 2000-01-21 2000-01-21 Host file management method and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000012638A JP3822013B2 (en) 2000-01-21 2000-01-21 Host file management method and computer-readable medium

Publications (3)

Publication Number Publication Date
JP2001203699A JP2001203699A (en) 2001-07-27
JP2001203699A5 JP2001203699A5 (en) 2004-12-02
JP3822013B2 true JP3822013B2 (en) 2006-09-13

Family

ID=18540333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000012638A Expired - Fee Related JP3822013B2 (en) 2000-01-21 2000-01-21 Host file management method and computer-readable medium

Country Status (1)

Country Link
JP (1) JP3822013B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363985A (en) * 2020-11-28 2021-02-12 杭州玳数科技有限公司 Hosts centralized management platform and method thereof

Also Published As

Publication number Publication date
JP2001203699A (en) 2001-07-27

Similar Documents

Publication Publication Date Title
US8135677B2 (en) File management system and method
CN101093497B (en) Document management server, document management method, and system for managing document use
US7979478B2 (en) Data management method
JP3983961B2 (en) Directory information management apparatus and computer-readable recording medium recording program
US7590667B2 (en) File replication method for distributed file systems
JP5046863B2 (en) Information processing system and data management method
US20070094312A1 (en) Method for managing real-time data history of a file system
US20080263112A1 (en) Method and system for electronic file lifecycle management
WO2011033692A1 (en) Storage device and snapshot control method thereof
JP2008015984A (en) Data migration device, method and program
JP2005538471A (en) Method and apparatus for integrating primary data storage with local remote data protection
JP2007511820A (en) Policy-based management for independent node redundant arrays
WO2000065449A1 (en) Method and system for file management in distributed environment
JP2005182683A (en) Data transfer method, system, and program
CN101176093A (en) Method and device for managing data deletion
JP2009064160A (en) Computer system, management computer, and data management method
US20070061540A1 (en) Data storage system using segmentable virtual volumes
JP4837378B2 (en) Storage device to prevent data tampering
JP3870701B2 (en) Computer hierarchy information management method and apparatus, and recording medium recording the processing program
JP3026286B2 (en) Authority management apparatus and method for computer system
JP3822013B2 (en) Host file management method and computer-readable medium
JP4327869B2 (en) Distributed file system, distributed file system server, and access method to distributed file system
JP2553751B2 (en) Disk sector replacement method
JP4394467B2 (en) Storage system, server apparatus, and preceding copy data generation method
JP4713257B2 (en) Data storage device and version management program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20031216

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20031216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060124

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060323

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060620

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060621

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100630

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110630

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120630

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120630

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130630

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140630

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees