JP6525067B2 - Reverse command generation program, reverse command generation method and reverse command generation device - Google Patents

Reverse command generation program, reverse command generation method and reverse command generation device Download PDF

Info

Publication number
JP6525067B2
JP6525067B2 JP2017561499A JP2017561499A JP6525067B2 JP 6525067 B2 JP6525067 B2 JP 6525067B2 JP 2017561499 A JP2017561499 A JP 2017561499A JP 2017561499 A JP2017561499 A JP 2017561499A JP 6525067 B2 JP6525067 B2 JP 6525067B2
Authority
JP
Japan
Prior art keywords
setting
rollback
communication device
reverse command
setting data
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.)
Active
Application number
JP2017561499A
Other languages
Japanese (ja)
Other versions
JPWO2017122365A1 (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
Publication of JPWO2017122365A1 publication Critical patent/JPWO2017122365A1/en
Application granted granted Critical
Publication of JP6525067B2 publication Critical patent/JP6525067B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、逆コマンド生成プログラム、逆コマンド生成方法及び逆コマンド生成装置に関する。   The present invention relates to a reverse command generation program, a reverse command generation method, and a reverse command generation device.

ネットワークの設定に関する技術の一例として、SDN(Software-Defined Networking)などの技術が知られている。かかるSDN技術では、企業等の組織内のネットワークに含まれるネットワーク装置に対する設定、例えばVLAN(Virtual Local Area Network)やサブネットなどの設定を一括で実行できるネットワーク管理装置が提供される。   As an example of technology related to network setting, technologies such as Software-Defined Networking (SDN) are known. Such SDN technology provides a network management apparatus capable of collectively executing settings for network devices included in a network in an organization such as a company, for example, settings for a VLAN (Virtual Local Area Network) and subnets.

特開2011−199623号公報JP, 2011-199623, A 特開2015−142167号公報JP, 2015-142167, A

ところで、上記のネットワークの設定が行われる場合、認識の誤りや操作のミスなどが原因となってネットワークの管理者等が意図する通りの設定を必ずしも実施できるとは限らない。このため、ネットワークの設定時にオペレーションにより編集された内容を設定に反映するコマンドから逆コマンドを生成しておき、ロールバックが指示された場合に逆コマンドを使用してネットワーク装置の設定を変更される前の状態に戻すロールバック処理が行われる場合がある。   By the way, when the setting of the above network is performed, the setting as intended by the administrator of the network or the like can not necessarily be performed due to an error in recognition or a mistake in operation. Therefore, when setting up the network, a reverse command is generated from the command that reflects the contents edited by the operation in the setting, and when the rollback is instructed, the setting of the network device is changed using the reverse command. Rollback processing may be performed to return to the previous state.

しかしながら、上記の技術では、次に説明するように、逆コマンドの実行によりネットワークに不具合が発生する場合がある。   However, in the above-described technology, as will be described next, the execution of the reverse command may cause a network failure.

例えば、ネットワークの設定は、必ずしもネットワーク管理装置を介して行われるとは限らず、ネットワークの管理者等がtelnetなどのプロトコルを介してネットワーク装置に接続し、CLI(Command Line Interface)などを介して設定が行われる場合がある。この場合、ネットワーク管理装置が解釈できる設定コマンドだけが使用されるとは限らず、逆コマンドが生成できない場合がある。このように逆コマンドが生成できなかったにもかかわらず、それ以前に生成されていた逆コマンドが実行された場合、CLI等を介して行われた設定が無視された状態でロールバックが実行されることになる。この結果、逆コマンドの実行によりネットワークに不具合が発生する場合もある。   For example, the network setting is not necessarily performed via the network management device, and a network administrator or the like connects to the network device via a protocol such as telnet, and via a CLI (Command Line Interface) or the like. Settings may be made. In this case, not only the setting command that can be interpreted by the network management apparatus is used, but a reverse command may not be generated. In this way, even though the reverse command could not be generated, when the reverse command generated before that is executed, rollback is performed with the settings made via CLI etc ignored. It will be As a result, the execution of the reverse command may cause a network failure.

1つの側面では、本発明は、逆コマンドの実行により発生するネットワークの不具合を抑制できる逆コマンド生成プログラム、逆コマンド生成方法及び逆コマンド生成装置を提供することを目的とする。   In one aspect, the present invention aims to provide a reverse command generation program, a reverse command generation method, and a reverse command generation device capable of suppressing a network failure caused by execution of a reverse command.

一態様では、逆コマンド生成プログラムは、通信装置の設定が更新される度に前記通信装置が記憶する第1の設定データを所定の記憶部に格納する処理と、通信装置に対する設定操作を受け付ける処理と、受け付けた前記設定操作の対象の前記通信装置から前記通信装置が記憶する第2の設定データを取得する処理と、取得した前記第2の設定データに基づいて前記通信装置へ送信する設定コマンドの逆コマンドを生成する処理と、前記取得する処理で取得された前記第2の設定データと前記記憶部に記憶された前記第1の設定データとに差分がある場合に前記記憶部に記憶された前記第1の設定データに基づいて生成した逆コマンドを無効化する処理と、をコンピュータに実行させる。   In one aspect, the reverse command generation program stores the first setting data stored in the communication device in a predetermined storage unit each time the setting of the communication device is updated, and receives the setting operation on the communication device. A process of acquiring second setting data stored in the communication apparatus from the communication apparatus targeted for the setting operation received, and a setting command transmitted to the communication apparatus based on the acquired second setting data Stored in the storage unit when there is a difference between the process of generating the inverse command of the second set of data and the second set of data acquired in the process of acquisition and the first set of data stored in the storage unit. And causing the computer to execute a process of invalidating the reverse command generated based on the first setting data.

逆コマンドの実行により発生するネットワークの不具合を抑制できる。   It is possible to suppress network problems that occur due to the execution of reverse commands.

図1は、実施例1に係るネットワーク管理システムの構成例を示す図である。FIG. 1 is a diagram of an exemplary configuration of a network management system according to a first embodiment. 図2は、実施例1に係るネットワーク管理装置の機能的構成を示すブロック図である。FIG. 2 is a block diagram of the functional configuration of the network management device according to the first embodiment. 図3は、逆コマンドの生成の一例を示す図である。FIG. 3 is a diagram illustrating an example of generation of a reverse command. 図4は、操作履歴データの一例を示す図である。FIG. 4 is a diagram showing an example of operation history data. 図5は、設定操作および設定内容の時系列を示す模式図である。FIG. 5 is a schematic view showing a time series of setting operation and setting contents. 図6は、ロールバック一覧画面の一例を示す図である。FIG. 6 is a diagram showing an example of the rollback list screen. 図7は、ロールバック一覧画面の一例を示す図である。FIG. 7 is a diagram showing an example of the rollback list screen. 図8は、ロールバック一覧画面の一例を示す図である。FIG. 8 is a diagram showing an example of the rollback list screen. 図9は、ロールバック一覧画面の一例を示す図である。FIG. 9 is a diagram showing an example of the rollback list screen. 図10は、実施例1に係る逆コマンド生成処理の手順を示すフローチャートである。FIG. 10 is a flowchart of the reverse command generation process according to the first embodiment. 図11は、実施例1に係るロールバック処理の手順を示すフローチャート(1)である。FIG. 11 is a flowchart (1) illustrating the procedure of rollback processing according to the first embodiment. 図12は、実施例1に係るロールバック処理の手順を示すフローチャート(2)である。FIG. 12 is a flowchart (2) illustrating a procedure of rollback processing according to the first embodiment. 図13は、実施例1及び実施例2に係るロールバック処理制御プログラムを実行するコンピュータのハードウェア構成例を示す図である。FIG. 13 is a diagram illustrating an example of a hardware configuration of a computer that executes a rollback processing control program according to the first embodiment and the second embodiment.

以下に添付図面を参照して本願に係る逆コマンド生成プログラム、逆コマンド生成方法及び逆コマンド生成装置について説明する。なお、この実施例は開示の技術を限定するものではない。そして、各実施例は、処理内容を矛盾させない範囲で適宜組み合わせることが可能である。   An inverse command generation program, an inverse command generation method, and an inverse command generation device according to the present application will be described below with reference to the accompanying drawings. Note that this embodiment does not limit the disclosed technology. And each Example can be suitably combined in the range which does not make processing contents contradictory.

[システム構成]
図1は、実施例1に係るネットワーク管理システムの構成例を示す図である。図1に示すネットワーク管理システム1は、ネットワークNWを構築するネットワーク装置30A〜30Cを管理するネットワーク管理サービスを提供するものであり、一例として、ネットワーク装置30A〜30Cに対する各種設定を実行したり、ネットワーク装置30A〜30Cへの設定をロールバックしたりすることができる。
[System configuration]
FIG. 1 is a diagram of an exemplary configuration of a network management system according to a first embodiment. The network management system 1 shown in FIG. 1 provides a network management service for managing the network devices 30A to 30C constructing the network NW, and as an example, executes various settings for the network devices 30A to 30C, and the network The settings to the devices 30A-30C can be rolled back or the like.

図1に示すように、ネットワーク管理システム1には、ネットワーク管理装置10と、ネットワーク装置30A〜30Cと、クライアント端末50とが含まれる。以下では、ネットワーク装置30A〜30Cのことを総称する場合に「ネットワーク装置30」と記載する場合がある。なお、図1には、3つのネットワーク装置30A、ネットワーク装置30B及びネットワーク装置30Cがネットワーク管理装置10に収容される場合を例示したが、これに限定されない。すなわち、ネットワーク管理装置10が収容するネットワーク装置の数30は任意であってかまわない。   As shown in FIG. 1, the network management system 1 includes a network management device 10, network devices 30A to 30C, and a client terminal 50. Hereinafter, when the network devices 30A to 30C are generically referred to as "network device 30" may be described. Although FIG. 1 illustrates the case where three network devices 30A, 30B, and 30C are accommodated in the network management device 10, the present invention is not limited to this. That is, the number 30 of network devices accommodated by the network management device 10 may be arbitrary.

ネットワーク管理装置10は、上記のネットワーク管理サービスを提供するコンピュータである。   The network management device 10 is a computer that provides the above-described network management service.

一実施形態として、ネットワーク管理装置10は、上記のネットワーク管理サービスを実現するパッケージソフトウェアやオンラインソフトウェアを所望のコンピュータにインストールさせることによってSDN(Software-Defined Networking)コントローラとして実装できる。このネットワーク管理装置10は、ネットワークNWの一例として、IP−VPN(Internet Protocol Virtual Private Network)や広域イーサネット(登録商標)などのキャリアイーサネット(登録商標)の監視、設定や制御などを含む管理を実行することができる。このようにネットワーク管理装置10により管理されるネットワークNWは、物理ネットワークに限定されず、SDNやNFV(Network Function Virtualization)などの技術により仮想化された仮想ネットワークであってもよい。   In one embodiment, the network management apparatus 10 can be implemented as a software-defined networking (SDN) controller by installing package software or online software for realizing the above-described network management service on a desired computer. The network management device 10 executes management including monitoring, setting, control, etc. of carrier Ethernet (registered trademark) such as IP-VPN (Internet Protocol Virtual Private Network) and wide area Ethernet (registered trademark) as an example of the network NW. can do. Thus, the network NW managed by the network management apparatus 10 is not limited to a physical network, and may be a virtual network virtualized by a technology such as SDN or NFV (Network Function Virtualization).

ネットワーク装置30は、ネットワークNWを構築する装置であり、例えば、ルータやスイッチなどのデータ転送装置を始め、ファイアーウォール、ロードバランサなどを採用することができる。   The network device 30 is a device that constructs a network NW, and can employ, for example, a data transfer device such as a router or a switch, a firewall, a load balancer, or the like.

クライアント端末50は、上記のネットワーク管理サービスの提供を受けるコンピュータであり、一例として、ネットワークNWを管理するネットワーク管理者等の関係者により使用される。   The client terminal 50 is a computer that receives the provision of the above-described network management service, and as an example, is used by related parties such as a network administrator who manages the network NW.

[ネットワーク管理装置10の構成]
図2は、実施例1に係るネットワーク管理装置10の機能的構成を示すブロック図である。図2に示すように、ネットワーク管理装置10は、通信I/F(interface)部11と、記憶部13と、制御部15とを有する。なお、ネットワーク管理装置10は、図2に示した機能部以外にも既知のコンピュータが有する各種の機能部、例えば各種の入力デバイスや音声出力デバイスなどの機能部を有することとしてもかまわない。
[Configuration of Network Management Device 10]
FIG. 2 is a block diagram showing a functional configuration of the network management device 10 according to the first embodiment. As shown in FIG. 2, the network management device 10 includes a communication I / F (interface) unit 11, a storage unit 13, and a control unit 15. The network management apparatus 10 may have various functional units of a known computer, for example, functional units such as various input devices and voice output devices, in addition to the functional units shown in FIG.

通信I/F部11は、他の装置、例えばネットワーク装置30やクライアント端末50との間で通信制御を行うインタフェースである。   The communication I / F unit 11 is an interface that performs communication control with another device such as the network device 30 or the client terminal 50.

一実施形態として、通信I/F部11は、LANカードなどのネットワークインタフェースカードを採用できる。例えば、通信I/F部11は、ネットワークの設定に関するコマンドやその逆コマンドをネットワーク装置30へ送信したり、ネットワーク装置30からネットワーク装置30が記憶する設定ファイル、例えば「running-config」や「startup-config」を受信したりする。また、通信I/F部11は、クライアント端末50からネットワークの設定に対する編集操作やネットワークの設定に関するロールバック指示を受け付ける。この他、通信I/F部11は、ネットワークの設定を編集する編集画面やロールバックの対象とされる設定操作の一覧が登載されたロールバック一覧画面などをクライアント端末50へ送信したりする。   As one embodiment, the communication I / F unit 11 can adopt a network interface card such as a LAN card. For example, the communication I / F unit 11 transmits a command related to the setting of the network or its reverse command to the network device 30, or a configuration file stored in the network device 30 from the network device 30, for example, "running-config" or "startup" Receive "-config". The communication I / F unit 11 also receives, from the client terminal 50, an editing operation for setting of the network and a rollback instruction for setting of the network. In addition, the communication I / F unit 11 transmits, to the client terminal 50, an editing screen for editing the setting of the network and a rollback list screen on which a list of setting operations to be rolled back is installed.

記憶部13は、制御部15で実行されるOS(Operating System)を始め、上記のネットワーク管理サービスを実現するネットワーク管理プログラムなどの各種プログラムに用いられるデータを記憶する記憶デバイスである。   The storage unit 13 is a storage device that stores data used for various programs such as a network management program for realizing the above-described network management service, including an OS (Operating System) executed by the control unit 15.

一実施形態として、記憶部13は、ネットワーク管理装置10における補助記憶装置として実装することができる。例えば、記憶部13には、HDD(Hard Disk Drive)、光ディスクやSSD(Solid State Drive)などを採用できる。なお、記憶部13は、必ずしも補助記憶装置として実装されずともよく、ネットワーク管理装置10における主記憶装置として実装することもできる。この場合、記憶部13には、各種の半導体メモリ素子、例えばRAM(Random Access Memory)やフラッシュメモリを採用できる。   In one embodiment, the storage unit 13 can be implemented as an auxiliary storage device in the network management device 10. For example, a hard disk drive (HDD), an optical disk, a solid state drive (SSD), or the like can be adopted as the storage unit 13. The storage unit 13 may not necessarily be implemented as an auxiliary storage device, and may be implemented as a main storage device in the network management apparatus 10. In this case, various storage devices such as a random access memory (RAM) or a flash memory can be adopted as the storage unit 13.

記憶部13は、制御部15で実行されるプログラムに用いられるデータの一例として、操作履歴データ13aと、逆コマンドデータ13bとを記憶する。このように図2に示された操作履歴データ13a及び逆コマンドデータ13b以外にも、他の電子データを併せて記憶することもできる。   The storage unit 13 stores operation history data 13 a and reverse command data 13 b as an example of data used for a program executed by the control unit 15. As described above, in addition to the operation history data 13a and the reverse command data 13b shown in FIG. 2, other electronic data can be stored together.

例えば、記憶部13には、ネットワーク管理装置10及び各ネットワーク装置30との間で互いが記憶する設定ファイル、例えば「running-config」や「startup-config」を比較することにより差分を抽出するために、各ネットワーク装置30に記憶された設定ファイルの複製を記憶することができる。また、記憶部13には、ネットワークの管理者等のユーザの権限を管理するために、ユーザごとにネットワークの設定を許可するネットワーク装置30またはネットワーク装置30のグループが規定されたユーザ権限データを記憶することができる。さらに、記憶部13には、ネットワークの設定コマンドからその逆コマンドを生成するために、設定コマンドのテンプレートを記憶することもできる。この他、記憶部13には、ネットワークNWのトポロジを管理するために、ネットワーク装置30に関するデバイスデータやネットワーク装置30が形成するリンクに関するリンクデータなどを記憶することもできる。   For example, the storage unit 13 extracts a difference by comparing setting files stored in the network management device 10 and the network devices 30, for example, “running-config” and “startup-config”. A copy of the configuration file stored in each network device 30 can be stored. In addition, the storage unit 13 stores user authority data in which a network device 30 or a group of the network devices 30 for permitting the setting of the network is defined for each user in order to manage the authority of the user such as the administrator of the network. can do. Furthermore, the storage unit 13 can also store a template of a setting command in order to generate a reverse command from the setting command of the network. In addition to this, the storage unit 13 can store device data regarding the network device 30 and link data regarding links formed by the network device 30 in order to manage the topology of the network NW.

なお、ここでは、操作履歴データ13a及び逆コマンドデータ13bの説明については、操作履歴データ13a及び逆コマンドデータ13bが生成される処理部の説明がなされる段階で併せて説明することとする。   Here, the description of the operation history data 13a and the reverse command data 13b will be described together with the description of the processing unit in which the operation history data 13a and the reverse command data 13b are generated.

制御部15は、各種のプログラムや制御データを格納する内部メモリを有し、これらによって各種の処理を実行するものである。   The control unit 15 has an internal memory for storing various programs and control data, and executes various processes using these.

一実施形態として、制御部15は、中央処理装置、いわゆるCPU(Central Processing Unit)として実装される。なお、制御部15は、必ずしも中央処理装置として実装されずともよく、MPU(Micro Processing Unit)として実装されることとしてもよい。また、制御部15は、ASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)などのハードワイヤードロジックによっても実現できる。   In one embodiment, the control unit 15 is implemented as a central processing unit, so-called CPU (Central Processing Unit). The control unit 15 may not necessarily be mounted as a central processing unit, and may be mounted as an MPU (Micro Processing Unit). The control unit 15 can also be realized by hard wired logic such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

制御部15は、図示しない主記憶装置として実装されるDRAM(Dynamic Random Access Memory)やSRAM(Static Random Access Memory)などのRAMのワークエリア上に記憶部13に記憶されたネットワーク管理プログラムを展開することにより、下記の処理部を仮想的に実現する。例えば、制御部15は、図2に示すように、第1受付部15aと、監視部15bと、設定部15cと、逆コマンド生成部15dと、ロールバック制御部15eと、出力制御部15fと、第2受付部15gとを有する。   The control unit 15 develops a network management program stored in the storage unit 13 on a work area of a RAM such as a dynamic random access memory (DRAM) or a static random access memory (SRAM) mounted as a main storage device (not shown). Thus, the following processing unit is virtually realized. For example, as shown in FIG. 2, the control unit 15 includes a first reception unit 15a, a monitoring unit 15b, a setting unit 15c, a reverse command generation unit 15d, a rollback control unit 15e, and an output control unit 15f. , And the second reception unit 15g.

第1受付部15aは、ネットワーク装置30に対する各種設定を受け付ける処理部である。   The first reception unit 15 a is a processing unit that receives various settings for the network device 30.

一実施形態として、第1受付部15aは、ネットワーク装置30に対する各種の設定をGUI(Graphical User Interface)を介して受け付けることができる。例えば、第1受付部15aは、物理ネットワークや仮想ネットワークのトポロジが可視化されたマップ上でネットワーク装置30の指定を受け付けた状態、例えばマウスオーバーがなされた状態で、ネットワーク設定を実施するGUIコンポーネントが操作された場合に、当該ネットワーク装置30に関する各種設定の新規登録や更新などの編集を受け付けることができる。ここで、第1受付部15aは、1つのネットワーク装置30に対する設定を個別に受け付けることもできるし、複数のネットワーク装置30、例えばグループ設定が行われたネットワーク装置30群に対する設定を一括して受け付けることもできる。かかる設定の例として、第1受付部15aは、VLAN(Virtual Local Area Network)やサブネットなどの設定を受け付けることができる。その後、第1受付部15aは、編集が受け付けられた内容を設定に反映する操作を受け付ける。以下では、設定の編集を受け付ける操作、さらには、編集が受け付けられた内容を設定に反映する操作を総称して「設定操作」と記載する場合がある。   As one embodiment, the first accepting unit 15a can accept various settings for the network device 30 via a graphical user interface (GUI). For example, the first accepting unit 15a receives a designation of the network device 30 on a map in which the topology of the physical network or the virtual network is visualized, for example, a GUI component that performs network setting in a state where mouse over is performed. When operated, it is possible to receive editing such as new registration and update of various settings related to the network device 30. Here, the first reception unit 15a can also individually receive settings for one network device 30, or collectively receives settings for a plurality of network devices 30, for example, a group of network devices 30 for which group setting has been performed. It can also be done. As an example of the setting, the first receiving unit 15a can receive the setting of a virtual local area network (VLAN) or a subnet. After that, the first reception unit 15a receives an operation for reflecting the content for which the editing has been received in the setting. In the following, an operation for accepting the editing of the setting and an operation for reflecting the content for which the editing is accepted in the setting may be collectively referred to as a “setting operation”.

監視部15bは、ネットワークNWを監視する処理部である。   The monitoring unit 15 b is a processing unit that monitors the network NW.

一実施形態として、監視部15bは、あくまで一例として、第1受付部15aにより設定操作が受け付けられた場合、例えば1又は複数のネットワーク装置30に対する設定の新規登録または設定変更が実施される場合、次のような処理を実行する。   As one embodiment, the monitoring unit 15b is, by way of example only, when the setting operation is accepted by the first accepting unit 15a, for example, when new registration or setting change of settings for one or more network devices 30 is performed, Execute the following process.

例えば、監視部15bは、設定操作が行われたネットワーク装置30から、起動時にNVRAM(Non Volatile RAM)等の不揮発性メモリから読み込まれる「startup-config」と、RAM上に展開されている「running-config」とを取得する。その上で、監視部15bは、設定操作が行われたネットワーク装置30から取得された「startup-config」及び「running-config」の2つの設定ファイルを比較することにより、2つの設定ファイルが一致するか否かを判定する。例えば、監視部15bは、2つの設定ファイルからdiffやハッシュ値を算出する処理を実行することにより、2つの設定ファイルの差分の有無を判定することができる。   For example, the monitoring unit 15b reads “startup-config” which is read from a non-volatile memory such as NVRAM (Non Volatile RAM) at start-up from the network device 30 on which the setting operation is performed, and “running” expanded on the RAM. Get -config. Then, the monitoring unit 15b matches the two setting files by comparing the two setting files “startup-config” and “running-config” acquired from the network device 30 on which the setting operation has been performed. It is determined whether to do. For example, the monitoring unit 15b can determine the presence or absence of a difference between two setting files by executing a process of calculating a diff and a hash value from the two setting files.

ここで、「startup-config」及び「running-config」が一致しない場合、次のような状況を判断できる。例えば、ネットワークの管理者等がtelnetなどのプロトコルを介してネットワーク装置30に接続し、CLI(Command Line Interface)などを介して設定が行われた公算が高く、ネットワーク管理装置10、いわゆるSDNコントローラを介さずに「running-config」が更新された状況を推定できる。以下では、CLIを介して行われるコマンドによりネットワーク設定が行われることを「外部コマンド操作」と記載する場合がある。このように外部コマンド操作が行われた場合、ネットワーク装置30から取得された更新後の「running-config」と、記憶部13がネットワーク装置30の管理用に記憶する更新前の「running-config」との差分から、更新の内容に対応する設定コマンドを解釈できるとは限らず、逆コマンドも生成できるとは限らない。この場合、外部コマンド操作が行われる以前の操作へのロールバックが実行されると、ネットワークNWに不具合が発生する場合もある。よって、外部コマンド操作が行われる以前の操作へのロールバックを規制するために、外部コマンド操作が行われる以前に生成された逆コマンドは無効化される。   Here, if “startup-config” and “running-config” do not match, the following situation can be determined. For example, a network administrator or the like connects to the network apparatus 30 via a protocol such as telnet, and there is a high probability that the setting is performed via a CLI (Command Line Interface) or the like. It is possible to estimate the situation in which "running-config" is updated without intervention. Hereinafter, the case where network setting is performed by a command performed via the CLI may be described as "external command operation". As described above, when an external command operation is performed, the updated "running-config" acquired from the network device 30 and the "running-config" before updating stored by the storage unit 13 for management of the network device 30 are performed. The difference between the above and the above does not necessarily mean that the setting command corresponding to the content of the update can be interpreted, and a reverse command can not necessarily be generated. In this case, if rollback to the operation before the external command operation is performed, a problem may occur in the network NW. Thus, the reverse command generated before the external command operation is invalidated to restrict the rollback to the operation before the external command operation is performed.

一方、監視部15bは、「startup-config」及び「running-config」が一致する場合、記憶部13に記憶された図示しないリンクデータを参照する。かかるリンクデータには、一例として、リンクがトポロジから削除されたか否かを示す削除フラグが含まれる。例えば、削除フラグが「false」であればリンクが削除されておらず、削除フラグが「true」であればリンクが削除されたことを判別できる。このようなリンクデータを参照して、監視部15bは、設定が編集されるネットワーク装置30を含むリンクに関する削除フラグに「false」が設定されているか否かを判定する。   On the other hand, when “startup-config” and “running-config” match, the monitoring unit 15 b refers to link data (not shown) stored in the storage unit 13. The link data includes, for example, a deletion flag indicating whether the link has been deleted from the topology. For example, if the deletion flag is "false", the link is not deleted, and if the deletion flag is "true", it can be determined that the link is deleted. With reference to such link data, the monitoring unit 15 b determines whether “false” is set in the deletion flag related to the link including the network device 30 whose setting is to be edited.

このとき、設定が編集されるネットワーク装置30を含むリンクに関する削除フラグに「true」が設定されている場合、トポロジから削除されたリンクに含まれるネットワーク装置30の設定がロールバックされるのを規制するために、削除フラグに「true」が設定される以前に生成された逆コマンドは無効化される。   At this time, when the deletion flag for the link including the network device 30 whose setting is edited is set to “true”, the configuration of the network device 30 included in the link deleted from the topology is restricted from being rolled back. In order to do this, the reverse command generated before the deletion flag is set to “true” is invalidated.

また、監視部15bは、設定が編集されるネットワーク装置30を含むリンクに関する削除フラグに「false」が設定されている場合、先にネットワーク装置30から取得された「startup-config」と、記憶部13がネットワーク装置30の管理用に記憶する「startup-config」とを比較する。例えば、監視部15bは、2つの「startup-config」の更新日時の一致または不一致を判定したり、2つの「startup-config」からdiffやハッシュ値を算出する処理を実行することにより2つの「startup-config」の差分の有無を判定したりすることができる。   In addition, when “false” is set in the deletion flag regarding the link including the network device 30 whose setting is to be edited, the monitoring unit 15 b stores “startup-config” acquired from the network device 30 first, and the storage unit 13 compares “startup-config” stored for management of the network device 30. For example, the monitoring unit 15b determines whether the update date and time of two “startup-config” matches or does not match, or executes the process of calculating the diff and the hash value from the two “startup-config”. It is possible to determine the presence or absence of the difference of "startup-config".

この結果、2つの「startup-config」が一致しない場合、上記の外部コマンド操作が行われた公算が高いと判断できる。この場合にも、外部コマンド操作が行われる以前の操作へのロールバックを規制するために、外部コマンド操作が行われる以前に生成された逆コマンドは無効化される。   As a result, when the two “startup-config” do not match, it can be determined that the probability of the above external command operation being performed is high. Also in this case, the reverse command generated before the external command operation is invalidated to restrict the rollback to the operation before the external command operation is performed.

なお、ここでは、あくまで一例として、設定操作が行われた場合に、上記3つの判定、すなわちネットワーク装置30における2つの設定ファイルの比較、リンクの削除フラグの確認およびネットワーク装置30及びネットワーク管理装置10間の「startup-config」の比較を行う場合を例示したが、これに限定されない。すなわち、監視部15bは、時間に関する条件にしたがって各ネットワーク装置30ごとに上記3つの判定を実施することができる。例えば、監視部15bは、前回に判定を行ってから所定の期間、例えば1分間が経過した場合、ネットワーク管理装置10が保持するシステム時刻が所定の定期時刻に到達する場合、上記3つの判定を実施することができる。この他、監視部15bは、ロールバックが指示された場合にも、ロールバック処理を実行する前に上記3つの判定を実施することもできる。   Here, as an example only, when the setting operation is performed, the above three determinations, that is, comparison of two setting files in the network device 30, confirmation of a link deletion flag, and the network device 30 and the network management device 10 Although the case where the comparison of "startup-config" between is performed is illustrated, it is not limited to this. That is, the monitoring unit 15b can perform the above three determinations for each network device 30 according to the conditions regarding time. For example, if a predetermined period, for example, one minute, has passed since the last determination, the monitoring unit 15b determines the above three determinations when the system time held by the network management apparatus 10 reaches a predetermined periodic time. It can be implemented. In addition to this, even when rollback is instructed, the monitoring unit 15b can also perform the above three determinations before executing the rollback process.

設定部15cは、ネットワーク装置30に対する各種設定を行う処理部である。   The setting unit 15 c is a processing unit that performs various settings for the network device 30.

一実施形態として、設定部15cは、第1受付部15aにより編集が受け付けられた内容に関する設定コマンドをネットワーク装置30へ送信する。これによって、第1受付部15aにより編集が受け付けられた内容がネットワーク装置30に記憶された「running-config」へ登録される結果、ネットワーク装置30の設定が更新される。そして、設定部15cは、ネットワーク装置30から更新後の「startup-config」または「startup-config」の更新日時を取得し、記憶部13がネットワーク装置30の管理用に記憶する「startup-config」または「startup-config」の更新日時を上書き更新する。   In one embodiment, the setting unit 15 c transmits, to the network device 30, a setting command related to the content of which the editing is accepted by the first accepting unit 15 a. As a result, as a result of the contents of which the editing is accepted by the first accepting unit 15a being registered in “running-config” stored in the network device 30, the setting of the network device 30 is updated. Then, the setting unit 15 c acquires the updated date and time of the updated “startup-config” or “startup-config” from the network device 30 and stores “startup-config” that the storage unit 13 stores for management of the network device 30. Or, overwrite and update the update date and time of "startup-config".

ここで、設定部15cは、ネットワーク装置30の設定が更新された場合、記憶部13がロールバック用に記憶する操作履歴データ13aを更新する。かかる操作履歴データ13aには、「操作No.」、「ユーザ名」、「デバイスグループ名」、「機能種別」、「変更日時」、「内容」、「フラグ1」、「フラグ2」及び「フラグ3」などの項目の一部または全部を含むデータを採用できる。ここで言う「操作No.」とは、設定操作を識別する番号を指し、例えば、最新に行われた設定操作から昇順に連番が採番される。また、「ユーザ名」とは、設定操作を行ったユーザの名称を指す。また、「デバイスグループ名」とは、設定操作が行われたネットワーク装置30のグループの名称を指す。また、「変更日時」とは、設定操作により設定が変更された日時を指し、例えば、「yyyy/mm/dd hh/mm/ss」などで表される。また、「設定操作内容」とは、設定操作の内容を指す。また、「フラグ1」は、設定操作が行われた後に当該設定操作が行われたネットワーク装置30に外部コマンド操作が行われたか否かを示すフラグを指し、例えば、フラグ1が「false」に設定されている場合には外部コマンド操作が行われておらず、フラグ1が「true」に設定されている場合には外部コマンド操作が行われていることを意味する。また、「フラグ2」は、設定操作が行われた後に当該設定操作が行われたネットワーク装置30を含むリンクが削除または編集されたか否かを示すフラグを指し、例えば、フラグ2が「false」に設定されている場合にはリンクの編集または削除が行われておらず、フラグ2が「true」に設定されている場合にはリンクの編集または削除が行われていることを意味する。また、「フラグ3」は、設定操作のロールバック処理にエラーが発生したか否かを示すフラグを指し、例えば、フラグ3が「false」に設定されている場合には設定操作に対するロールバック処理時が実行されておらず、フラグ3が「true」に設定されている場合にはロールバック処理時にエラーが発生したことを意味する。   Here, when the setting of the network device 30 is updated, the setting unit 15 c updates the operation history data 13 a stored by the storage unit 13 for rollback. In the operation history data 13a, “operation No.”, “user name”, “device group name”, “function type”, “change date and time”, “content”, “flag 1”, “flag 2” and “ Data including some or all of the items such as "flag 3" can be adopted. The term "operation No." refers to a number identifying a setting operation, and for example, serial numbers are assigned in ascending order from the most recent setting operation. Also, "user name" refers to the name of the user who performed the setting operation. The “device group name” refers to the name of the group of the network device 30 for which the setting operation has been performed. Further, the “change date and time” indicates the date and time when the setting is changed by the setting operation, and is represented by, for example, “yyyy / mm / dd hh / mm / ss”. Also, “setting operation content” refers to the content of setting operation. Also, “flag 1” indicates a flag indicating whether or not an external command operation has been performed on the network device 30 for which the setting operation has been performed after the setting operation has been performed. For example, the flag 1 is set to “false” When set, no external command operation is performed, and when the flag 1 is set to “true”, it means that an external command operation is performed. Also, “flag 2” indicates a flag indicating whether the link including the network device 30 for which the setting operation has been performed after the setting operation has been deleted or edited, for example, the flag 2 is “false” When it is set to, the link is not edited or deleted, and when the flag 2 is set to “true”, it means that the link is edited or deleted. Also, "flag 3" indicates a flag indicating whether an error has occurred in rollback processing of the setting operation, for example, when flag 3 is set to "false", rollback processing for the setting operation is performed. When the time is not executed and the flag 3 is set to "true", it means that an error has occurred during rollback processing.

例えば、設定部15cは、ネットワーク装置30から取得された「startup-config」及び「running-config」が一致し、ネットワーク装置30を含むリンクの削除フラグに「false」が設定されており、かつネットワーク管理装置10及びネットワーク装置30の間で「startup-config」が一致する場合、第1受付部15aを介して受け付けた設定操作に関するレコードを記憶部13に記憶された操作履歴データ13aに追加登録する。このとき、設定部15cは、最新の設定操作から所定数、例えば20操作までの履歴に関するレコードを操作履歴データ13aとして記憶部13に保持させ、それ以前の設定操作に関するレコードを記憶部13から削除することもできる。   For example, in the setting unit 15c, “startup-config” and “running-config” acquired from the network device 30 match, and “false” is set in the deletion flag of the link including the network device 30, and the network When “startup-config” matches between the management device 10 and the network device 30, a record regarding the setting operation accepted through the first accepting unit 15a is additionally registered in the operation history data 13a stored in the storage unit 13. . At this time, the setting unit 15c causes the storage unit 13 to hold records regarding the history of the latest setting operation to a predetermined number, for example, 20 operations, as the operation history data 13a in the storage unit 13, and deletes the record regarding previous setting operations from the storage unit 13. You can also

また、設定部15cは、監視部15bにより外部コマンド操作が検出された場合、すなわちネットワーク装置30から取得された「startup-config」及び「running-config」が一致しない場合、あるいはネットワーク管理装置10及びネットワーク装置30の間で「startup-config」が一致しない場合、次のような処理を実行する。すなわち、設定部15cは、記憶部13に記憶された操作履歴データ13aのうち外部コマンド操作が検出されたネットワーク装置30のデバイス名を設定操作内容のフィールドに含み、かつ外部コマンド操作が検出された時点以前のレコードを検索する。その上で、設定部15cは、当該検索がヒットした全てのレコードが持つフラグ1に「true」を設定する。これによって、フラグ1に「true」が設定されたレコードに関する設定操作のロールバックが規制される。   In addition, the setting unit 15 c detects an external command operation by the monitoring unit 15 b, that is, when “startup-config” and “running-config” obtained from the network device 30 do not match, or the network management device 10 and If “startup-config” does not match among the network devices 30, the following processing is performed. That is, the setting unit 15 c includes the device name of the network device 30 in which the external command operation is detected among the operation history data 13 a stored in the storage unit 13 in the field of the setting operation content, and the external command operation is detected. Search for records before time point. After that, the setting unit 15 c sets “true” in the flag 1 of all the records hit by the search. This restricts the rollback of the setting operation for the record in which the flag 1 is set to “true”.

また、設定部15cは、ネットワーク装置30を含むリンクの削除フラグに「true」が設定されている場合、記憶部13に記憶された操作履歴データ13aのうちリンクの削除が検出されたネットワーク装置30のデバイス名を設定操作内容のフィールドに含み、かつリンクの削除が検出された以前のレコードを検索する。その上で、設定部15cは、当該検索がヒットした全てのレコードが持つフラグ2に「true」を設定する。これによって、フラグ2に「true」が設定されたレコードに関する設定操作のロールバックが規制される。   In addition, when “true” is set in the deletion flag of the link including the network device 30, the setting unit 15c causes the network device 30 in which deletion of the link is detected among the operation history data 13a stored in the storage unit 13. The device name of is included in the setting operation content field, and the previous record in which the deletion of the link is detected is searched. Then, the setting unit 15 c sets “true” to the flag 2 of all the records hit by the search. This restricts the rollback of the setting operation for the record in which the flag 2 is set to “true”.

逆コマンド生成部15dは、逆コマンドを生成する処理部である。   The reverse command generation unit 15 d is a processing unit that generates a reverse command.

一実施形態として、逆コマンド生成部15dは、ネットワーク装置30から取得された「startup-config」及び「running-config」が一致し、ネットワーク装置30を含むリンクの削除フラグに「false」が設定されており、かつネットワーク管理装置10及びネットワーク装置30の間で「startup-config」が一致する場合、逆コマンドを生成する。例えば、逆コマンド生成部15dは、ネットワーク装置30から更新後の「running-config」を取得した上で更新前後の「running-config」を比較することにより、2つの「running-config」の差分を抽出する。続いて、逆コマンド生成部15dは、2つの「running-config」の差分から設定操作が設定値の変更であるか否かを判定する。そして、逆コマンド生成部15dは、設定操作が設定値の変更である場合、次のようにして逆コマンドを生成する。すなわち、逆コマンド生成部15dは、当該設定操作が行われたネットワーク装置30ごとに「running-config」に含まれる項目のうち差分が抽出された項目の設定値を当該設定操作前の設定値へ変更する逆コマンドを生成する。また、逆コマンド生成部15dは、設定操作が設定値の変更でない場合、2つの「running-config」の差分から設定操作が初期値、例えばエンプティ等からの変更、すなわち新規登録であるか否かを判定する。このとき、逆コマンド生成部15dは、設定操作が新規登録である場合、次のようにして逆コマンドを生成する。すなわち、逆コマンド生成部15dは、当該設定操作が行われたネットワーク装置30ごとに「running-config」に含まれる項目のうち差分が抽出された項目の設定値を削除する逆コマンドを生成する。なお、初期値がNULL値である場合には、差分が抽出された項目の設定値を初期値、すなわちNULL値へ変更する逆コマンドを生成することとすればよい。さらに、逆コマンド生成部15dは、設定操作が設定値の変更でも新規登録でもない場合、2つの「running-config」の差分から設定操作が削除であるか否かを判定する。このとき、逆コマンド生成部15dは、設定操作が設定値の削除である場合、次のようにして逆コマンドを生成する。すなわち、逆コマンド生成部15dは、当該設定操作が行われたネットワーク装置30ごとに「running-config」に含まれる項目のうち差分が抽出された項目の設定値を当該削除操作前の設定値で新規登録する逆コマンドを生成する。このように生成された逆コマンドは、操作履歴データ13aのフィールド「操作No.」の値と関連付けられた状態で記憶部13に記憶された逆コマンドデータ13bへ追加登録される。   In one embodiment, the reverse command generation unit 15 d matches “startup-config” and “running-config” acquired from the network device 30, and sets “false” to the deletion flag of the link including the network device 30. If the "startup-config" matches between the network management device 10 and the network device 30, the reverse command is generated. For example, the reverse command generation unit 15d obtains the updated "running-config" from the network device 30, and then compares the difference between the two "running-configs" by comparing the "running-config" before and after the update. Extract. Subsequently, the reverse command generation unit 15d determines whether or not the setting operation is a change of the setting value from the difference between the two "running-config". Then, when the setting operation is a change of the setting value, the reverse command generation unit 15d generates a reverse command as follows. That is, the reverse command generation unit 15d changes the setting value of the item from which the difference is extracted among the items included in "running-config" for each of the network devices 30 for which the setting operation has been performed to the setting value before the setting operation. Generate a reverse command to change. In addition, when the setting operation is not a change of the setting value, the reverse command generation unit 15d determines whether the setting operation is an initial value, for example, a change from an empty or the like, that is, a new registration Determine At this time, when the setting operation is new registration, the reverse command generation unit 15 d generates a reverse command as follows. That is, the reverse command generation unit 15 d generates a reverse command for deleting the setting value of the item from which the difference is extracted among the items included in “running-config” for each of the network devices 30 for which the setting operation has been performed. If the initial value is a NULL value, a reverse command may be generated to change the setting value of the item from which the difference is extracted to the initial value, that is, the NULL value. Furthermore, when the setting operation is neither change of the setting value nor new registration, the reverse command generation unit 15d determines whether or not the setting operation is deletion based on the difference between the two "running-config". At this time, when the setting operation is deletion of the setting value, the reverse command generation unit 15 d generates a reverse command as follows. That is, the reverse command generation unit 15 d sets the setting value of the item from which the difference is extracted among the items included in “running-config” for each of the network devices 30 on which the setting operation has been performed, using the setting value before the deletion operation. Generate a reverse command to be newly registered. The reverse command thus generated is additionally registered in the reverse command data 13b stored in the storage unit 13 in a state associated with the value of the field "operation No." of the operation history data 13a.

図3は、逆コマンドの生成の一例を示す図である。図3には、デバイスAのVLAN設定が行われた例が示されている。図3に示すデバイスAの例では、操作1によりVLAN IDを設定a0から設定a1へ変更する更新、すなわちVLAN IDを「10」から「100」へ変更する更新が行われている。この場合、VLAN IDの設定値を「10」に変更する逆コマンドが生成される。さらに、操作2によりVLAN IDを設定a1から設定a2へ変更する更新、すなわちVLAN IDを「100」から「200」へ変更する更新が行われている。この場合、VLAN IDの設定値を「100」に変更する逆コマンドが生成される。さらに、操作3によりVLAN IDを設定a2から設定a3へ変更する更新、すなわちVLAN IDを「200」から「300」へ変更する更新が行われている。この場合、VLAN IDの設定値を「200」に変更する逆コマンドが生成される。   FIG. 3 is a diagram illustrating an example of generation of a reverse command. FIG. 3 shows an example in which the VLAN setting of the device A is performed. In the example of the device A shown in FIG. 3, the update for changing the VLAN ID from the setting a0 to the setting a1 by operation 1 is performed, that is, the update for changing the VLAN ID from “10” to “100”. In this case, a reverse command is generated to change the setting value of the VLAN ID to "10". Furthermore, the update for changing the VLAN ID from the setting a1 to the setting a2 by the operation 2, that is, the update for changing the VLAN ID from "100" to "200" is performed. In this case, a reverse command to change the setting value of VLAN ID to "100" is generated. Further, an update for changing the VLAN ID from the setting a2 to the setting a3 by the operation 3, that is, an update for changing the VLAN ID from "200" to "300" is performed. In this case, a reverse command to change the setting value of the VLAN ID to "200" is generated.

一方、逆コマンド生成部15dは、ネットワーク装置30から取得された「startup-config」及び「running-config」が一致しない場合、ネットワーク装置30を含むリンクの削除フラグに「true」が設定されている場合、あるいはネットワーク管理装置10及びネットワーク装置30の間で「startup-config」が一致しない場合、当該ネットワーク装置30に関する逆コマンドを無効化する。例えば、逆コマンド生成部15dは、記憶部13に記憶された逆コマンドデータ13bのうち外部コマンド操作が検出されたネットワーク装置30またはリンクの削除が検出されたネットワーク装置30に関する逆コマンドを削除する。   On the other hand, when the “startup-config” and the “running-config” obtained from the network device 30 do not match, the reverse command generation unit 15 d sets “true” in the deletion flag of the link including the network device 30. In the case where the “startup-config” does not match between the network management device 10 and the network device 30, the reverse command related to the network device 30 is invalidated. For example, the reverse command generation unit 15 d deletes the reverse command related to the network device 30 in which the external command operation is detected or the network device 30 in which the deletion of the link is detected from the reverse command data 13 b stored in the storage unit 13.

ロールバック制御部15eは、ロールバック処理の制御を行う処理部である。   The rollback control unit 15 e is a processing unit that controls rollback processing.

一実施形態として、ロールバック制御部15eは、クライアント端末50からロールバックの対象とされる設定操作の一覧を含むロールバック一覧画面の閲覧要求を受け付けた場合、記憶部13に記憶された操作履歴データ13aを読み出す。続いて、ロールバック制御部15eは、操作履歴データ13aに含まれるレコードのうちレコードを1つ選択する。例えば、ロールバック制御部15eは、最新の設定操作に関するレコードから順にレコードを1つずつ選択することができる。   In one embodiment, when the rollback control unit 15 e receives from the client terminal 50 a request for viewing a rollback list screen including a list of setting operations to be rolled back, the operation history stored in the storage unit 13. The data 13a is read. Subsequently, the rollback control unit 15 e selects one of the records included in the operation history data 13 a. For example, the rollback control unit 15e can select one record at a time from the record regarding the latest setting operation.

続いて、ロールバック制御部15eは、先に選択された操作履歴データ13aのレコードが持つロールバックエラーのフラグ3に「false」が設定されているか否かを判定する。このとき、ロールバックエラーのフラグ3に「true」が設定されている場合、先に選択されたレコードに対応する設定操作のロールバック処理が過去に実施されているものの、その結果がエラーであったことがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバックエラー」を割り当てる。   Subsequently, the rollback control unit 15 e determines whether “false” is set in the rollback error flag 3 of the record of the operation history data 13 a selected earlier. At this time, if “true” is set in flag 3 of the rollback error, although the rollback processing of the setting operation corresponding to the previously selected record is performed in the past, the result is an error. I understand that. In this case, the rollback control unit 15 e assigns “rollback error” to the status of rollback regarding the record.

一方、ロールバック制御部15eは、ロールバックエラーのフラグ3に「false」が設定されている場合、先に選択された操作履歴データ13aのレコードに対応する設定操作がユーザ権限の範囲内か否かをさらに判定する。例えば、ロールバック制御部15eは、記憶部13に記憶されたユーザ権限データのうち、ロールバック一覧画面の閲覧要求を行うクライアント端末50がネットワーク管理システム1にログイン認証に成功したアカウントのユーザ名に対応するユーザ権限を特定する。その上で、ロールバック制御部15eは、先に選択された操作履歴データ13aのレコードに含まれるフィールド「デバイスグループ名」が先に特定されたユーザ権限の範囲内であるか否かを判定する。このとき、設定操作がユーザ権限の範囲外である場合、ロールバック制御部15eは、先に選択された操作履歴データ13aのレコードに関するロールバックのステータスに「ロールバック不可」を割り当てる。   On the other hand, when the rollback error flag 3 is set to “false”, the rollback control unit 15 e determines whether the setting operation corresponding to the record of the operation history data 13 a selected earlier is within the range of the user authority. Further determine the For example, among the user authority data stored in the storage unit 13, the rollback control unit 15 e uses the user name of the account for which the client terminal 50 requesting browsing of the rollback list screen succeeded in log-in authentication in the network management system 1. Identify the corresponding user rights. Then, the rollback control unit 15 e determines whether or not the field “device group name” included in the record of the operation history data 13 a selected above is within the range of the user authority specified above. . At this time, when the setting operation is out of the range of the user authority, the rollback control unit 15 e assigns “rollback impossible” to the status of the rollback regarding the record of the operation history data 13 a selected earlier.

また、ロールバック制御部15eは、設定操作がユーザ権限の範囲内である場合、先に選択された操作履歴データ13aのレコードが持つ外部コマンド操作のフラグ1に「false」が設定されているか否かをさらに判定する。このとき、外部コマンド操作のフラグ1に「true」が設定されている場合、当該レコードに対応する設定操作が行われた後に外部コマンド操作が実施されていることがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック不可」を割り当てる。   Further, when the setting operation is within the range of the user authority, the rollback control unit 15 e determines whether “false” is set in the flag 1 of the external command operation of the record of the operation history data 13 a selected earlier. Further determine the At this time, when “true” is set to the flag 1 of the external command operation, it is understood that the external command operation is performed after the setting operation corresponding to the record is performed. In this case, the rollback control unit 15 e assigns “rollback impossible” to the status of the rollback regarding the record.

また、ロールバック制御部15eは、外部コマンド操作のフラグ1に「false」が設定されている場合、次のような処理をさらに実行する。すなわち、ロールバック制御部15eは、記憶部13に記憶された図示しないデバイスデータに含まれるネットワーク装置30のうち、先に選択された操作履歴データ13aのレコードが持つフィールド「設定操作内容」に含まれるネットワーク装置30の削除フラグに「false」が設定されているか否かを判定する。このとき、ネットワーク装置30の削除フラグに「true」が設定されている場合、当該レコードに対応する設定操作が行われた後にネットワーク装置30に関するデータがデバイスデータから削除されていることがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック不可」を割り当てる。   In addition, when “false” is set in the flag 1 of the external command operation, the rollback control unit 15 e further executes the following process. That is, the rollback control unit 15 e is included in the field “setting operation content” of the record of the operation history data 13 a selected earlier among the network devices 30 included in the device data (not shown) stored in the storage unit 13. It is determined whether "false" is set in the deletion flag of the target network device 30 or not. At this time, when “true” is set in the deletion flag of the network device 30, it can be understood that data relating to the network device 30 is deleted from the device data after the setting operation corresponding to the record is performed. In this case, the rollback control unit 15 e assigns “rollback impossible” to the status of the rollback regarding the record.

また、ロールバック制御部15eは、ネットワーク装置30の削除フラグに「false」が設定されている場合、先に選択された操作履歴データ13aのレコードが持つリンクの編集・削除のフラグ2に「false」が設定されているか否かをさらに判定する。このとき、リンクの編集・削除のフラグ2に「true」が設定されている場合、当該レコードに対応する設定操作が行われた後にネットワーク装置30を含むリンクがトポロジから削除されていることがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック不可」を割り当てる。   Further, when the deletion flag of the network device 30 is set to “false”, the rollback control unit 15 e sets “false” to the flag 2 of the link editing / deleting possessed by the record of the operation history data 13 a selected earlier. It is further determined whether “is set. At this time, if “true” is set in flag 2 of link editing / deletion, it is known that the link including the network device 30 has been deleted from the topology after the setting operation corresponding to the record is performed. . In this case, the rollback control unit 15 e assigns “rollback impossible” to the status of the rollback regarding the record.

また、ロールバック制御部15eは、リンクの編集・削除のフラグ2に「false」が設定されている場合、先に選択された操作履歴データ13aのレコードが持つフィールド「設定操作内容」に含まれるネットワーク装置30ごとに、ロールバック一覧画面の閲覧要求を受け付けた時点から遡って最初の設定操作、すなわち最新の設定操作であるかをさらに判定する。このとき、全てのネットワーク装置30において最新の設定操作である場合、ロールバック処理の実行に支障がない公算が高いことを判断できる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック可」を割り当てる。一方、いずれかのネットワーク装置30において最新の設定操作でない場合、先に選択された操作履歴データ13aのレコードに対応する設定操作よりも前に行われた設定操作の中でもフィールド「設定操作内容」に含まれるネットワーク装置30よりも先に行われた関連の設定操作に関するロールバック処理が実行されることを条件に、先に選択された操作履歴データ13aのレコードに対応する設定操作のロールバックを許可してもよいことがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック待ち」を割り当てる。   In addition, when “false” is set in the link editing / deleting flag 2, the rollback control unit 15 e is included in the “setting operation content” field of the record of the operation history data 13 a selected earlier. Each network device 30 further determines whether it is the first setting operation, that is, the latest setting operation, retroactively from the point of time when the request for browsing the rollback list screen is received. At this time, in the case where the setting operation is the latest in all the network devices 30, it can be determined that there is a high probability that there will be no hindrance to the execution of the rollback processing. In this case, the rollback control unit 15 e assigns “rollback possible” to the status of the rollback regarding the record. On the other hand, if it is not the latest setting operation in any of the network devices 30, the field "setting operation content" is included in the setting operation performed before the setting operation corresponding to the record of the operation history data 13a selected earlier. Permitting rollback of the setting operation corresponding to the record of the operation history data 13a selected earlier on condition that the rollback process related to the related setting operation performed prior to the included network device 30 is executed It is understood that it is good. In this case, the rollback control unit 15 e assigns “waiting for rollback” to the status of rollback regarding the record.

このように操作履歴データ13aに含まれるレコードに対応する設定操作ごとに当該設定操作が「ロールバック可」、「ロールバック待ち」、「ロールバック不可」または「ロールバックエラー」のいずれかに分類されることになる。   As described above, for each setting operation corresponding to the record included in the operation history data 13a, the setting operation is classified into either "rollback enabled", "rollback wait", "rollback not possible" or "rollback error". It will be done.

出力制御部15fは、クライアント端末50に対する出力制御を行う処理部である。   The output control unit 15 f is a processing unit that performs output control on the client terminal 50.

一実施形態として、出力制御部15fは、ロールバック制御部15eにより設定操作ごとに割り当てられたロールバックのステータスにしたがってロールバック一覧画面をクライアント端末50に表示させる。例えば、出力制御部15fは、操作履歴データ13aに含まれる各レコードが持つフィールド「操作No.」が小さい順に各レコードが持つフィールの情報の一部又は全部を登載すると共に、各レコードに割り当てられたロールバックのステータス「ロールバック可」、「ロールバック待ち」、「ロールバック不可」または「ロールバックエラー」に対応するアイコン等のマークを対応付けることにより、ロールバック一覧画面の表示用データを生成する。このように生成された表示用データを用いて、出力制御部15fは、ロールバック一覧画面をクライアント端末50に表示させる。   In one embodiment, the output control unit 15 f causes the client terminal 50 to display a rollback list screen according to the rollback status allocated for each setting operation by the rollback control unit 15 e. For example, the output control unit 15f registers part or all of the information of the field of each record in ascending order of the field "Operation No." of each record included in the operation history data 13a, and is assigned to each record Rollback list screen display data is generated by associating marks such as icons corresponding to rollback status “rollback enabled”, “rollback wait”, “rollback not possible” or “rollback error” Do. The output control unit 15 f causes the client terminal 50 to display the rollback list screen using the display data generated in this manner.

第2受付部15gは、ロールバック指示を受け付ける処理部である。   The second reception unit 15g is a processing unit that receives a rollback instruction.

一実施形態として、第2受付部15gは、出力制御部15fによりロールバック一覧画面がクライアント端末50に表示された状態でロールバック指示を受け付ける。具体的には、第2受付部15gは、ロールバック一覧画面に含まれるレコードの一覧の中からいずれかのレコードを選択することにより、ロールバック処理を実行する設定操作の指定を受け付ける。例えば、ロールバックのステータスとして「ロールバック可」が割り当てられたレコードが選択された場合、ロールバック処理の実行指示を受け付けるGUIコンポーネント、例えば実行ボタンがアクティブな状態で出力制御部15fにより表示される。また、ロールバックのステータスとして「ロールバック待ち」が割り当てられたレコードが選択された場合、出力制御部15fにより次のような表示が行われる。すなわち、当該選択されたレコードに対応する設定操作よりも前に行われた設定操作であり、かつ当該選択されたレコードが持つフィールド「設定操作内容」に含まれるネットワーク装置30に関する設定操作が先に行われた関連の設定操作に対応するレコードが他のレコードの表示形態と異なる区別可能な表示形態、例えば文字や塗り潰しの表示色の変更、「関連ロールバック」等のアイコンの表示、あるいは網掛け等の強調表示で表示されると共に、ロールバック処理の実行指示を受け付けるGUIコンポーネントが非アクティブな状態で表示される。また、ロールバックのステータスとして「ロールバック不可」が割り当てられたレコードが選択された場合、ロールバック処理の実行指示を受け付けるGUIコンポーネントが非アクティブな状態で表示される。   In one embodiment, the second accepting unit 15g accepts a rollback instruction in a state where the rollback list screen is displayed on the client terminal 50 by the output control unit 15f. Specifically, the second accepting unit 15g accepts specification of a setting operation for executing rollback processing by selecting any of the records from the list of records included in the rollback list screen. For example, when a record to which “rollback is allowed” is assigned as a rollback status is selected, a GUI component that receives a roll back processing execution instruction, for example, displayed by the output control unit 15 f in a state where the execution button is active. . In addition, when a record to which “wait for rollback” is assigned is selected as the status of rollback, the following display is performed by the output control unit 15 f. That is, the setting operation related to the network device 30 which is a setting operation performed before the setting operation corresponding to the selected record and included in the field “setting operation content” of the selected record is first. The record corresponding to the related setting operation performed is a distinguishable display form different from the display form of other records, for example, the change of the display color of characters and filling, the display of an icon such as “related rollback”, or hatching And the like, and a GUI component that receives an instruction to execute rollback processing is displayed in an inactive state. In addition, when a record to which “rollback impossible” is assigned as a rollback status is selected, a GUI component that receives a rollback processing execution instruction is displayed in an inactive state.

このように設定操作の指定が受け付けられた状態で、第2受付部15gは、上記のGUIコンポーネントを介して、ロールバック処理の実行指示をさらに受け付ける。ここで、GUIコンポーネントが操作された場合、GUIコンポーネントがアクティブな状態であれば、当該指定が受け付けられた設定操作に対応する逆コマンドを実行することにより、設定操作をロールバックするロールバック処理がロールバック制御部15eにより実施される。このようにロールバック処理が実行された場合、当該ロールバック処理により設定が更新された後の「startup-config」をロールバック処理が実行された各ネットワーク装置30から取得した上で記憶部13がネットワーク装置30の管理用に記憶する「startup-config」または「startup-config」の更新日時が上書き更新される。これと共に、当該ロールバック処理が実行された設定操作に対応するレコードが操作履歴データ13aから削除される。一方、GUIコンポーネントがアクティブな状態でなければ、当該指定が受け付けられた設定操作をロールバックするロールバック処理は規制される。   As described above, in the state in which the specification of the setting operation has been received, the second receiving unit 15 g further receives an execution instruction of rollback processing via the above-described GUI component. Here, when the GUI component is operated, if the GUI component is in the active state, the rollback processing for rolling back the setting operation by executing the reverse command corresponding to the setting operation for which the specification is accepted is performed. It is implemented by the rollback control unit 15e. When the rollback process is performed as described above, the storage unit 13 acquires “startup-config” after the setting is updated by the rollback process from each network device 30 on which the rollback process is performed. The update date and time of “startup-config” or “startup-config” stored for management of the network device 30 is overwritten and updated. At the same time, the record corresponding to the setting operation for which the rollback process has been performed is deleted from the operation history data 13a. On the other hand, if the GUI component is not in the active state, the rollback process for rolling back the setting operation for which the specification is accepted is restricted.

[ロールバック制御の具体例]
図4〜図9を用いて、ロールバック制御の具体例について説明する。図4は、操作履歴データ13aの一例を示す図である。図5は、設定操作および設定内容の時系列を示す模式図である。図6〜図9は、ロールバック一覧画面の一例を示す図である。
[Specific example of rollback control]
A specific example of rollback control will be described using FIGS. 4 to 9. FIG. 4 is a diagram showing an example of the operation history data 13a. FIG. 5 is a schematic view showing a time series of setting operation and setting contents. 6 to 9 are diagrams showing an example of the rollback list screen.

図4には、操作1〜操作7の計7個の設定操作に関するレコードが示されている。ここでは、説明の便宜上、7つのレコードを抜粋して例示したが、ロールバック一覧画面に表示されるレコード数はこれに限定されない。図4に示す操作履歴データ13aの場合、各設定操作とその設定操作の内容は図5に示す模式図の通りとなる。なお、図4及び図5に示すデバイスA、デバイスB及びデバイスCには、次のようなグループ設定がなされているものとする。すなわち、図5に示すように、グループAには、デバイスAが含まれ、グループBには、デバイスBが含まれると共に、グループCには、デバイスCが含まれる。また、グループZには、デバイスA及びデバイスBが含まれる。さらに、グループXには、デバイスA、デバイスB及びデバイスCが含まれる。   FIG. 4 shows records relating to a total of seven setting operations of operation 1 to operation 7. Here, for convenience of explanation, seven records are extracted and illustrated, but the number of records displayed on the rollback list screen is not limited to this. In the case of the operation history data 13a shown in FIG. 4, each setting operation and the contents of the setting operation are as shown in the schematic view shown in FIG. It is assumed that the following group settings are made for device A, device B and device C shown in FIGS. 4 and 5. That is, as shown in FIG. 5, the group A includes the device A, the group B includes the device B, and the group C includes the device C. The group Z includes devices A and B. Further, group X includes device A, device B and device C.

図5に示す操作7では、デバイスAのVLAN IDを「初期値」から「2」へ新規登録することにより、デバイスAの設定ファイルが初期状態の「a0」から「a1」へ更新されたことを意味する。そして、図5に示す操作6では、デバイスAのルーティングのデフォルトルートが変更されることにより、デバイスAの設定ファイルが「a1」から「a2」へ更新されたことを意味する。その後、図5に示す操作5では、デバイスA、デバイスB及びデバイスCのVLAN IDが一括設定されている。すなわち、デバイスAのVLAN IDを「2」から「3」へ更新することにより、デバイスAの設定ファイルが「a2」から「a3」へ更新されたことを意味する。これと共に、デバイスBのVLAN IDを「初期値」から「3」へ新規登録することにより、デバイスBの設定ファイルが初期状態の「b0」から「b1」へ更新されたことを意味する。さらに、デバイスCのVLAN IDを「初期値」から「3」へ新規登録することにより、デバイスCの設定ファイルが初期状態の「c0」から「c1」へ更新されたことを意味する。   In operation 7 shown in FIG. 5, the configuration file of device A is updated from “a0” to “a1” in the initial state by newly registering the VLAN ID of device A from “initial value” to “2”. Means Then, in operation 6 shown in FIG. 5, the default route of the routing of the device A is changed, which means that the setting file of the device A is updated from “a1” to “a2”. Thereafter, in the operation 5 shown in FIG. 5, VLAN IDs of the device A, the device B and the device C are collectively set. That is, by updating the VLAN ID of the device A from “2” to “3”, it means that the configuration file of the device A has been updated from “a2” to “a3”. At the same time, by newly registering the VLAN ID of the device B from “initial value” to “3”, it means that the setting file of the device B has been updated from “b0” to “b1” in the initial state. Furthermore, by newly registering the VLAN ID of the device C from “initial value” to “3”, it means that the configuration file of the device C has been updated from “c0” to “c1” in the initial state.

続いて、図5に示す操作4では、デバイスA及びデバイスBのVLAN IDが一括設定されている。すなわち、デバイスAのVLAN IDを「3」から「4」へ更新することにより、デバイスAの設定ファイルが「a3」から「a4」へ更新されたことを意味する。これと共に、デバイスBのVLAN IDを「3」から「4」へ更新することにより、デバイスBの設定ファイルが「b1」から「b2」へ更新されたことを意味する。そして、図5に示す操作3では、デバイスBのVLAN IDを「4」から「5」へ更新することにより、デバイスBの設定ファイルが「b2」から「b3」へ更新されたことを意味する。続いて、図5に示す操作2では、デバイスAのVLAN IDを「4」から「6」へ更新することにより、デバイスAの設定ファイルが「a4」から「a5」へ更新されたことを意味する。さらに、図5に示す操作1では、デバイスAのVLAN IDを「6」から「7」へ更新することにより、デバイスAの設定ファイルが「a5」から「a6」へ更新されたことを意味する。   Subsequently, in the operation 4 illustrated in FIG. 5, VLAN IDs of the device A and the device B are collectively set. That is, by updating the VLAN ID of the device A from “3” to “4”, it means that the setting file of the device A has been updated from “a3” to “a4”. At the same time, by updating the VLAN ID of device B from “3” to “4”, it means that the configuration file of device B has been updated from “b1” to “b2”. Then, in the operation 3 shown in FIG. 5, by updating the VLAN ID of the device B from “4” to “5”, it means that the setting file of the device B is updated from “b2” to “b3”. . Subsequently, in the operation 2 shown in FIG. 5, by updating the VLAN ID of the device A from “4” to “6”, it means that the setting file of the device A has been updated from “a4” to “a5”. Do. Furthermore, in the operation 1 shown in FIG. 5, by updating the VLAN ID of the device A from “6” to “7”, it means that the setting file of the device A has been updated from “a5” to “a6”. .

ここで、図4に示す操作1及び操作3に対応するレコードが「ロールバック可」に分類されると共に、図4に示す操作1及び操作3に対応するレコード以外のレコードが「ロールバック待ち」に分類される。なぜなら、各レコードのフラグ1〜フラグ3には「true」が設定されておらず、かつ操作1及び操作3に対応するレコード以外のレコードには、フィールド「設定操作内容」に含まれるデバイスの中に先に設定操作が行われたデバイスが存在するからである。   Here, the records corresponding to the operation 1 and the operation 3 shown in FIG. 4 are classified into “rollback possible”, and the records other than the records corresponding to the operation 1 and the operation 3 shown in FIG. are categorized. The reason is that "true" is not set in flags 1 to 3 of each record, and in records other than the records corresponding to operation 1 and operation 3, among the devices included in the field "setting operation content" This is because there are devices for which the setting operation has been performed earlier.

このような設定操作の履歴の下、全体管理者権限を持つユーザ、すなわち図4に示したユーザの中では全体管理者3及び全体管理者4などの場合、図6に示すロールバック一覧画面がクライアント端末50に表示される。図6の上段には、一覧の中のレコードが未選択の状態である場合のロールバック一覧画面600が示されていると共に、図6の下段には、一覧の中のレコードのうち操作5に対応するレコードが選択された状態である場合のロールバック一覧画面620が示されている。   Under the history of such setting operations, in the case of the overall administrator 3 and the overall administrator 4 among the users having overall administrator authority, that is, among the users shown in FIG. 4, the rollback list screen shown in FIG. It is displayed on the client terminal 50. While the rollback list screen 600 in the case where the record in the list is in the unselected state is shown in the upper part of FIG. 6, the operation 5 of the records in the list is shown in the lower part of FIG. A rollback list screen 620 is shown when the corresponding record is selected.

図6に示すロールバック一覧画面600の通り、全体管理者3及び全体管理者4は、全てのデバイスに対する設定操作を行う権限を有するので、図4に示した操作履歴データ13aに含まれる全てのレコードが表示される。そして、ロールバック処理を実行する設定操作が指定されていない状態では、操作1及び操作3に対応するレコードには、当該レコードのロールバックに関するステータスが「ロールバック可」であることを示すアイコンが対応付けて表示される。この段階では、ロールバック処理の実行指示を受け付ける実行ボタン610は非アクティブな状態で表示される。仮に操作1及び操作3に対応するレコードが選択された場合、当該実行ボタン610の状態がアクティブに切り替わる。   As shown in the rollback list screen 600 shown in FIG. 6, the overall administrator 3 and the overall administrator 4 have the authority to perform the setting operation on all devices, and therefore all the items included in the operation history data 13a shown in FIG. The record is displayed. Then, in a state where the setting operation for executing the rollback processing is not specified, the records corresponding to the operation 1 and the operation 3 have an icon indicating that the status regarding the rollback of the record is “rollback is possible”. It is displayed in association with it. At this stage, the execution button 610 that receives the roll back processing execution instruction is displayed in an inactive state. If the records corresponding to the operation 1 and the operation 3 are selected, the state of the execution button 610 is switched to active.

このとき、一覧の中のレコードのうち操作5に対応するレコードが選択された場合、クライアント端末50の表示は、図6の上段に示すロールバック一覧画面600から図6の下段に示すロールバック一覧画面620へ遷移する。図6に示すロールバック一覧画面620の通り、選択が行われた操作5に対応するレコードが他のレコードの表示形態とは異なる表示形態、図中では一番濃いハッチングで表示される。さらに、選択が行われた操作5よりも前に行われた設定操作であり、かつ操作5に対応するレコードが持つフィールド「設定操作内容」に含まれるデバイスA、デバイスBまたはデバイスCに関する設定操作が先に行われた関連の操作1〜4に対応するレコードが他のレコードの表示形態と異なる区別可能な表示形態、例えば2番目に濃いハッチングで表示される。このとき、関連の操作1〜4に対応するレコードのうち、現状でロールバックが可能である操作1及び操作3に対応するレコードには、「ロールバック可」であることを示すアイコンが対応付けて表示される。また、「ロールバック待ち」に分類された操作2及び操作4に対応するレコードには、同様に「ロールバック待ち」に分類された操作5に対応するレコードと共に「関連ロールバック」であることを示すアイコンが対応付けて表示される。この場合、関連の操作1〜4のロールバックが実行されなければ、操作5のロールバックは実行できないので、実行ボタン630は非アクティブな状態で表示される。かかるロールバック一覧画面620によれば、操作5のロールバックの前に行った方がよい操作1〜4のロールバックが一目で把握できる。   At this time, when the record corresponding to the operation 5 is selected from the records in the list, the display of the client terminal 50 is the rollback list shown in the lower part of FIG. 6 from the rollback list screen 600 shown in the upper part of FIG. A transition to screen 620 is made. As shown in the rollback list screen 620 shown in FIG. 6, the record corresponding to the selected operation 5 is displayed in a display form different from the display form of the other records, with the darkest hatching in the figure. Furthermore, the setting operation related to device A, device B or device C, which is a setting operation performed prior to the selected operation 5 and included in the field “setting operation content” of the record corresponding to operation 5 The records corresponding to the related operations 1 to 4 performed earlier are displayed with distinguishable display forms different from the display forms of other records, for example, by the second dark hatching. At this time, among the records corresponding to the related operations 1 to 4, to the records corresponding to the operation 1 and the operation 3 which can be rolled back at present, an icon indicating that "roll back is possible" is associated Is displayed. In addition, the records corresponding to operation 2 and operation 4 classified as "wait for rollback" are "related rollback" together with the record corresponding to operation 5 classified as "wait for rollback". The icon which shows is matched and displayed. In this case, since the rollback of the operation 5 can not be performed unless the rollback of the related operations 1 to 4 is performed, the execute button 630 is displayed in the inactive state. According to the rollback list screen 620, it is possible to grasp at a glance the rollback of the operations 1 to 4 which should be performed before the rollback of the operation 5.

また、デバイスグループ管理者権限を持つユーザ、すなわち図4に示したユーザの中ではGrpA管理者5の場合、図7に示すロールバック一覧画面がクライアント端末50に表示される。図7の上段には、一覧の中のレコードが未選択の状態である場合のロールバック一覧画面700が示されている。図7の中段には、一覧の中のレコードのうち操作4に対応するレコードが選択された状態である場合のロールバック一覧画面720が示されている一方で、図7の下段には、ロールバック一覧画面720上で操作1及び操作2のロールバックが実行された場合のロールバック一覧画面740が示されている。なお、図7では、図4に示した操作履歴データ13aとの対応を明記する観点から図4に示した操作履歴データ13aの「操作No.」と、図7に示すロールバック一覧画面700、720及び740の「操作No.」との対応関係を一致させた例を示したが、ユーザ権限またはロールバックの実行により欠番が発生した場合には一覧の上から昇順に採番し直すこともできるのは言うまでもない。   Further, in the case of the GrpA administrator 5 among the users having device group administrator authority, that is, among the users shown in FIG. 4, the rollback list screen shown in FIG. 7 is displayed on the client terminal 50. In the upper part of FIG. 7, a rollback list screen 700 in the case where the record in the list is not selected is shown. While the rollback list screen 720 is shown in the middle row of FIG. 7 when the record corresponding to the operation 4 is selected among the records in the list, the lower row of FIG. A rollback list screen 740 when rollback of the operation 1 and the operation 2 is executed on the back list screen 720 is shown. 7, “operation No.” of the operation history data 13a shown in FIG. 4 and the rollback list screen 700 shown in FIG. 7 from the viewpoint of specifying the correspondence with the operation history data 13a shown in FIG. An example is shown in which the correspondence with "Operation No." in 720 and 740 is matched, but if a missing number occurs due to user authority or execution of rollback, renumbering in ascending order from the top of the list is also possible. It goes without saying that you can.

図7に示すロールバック一覧画面700の通り、GrpA管理者5は、デバイスAに対する設定操作を行う権限しか持たない。このため、GrpA管理者5には、図4に示した操作履歴データ13aに含まれる全てのレコードが表示される訳ではない。具体的には、操作3に対応するレコードは、デバイスBに対する設定操作であり、GrpA管理者5のユーザ権限の範疇であるデバイスAが含まれないので、一覧上に表示されない。さらに、一覧上の操作4及び操作5には、GrpA管理者5のユーザ権限の範囲外のデバイスB、デバイスCに対する設定操作も含まれるので、どういう操作を行ったかは公開されず、設定操作内容には非公開のマーク「−」が表示される。さらに、操作4及び操作5は、操作4及び操作5を全体管理者にロールバックしてもらうことができるので、「ロールバック不可」のアイコンは付与されない。   As the rollback list screen 700 shown in FIG. 7, the GrpA administrator 5 only has the authority to perform the setting operation on the device A. Therefore, the GrpA administrator 5 does not necessarily display all the records included in the operation history data 13a shown in FIG. Specifically, the record corresponding to the operation 3 is a setting operation for the device B and is not displayed on the list because the device A which is a category of the user authority of the GrpA administrator 5 is not included. Furthermore, since operations 4 and 5 on the list include setting operations for devices B and C outside the range of the user authority of GrpA administrator 5, it is not disclosed what operation was performed, and the setting operation content A private mark "-" is displayed on. Furthermore, since the operations 4 and 5 can have the general administrator roll back the operations 4 and 5, the "rollback not possible" icon is not given.

このようにロールバック処理を実行する設定操作が指定されていない状態では、操作1に対応するレコードには、当該レコードのロールバックに関するステータスが「ロールバック可」であることを示すアイコンが対応付けて表示される。この段階では、ロールバック処理の実行指示を受け付ける実行ボタン710は非アクティブな状態で表示される。仮に操作1に対応するレコードが選択された場合、当該実行ボタン710の状態がアクティブに切り替わる。   As described above, in the state where the setting operation for executing the rollback process is not specified, the record corresponding to the operation 1 is associated with an icon indicating that the status regarding the rollback of the record is “rollback is possible”. Is displayed. At this stage, the execution button 710 that receives the roll back processing execution instruction is displayed in an inactive state. If the record corresponding to the operation 1 is selected, the state of the execution button 710 is switched to active.

このとき、一覧の中のレコードのうち操作4に対応するレコードが選択された場合、クライアント端末50の表示は、図7の上段に示すロールバック一覧画面700から図7の中段に示すロールバック一覧画面720へ遷移する。図7に示すロールバック一覧画面720の通り、選択が行われた操作4に対応するレコードが他のレコードの表示形態とは異なる表示形態、図中では一番濃いハッチングで表示される。さらに、選択が行われた操作4よりも前に行われた設定操作であり、かつ操作4に対応するレコードが持つフィールド「設定操作内容」に含まれるデバイスAまたはデバイスBに関する設定操作が先に行われた関連の操作1〜2に対応するレコードが他のレコードの表示形態と異なる区別可能な表示形態、例えば2番目に濃いハッチングで表示される。このとき、関連の操作1及び操作2に対応するレコードのうち、現状でロールバックが可能である操作1に対応するレコードには、「ロールバック可」であることを示すアイコンが対応付けて表示される。また、「ロールバック待ち」に分類された操作2に対応するレコードには、同様に「ロールバック待ち」に分類された操作4に対応するレコードと共に「関連ロールバック」であることを示すアイコンが対応付けて表示される。この場合、関連の操作1〜2のロールバックが実行されなければ、操作4のロールバックは実行できないので、実行ボタン730は非アクティブな状態で表示される。かかるロールバック一覧画面720によれば、操作4のロールバックの前に行った方がよい操作1〜2のロールバックが一目で把握できる。   At this time, when the record corresponding to the operation 4 is selected from the records in the list, the display of the client terminal 50 is the rollback list shown from the rollback list screen 700 shown in the upper part of FIG. 7 to the middle part in FIG. A transition to screen 720 is made. As shown in the rollback list screen 720 shown in FIG. 7, the record corresponding to the selected operation 4 is displayed in a display form different from the display form of the other records, with the darkest hatching in the drawing. Furthermore, the setting operation related to device A or device B included in the field “setting operation content” of the record corresponding to operation 4 which is the setting operation performed prior to the selected operation 4 is performed first. The records corresponding to the related operations 1 and 2 performed are displayed with distinguishable display forms different from the display forms of the other records, for example, by the second dark hatching. At this time, among the records corresponding to the related operation 1 and the operation 2, to the record corresponding to the operation 1 which can be rolled back at present, an icon indicating “roll back is possible” is displayed in association Be done. Also, in the record corresponding to operation 2 classified as "wait for rollback", an icon indicating "related rollback" as well as the record corresponding to operation 4 classified as "wait for rollback" is displayed. It is displayed in association with it. In this case, since the rollback of the operation 4 can not be performed unless the rollback of the related operations 1 and 2 is performed, the execute button 730 is displayed in the inactive state. According to the rollback list screen 720, it is possible to grasp at a glance the rollbacks of the operations 1 and 2 that should be performed before the rollback of the operation 4.

そして、ロールバック一覧画面720上で操作1及び操作2のロールバックが実行された場合、クライアント端末50の表示は、図7の中段に示すロールバック一覧画面720から図7の下段に示すロールバック一覧画面740へ遷移する。図7に示すロールバック一覧画面740の通り、ロールバックが実行済みである操作1及び操作2が一覧から削除されると共に、その後に選択が行われた操作4に対応するレコードが他のレコードの表示形態とは異なる表示形態、図中では一番濃いハッチングで表示される。さらに、選択が行われた操作4は、GrpA管理者5のユーザ権限の範囲外であるデバイスBのロールバックが条件となるので、実行ボタン750は非アクティブな状態で表示される。この場合、GrpA管理者5は、GrpZ管理者1、全体管理者3または全体管理者4に、ロールバック実行を依頼することになる。   Then, when the rollback of the operations 1 and 2 is executed on the rollback list screen 720, the display of the client terminal 50 is the rollback shown in the lower part of FIG. 7 from the rollback list screen 720 shown in the middle of FIG. A transition to a list screen 740 is made. As shown in the rollback list screen 740 shown in FIG. 7, the operation 1 and the operation 2 for which the rollback is already performed are deleted from the list, and the record corresponding to the operation 4 for which the selection is subsequently performed is another record. The display form is different from the display form, and is displayed with the darkest hatching in the figure. Furthermore, since the operation 4 for which the selection has been performed is subject to the rollback of the device B which is out of the range of the user authority of the GrpA administrator 5, the execution button 750 is displayed in an inactive state. In this case, the GrpA administrator 5 requests the GrpZ administrator 1, the overall administrator 3 or the overall administrator 4 to execute rollback.

続いて、ロールバック不可の場合の表示について説明する。例えば、操作2及び操作3の間の期間、例えば2015年の5月10日に、デバイスAに接続されているリンクが変更または削除された場合を想定する。この場合、図4に示した操作履歴データ13aに含まれるフラグ2のカラムのうち操作4〜操作7のカラムには「true」が設定されることになる。これら操作4〜操作7をロールバックしてしまうとネットワークNW全体としての整合性が取れなくなってしまう可能性が高い。このため、図8の上段に示すロールバック一覧画面800が表示される。なお、図8に示すロールバック一覧画面800、820、840には、全体管理者権限を持つユーザへの表示が示されていることとする。   Subsequently, the display in the case where the rollback is not possible will be described. For example, it is assumed that the link connected to the device A is changed or deleted on the period between the operation 2 and the operation 3, for example, on May 10, 2015. In this case, "true" is set to the columns of the operations 4 to 7 among the columns of the flag 2 included in the operation history data 13a shown in FIG. If these operations 4 to 7 are rolled back, there is a high possibility that the integrity of the entire network NW can not be obtained. Therefore, the rollback list screen 800 shown in the upper part of FIG. 8 is displayed. In the rollback list screens 800, 820, and 840 shown in FIG. 8, it is assumed that a display for a user having the overall administrator authority is shown.

図8に示すロールバック一覧画面800では、操作4〜操作7に対応するレコードには、各レコードのロールバックに関するステータスが「ロールバック不可」であることを示すアイコンが対応付けて表示される。一方、操作1及び操作2は、デバイスAのリンクが変更された後にVLAN設定が行われたので、ロールバックしてもネットワーク構成全体としての整合性は取れる可能性が高い。よって、操作1および操作2は、ロールバック不可とはされない。すなわち、操作1に対応するレコードには、ロールバックに関するステータスが「ロールバック可」であることを示すアイコンが対応付けて表示されると共に、操作2に対応するレコードは、「ロールバック待ち」に分類されているので、いずれのレコードも選択されていない現状ではアイコンが付与されずに無印で表示される。なお、例えば、操作2に対応するレコードが選択された場合、操作2に対応するレコードには、ロールバックに関するステータスが「ロールバック待ち」であることを示すアイコンを対応付けて表示することもできる。加えて、操作3は、リンクを変更したデバイスAとは関係のないデバイスBに対する操作であるので、「ロールバック不可」とはされず、ロールバックに関するステータスが「ロールバック可」であることを示すアイコンが対応付けて表示される。このような状況の下、ロールバック不可のレコードが選択されたとしても、実行ボタン810の状態は非アクティブで表示される。   In the rollback list screen 800 illustrated in FIG. 8, the records corresponding to the operations 4 to 7 are displayed in association with an icon indicating that the status regarding rollback of each record is “rollback impossible”. On the other hand, since the VLAN setting is performed after the link of the device A is changed in the operation 1 and the operation 2, there is a high possibility that consistency as a whole network configuration can be obtained even if rollback is performed. Therefore, the operations 1 and 2 are not considered as rollback impossible. That is, the record corresponding to the operation 1 is displayed in association with an icon indicating that the status regarding rollback is "rollback enabled", and the record corresponding to the operation 2 is "wait for rollback". As it is classified, in the present situation where no record is selected, the icon is not given and is displayed without a mark at present. For example, when the record corresponding to the operation 2 is selected, an icon indicating that the status regarding rollback is “wait for rollback” may be displayed in association with the record corresponding to the operation 2 . In addition, since the operation 3 is an operation to the device B which is not related to the device A which changed the link, it is not considered as "rollback not possible" and the status regarding the roll back is "rollback is possible" The icon which shows is matched and displayed. Under such circumstances, even if a non-rollback record is selected, the state of the execute button 810 is displayed as inactive.

次に、操作1の後に、デバイスAがトポロジから削除された場合を想定する。この場合、図8の中段に示すロールバック一覧画面820が表示される。図8に示すロールバック一覧画面820では、フィールド「設定操作内容」にデバイスAが含まれる操作1、2、4〜7に対応するレコードには、各レコードのロールバックに関するステータスが「ロールバック不可」であることを示すアイコンが対応付けて表示される。このため、デバイスAに対して行った操作のロールバックは一切できない状態となる。一方、操作3は、トポロジから削除されたデバイスAとは関係のないデバイスBに対する操作であるので、「ロールバック不可」とはされず、ロールバックに関するステータスが「ロールバック可」であることを示すアイコンが対応付けて表示される。このような状況の下、ロールバック不可のレコードが選択されたとしても、実行ボタン830の状態は非アクティブで表示される。   Next, assume that Device A is removed from the topology after Operation 1. In this case, a rollback list screen 820 shown in the middle of FIG. 8 is displayed. In the rollback list screen 820 shown in FIG. 8, in the records corresponding to the operations 1, 2, 4 to 7 in which the device A is included in the field “setting operation content”, the status regarding the rollback of each record is “rollback not possible An icon indicating “is displayed in association with one another. Therefore, rollback of the operation performed on the device A can not be performed at all. On the other hand, since the operation 3 is an operation to the device B which is not related to the device A deleted from the topology, it is not determined that "rollback is not possible" and that the status regarding roll back is "rollback is possible". The icon which shows is matched and displayed. Under such circumstances, even if a non-rollback record is selected, the state of the execute button 830 is displayed as inactive.

次に、操作2及び操作3の間の期間、例えば2015年の5月10日に、デバイスAに外部コマンド操作が実行された場合を想定する。この場合、図4に示した操作履歴データ13aに含まれるフラグ1のカラムのうち操作4〜操作7のカラムには「true」が設定されることになる。これら操作4〜操作7をロールバックしてしまうと、外部コマンド操作が行われた日時以前の操作4〜操作7に、SDNコントローラが把握可能な範囲で設定を戻すこともできなくはないが、ネットワークNW全体としての整合性が取れなくなってしまう可能性があるので、敢えて操作4〜操作7は「ロールバック不可」とされる。この結果、図8の下段に示すロールバック一覧画面840が表示される。   Next, it is assumed that the external command operation is performed on the device A in a period between the operation 2 and the operation 3, for example, on May 10, 2015. In this case, "true" is set to the columns of the operations 4 to 7 among the columns of the flag 1 included in the operation history data 13a shown in FIG. If these operations 4 to 7 are rolled back, it is not impossible to return the settings to the operations 4 to 7 before the date and time when the external command operation was performed, within the range that can be grasped by the SDN controller. Since there is a possibility that the integrity of the network NW as a whole can not be obtained, the operations 4 to 7 are "rolled back impossible". As a result, the rollback list screen 840 shown in the lower part of FIG. 8 is displayed.

図8に示すロールバック一覧画面840では、操作4〜操作7に対応するレコードには、各レコードのロールバックに関するステータスが「ロールバック不可」であることを示すアイコンが対応付けて表示される。一方、操作1及び操作2は、デバイスAのリンクが変更された後にVLAN設定が行われたので、ロールバックしてもネットワーク構成全体としての整合性は取れる可能性が高い。よって、操作1および操作2は、ロールバック不可とはされない。すなわち、操作1に対応するレコードには、ロールバックに関するステータスが「ロールバック可」であることを示すアイコンが対応付けて表示されると共に、操作2に対応するレコードは、「ロールバック待ち」に分類されているので、いずれのレコードも選択されていない現状ではアイコンが付与されずに無印で表示される。なお、例えば、操作2に対応するレコードが選択された場合、操作2に対応するレコードには、ロールバックに関するステータスが「ロールバック待ち」であることを示すアイコンを対応付けて表示することもできる。加えて、操作3は、外部コマンド操作が行われたデバイスAとは関係のないデバイスBに対する操作であるので、「ロールバック不可」とはされず、ロールバックに関するステータスが「ロールバック可」であることを示すアイコンが対応付けて表示される。このような状況の下、ロールバック不可のレコードが選択されたとしても、実行ボタン850の状態は非アクティブで表示される。   In the rollback list screen 840 shown in FIG. 8, the records corresponding to the operations 4 to 7 are displayed in association with an icon indicating that the status regarding rollback of each record is “rollback impossible”. On the other hand, since the VLAN setting is performed after the link of the device A is changed in the operation 1 and the operation 2, there is a high possibility that consistency as a whole network configuration can be obtained even if rollback is performed. Therefore, the operations 1 and 2 are not considered as rollback impossible. That is, the record corresponding to the operation 1 is displayed in association with an icon indicating that the status regarding rollback is "rollback enabled", and the record corresponding to the operation 2 is "wait for rollback". As it is classified, in the present situation where no record is selected, the icon is not given and is displayed without a mark at present. For example, when the record corresponding to the operation 2 is selected, an icon indicating that the status regarding rollback is “wait for rollback” may be displayed in association with the record corresponding to the operation 2 . In addition, since the operation 3 is an operation on the device B that is not related to the device A on which the external command operation has been performed, "rollback is not possible" is not made and the status regarding rollback is "rollback is possible" An icon indicating that there is a corresponding is displayed. Under such circumstances, even if a non-rollback record is selected, the state of the execute button 850 is displayed as inactive.

続いて、ロールバックエラーの場合の表示について説明する。例えば、操作3のロールバックを実行したが、デバイスBの電源が落ちていた等の原因により失敗したケースを想定する。この場合、図4に示した操作履歴データ13aに含まれるフラグ3のカラムのうち操作3のカラムには「true」が設定されることになる。この場合、図9に示すロールバック一覧画面900が表示される。図9に示すロールバック一覧画面900では、図6に示したロールバック一覧画面600と比べて、操作3に対応するレコードの表示が異なる。すなわち、操作3に対応するレコードには、ロールバックに関するステータスが「ロールバックエラー」であることを示すアイコンが対応付けて表示される。これは、操作3は元々「ロールバック可」であったので、ユーザがロールバックを実行したが、結果としてロールバックが失敗してしまったことを表す。この場合、ロールバック失敗の原因が、デバイスBの電源断やネットワーク断など、一時的な要因であれば再度実行して成功する可能性がある。このため、再度、操作3に対応するレコードを選択して実行することが可能である。すなわち、ロールバックエラー状態の操作3に対応するレコードが選択された場合、実行ボタン910の状態はアクティブに切り替わる。このような状況の下、例えば、操作4に対応するレコードが選択されると、操作1、操作2、操作3の順番にロールバックするように、関連ロールバックのアイコンが操作1、操作2、操作3の各レコードに対応付けて表示される。   Subsequently, display in the case of a rollback error will be described. For example, it is assumed that the rollback in step 3 is performed but fails due to the device B being turned off. In this case, "true" is set to the column of the operation 3 among the columns of the flag 3 included in the operation history data 13a shown in FIG. In this case, a rollback list screen 900 shown in FIG. 9 is displayed. The rollback list screen 900 shown in FIG. 9 differs from the rollback list screen 600 shown in FIG. 6 in the display of the record corresponding to the operation 3. That is, in the record corresponding to the operation 3, an icon indicating that the status regarding rollback is "rollback error" is displayed in association. This means that since the operation 3 was originally "rollback enabled", the user has performed rollback, but as a result, the rollback has failed. In this case, if the cause of the rollback failure is a temporary factor such as a power failure of the device B or a network failure, the execution may be successful again. Therefore, it is possible to select and execute the record corresponding to the operation 3 again. That is, when the record corresponding to the operation 3 in the rollback error state is selected, the state of the execute button 910 is switched to active. Under such circumstances, for example, when the record corresponding to the operation 4 is selected, the related rollback icons are operated 1 and 2 so as to roll back in the order of the operation 1, the operation 2 and the operation 3. It is displayed in association with each record of operation 3.

[処理の流れ]
次に、本実施例に係るネットワーク管理装置10の処理の流れについて説明する。なお、ここでは、ネットワーク管理装置10が実行する(1)逆コマンド生成処理を説明した後に、(2)ロールバック処理について説明することとする。
[Flow of processing]
Next, the flow of processing of the network management device 10 according to the present embodiment will be described. Here, after (1) reverse command generation processing executed by the network management apparatus 10 is described, (2) rollback processing will be described.

(1)逆コマンド生成処理
図10は、実施例1に係る逆コマンド生成処理の手順を示すフローチャートである。この処理は、一例として、第1受付部15aにより設定の編集が受け付けられた場合に開始される。図10に示すように、第1受付部15aにより設定操作が受け付けられると(ステップS101)、例えば、監視部15bは、ステップS101で設定操作が行われたネットワーク装置30から「startup-config」及び「running-config」を取得する(ステップS102)。
(1) Reverse Command Generation Process FIG. 10 is a flowchart showing a procedure of reverse command generation process according to the first embodiment. This process is started, for example, when the first accepting unit 15a accepts editing of the setting. As shown in FIG. 10, when the setting operation is accepted by the first accepting unit 15a (step S101), for example, the monitoring unit 15b transmits “startup-config” from the network device 30 for which the setting operation has been performed in step S101. The "running-config" is acquired (step S102).

その上で、監視部15bは、ステップS102で取得された「startup-config」及び「running-config」の2つの設定ファイルを比較することにより、2つの設定ファイルが一致するか否かを判定する(ステップS103)。   Then, the monitoring unit 15b determines whether or not the two setting files match by comparing the two setting files of “startup-config” and “running-config” acquired in step S102. (Step S103).

ここで、「startup-config」及び「running-config」が一致しない場合(ステップS103No)、設定部15cは、ステップS101で編集が受け付けられた内容に関する設定コマンドをネットワーク装置30へ送信することによりネットワーク装置30の設定を更新する(ステップS111)。この場合、設定部15cは、記憶部13に記憶された逆コマンドデータ13bのうち外部コマンド操作が検出されたネットワーク装置30に関する操作履歴レコードのフラグ1を「true」に設定することにより無効化する(ステップS112)。   Here, when “startup-config” and “running-config” do not match (No in step S103), the setting unit 15c transmits a setting command regarding the content for which the editing is accepted in step S101 to the network device 30. The setting of the device 30 is updated (step S111). In this case, the setting unit 15 c invalidates the operation history record relating to the network device 30 in which the external command operation is detected among the reverse command data 13 b stored in the storage unit 13 by setting the flag 1 to “true”. (Step S112).

一方、「startup-config」及び「running-config」が一致する場合(ステップS103Yes)、監視部15bは、記憶部13に記憶された図示しないリンクデータを参照して、ステップS101で設定の編集が受け付けられたネットワーク装置30を含むリンクに関する削除フラグに「false」が設定されているか否かを判定する(ステップS104)。   On the other hand, when “startup-config” and “running-config” match (step S103 Yes), the monitoring unit 15b refers to the link data (not shown) stored in the storage unit 13 and edits the setting in step S101. It is determined whether "false" is set in the deletion flag regarding the link including the accepted network device 30 (step S104).

このとき、リンクに関する削除フラグに「true」が設定されている場合(ステップS104No)、設定部15cは、ステップS101で編集が受け付けられた内容に関する設定コマンドをネットワーク装置30へ送信することによりネットワーク装置30の設定を更新する(ステップS111)。この場合も、設定部15cは、記憶部13に記憶された逆コマンドデータ13bのうちリンクの削除が検出されたネットワーク装置30に関する操作履歴レコードのフラグ2を「true」に設定することにより無効化する(ステップS112)。   At this time, when “true” is set in the deletion flag related to the link (No at step S104), the setting unit 15c transmits the setting command regarding the content for which the editing is accepted at step S101 to the network device 30. The setting of 30 is updated (step S111). Also in this case, the setting unit 15c invalidates the setting of the flag 2 of the operation history record related to the network device 30 in which the deletion of the link is detected among the reverse command data 13b stored in the storage unit 13 as "true". (Step S112).

一方、リンクに関する削除フラグに「false」が設定されている場合(ステップS104Yes)、監視部15bは、ステップS102でネットワーク装置30から取得された「startup-config」と、記憶部13がネットワーク装置30の管理用に記憶する「startup-config」とを比較する(ステップS105)。   On the other hand, when “false” is set in the deletion flag related to the link (Yes at Step S104), the monitoring unit 15b determines that the “startup-config” acquired from the network device 30 at Step S102 and the storage unit 13 are the network device 30. And “startup-config” stored for the management of (step S105).

ここで、2つの「startup-config」が一致しない場合(ステップS105No)、上記の外部コマンド操作が行われた公算が高いと判断できる。この場合、設定部15cは、ステップS101で編集が受け付けられた内容に関する設定コマンドをネットワーク装置30へ送信することによりネットワーク装置30の設定を更新する(ステップS111)。この場合にも、設定部15cは、記憶部13に記憶された逆コマンドデータ13bのうち外部コマンド操作が検出されたネットワーク装置30に関する操作履歴レコードのフラグ1を「true」に設定することにより無効化する(ステップS112)。   Here, when the two “startup-config” do not match (No in step S105), it can be determined that the probability that the above external command operation has been performed is high. In this case, the setting unit 15c updates the setting of the network device 30 by transmitting, to the network device 30, a setting command related to the content for which the editing has been accepted in step S101 (step S111). In this case as well, the setting unit 15 c is invalidated by setting the flag 1 of the operation history record related to the network device 30 in which the external command operation is detected among the reverse command data 13 b stored in the storage unit 13 to “true”. (Step S112).

一方、ネットワーク管理装置10及びネットワーク装置30の間で「startup-config」が一致する場合(ステップS105Yes)、設定部15cは、ステップS101で編集が受け付けられた内容に関する設定コマンドをネットワーク装置30へ送信することによりネットワーク装置30の設定を更新する(ステップS106)。   On the other hand, when “startup-config” matches between the network management device 10 and the network device 30 (Yes at step S105), the setting unit 15c transmits, to the network device 30, a setting command regarding the content for which editing is accepted at step S101. By doing this, the setting of the network device 30 is updated (step S106).

その後、逆コマンド生成部15dは、ネットワーク装置30から更新後の「running-config」を取得した上で更新前後の「running-config」を比較することにより、2つの「running-config」の差分を抽出する(ステップS107)。   After that, the reverse command generation unit 15d obtains the updated "running-config" from the network device 30, and then compares the difference between the two "running-config" by comparing the "running-config" before and after the update. It extracts (Step S107).

続いて、逆コマンド生成部15dは、2つの「running-config」の差分から設定操作が設定値の変更であるか否かを判定する(ステップS108)。そして、設定操作が設定値の変更である場合(ステップS108Yes)、逆コマンド生成部15dは、次のようにして逆コマンドを生成する。すなわち、逆コマンド生成部15dは、当該設定操作が行われたネットワーク装置30ごとに「running-config」に含まれる項目のうち差分が抽出された項目の設定値を当該設定操作前の設定値へ変更する逆コマンドを生成する(ステップS109)。   Subsequently, the reverse command generation unit 15 d determines whether the setting operation is a change of the setting value from the difference between the two “running-config” (step S 108). Then, if the setting operation is the change of the setting value (Yes at Step S108), the reverse command generation unit 15d generates a reverse command as follows. That is, the reverse command generation unit 15d changes the setting value of the item from which the difference is extracted among the items included in "running-config" for each of the network devices 30 for which the setting operation has been performed to the setting value before the setting operation. A reverse command to be changed is generated (step S109).

また、設定操作が設定値の変更でない場合(ステップS108No)、逆コマンド生成部15dは、2つの「running-config」の差分から設定操作が新規登録であるか否かを判定する(ステップS110)。そして、設定操作が新規登録である場合(ステップS110Yes)、逆コマンド生成部15dは、当該設定操作が行われたネットワーク装置30ごとに「running-config」に含まれる項目のうち差分が抽出された項目の設定値を削除する逆コマンドを生成する(ステップS1101)。一方、設定操作が新規登録でない場合(ステップS110No)、設定操作が設定値の削除であると判明する。この場合、逆コマンド生成部15dは、当該設定操作が行われたネットワーク装置30ごとに「running-config」に含まれる項目のうち差分が抽出された項目の設定値を当該削除操作前の設定値で新規登録する逆コマンドを生成する(ステップS1102)。   In addition, when the setting operation is not the change of the setting value (No at Step S108), the reverse command generation unit 15d determines whether the setting operation is a new registration from the difference between the two "running-config" (Step S110). . Then, if the setting operation is new registration (Yes at step S110), the reverse command generating unit 15d extracts the difference among the items included in “running-config” for each of the network devices 30 for which the setting operation has been performed. A reverse command for deleting the setting value of the item is generated (step S1101). On the other hand, when the setting operation is not new registration (No at step S110), it is determined that the setting operation is deletion of the setting value. In this case, the reverse command generation unit 15d sets the setting value of the item from which the difference is extracted among the items included in "running-config" for each of the network devices 30 for which the setting operation has been performed, to the setting value before the deletion operation. In step S1102, a reverse command to be newly registered is generated.

その上で、設定部15cは、ネットワーク装置30から更新後の「startup-config」または「startup-config」の更新日時を取得し、記憶部13がネットワーク装置30の管理用に記憶する「startup-config」または「startup-config」の更新日時を上書き更新する(ステップS113)。   Then, the setting unit 15 c acquires the updated date and time of the “startup-config” or “startup-config” after update from the network device 30, and stores the storage unit 13 for management of the network device 30 “startup— The update date and time of “config” or “startup-config” is overwritten and updated (step S113).

その後、設定部15cは、ステップS101で受け付けた設定操作に関するレコードを記憶部13に記憶された操作履歴データ13aに追加登録し(ステップS114)、処理を終了する。ここで、ステップS114では、ステップS103の分岐でNoと判定された場合、設定部15cは、記憶部13に記憶された操作履歴データ13aのうち外部コマンド操作が検出されたネットワーク装置30のデバイス名を設定操作内容のフィールドに含み、かつ外部コマンド操作が検出された時点以前のレコードが持つフラグ1に「true」を設定する。また、ステップS114では、ステップS104の分岐でNoと判定された場合、設定部15cは、記憶部13に記憶された操作履歴データ13aのうちリンクの削除が検出されたネットワーク装置30のデバイス名を設定操作内容のフィールドに含み、かつリンクの削除が検出された時点以前のレコードが持つフラグ2に「true」を設定する。また、ステップS114では、ステップS105の分岐でNoと判定された場合、設定部15cは、記憶部13に記憶された操作履歴データ13aのうち外部コマンド操作が検出されたネットワーク装置30のデバイス名を設定操作内容のフィールドに含み、かつ外部コマンド操作が検出された時点以前のレコードが持つフラグ1に「true」を設定する。   Thereafter, the setting unit 15c additionally registers a record regarding the setting operation received in step S101 in the operation history data 13a stored in the storage unit 13 (step S114), and ends the process. Here, in step S114, when it is determined No in the branch of step S103, the setting unit 15c determines the device name of the network device 30 in which the external command operation is detected among the operation history data 13a stored in the storage unit 13. Is set in the field of the setting operation content and “true” is set in the flag 1 of the record before the time when the external command operation is detected. Further, in step S114, when the branch of step S104 is determined to be No, the setting unit 15c sets the device name of the network device 30 in which deletion of the link is detected among the operation history data 13a stored in the storage unit 13. "True" is set to the flag 2 included in the field of the setting operation content and included in the record before the point when deletion of the link is detected. Further, in step S114, when the branch of step S105 is determined as No, the setting unit 15c selects the device name of the network device 30 in which the external command operation is detected among the operation history data 13a stored in the storage unit 13. "True" is set to the flag 1 included in the field of the setting operation content and included in the record before the time when the external command operation is detected.

(2)ロールバック処理
図11及び図12は、実施例1に係るロールバック処理の手順を示すフローチャートである。この処理は、一例として、クライアント端末50からロールバックの対象とされる設定操作の一覧を含むロールバック一覧画面の閲覧要求を受け付けた場合に開始される。
(2) Roll Back Process FIGS. 11 and 12 are flowcharts showing the procedure of the roll back process according to the first embodiment. This process is started, for example, when a request for viewing a rollback list screen including a list of setting operations to be rolled back is received from the client terminal 50.

図11に示すように、ロールバック制御部15eは、記憶部13に記憶された操作履歴データ13aを読み出す(ステップS301)。続いて、ロールバック制御部15eは、操作履歴データ13aに含まれるレコードのうちレコードを1つ選択する(ステップS302)。   As illustrated in FIG. 11, the rollback control unit 15e reads the operation history data 13a stored in the storage unit 13 (step S301). Subsequently, the rollback control unit 15 e selects one of the records included in the operation history data 13 a (step S 302).

続いて、ロールバック制御部15eは、ステップS302で選択された操作履歴データ13aのレコードが持つロールバックエラーのフラグ3に「false」が設定されているか否かを判定する(ステップS303)。   Subsequently, the rollback control unit 15 e determines whether “false” is set in the rollback error flag 3 of the record of the operation history data 13 a selected in step S 302 (step S 303).

このとき、ロールバックエラーのフラグ3に「true」が設定されている場合(ステップS303No)、ステップS302で選択されたレコードに対応する設定操作のロールバック処理が過去に実施されているものの、その結果がエラーであったことがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバックエラー」を割り当てる(ステップS304)。その後、ステップS313の処理へ移行する。   At this time, when “true” is set in flag 3 of the rollback error (No at step S303), although the rollback processing of the setting operation corresponding to the record selected at step S302 is performed in the past, It turns out that the result was an error. In this case, the rollback control unit 15 e assigns “rollback error” to the status of the rollback regarding the record (step S 304). Thereafter, the process proceeds to step S313.

一方、ロールバックエラーのフラグ3に「false」が設定されている場合(ステップS303Yes)、ロールバック制御部15eは、ステップS302で選択された操作履歴データ13aのレコードに対応する設定操作がユーザ権限の範囲内か否かをさらに判定する(ステップS305)。このとき、設定操作がユーザ権限の範囲外である場合(ステップS305No)、ロールバック制御部15eは、ステップS302で選択された操作履歴データ13aのレコードに関するロールバックのステータスに「一覧表示対象外」を割り当てる(ステップS3051)。その後、ステップS313の処理へ移行する。   On the other hand, when the flag 3 of rollback error is set to “false” (Yes at step S303), the rollback control unit 15e determines that the setting operation corresponding to the record of the operation history data 13a selected at step S302 is the user authority. It is further determined whether it is within the range of (step S305). At this time, when the setting operation is out of the range of the user authority (No at Step S305), the rollback control unit 15e "out of list display target" in the status of rollback regarding the record of the operation history data 13a selected at Step S302. Are assigned (step S3051). Thereafter, the process proceeds to step S313.

また、設定操作がユーザ権限の範囲内である場合(ステップS305Yes)、ロールバック制御部15eは、ステップS302で選択された操作履歴データ13aのレコードが持つ外部コマンド操作のフラグ1に「false」が設定されているか否かをさらに判定する(ステップS307)。このとき、外部コマンド操作のフラグ1に「true」が設定されている場合(ステップS307No)、当該レコードに対応する設定操作が行われた後に外部コマンド操作が実施されていることがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック不可」を割り当てる(ステップS306)。その後、ステップS313の処理へ移行する。   When the setting operation is within the range of the user authority (Yes at step S305), the rollback control unit 15e sets "false" in flag 1 of the external command operation of the record of the operation history data 13a selected at step S302. It is further determined whether it is set (step S307). At this time, when “true” is set in the flag 1 of the external command operation (No at step S307), it is understood that the external command operation is performed after the setting operation corresponding to the record is performed. In this case, the rollback control unit 15 e assigns “rollback impossible” to the status of the rollback regarding the record (step S 306). Thereafter, the process proceeds to step S313.

また、外部コマンド操作のフラグ1に「false」が設定されている場合(ステップS307Yes)、ロールバック制御部15eは、次のような処理をさらに実行する。すなわち、ロールバック制御部15eは、記憶部13に記憶された図示しないデバイスデータに含まれるネットワーク装置30のうち、先に選択された操作履歴データ13aのレコードが持つフィールド「設定操作内容」に含まれるネットワーク装置30の削除フラグに「false」が設定されているか否かを判定する(ステップS308)。   In addition, when “false” is set to the flag 1 of the external command operation (Yes at step S307), the rollback control unit 15e further executes the following processing. That is, the rollback control unit 15 e is included in the field “setting operation content” of the record of the operation history data 13 a selected earlier among the network devices 30 included in the device data (not shown) stored in the storage unit 13. It is determined whether "false" is set in the deletion flag of the target network device 30 (step S308).

このとき、ネットワーク装置30の削除フラグに「true」が設定されている場合(ステップS308No)、当該レコードに対応する設定操作が行われた後にネットワーク装置30に関するデータがデバイスデータから削除されていることがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック不可」を割り当てる(ステップS306)。その後、ステップS313の処理へ移行する。   At this time, when "true" is set to the deletion flag of the network device 30 (No at step S308), data on the network device 30 is deleted from the device data after the setting operation corresponding to the record is performed. I understand. In this case, the rollback control unit 15 e assigns “rollback impossible” to the status of the rollback regarding the record (step S 306). Thereafter, the process proceeds to step S313.

また、ネットワーク装置30の削除フラグに「false」が設定されている場合(ステップS308Yes)、ロールバック制御部15eは、ステップS302で選択された操作履歴データ13aのレコードが持つリンクの編集・削除のフラグ2に「false」が設定されているか否かをさらに判定する(ステップS309)。このとき、リンクの編集・削除のフラグ2に「true」が設定されている場合(ステップS309No)、当該レコードに対応する設定操作が行われた後にネットワーク装置30を含むリンクがトポロジから削除されていることがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック不可」を割り当てる(ステップS306)。その後、ステップS313の処理へ移行する。   Further, when “false” is set in the deletion flag of the network device 30 (Yes at step S308), the rollback control unit 15e performs editing and deletion of the link of the record of the operation history data 13a selected at step S302. It is further determined whether "false" is set to the flag 2 (step S309). At this time, when “true” is set to flag 2 of link editing / deletion (No at step S309), the link including the network device 30 is deleted from the topology after the setting operation corresponding to the record is performed. I understand that In this case, the rollback control unit 15 e assigns “rollback impossible” to the status of the rollback regarding the record (step S 306). Thereafter, the process proceeds to step S313.

また、リンクの編集・削除のフラグ2に「false」が設定されている場合(ステップS309Yes)、ロールバック制御部15eは、ステップS302で選択された操作履歴データ13aのレコードが持つフィールド「設定操作内容」に含まれるネットワーク装置30ごとに、ロールバック一覧画面の閲覧要求を受け付けた時点から遡って最初の設定操作、すなわち最新の設定操作であるかをさらに判定する(ステップS310)。   When the flag 2 of link editing / deletion is set to “false” (step S309 Yes), the rollback control unit 15e sets the field “setting operation of the record of the operation history data 13a selected in step S302. For each network device 30 included in the “content”, it is determined whether the first setting operation, that is, the latest setting operation is performed retroactively from the point of time when the request for browsing the rollback list screen is received (step S310).

ここで、全てのネットワーク装置30において最新の設定操作である場合(ステップS310Yes)、ロールバック処理の実行に支障がない公算が高いことを判断できる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック可」を割り当てる(ステップS311)。   Here, in the case where the setting operation is the latest in all the network devices 30 (Yes in step S310), it can be determined that there is a high probability that there will be no hindrance to the execution of the rollback processing. In this case, the rollback control unit 15 e assigns “rollback possible” to the status of the rollback regarding the record (step S 311).

一方、いずれかのネットワーク装置30において最新の設定操作でない場合(ステップS310No)、ステップS302で選択された操作履歴データ13aのレコードに対応する設定操作よりも前に行われた設定操作の中でもフィールド「設定操作内容」に含まれるネットワーク装置30よりも先に行われた関連の設定操作に関するロールバック処理が実行されることを条件に、先に選択された操作履歴データ13aのレコードに対応する設定操作のロールバックを許可してもよいことがわかる。この場合、ロールバック制御部15eは、当該レコードに関するロールバックのステータスに「ロールバック待ち」を割り当てる(ステップS312)。   On the other hand, if it is not the latest setting operation in any of the network devices 30 (No at Step S310), the field “in the setting operation performed before the setting operation corresponding to the record of the operation history data 13a selected at Step S302. The setting operation corresponding to the record of the operation history data 13a selected earlier on condition that the rollback process related to the related setting operation performed prior to the network device 30 included in the “setting operation content” is executed. It is understood that the rollback of may be permitted. In this case, the rollback control unit 15 e assigns “waiting for rollback” to the status of rollback regarding the record (step S 312).

その後、操作履歴データ13aに含まれる各レコードが選択されるまで(ステップS313No)、上記のステップS302〜ステップS312までの処理が繰り返し実行される。そして、操作履歴データ13aに含まれる各レコードが選択された場合(ステップS313Yes)、出力制御部15fは、ロールバック制御部15eにより設定操作ごとに割り当てられたロールバックのステータスにしたがってロールバック一覧画面をクライアント端末50に表示させる(ステップS314)。   Thereafter, the process from step S302 to step S312 is repeatedly executed until each record included in the operation history data 13a is selected (No in step S313). Then, when each record included in the operation history data 13a is selected (Yes in step S313), the output control unit 15f displays a rollback list screen according to the rollback status allocated for each setting operation by the rollback control unit 15e. Are displayed on the client terminal 50 (step S314).

その後、第2受付部15gは、ロールバック一覧画面に含まれるレコードの一覧の中からいずれかのレコードの選択を受け付ける(ステップS315)。このとき、ロールバックのステータスとして「ロールバック可」が割り当てられたレコードが選択された場合(ステップS316Yes)、出力制御部15fは、ロールバック処理の実行指示を受け付ける実行ボタンをアクティブな状態で表示させる(ステップS317)。   Thereafter, the second accepting unit 15g accepts selection of any one of the records in the list of records included in the rollback list screen (step S315). At this time, when the record to which “rollback is possible” is assigned as the status of rollback is selected (Yes at step S316), the output control unit 15f displays an execution button for receiving an execution instruction of rollback processing in an active state. (Step S317).

また、ロールバックのステータスとして「ロールバック待ち」が割り当てられたレコードが選択された場合(ステップS318Yes)、出力制御部15fにより次のような表示が行われる。すなわち、出力制御部15fは、ステップS315で選択されたレコードに対応する設定操作よりも前に行われた設定操作であり、かつ当該選択されたレコードが持つフィールド「設定操作内容」に含まれるネットワーク装置30に関する設定操作が先に行われた関連の設定操作に対応するレコードが他のレコードの表示形態と異なる区別可能な表示形態、例えば文字や塗り潰しの表示色の変更、あるいは網掛け等の強調表示で表示させると共に、実行ボタンを非アクティブな状態で表示させる(ステップS319及びステップS320)。   When a record to which “wait for rollback” is assigned as a status of rollback is selected (Yes at step S318), the following display is performed by the output control unit 15f. That is, the output control unit 15f is a setting operation performed before the setting operation corresponding to the record selected in step S315, and is included in the field "setting operation content" of the selected record. The record corresponding to the related setting operation for which the setting operation with respect to the apparatus 30 has been performed earlier is distinguishable from the display form of the other records, such as a distinguishable display form such as changing the display color of characters and filling, or highlighting The display is displayed, and the execution button is displayed in an inactive state (steps S319 and S320).

また、ロールバックのステータスとして「ロールバック不可」が割り当てられたレコードが選択された場合(ステップS318No)、出力制御部15fは、実行ボタンを非アクティブな状態で表示させる(ステップS320)。   When the record to which “rollback impossible” is assigned as the status of roll back is selected (No at step S318), the output control unit 15f displays the execute button in an inactive state (step S320).

その後、ロールバックの実行ボタンが操作されるまで(ステップS321No)、上記のステップS315〜ステップS320の処理が繰り返し実行される。そして、ロールバックの実行ボタンが操作された場合(ステップS321Yes)、ロールバック制御部15eは、実行ボタンの状態がアクティブであるか否かを判定する(ステップS322)。   After that, until the roll back execution button is operated (No at step S321), the processes at steps S315 to S320 are repeatedly executed. When the rollback execution button is operated (Yes at step S321), the rollback control unit 15e determines whether the state of the execution button is active (step S322).

ここで、実行ボタンの状態がアクティブである場合(ステップS322Yes)、ロールバック制御部15eは、当該指定が受け付けられた設定操作に対応する逆コマンドを実行することにより、設定操作をロールバックするロールバック処理を実行する(ステップS323)。なお、実行ボタンの状態が非アクティブである場合(ステップS322No)、当該指定が受け付けられた設定操作のロールバック処理は規制される。この場合、ステップS315の処理に戻る。   Here, when the state of the execution button is active (step S322 Yes), the roll back control unit 15e performs a roll back of the setting operation by executing a reverse command corresponding to the setting operation for which the specification has been received. The back process is executed (step S323). When the state of the execution button is inactive (No in step S322), the rollback process of the setting operation for which the specification has been received is restricted. In this case, the process returns to step S315.

その後、ロールバック制御部15eは、当該ロールバック処理により設定が更新された後の「startup-config」をロールバック処理が実行された各ネットワーク装置30から取得した上で記憶部13がネットワーク装置30の管理用に記憶する「startup-config」または「startup-config」の更新日時を上書き更新する(ステップS324)と共に、当該ロールバック処理が実行された設定操作に対応するレコードを操作履歴データ13aから削除する(ステップS325)。その後、ステップS301で説明した操作履歴データの取得に戻り、以降の処理を繰り返し実行する。   Thereafter, the rollback control unit 15 e acquires “startup-config” after the setting is updated by the rollback process from each of the network devices 30 on which the rollback process is performed, and then the storage unit 13 acquires the “network”. The update date and time of “startup-config” or “startup-config” to be stored for management is overwritten and updated (step S324), and the record corresponding to the setting operation for which the rollback process is performed is recorded from the operation history data 13a. It deletes (Step S325). Thereafter, the process returns to the acquisition of the operation history data described in step S301, and the subsequent processes are repeatedly executed.

[効果の一側面]
上述してきたように、本実施例に係るネットワーク管理装置10は、ネットワーク装置30が記憶する設定データ及びネットワーク管理装置10が記憶する設定データに差分がある場合に当該ネットワーク装置30に対して過去に生成した逆コマンドを無効化する。したがって、本実施例に係るネットワーク管理装置10によれば、逆コマンドの実行により発生するネットワークの不具合を抑制できる。
[One side of effect]
As described above, when there is a difference between the setting data stored in the network device 30 and the setting data stored in the network management device 10, the network management device 10 according to the present embodiment sends a difference to the network device 30 in the past. Disable the generated reverse command. Therefore, according to the network management apparatus 10 according to the present embodiment, it is possible to suppress the network failure that occurs due to the execution of the reverse command.

さて、これまで開示の装置に関する実施例について説明したが、本発明は上述した実施例以外にも、種々の異なる形態にて実施されてよいものである。そこで、以下では、本発明に含まれる他の実施例を説明する。   Although the embodiments of the disclosed apparatus have been described above, the present invention may be implemented in various different forms other than the above-described embodiments. Therefore, another embodiment included in the present invention will be described below.

[逆コマンド]
上記の実施例1では、外部コマンド操作が検出された場合、逆コマンドの生成を規制する場合を例示したが、外部コマンドにより行われた設定であっても、更新前後の設定ファイルの差分から逆コマンドを割り出す解釈が可能である設定であれば、ロールバックを実行することとしてもかまわない。
Reverse command
In the first embodiment described above, the case where the generation of the reverse command is restricted when the external command operation is detected is exemplified, but even if the setting is performed by the external command, the reverse of the setting file before and after the update is reversed. It is also possible to execute rollback if it is a setting that can be interpreted to determine a command.

[ロールバック]
上記の実施例1では、ネットワーク管理システム1が操作を1つずつロールバックさせる場合を例示したが、一度に複数の操作をロールバックさせることもできる。この場合、一連の逆コマンドを実行することとしてもよいし、一連の逆コマンドが同種のコマンドであるか否かを判定し、同種のコマンドである場合、ロールバックが指定された操作、すなわち複数の操作のうち最も古くに行われた操作に対応する逆コマンドだけを実行させることもできる。例えば、全ての逆コマンドが設定値の変更である場合、一度の設定値の変更によりロールバックが指定された操作の直前の操作まで設定を戻すこともできる。
[roll back]
Although the case where the network management system 1 rolls back the operation one by one is exemplified in the above-described first embodiment, it is also possible to roll back a plurality of operations at one time. In this case, a series of reverse commands may be executed, or it may be determined whether the series of reverse commands is the same type of command, and if it is the same type of command, an operation for which rollback is specified, that is, a plurality of operations. It is also possible to execute only the reverse command corresponding to the oldest operation among the operations of. For example, when all the reverse commands are the change of the setting value, the setting can be returned to the operation immediately before the operation for which the rollback is specified by changing the setting value once.

[分散および統合]
また、図示した各装置の各構成要素は、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、第1受付部15a、監視部15b、設定部15c、逆コマンド生成部15d、ロールバック制御部15e、出力制御部15fまたは第2受付部15gをネットワーク管理装置10の外部装置としてネットワーク経由で接続するようにしてもよい。また、第1受付部15a、監視部15b、設定部15c、逆コマンド生成部15d、ロールバック制御部15e、出力制御部15fまたは第2受付部15gを別の装置がそれぞれ有し、ネットワーク接続されて協働することで、上記のネットワーク管理装置10の機能を実現するようにしてもよい。
Distributed and integrated
Further, each component of each device shown in the drawings does not necessarily have to be physically configured as shown in the drawings. That is, the specific form of the distribution and integration of each device is not limited to the illustrated one, and all or a part thereof may be functionally or physically dispersed in any unit depending on various loads, usage conditions, etc. It can be integrated and configured. For example, the first reception unit 15a, the monitoring unit 15b, the setting unit 15c, the reverse command generation unit 15d, the rollback control unit 15e, the output control unit 15f or the second reception unit 15g can be used as an external device of the network management apparatus 10 via the network. It may be connected. In addition, another apparatus has the first reception unit 15a, the monitoring unit 15b, the setting unit 15c, the reverse command generation unit 15d, the rollback control unit 15e, the output control unit 15f, or the second reception unit 15g, and is network-connected. The functions of the above-mentioned network management device 10 may be realized by cooperating together.

[逆コマンド生成プログラム]
また、上記の実施例で説明した各種の処理は、予め用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータで実行することによって実現することができる。そこで、以下では、図13を用いて、上記の実施例と同様の機能を有する逆コマンド生成プログラムを実行するコンピュータの一例について説明する。
[Inverse command generator]
The various processes described in the above embodiments can be realized by executing a prepared program on a computer such as a personal computer or a workstation. Therefore, an example of a computer that executes a reverse command generation program having the same function as that of the above embodiment will be described below with reference to FIG.

図13は、実施例1及び実施例2に係る逆コマンド生成プログラムを実行するコンピュータのハードウェア構成例を示す図である。図13に示すように、コンピュータ100は、操作部110aと、スピーカ110bと、カメラ110cと、ディスプレイ120と、通信部130とを有する。さらに、このコンピュータ100は、CPU150と、ROM160と、HDD170と、RAM180とを有する。これら110〜180の各部はバス140を介して接続される。   FIG. 13 is a diagram illustrating an example of a hardware configuration of a computer that executes the reverse command generation program according to the first embodiment and the second embodiment. As shown in FIG. 13, the computer 100 includes an operation unit 110 a, a speaker 110 b, a camera 110 c, a display 120, and a communication unit 130. The computer 100 further includes a CPU 150, a ROM 160, an HDD 170, and a RAM 180. The components 110 to 180 are connected via a bus 140.

HDD170には、図13に示すように、上記の実施例1で示した第1受付部15a、監視部15b、設定部15c、逆コマンド生成部15d、ロールバック制御部15e、出力制御部15fまたは第2受付部15gと同様の機能を発揮する逆コマンド生成プログラム170aが記憶される。この逆コマンド生成プログラム170aは、図2に示した第1受付部15a、監視部15b、設定部15c、逆コマンド生成部15d、ロールバック制御部15e、出力制御部15fまたは第2受付部15gの各構成要素と同様、統合又は分離してもかまわない。すなわち、HDD170には、必ずしも上記の実施例1で示した全てのデータが格納されずともよく、処理に用いるデータがHDD170に格納されればよい。   In the HDD 170, as shown in FIG. 13, the first reception unit 15a, the monitoring unit 15b, the setting unit 15c, the reverse command generation unit 15d, the rollback control unit 15e, the output control unit 15f or the output control unit 15f described in the first embodiment A reverse command generation program 170a that exerts the same function as the second reception unit 15g is stored. The reverse command generation program 170a is implemented by the first reception unit 15a, the monitoring unit 15b, the setting unit 15c, the reverse command generation unit 15d, the rollback control unit 15e, the output control unit 15f, or the second reception unit 15g illustrated in FIG. Like each component, it may be integrated or separated. That is, the HDD 170 may not necessarily store all the data described in the first embodiment, and data used for processing may be stored in the HDD 170.

このような環境の下、CPU150は、HDD170から逆コマンド生成プログラム170aを読み出した上でRAM180へ展開する。この結果、逆コマンド生成プログラム170aは、図13に示すように、逆コマンド生成プロセス180aとして機能する。この逆コマンド生成プロセス180aは、RAM180が有する記憶領域のうち逆コマンド生成プロセス180aに割り当てられた領域にHDD170から読み出した各種データを展開し、この展開した各種データを用いて各種の処理を実行する。例えば、逆コマンド生成プロセス180aが実行する処理の一例として、図10〜図12に示す処理などが含まれる。なお、CPU150では、必ずしも上記の実施例1で示した全ての処理部が動作せずともよく、実行対象とする処理に対応する処理部が仮想的に実現されればよい。   Under such an environment, the CPU 150 reads the reverse command generation program 170 a from the HDD 170 and then develops the program on the RAM 180. As a result, the reverse command generation program 170a functions as a reverse command generation process 180a as shown in FIG. The reverse command generation process 180a expands various data read from the HDD 170 in the area allocated to the reverse command generation process 180a in the storage area of the RAM 180, and executes various processes using the expanded various data. . For example, the processes shown in FIGS. 10 to 12 are included as an example of the process executed by the reverse command generation process 180a. In the CPU 150, all the processing units described in the first embodiment may not necessarily operate, and processing units corresponding to processing to be executed may be virtually realized.

なお、上記の逆コマンド生成プログラム170aは、必ずしも最初からHDD170やROM160に記憶されておらずともかまわない。例えば、コンピュータ100に挿入されるフレキシブルディスク、いわゆるFD、CD−ROM、DVDディスク、光磁気ディスク、ICカードなどの「可搬用の物理媒体」に各プログラムを記憶させる。そして、コンピュータ100がこれらの可搬用の物理媒体から各プログラムを取得して実行するようにしてもよい。また、公衆回線、インターネット、LAN、WANなどを介してコンピュータ100に接続される他のコンピュータまたはサーバ装置などに各プログラムを記憶させておき、コンピュータ100がこれらから各プログラムを取得して実行するようにしてもよい。   The reverse command generation program 170a may not necessarily be stored in the HDD 170 or the ROM 160 from the beginning. For example, each program is stored in a “portable physical medium” such as a flexible disk, so-called FD, CD-ROM, DVD disk, magneto-optical disk, or IC card, which is inserted into the computer 100. Then, the computer 100 may acquire each program from these portable physical media and execute it. Also, each program is stored in another computer or server device connected to the computer 100 via a public line, the Internet, LAN, WAN, etc., and the computer 100 acquires and executes each program from these. You may

1 ネットワーク管理システム
10 ネットワーク管理装置
11 通信I/F部
13 記憶部
13a 操作履歴データ
13b 逆コマンドデータ
15 制御部
15a 第1受付部
15b 監視部
15c 設定部
15d 逆コマンド生成部
15e ロールバック制御部
15f 出力制御部
15g 第2受付部
30A,30B,30C ネットワーク装置
DESCRIPTION OF SYMBOLS 1 network management system 10 network management apparatus 11 communication I / F unit 13 storage unit 13a operation history data 13b reverse command data 15 control unit 15a first reception unit 15b monitoring unit 15c setting unit 15d reverse command generation unit 15e rollback control unit 15f Output control unit 15g Second reception unit 30A, 30B, 30C Network device

Claims (5)

通信装置の設定が更新される度に前記通信装置が記憶する第1の設定データを所定の記憶部に格納する処理と、
通信装置に対する設定操作を受け付ける処理と、
受け付けた前記設定操作の対象の前記通信装置から前記通信装置が記憶する第2の設定データを取得する処理と、
取得した前記第2の設定データに基づいて前記通信装置へ送信する設定コマンドの逆コマンドを生成する処理と、
前記取得する処理で取得された前記第2の設定データと前記記憶部に記憶された前記第1の設定データとに差分がある場合に前記記憶部に記憶された前記第1の設定データに基づいて生成した逆コマンドを無効化する処理と、
をコンピュータに実行させることを特徴する逆コマンド生成プログラム。
A process of storing, in a predetermined storage unit, first setting data stored in the communication device each time the setting of the communication device is updated;
A process of receiving a setting operation on the communication device;
A process of acquiring second setting data stored in the communication device from the communication device targeted for the received setting operation;
A process of generating a reverse command of a setting command to be transmitted to the communication device based on the acquired second setting data;
Based on the first setting data stored in the storage unit when there is a difference between the second setting data acquired in the acquisition process and the first setting data stored in the storage unit Processing to invalidate the reverse command generated by
An inverse command generation program characterized by causing a computer to execute.
前記取得する処理は、前記通信装置の不揮発性メモリに記憶される第3の設定データと、前記通信装置の揮発性メモリに記憶された前記第2の設定データとを取得し、
前記無効化する処理は、前記取得する処理で取得された第1の設定データおよび第3の設定データに差分がある場合、または前記第2の設定データと前記記憶部に記憶された前記第1の設定データとに差分がある場合に、前記記憶部に記憶された前記第1の設定データに基づいて生成した逆コマンドを無効化することを特徴とする請求項1に記載の逆コマンド生成プログラム。
The acquiring process acquires third setting data stored in a non-volatile memory of the communication device, and the second setting data stored in a volatile memory of the communication device.
The invalidating process may be performed when there is a difference between the first setting data and the third setting data acquired in the acquiring process, or the first setting data stored in the storage unit and the second setting data. The reverse command generation program according to claim 1, wherein the reverse command generated based on the first setting data stored in the storage unit is invalidated when there is a difference between the setting data and the second setting data. .
前記通信装置の設定が更新される前後で前記通信装置が記憶する設定データの差分を抽出する処理と、
前記抽出する処理で抽出された差分から前記設定操作が設定値の変更または設定値の新規登録または削除のいずれかを判定する処理とをさらに前記コンピュータに実行させ、
前記生成する処理は、前記設定操作が設定値の変更である場合に更新前後の差分が抽出された項目の設定値を当該設定操作前の設定値へ変更する逆コマンドを生成し、前記設定操作が設定値の新規登録である場合に更新前後の差分が抽出された項目の設定値を削除する逆コマンドを生成し、前記設定操作が設定値の削除である場合に更新前後の差分が抽出された項目の設定値を当該削除操作前の設定値で新規登録する逆コマンドを生成することを特徴とする請求項1に記載の逆コマンド生成プログラム。
A process of extracting a difference between setting data stored in the communication device before and after the setting of the communication device is updated;
And causing the computer to further execute a process of determining whether the setting value is changed or whether the setting value is newly registered or deleted from the difference extracted in the extracting process.
The process of generating generates a reverse command to change the setting value of the item from which the difference before and after updating is extracted to the setting value before the setting operation when the setting operation is a change of the setting value, and the setting operation Generates a reverse command to delete the setting value of the item from which the difference before and after updating extracted the setting value when the setting value is new registration, and the difference before and after updating is extracted when the setting operation is deletion of the setting value The reverse command generation program according to claim 1, wherein a reverse command is generated to newly register the setting value of the selected item with the setting value before the deletion operation.
通信装置の設定が更新される度に前記通信装置が記憶する第1の設定データを所定の記憶部に格納する処理と、
通信装置に対する設定操作を受け付ける処理と、
受け付けた前記設定操作の対象の前記通信装置から前記通信装置が記憶する第2の設定データを取得する処理と、
取得した前記第2の設定データに基づいて前記通信装置へ送信する設定コマンドの逆コマンドを生成する処理と、
前記取得する処理で取得された前記第2の設定データと前記記憶部に記憶された前記第1の設定データとに差分がある場合に前記記憶部に記憶された前記第1の設定データに基づいて生成した逆コマンドを無効化する処理と、
がコンピュータにより実行されることを特徴する逆コマンド生成方法。
A process of storing, in a predetermined storage unit, first setting data stored in the communication device each time the setting of the communication device is updated;
A process of receiving a setting operation on the communication device;
A process of acquiring second setting data stored in the communication device from the communication device targeted for the received setting operation;
A process of generating a reverse command of a setting command to be transmitted to the communication device based on the acquired second setting data;
Based on the first setting data stored in the storage unit when there is a difference between the second setting data acquired in the acquisition process and the first setting data stored in the storage unit Processing to invalidate the reverse command generated by
A reverse command generation method characterized in that is executed by a computer.
通信装置の設定が更新される度に前記通信装置が記憶する第1の設定データを所定の記憶部に格納する格納部と、
通信装置に対する設定操作を受け付ける受付部と、
受け付けた前記設定操作の対象の前記通信装置から前記通信装置が記憶する第2の設定データを取得する取得部と、
取得した前記第2の設定データに基づいて前記通信装置へ送信する設定コマンドの逆コマンドを生成する生成部と、
前記取得部により取得された前記第2の設定データと前記記憶部に記憶された前記第1の設定データとに差分がある場合に前記記憶部に記憶された前記第1の設定データに基づいて生成した逆コマンドを無効化する設定部と、
を有することを特徴とする逆コマンド生成装置。
A storage unit for storing, in a predetermined storage unit, first setting data stored in the communication device each time the setting of the communication device is updated;
A reception unit that receives a setting operation on the communication device;
An acquisition unit configured to acquire second setting data stored in the communication device from the communication device that is the target of the received setting operation;
A generation unit configured to generate a reverse command of a setting command to be transmitted to the communication device based on the acquired second setting data;
When there is a difference between the second setting data acquired by the acquisition unit and the first setting data stored in the storage unit, based on the first setting data stored in the storage unit A setting unit that invalidates the generated reverse command;
An inverse command generator characterized by having:
JP2017561499A 2016-01-15 2016-01-15 Reverse command generation program, reverse command generation method and reverse command generation device Active JP6525067B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/051193 WO2017122365A1 (en) 2016-01-15 2016-01-15 Reverse command generation program, reverse command generation method, and reverse command generation device

Publications (2)

Publication Number Publication Date
JPWO2017122365A1 JPWO2017122365A1 (en) 2018-09-20
JP6525067B2 true JP6525067B2 (en) 2019-06-05

Family

ID=59311186

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017561499A Active JP6525067B2 (en) 2016-01-15 2016-01-15 Reverse command generation program, reverse command generation method and reverse command generation device

Country Status (2)

Country Link
JP (1) JP6525067B2 (en)
WO (1) WO2017122365A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6881479B2 (en) * 2019-01-28 2021-06-02 株式会社安川電機 Industrial equipment management system, industrial equipment management method, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7307979B2 (en) * 2002-07-31 2007-12-11 Jeremy Benjamin As Receiver For Chiaro Networks Ltd Configuration rollback
US20060015591A1 (en) * 2004-06-08 2006-01-19 Datla Krishnam R Apparatus and method for intelligent configuration editor
JP5142186B2 (en) * 2007-07-03 2013-02-13 Kddi株式会社 Network setting restoration method and system

Also Published As

Publication number Publication date
JPWO2017122365A1 (en) 2018-09-20
WO2017122365A1 (en) 2017-07-20

Similar Documents

Publication Publication Date Title
JP5285353B2 (en) Computer system, method and computer program for managing execution of actions corresponding to a plurality of service components
JP5471666B2 (en) Network management apparatus, network management method, and network management program
JP5531692B2 (en) DEVICE MANAGEMENT DEVICE, DEVICE MANAGEMENT SYSTEM, INFORMATION MANAGEMENT METHOD, INFORMATION MANAGEMENT PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JPWO2009098909A1 (en) Virtual appliance deployment system
EP2410458A1 (en) Access control list conversion system, and method and program therefor
JP2010129028A (en) Gateway server, system for managing file, file management method, and program
JP6582445B2 (en) Thin client system, connection management device, virtual machine operating device, method, and program
JP2015142167A (en) Management device, management program and setting information management method of network device
JP2009510563A (en) Method and system for managing and organizing installation of software packages
JP3307329B2 (en) Network configuration managed access system and method
CN117729217A (en) Cloud platform and bucket management method for object storage service provided by cloud platform
US8838790B2 (en) Configuration value management apparatus and management method
CN112714166B (en) Multi-cluster management method and device for distributed storage system
JP6525067B2 (en) Reverse command generation program, reverse command generation method and reverse command generation device
JP2007257315A (en) Device for determining influence involved in program setting change and its method
JP4293169B2 (en) Network equipment control system
JP5911378B2 (en) Document management server, computer program, and document management method
US11924295B2 (en) Serving assets in a networked environment
EP3240232B1 (en) Cloud-configuration storage system, cloud-configuration storage method, and cloud-configuration storage program
JP5433659B2 (en) User information providing apparatus and program
US20110087991A1 (en) Methods and Apparatus for Reliable Entry and Enhanced Presentation of IPv6 Addresses
JP6575611B2 (en) Rollback processing control program, rollback processing control method, and rollback processing control device
EP2355409B1 (en) Network management device
JP4650607B2 (en) Network management system, network management method, and network management program
JP6733300B2 (en) Information processing apparatus and information processing system

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180606

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180606

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: 20190409

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190422

R150 Certificate of patent or registration of utility model

Ref document number: 6525067

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150