A kind of network management system medium-long range logs in, operates network element or the method for EMS
Technical field
The present invention relates to a kind of computer or net application technology, specifically a kind of network management system medium-long range logs in,
Operation network element or the method for EMS, mainly apply Telnet, and SSH2, TL1 agreement direct connecting ne or EMS are to its command operating, it is possible to
It is extended to other servers of Telnet command operating or system.
Background technology
Modern OSS system, the network size needing management is increasing, and the network equipment gets more and more, equipment vendors, type
Number the most various;Enterprise needs centralized management platform safety, efficient, unified, improve attendant's work efficiency with
Reduce maintenance cost.Major part manufacturer has oneself order terminal mode directly to operate equipment at present, also has some networks in OSS
Centralized maintenance operating platform.Equipment can be rapidly and efficiently managed by the instruction maintenance mode of direct-connected device or EMS really.Refer to
Making maintenance mode have a lot, the most conventional has: telnet instrument is directly connected to network element, or the instruction of manufacturer oneself is safeguarded flat
The northbound interface that meassge hook platform in platform, or OSS utilizes ICP/IP protocol and manufacturer to provide is attached, operates
Network element or EMS etc..
In conventional instruction maintaining method, one can only be simultaneously connected with, or after connection, directly transmit instruction, collect knot
Really, do not present concrete connection management, and instruction performs management.This method is to utilize ICP/IP protocol, utilizes existing
The standard interfaces such as telnet and ssh, define network element and connect configuration, network element connection repository, network element connection configuration factory, connection
Reply the assemblies such as storehouse, instructions coordinate device and instruction executer, separated connection management and instruction performs management, it is achieved that Ke Yitong
Time command operating safeguard single or multiple network element.
Summary of the invention
It is an object of the invention to provide a kind of network management system medium-long range to log in, operate network element or the method for EMS.
It is an object of the invention to realize in the following manner, including herein below:
1) design Telnet, operation network element or the network element connection management of EMS and instruction perform management, independent separate management
And connecting and instruct execution coordination, complete to safeguard;
2) definition network element connection configuration factory, network element connection configuration, network element connect repository, instructions coordinate device, instruct and hold
Row device, connection reply storehouse, intervalometer, Session monitor module;
3) network element connects configuration factory and connects configuration according to network element and create NE connections, is put into network element and connects guarantor in repository
Hold;
4) when instruction performs, connect from network element and repository takes out corresponding connection, the distribution instruction of instructions coordinate device perform
Device sends instruction, and collection is put in connection reply storehouse;
5) shown from connecting taking-up result reply storehouse by intervalometer;
6) close destruction network element when needs and connect configuration, when exiting network management system or Session connection time-out, by network element
Connecting configuration and connect taking-up connection repository from network element, destruction is fallen, and regains resource;
The concrete connection configuration process that creates NE is as follows:
1) trigger mechanism that creates NE is started;
2) first go " network element connection repository " obtains " network element connects configuration ";
3) if " network element connects configuration " that get exists, then terminate to create NE;Do not deposit if network element connects configuration
, then perform the 4th step;
4) in " network element connects configuration factory ", " network element connects configuration " is obtained;
5) by " network element connects configuration and " gives " network element connects configuration factory " and go establishment " network element connects configuration ";
6) " communication protocol " and " configuration file " in " network element connects configuration factory " basis " network element connects configuration " is joined
The network element put connects the class that implements of configuration factory, establishment concrete " network element connects configuration factory ";
7) concrete " network element connection configures factory " basis " network element connection configuration " creates specifically " network element connection configures ";
8) concrete " network element connects configuration " basis " network element connects configuration " network element connects, and carries out authentication;
9) " network element connects configuration " " network element connection repository " will be put into preserve;
The method detailed destroying network element connection configuration is as follows:
1) system is according to connecting unique sign from " network element connection repository " acquisition " network element connects configuration ", disconnects,
Then will remove from " network element connection repository " " network element connects configuration ";
2) if the network management system of exiting or Session connect time-out, system obtains from " network element according to SessionId
Connect repository " obtain all " network element connects configuration ", disconnect and remove from " network element connection repository " that " network element is even successively
Connect configuration ";
Execution process instruction is as follows:
1) sending instruction to certain network element, input instruction also sends;
2) the unique sign of all targets " network element connects configuration " sent according to instruction is obtained to " network element connection repository "
Take " the network element connection configuration set " of all target network element;
3) then instruction and network element connection configuration set are given " instructions coordinate device " and performed instruction;
4) " instructions coordinate device " creates connection pool, connects configuration for each network element and creates one " instruction executer " and distribute
One thread, is performed instruction by each thread dispatching " instruction executer ";Meanwhile, return instruction starts to perform signal enabling calmly
Time device, be timed to service end obtain perform result;
5) " instruction executer " first creates one " connect and reply storehouse " before performing instruction, " performing instruction " is put into
In " connecting and reply storehouse ";
6) " instruction executer " sends instructions to network element by " network element connects configuration " wall scroll successively, returning of network element to be received
After Fu, return information is put in " connect and reply storehouse ";
7) during the network element received when " instruction executer " is replied at the end of " command prompt symbol ", wait after the of short duration time not
There is reply to receive again, then continue to send next instruction;
8) after " instruction executer " has sent all instructions, " instruction executer " places instruction in " connect and reply storehouse "
Perform the end mark terminated, i.e. stop after receiving end mark including " command terminal " obtaining the intervalometer performing result.
The present invention has two clear advantages:
Advantage 1. can be managed collectively network element and connect configuration, quickly creates connection according to existing information, and can keep even
Connect, connection can be destroyed in time, regain resource;
Advantage 2. can apply simple mode to select the connection that instruction sends, and utilizes instructions coordinate device and instruction to perform
Device, thread pooling mechanism is asynchronous sends instruction to single or multiple network elements, quickly collects instruction results.
Accompanying drawing explanation
Fig. 1 creates NE and connects configuration activities figure;
Fig. 2 asynchronous transmission instructs the activity diagram of network element.
Detailed description of the invention
With reference to Figure of description, the method for the present invention is described in detail below.
1) create NE connection configuration
(1) wound network element connects configuration, and after user has done the operation that network element connects configuration, this module will be according to relevant information
Create NE connection configuration, and keeps network element to connect configuration in case using when instruction sends;
Network element defined in the present invention connects configuration, and network element connects repository, and network element connects configuration factory.Network element connects and joins
Put management and utilization network element to connect configuration factory and connect configuration according to network element and create NE connections, put into network element connection repository,
Remain connection, when instruction sends, take out response connection and send instruction;
(2) destroying network element and connect configuration, when user closes network element connection configuration, command terminal module will call this function
Network element is connected configuration close and destroy.When exiting network management system or Session time-out, system module will call to be closed and sells
Ruin all network elements connection configuration that this user opens;
In the present invention, create closedown destruction network element connection configuration and Session monitors module, when needs closedown destruction net
When unit connects configuration, meeting auto-destruct network element connects this network element in repository and connects configuration;
2) instruction performs management
(1) send instructions to network element, when instruction execution module is after the instruction receiving user's input, this function will be called
Sending instructions to network element, now using creates NE connects the network element connection configuration having created in configuration and having kept;
Instructions coordinate device and instruction executer defined in the present invention, when needing to send instruction, can connect configuration from network element
Storehouse is taken out response connect, have instructions coordinate device distribution instruction executer to send instruction;
(2) obtaining network element return information, after instruction is sent to network element, the return information received from network element is put by this module
Entering caching, command terminal regularly indirectly calls the instruction that acquisition network element returns from caching of this function by instruction execution module and holds
Row result.
Storehouse is replied in instruction defined in the present invention and timing takes the mechanism of result.Perform object information to be put into during instruction
Replying storehouse, the mechanism then having timing to take result is replied taking-up result storehouse from instruction and is shown.
Embodiment:
Below by according to the narration in summary of the invention shown in by specification accompanying drawing, launch retouching in detail of explanation modules
State.
1) connection is created
Carry out concrete implementation according to Fig. 1 and following steps and can complete the connection configuration process that creates NE;
(1) trigger mechanism that creates NE is started;
(2) first go " network element connection repository " obtains " network element connects configuration ";
(3) if " network element connects configuration " that get exists, then terminate to create NE;If network element connects configuration not
Exist, then perform the 4th step;
(4) in " network element connects configuration factory ", " network element connects configuration " is obtained;
(5) " network element connects configuration factory " will be given " network element connects configuration " go to create " network element connects configuration ";
(6) in " communication protocol " and " configuration file " in " network element connects configuration factory " basis " network element connects configuration "
It is arranged in network element and connects the apoplexy due to endogenous wind that implements of configuration factory, establishment concrete " network element connects configuration factory ";
(7) concrete " network element connection configures factory " basis " network element connection configuration " creates specifically " network element connection configures ";
(8) concrete " network element connects configuration " basis " network element connects configuration " connects network element, and carries out authentication;
(9) " network element connects configuration " " network element connection repository " will be put into preserve;
2) destroy network element and connect configuration
It is presented herein below and destroys the method detailed that network element connection configures:
(1) system indicates from " network element connection repository " acquisition " network element connection configures " according to network element connection configuration is unique,
Disconnect, then will remove from " network element connection repository " " network element connects configuration ";
(2) if the network management system of exiting or Session connect time-out, system obtains from " network element according to SessionId
Connect repository " obtain all " network element connects configuration ", disconnect network element successively and connect configuration and from " network element connection repository "
Remove " network element connects configuration ";
3) instruction performs
Fig. 2 and following steps are detailed execution process instructions;
(1) sending instruction to certain network element, input instruction also sends;
(2) the unique sign of all targets " network element connects configuration " sent according to instruction is obtained to " network element connection repository "
Take " the network element connection configuration set " of all target network element;
(3) then instruction and network element connection configuration set are given " instructions coordinate device " and performed instruction;
(4) " instructions coordinate device " creates connection pool, connects configuration for each network element and creates one " instruction executer " and divide
Join a thread, each thread dispatching " instruction executer " perform instruction;Meanwhile, return instruction starts to perform signal enabling
Intervalometer, is timed to service end and obtains execution result;
(5) " instruction executer " first creates one " connect and reply storehouse " before performing instruction, " instruction performs " is put into
In " connecting and reply storehouse ";
(6) " instruction executer " sends instructions to network element, the reply of network element to be received by " network element connection " wall scroll successively
After, " instruction performs " return information was put in " connect and reply storehouse ";
(7) during the network element received when " instruction executer " is replied at the end of " command prompt symbol ", after waiting the of short duration time
No longer there is reply to receive, then continue to send next instruction;
(8) after " instruction executer " has sent all instructions, " instruction executer " is placed in " connect and reply storehouse " and is referred to
Order performs the end mark (" command terminal " i.e. stops obtaining the intervalometer performing result after receiving end mark) terminated.
In addition to the technical characteristic described in description, it is the known technology of those skilled in the art.