A kind of method and system of remotely configuring network element equipment
Technical field
The present invention relates to network management technology, be meant a kind of method and system of remotely configuring network element equipment especially.
Background technology
At present, a lot of functions of network element device all need by webmaster be managed for configuration, as renewal, upgrading etc., to guarantee the normal operation of network element device and network.
Generally speaking, Remote configuration to network element device all need manually be realized by the attendant, when some network element devices being reconfigured as needs, the attendant is first-selected need to discern networking configuration commands and the order of webmaster relevant configuration under all configuration modes in this network element device, manually deletes networking configuration commands and the order of webmaster relevant configuration other configuration orders (non-networking configuration commands) in addition then one by one; At last, the attendant needs manually to download all required configuration orders of this network element device, and these configuration orders are disposed to network element device.
But, there is following defective in above-mentioned processing, under the networking complex environment, because very huge of the data volume of configuration order under each configuration mode of network element device, the attendant makes mistakes when identification networking configuration commands and the order of webmaster relevant configuration easily, if this moment is some networking configuration commands and webmaster relevant configuration order deletion, the situation (network element device disconnects with webmaster and being connected) of suspension just might take place, and the user just can't carry out the Remote configuration management to network element device by webmaster; Therefore, in this case attendant's specialized capability is required very high, in addition, manually deletion or when downloading a large amount of configuration orders, the complexity that operates also can consume great amount of manpower and material resources.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and system of remotely configuring network element equipment, can solve the problem of the network element device suspension that takes place when network element device is reconfigured.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method of remotely configuring network element equipment, this method comprises:
On network element device, be provided with and keep the networking configuration mode, and with networking configuration commands and webmaster relevant configuration command configuration under described reservation networking configuration mode;
According to described reservation networking configuration mode, remove the non-networking configuration commands except that networking configuration commands and the order of webmaster relevant configuration in the described network element device.
This method further comprises:
Described non-networking configuration commands is configured under the non-reservation networking configuration mode corresponding in the network element device.
The non-networking configuration commands of described removing is specially:
Read networking configuration commands and the order of webmaster relevant configuration under the described reservation networking configuration mode, generate the reservation network profile, and restart the system of described network element device.
After restarting the system of described network element device, this method further comprises: read described networking configuration commands and the order of webmaster relevant configuration from described reservation network profile, recover the networking configuration and the gateway relevant configuration of described network element device.
The non-networking configuration commands of described removing is specially:
Read the non-networking configuration commands under the described non-reservation networking configuration mode, and described non-networking configuration commands is carried out mandatum cassatorium.
When reconfiguring network element device, this method further comprises:
Required new configuration file is uploaded to described network element device;
Described network element device reads the configuration order in the described new configuration file;
Configuration order in the described new configuration file comprises networking configuration commands and/or order of webmaster relevant configuration and/or non-networking configuration commands.
The present invention also provides a kind of system of remotely configuring network element equipment, and this system comprises: webmaster and network element device, wherein,
Described webmaster is used for being provided with on network element device and keeps the networking configuration mode, and with networking configuration commands and webmaster relevant configuration command configuration under described reservation networking configuration mode; Also be used for removing the non-networking configuration commands except that networking configuration commands and the order of webmaster relevant configuration in the described network element device according to described reservation networking configuration mode;
Described network element device is used for storage networking configuration commands and the order of webmaster relevant configuration under described reservation networking configuration mode; Also be used to store described non-networking configuration commands.
Described network element device is further used for the described non-networking configuration commands of storage under non-reservation networking configuration mode;
Accordingly, described webmaster is further used for just described non-networking configuration commands and is configured under the non-reservation networking configuration mode corresponding in the network element device.
When removing non-networking configuration commands, described webmaster is further used for reading networking configuration commands and the order of webmaster relevant configuration under the described reservation networking configuration mode, generates to keep network profile, and restarts the system of described network element device;
Accordingly, this system further comprises: database is used to store described reservation network profile;
After restarting the system of described network element device, described network element device is further used for reading described networking configuration commands and the order of webmaster relevant configuration from described reservation network profile, recovers networking configuration and gateway relevant configuration.
When removing non-networking configuration commands, described webmaster is further used for reading the non-networking configuration commands under the described non-reservation networking configuration mode, and described non-networking configuration commands is carried out mandatum cassatorium.
When reconfiguring network element device, described webmaster is further used for required new configuration file is uploaded to described network element device;
Described network element device is further used for reading the configuration order in the described new configuration file;
Configuration order in the described new configuration file comprises networking configuration commands and/or order of webmaster relevant configuration and/or non-networking configuration commands.
The scheme of remotely configuring network element equipment of the present invention, networking configuration commands and the order of webmaster relevant configuration are configured in separately under the reservation networking configuration mode, when the user need reconfigure network element device, the networking configuration commands and the order of webmaster relevant configuration that keep under the networking configuration mode are generated a reservation network profile, when network element device was restarted, read-only going bail for stayed network profile; Perhaps, directly remove the non-networking configuration commands under the non-reservation networking configuration mode on the network element device as the user.So, both can delete the non-networking configuration commands in the network element device, can guarantee again that network element device and the normal of webmaster were connected, make not suspension of network element device, and guarantee the managerial ability of webmaster network element device.Simultaneously, the present invention is configured in networking configuration commands and the order of webmaster relevant configuration separately under the reservation networking configuration mode, so the user does not need to discern seriatim each the bar configuration order under the network element device, and Direct Recognition keeps the mode of networking configuration mode just can confirm networking configuration commands and the order of webmaster relevant configuration.Therefore, the scheme of remotely configuring network element equipment of the present invention implements simply, and less demanding to the attendant saved great amount of manpower and material resources.
Description of drawings
Fig. 1 is that the networking of webmaster and network element device concerns schematic diagram;
Fig. 2 is the method flow diagram of remotely configuring network element equipment of the present invention;
Fig. 3 is the system configuration schematic diagram of remotely configuring network element equipment of the present invention.
Embodiment
The technical solution of the present invention is further elaborated below in conjunction with the drawings and specific embodiments.
Configuration order with network element device among the present invention is divided into networking configuration commands, the order of webmaster relevant configuration and non-networking configuration commands (other configuration orders except that networking configuration commands and the order of webmaster relevant configuration).The networking that is illustrated in figure 1 as webmaster and network element device concerns schematic diagram, webmaster is connected by go-between with network element device, webmaster carries out telemanagement to network element device, wherein, networking configuration commands and the order of webmaster relevant configuration are webmaster carries out telemanagement to network element device bases, must keep networking configuration commands and the order of webmaster relevant configuration on the network element device, could guarantee that network element device and the normal of webmaster are connected, and webmaster be to the managerial ability of network element device.
Figure 2 shows that the method flow schematic diagram of remotely configuring network element equipment of the present invention, comprise step:
Step 201 is provided with reservation networking configuration mode on network element device, and networking configuration commands and webmaster relevant configuration command configuration are being kept under the networking configuration mode.
Among the present invention, the configuration order of storing on the network element device is classified: networking configuration commands, the order of webmaster relevant configuration and non-networking configuration commands, with networking configuration commands and webmaster relevant configuration command configuration under the reservation networking configuration mode of network element device.Configuration mode mainly is the configuration order of operation network element device, and the configuration order of different brackets and classification is arranged under the different configuration modes.
Keeping the networking configuration mode is a configuration mode that increases newly, is specifically designed to operation networking configuration commands and the order of webmaster relevant configuration, is connected to guarantee network element device and the normal of webmaster, and guarantees the managerial ability of webmaster to network element device.
On network element device, be provided with when keeping the networking configuration mode, the user can be by the network management module input related command of webmaster, as order etc. is set, the command processing module of webmaster is carried out dissection process to this order, and on the network equipment, keep the setting of networking configuration mode, and with networking configuration commands and webmaster relevant configuration command configuration under this configuration mode.Concrete, can and keep the related parameter of networking configuration mode to networking configuration commands and webmaster relevant configuration order setting, when network element device moves this networking configuration commands and the order of webmaster relevant configuration, according to described parameter, networking configuration commands and webmaster relevant configuration order meeting are configured in automatically and keep under the networking configuration mode.
Based on reservation networking configuration mode of the present invention, when the user need discern networking configuration commands and the order of webmaster relevant configuration, just do not need all configuration orders in the network element device are discerned one by one, but keeping the networking configuration mode, Direct Recognition gets final product.
For non-networking configuration commands, as interface configuration command etc., can be according to the original configuration mode of these non-networking configuration commands, it is configured under the corresponding non-reservation networking configuration mode (other configuration modes except that keeping the networking configuration mode), still is configured under the interface configuration mode or the like as interface configuration command.
Step 202 according to keeping the networking configuration mode, is removed the non-networking configuration commands except that networking configuration commands and the order of webmaster relevant configuration in the network element device.
When the user need remove non-networking configuration commands, can adopt dual mode:
The one,, by network management module input related command, as reset command etc., command processing module reads networking configuration commands and the order of webmaster relevant configuration that keeps under the networking configuration mode according to this order, and generation keeps network profile, preferably, this reservation network profile is kept in the external database of network element device, restarts the system of this network element device then.
After the system restart of network element device, read-only going bail for stayed networking configuration commands and the order of webmaster relevant configuration in the network profile, recovers the networking configuration and the webmaster relevant configuration of this network element device; This moment, network element device did not read non-networking configuration commands, and therefore non-networking configuration commands is eliminated.
The one,, for all configuration orders in this network element device are provided with a mandatum cassatorium.The user by network management module import related command, as clear command etc., command processing module reads non-networking configuration commands under the non-reservation networking configuration mode according to this order, the non-networking configuration commands of each required bar is carried out mandatum cassatorium, and so all non-networking configuration commands are eliminated.
In addition, the user may also need to reconfigure some configuration orders for network element device, comprise networking configuration commands and/or the order of webmaster relevant configuration and/or non-networking configuration commands, at this moment, the user can generate a configuration file with all required new configuration orders, and this configuration file is uploaded on the network element device by network management module; Network element device reads each bar configuration order and the operation in this configuration file, and according to parameter relevant with configuration mode in the configuration order, new configuration order will be configured under the corresponding configuration mode automatically.Configuration order is uploaded in the network element device so in batches, it is very simple to operate.
In order to realize above-mentioned collocation method, the present invention also provides a kind of system of remotely configuring network element equipment, and as shown in Figure 3, this system comprises: webmaster 10 and network element device 20, wherein,
Webmaster 10 is used for being provided with reservation networking configuration mode on network element device 20, and networking configuration commands and webmaster relevant configuration command configuration are being kept under the networking configuration mode; Also be used for removing the non-networking configuration commands except that networking configuration commands and the order of webmaster relevant configuration in the network element device 20 according to keeping the networking configuration mode;
Network element device 20 is used for keeping storage networking configuration commands and the order of webmaster relevant configuration under the networking configuration mode; Also be used to store non-networking configuration commands.
Network element device 20 is further used for the non-networking configuration commands of storage under non-reservation networking configuration mode;
Accordingly, webmaster 10 is further used for just non-networking configuration commands and is configured under the non-reservation networking configuration mode corresponding in the network element device 20.
When removing non-networking configuration commands, webmaster 10 is further used for reading and keeps networking configuration commands and the order of webmaster relevant configuration down of networking configuration mode, generates the reservation network profile, and restarts the system of network element device 20;
Accordingly, this system further comprises: database 30 is used for storage and keeps network profile;
After restarting the system of network element device, network element device 20 is further used for reading networking configuration commands and the order of webmaster relevant configuration from keep network profile, recovers networking configuration and gateway relevant configuration.
When removing non-networking configuration commands, webmaster 10 is further used for reading the non-networking configuration commands under the non-reservation networking configuration mode, and non-networking configuration commands is carried out mandatum cassatorium.
When reconfiguring network element device, webmaster 10 is further used for required new configuration file is uploaded to network element device 20;
Network element device 20 is further used for reading the configuration order in the new configuration file;
Configuration order in the new configuration file comprises networking configuration commands and/or order of webmaster relevant configuration and/or non-networking configuration commands.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.