CN108259214A - A kind of configuration order management method, device and machine readable storage medium - Google Patents

A kind of configuration order management method, device and machine readable storage medium Download PDF

Info

Publication number
CN108259214A
CN108259214A CN201710769221.9A CN201710769221A CN108259214A CN 108259214 A CN108259214 A CN 108259214A CN 201710769221 A CN201710769221 A CN 201710769221A CN 108259214 A CN108259214 A CN 108259214A
Authority
CN
China
Prior art keywords
configuration order
way
manage
configuration
order
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.)
Granted
Application number
CN201710769221.9A
Other languages
Chinese (zh)
Other versions
CN108259214B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710769221.9A priority Critical patent/CN108259214B/en
Publication of CN108259214A publication Critical patent/CN108259214A/en
Application granted granted Critical
Publication of CN108259214B publication Critical patent/CN108259214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a kind of configuration order management method, device and machine readable storage medium, the method includes:When receiving management message, configuration order and way to manage are parsed from the management message;It determines to whether there is and the configuration order and the matched command entry of the way to manage in command history;Each command entry in the command history is used to record the correspondence of configuration order and way to manage;If in the presence of the configuration order is performed.By the technical solution of the disclosure, robustness, the reliability of configuration order management can be improved, and can be to avoid business is avoided to interrupt.

Description

A kind of configuration order management method, device and machine readable storage medium
Technical field
The present invention relates to technical field of network management, more particularly, to a kind of configuration order management method, device and machine Readable storage medium storing program for executing.
Background technology
With the fast development of the business such as cloud computing, big data and the application of network equipment virtualization technology, network is set Multiple managers, such as network administrator and cloud management platform are had, i.e. network administrator and cloud management platform can be right The network equipment is managed, and the network equipment can receive the configuration order that network administrator issues, and can also be received cloud management and be put down The configuration order that platform issues.But network administrator is when to network equipment distribution configuration command, due to being network administrator's hand Work operates, therefore, it is very easy to cloud management platform be deleted to the configuration order that the network equipment issues, so as to cause the network equipment Business is interrupted.
For example, in cloud management platform after network equipment distribution configuration command A, network administrator may pass through deletion Configuration order A, but this delete operation is accidentally to delete, after configuration order A is accidentally deleted by network administrator, due to matching It is that cloud management platform issues to put order A, therefore network administrator can not be network equipment recovery configuring order A, so as to cause Serious network contingency, causes business to be interrupted.
Invention content
The disclosure provides a kind of configuration order management method, the method includes:
When receiving management message, configuration order and way to manage are parsed from the management message;
It determines to whether there is and the configuration order and the matched command entry of the way to manage in command history;The life Each command entry in set is enabled to be used to record the correspondence of configuration order and way to manage;
If in the presence of the configuration order is performed.
The disclosure provides a kind of configuration order managing device, and described device includes:Parsing module, for receiving management During message, configuration order and way to manage are parsed from the management message;Determining module, for determining to be in command history It is no to exist and the configuration order and the matched command entry of the way to manage;Wherein, each order in the command history Item is used to record the correspondence of configuration order and way to manage;Processing module for working as in the presence of definitive result is, then performs The configuration order.
The disclosure provides a kind of machine readable storage medium, and several computers are stored on the machine readable storage medium Instruction, the computer instruction, which is performed, to be handled as follows:
When receiving management message, configuration order and way to manage are parsed from the management message;
It determines to whether there is and the configuration order and the matched command entry of the way to manage in command history;The life Each command entry in set is enabled to be used to record the correspondence of configuration order and way to manage;
If in the presence of the configuration order is performed.
Based on above-mentioned technical proposal, in the embodiment of the present disclosure, configuration order can be protected, avoid configuration order quilt The execution of mistake, so as to improve the robustness of configuration order management, reliability, and can be to avoid the serious network thing of generation Therefore business is avoided to interrupt.
Description of the drawings
It, below will be to the disclosure in order to clearly illustrate the embodiment of the present disclosure or technical solution of the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below Attached drawing is only some embodiments described in the disclosure, for those of ordinary skill in the art, can also be according to this public affairs These attached drawings for opening embodiment obtain other attached drawings.
Fig. 1 is the application scenarios schematic diagram in a kind of embodiment of the disclosure;
Fig. 2 is the flow chart of the configuration order management method in a kind of embodiment of the disclosure;
Fig. 3 is the structure chart of the configuration order managing device in a kind of embodiment of the disclosure;
Fig. 4 is the hardware structure diagram of the network equipment in a kind of embodiment of the disclosure.
Specific embodiment
In the term that the embodiment of the present disclosure uses merely for the sake of the purpose of description specific embodiment, and unrestricted public affairs It opens." one kind " of singulative used in the disclosure and claims, " described " and "the" are also intended to including most shapes Formula, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to comprising one A or multiple associated list items purposes any or all may combine.
It will be appreciated that though various letters may be described using term first, second, third, etc. in the embodiment of the present disclosure Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, Without departing from the scope of this disclosure, the first information can also be referred to as the second information, and similarly, the second information can also It is referred to as the first information.Depending on linguistic context, in addition, used word " if " can be construed to " ... when " or " when ... " or " in response to determining ".
A kind of configuration order management method is proposed in the embodiment of the present disclosure, this method can be applied to the network equipment, the net Network equipment has two or more managers, and manager can such as network administrator and cloud management platform, i.e. network Administrator and cloud management platform can be managed the network equipment, and the network equipment can receive the configuration that network administrator issues Order, can also receive the configuration order that cloud management platform issues.
As shown in Figure 1, BRAS (the Broadband Remote Access that plane and Forwarding plane detach in order to control Server, Broadband Remote Access Server) configuration diagram, control plane can pass through BRAS-CP, and (Control Plane are controlled Plane processed) equipment realizes that BRAS-CP equipment is positioned as user's control management component, and Forwarding plane can pass through BRAS-DP (Data Plane, data plane) equipment realizes that BRAS-DP equipment is positioned as three-layer network edge and subscriber policy enforcement division Part.Under this application scenarios, BRAS-DP equipment is exactly that there are the network equipments of multiple managers.Certainly, Fig. 1 is this public affairs Open an example of embodiment, the type of this network equipment be not limited, if the network equipment tool there are two or two with On manager.
In one example, during network administrator and cloud management platform are managed the network equipment, network The way to manage that administrator and cloud management platform use can include but is not limited to:Console (console) way to manage, Netconf (Network Configuration Protocol, network configuration protocol) way to manage, Telnet (Telnet) Way to manage, SSH (Secure Shell, safety shell protocol) way to manage, MIB (Management Information Base, management information bank) way to manage, TR069 (Technical Report 069, technical report) way to manage, WEB (World Wide Web, WWW) way to manage, SDN (Software Defined Network, software defined network) pipes Reason mode etc..Certainly, above-mentioned way to manage is an example of the embodiment of the present disclosure, and the type of this way to manage is not done It limits in detail.
It is shown in Figure 2 under above application scene, it is the configuration order management method proposed in the embodiment of the present disclosure Flow chart, the configuration order management method can be applied to the network equipment, and this method can include:
Step 201, when receiving management message, configuration order and way to manage are parsed from management message.
It in one example, can when network administrator/cloud management platform needs to create configuration order on network devices To send management message to the network equipment by certain way to manage, which carries the configuration order and the manager Formula.The network equipment can parse configuration order (such as pppoe- when receiving the management message from the management message Server work-mode) and way to manage (such as Netconf way to manages).
In another example, when network administrator/cloud management platform needs operation (such as changing or delete operation) On the network equipment during existing configuration order (such as pppoe-server work-mode), then by certain way to manage to network Equipment sends management message, the management message carry configuration order (for operating another configuration order of existing configuration order) and The way to manage.The network equipment can parse configuration order (as used when receiving the management message from the management message In the configuration order undo pppoe-server work-mode for deleting pppoe-server work-mode) and way to manage (such as Netconf way to manages).
Step 202, it determines to whether there is and the configuration order and the matched command entry of the way to manage in command history.Such as Fruit is can then to perform step 203;If it is not, then step 204 can be performed.
Wherein, multiple command entries can be included in command history, each command entry is used to record configuration order and management The correspondence of mode, the way to manage (such as one or more way to manage) recorded in the command entry are to allow to operate this to match The way to manage of order is put, that is, there is the permission for operating the configuration order.For example, command entry 1 include configuration order 1 with The correspondence of Netconf way to manages, command entry 2 include the correspondence of configuration order 2 and Console way to manages, base In this, only Netconf way to manages just allow operative configuration order 1, and other way to manages do not allow operative configuration order 1;In addition, only Console way to manages just allow operative configuration order 2, and other way to manages do not allow operative configuration to order Enable 2.
In one example, for " determining to whether there is in command history and match with the configuration order and the way to manage Command entry " process, can include but is not limited to following manner:Mode one inquires the command history by the configuration order, Obtain way to manage corresponding with the configuration order;If obtained way to manage includes the way to manage in the management message, It can determine exist and the configuration order and the matched command entry of the way to manage in the command history;Otherwise, it determines the order It is not present and the configuration order and the matched command entry of the way to manage in set.Mode two is somebody's turn to do by way to manage inquiry Command history obtains configuration order corresponding with the way to manage;If obtained configuration order includes matching in the management message Order is put, then can determine exist and the configuration order and the matched command entry of the way to manage in the command history;Otherwise, really It is not present and the configuration order and the matched command entry of the way to manage in the fixed command history.
Step 203, the configuration order in the management message is performed.
Step 204, refusal performs the configuration order in the management message.
In one example, it for the process of " performing the configuration order in the management message ", can include but is not limited to: The configuration order is created, alternatively, carrying out delete operation or the behaviour that modifies to existing configuration order according to the configuration order Make.In another example, for the process of " refusal performs the configuration order in the management message ", it can include but unlimited In:Refusal create the configuration order, alternatively, refusal according to the configuration order to existing configuration order carry out delete operation or It modifies operation.
Wherein, creating the configuration order can refer to:It establishes on network devices and runs the configuration order, i.e., Buildrun configuration orders so that the configuration order comes into force on network devices.In addition, refusal create the configuration order can be with Refer to:Refusal is established and runs the configuration order on network devices.
Wherein, if the configuration order is for operating existing configuration order, i.e. the configuration order and existing configuration order It is related, such as the configuration order for when deleting existing configuration order pppoe-server work-mode, then the configuration order Can be undo pppoe-server work-mode.In addition, above-mentioned carry out existing configuration order according to the configuration order Delete operation or operation of modifying refer to:The configuration order is run on network devices, that is, is deleted according to the configuration order Existing configuration order so that existing configuration order fails on network devices.In addition, refuse according to the configuration order to Some configuration orders carry out delete operation or operation of modifying refers to:Refusal runs the configuration order on network devices, That is, existing configuration order will not be deleted according to the configuration order, existing configuration order is survival on network devices.
In one example, after configuration order is created, the network equipment can also parse outlet pipe from the management message The address information (such as IP address, that is, the source IP address of the management message) of reason person, and record the address information and the configuration The mapping relations of order.In addition, carrying out delete operation or the behaviour that modifies to existing configuration order according to configuration order Before work, the network equipment can also parse address information (such as IP address, that is, the pipe of manager from the management message Manage the source IP address of message), and pass through the configuration order and inquire above-mentioned mapping relations, obtain address corresponding with the configuration order Information.If the address information in the management message is identical with the address information in the mapping relations, perform according to configuration order Delete operation or the process for operation of modifying are carried out to existing configuration order.If address information in the management message with Address information in the mapping relations is different, then forbid carrying out existing configuration order according to configuration order delete operation or It modifies operation.That is, only same manager just can operate existing configuration order using configuration order, from And it can ensure the safety of existing configuration order.
Based on above-mentioned technical proposal, in the embodiment of the present disclosure, existing configuration order can be protected, avoid having Configuration order by mistake execution.Moreover, the way to manage only with the permission for operating some configuration order, it just can be right The configuration order is operated, so as to improve the robustness of configuration order management, reliability, and can be serious to avoid occurring Network contingency, business is avoided to interrupt.
In one example, can also be that each way to manage sets priority, and preferential for the setting of each configuration order Grade.In this way, when the priority of way to manage is better than the priority of configuration order, which can also be operated, The way to manage of high priority is allowd to operate the configuration order of low priority.
Based on this, in one example, it whether there is in command history is determined and matched with configuration order and way to manage Command entry after, if being not present, be not that direct refusal performs configuration order in the management message, but first obtain the pipe The priority of reason mode and the priority for obtaining the configuration order.If the priority of the way to manage is better than the configuration order The way to manage for allowing to operate the configuration order recorded in the command history then can be notified, to manager, to make by priority Obtaining manager and using allows the way to manage for operating the configuration order to retransmit management message.If the priority of the way to manage The not better than priority of the configuration order can then refuse the configuration order in execution management message, that is, perform step 204。
In one example, for " obtain the priority of the way to manage and obtain the priority of the configuration order " Process can include but is not limited to:Can mapping table be inquired by the way to manage, it is corresponding preferential to obtain the way to manage Grade;Furthermore, it is possible to by the configuration order querying command set, the corresponding priority of the configuration order is obtained.Wherein, it is described to reflect Firing table can be used for the correspondence of record management mode and priority;In addition, the command history can be used for record configuration Order and the correspondence of priority.
In one example, from management message in parse way to manage when, due to be based on " Console way to manages, Netconf way to manages, Telnet way to manages, SSH way to manages, MIB way to manages, TR069 way to manages, WEB management In the management message of mode, SDN way to manages ", the information of characterization way to manage is carried, therefore, can be known by these information Do not go out to manage the way to manage of message carrying.
Below in conjunction with specific application scenarios, the above-mentioned technical proposal of the embodiment of the present disclosure is illustrated.
Under this application scene, the network equipment can establish mapping table and command history, which can be command tree. As shown in table 1, it is the example of mapping table, mapping table is used for the correspondence of record management mode and priority.As shown in table 2, For the example of command history, command history is used to record the correspondence of configuration order, priority, way to manage.Certainly, table 1 It is an example with table 2, in practical application, it is not limited to this structure, if command history is a kind of tree, table 2 Simply to illustrate that the example provided, as long as command history is able to record the correspondence of configuration order, priority, way to manage .
Table 1
Way to manage Way to manage identifies Priority
Console way to manages 1 0
Netconf way to manages 2 1
Telnet way to manages 3 1
SSH way to manages 4 1
MIB way to manages 5 1
TR069 way to manages 6 1
WEB way to manages 7 1
SDN way to manages 8 1
Table 2
Configuration order Way to manage Priority
pppoe-server work-mode 2 1
undo pppoe-server work-mode 2 1
vpn-target{STRING<3-21>} 1 1
undo vpn-target{STRING<3-21>} 1 1
import route-policy 0 1
undo import route-policy 0 1
As it can be seen from table 1 the priority of Console way to manages is 0, the priority of other way to manages is 1, is represented The priority of Console way to manages is better than the priority of other way to manages.Certainly, the priority of table 1 is example, not This is confined to, if the priority of Netconf way to manages may be 0.
As can be seen from Table 1 and Table 2, the priority of Console way to manages is 0, and the priority of all configuration orders is equal It is 1, represents that the priority of all configuration orders of priority ratio of Console way to manages will be high, therefore, Console management Mode can operate all configuration orders, have highest administration authority.
From table 2 it can be seen that command history is used to record the correspondence of configuration order, priority, way to manage, when So, command history can also include other contents, and the content of this command history is not limited.In table 2, in way to manage Number is the corresponding way to manage mark of way to manage, as 2 in way to manage represent Netconf way to manages, way to manage In 1 represent Console way to manages, 0 in way to manage represents all way to manages.In practical applications or Command history shown in table 3.
Table 3
Based on above application scene, in one example, when cloud management platform needs to create configuration life on network devices When enabling " pppoe-server work-mode ", management message, the management are sent to the network equipment by Netconf way to manages Message carries " pppoe-server work-mode " and Netconf way to manages.The network equipment receive management message after, " pppoe-server work-mode " and Netconf way to manages are parsed from the management message.Then, pass through Command history shown in " pppoe-server work-mode " inquiry table 2 or table 3, it may be determined that " pppoe-server The corresponding way to manages of work-mode " are Netconf way to manages, i.e., the way to manage in command history includes management message In Netconf way to manages, i.e., Netconf way to manages be allow operate " pppoe-server work-mode " management Mode creates (buildrun) configuration order " pppoe-server work-mode " in the network equipment.In addition, the network equipment is also The address information of manager can be parsed from management message (such as the address of the source address, i.e. cloud management platform of management message Information), and record the mapping relations of the address information and " pppoe-server work-mode ".
Further, when network administrator needs to delete " the pppoe-server work-mode " of the network equipment, then may be used To send management message to the network equipment by Telnet way to manages, and the management message carries configuration order " undo Pppoe-server work-mode " and Telnet way to manages.The network equipment, can be from the pipe after receiving management and disappearing " undo pppoe-server work-mode " and Telnet way to manages are parsed, and pass through " undo in reason message Command history shown in pppoe-server work-mode " inquiry tables 2 or table 3, so that it is determined that going out " undo pppoe- The corresponding way to manages of server work-mode " are Netconf way to manages, i.e. way to manage in the command history is not wrapped The Telnet way to manages in the management message are included, i.e. Telnet way to manages are not allow to operate " undo pppoe-server The way to manage of work-mode ".
Then, network equipment inquiry table 1, obtains the priority 1 of Telnet way to manages, network equipment inquiry table 2 or Table 3 obtains the priority 1 of " undo pppoe-server work-mode ", i.e. the priority 1 of Telnet way to manages is little In the priority 1 of " undo pppoe-server work-mode ", therefore, refusal deletes the " pppoe-server of the network equipment Work-mode ", and user can be prompted to have no right to carry out delete operation, so as to reach to configuration order " pppoe-server The purpose that work-mode " is protected.
When network administrator/cloud management platform needs to delete " the pppoe-server work-mode " of the network equipment, Can management message be sent to the network equipment by Console way to manages, which carries configuration order " undo Pppoe-server work-mode " and Console way to manages.The network equipment is after the management message is received, from management " undo pppoe-server work-mode " and Console way to manages are parsed in message, and passes through " undo pppoe- Command history shown in server work-mode " inquiry tables 2 or table 3 determines " undo pppoe-server work- The corresponding way to manages of mode " are Netconf way to manages, i.e. way to manage in the command history does not include the management message In Console way to manages, i.e., Console way to manages be do not allow operate " undo pppoe-server work- The way to manage of mode ".
Network equipment inquiry table 1 obtains the priority 0 of Console way to manages, network equipment inquiry table 2 or table 3, The priority 1 of " undo pppoe-server work-mode " is obtained, i.e. the priority 0 of Console way to manages is more than The priority 1 of " undo pppoe-server work-mode " therefore, will allow to operate " undo pppoe-server The way to manage (Netconf way to manages) of work-mode " notifies to give manager (network administrator/cloud management platform) so that Manager retransmits management message using the way to manage.
Cloud management platform passes through Netconf way to manages after the notification message for carrying Netconf way to manages is received To the network equipment send management message, the management message carry configuration order " undo pppoe-server work-mode " and Netconf way to manages.The network equipment parses " undo pppoe- after the management message is received from the management message Server work-mode " and Netconf way to manages, and pass through " undo pppoe-server work-mode " inquiry table 2 Or the command history shown in table 3, and determine that " undo pppoe-server work-mode " corresponding way to manage is Way to manage in Netconf way to manages, the i.e. command history includes the Netconf way to manages in the management message, i.e., Netconf way to manages are the way to manages for allowing to operate " undo pppoe-server work-mode ".Then, network is set The address information (i.e. the address information of cloud management platform) of manager is parsed in the standby message from management, due to the address of manager Information with above-mentioned mapping relations (close by such as address information of cloud management platform and the mapping of " pppoe-server work-mode " System) in address information it is identical, therefore, can delete " pppoe-server work-mode ".
Network administrator passes through Netconf way to manages after the notification message for carrying Netconf way to manages is received To the network equipment send management message, the management message carry configuration order " undo pppoe-server work-mode " and Netconf way to manages.The network equipment parses " undo pppoe- after the management message is received from the management message Server work-mode " and Netconf way to manages, and pass through " undo pppoe-server work-mode " inquiry table 2 Or the command history shown in table 3, and determine that " undo pppoe-server work-mode " corresponding way to manage is Way to manage in Netconf way to manages, the i.e. command history includes the Netconf way to manages in the management message, i.e., Netconf way to manages are the way to manages for allowing to operate " undo pppoe-server work-mode ".The network equipment is from pipe Address information (address information that i.e. network administrator uses, the address information and the cloud management of manager is parsed in reason message The address information of platform is different), due to address information and above-mentioned mapping relations (such as address information of cloud management platform of manager From the mapping relations of " pppoe-server work-mode ") in address information it is different, therefore refuse to delete the network equipment " pppoe-server work-mode ", and user is prompted to have no right to carry out delete operation.
Based on the same technical concept of the above method, a kind of configuration order management dress is also proposed in the embodiment of the present disclosure It puts, this method can be applied to the network equipment, shown in Figure 3, and for the structure diagram of the configuration order managing device, this is matched Putting order management device can include:Parsing module 301, for when receiving management message, being solved from the management message Configuration order and way to manage is precipitated;Determining module 302, for determine in command history whether there is with the configuration order and The matched command entry of way to manage;Wherein, each command entry in the command history is used to record configuration order and pipe The correspondence of reason mode;Processing module 303 for working as in the presence of definitive result is, then performs the configuration order.
In one example, the determining module 302 is matched specifically for whether there is in command history is determined with described During putting order and the matched command entry of the way to manage, by the configuration order querying command set, obtain with The corresponding way to manage of the configuration order;If obtained way to manage includes the way to manage in the management message, really Exist and the configuration order and the matched command entry of the way to manage in the fixed command history;If obtained way to manage Do not include the way to manage in the management message, it is determined that be not present and the configuration order and described in the command history The matched command entry of way to manage.
In one example, the determining module 302 is matched specifically for whether there is in command history is determined with described During putting order and the matched command entry of the way to manage, by the way to manage querying command set, obtain with The corresponding configuration order of the way to manage;If obtained configuration order includes the configuration order in the management message, really Exist and the configuration order and the matched command entry of the way to manage in the fixed command history;If obtained configuration order Do not include the configuration order in the management message, it is determined that be not present and the configuration order and described in the command history The matched command entry of way to manage.
In one example, the processing module 303, specifically for during the configuration order is performed, creating The configuration order, alternatively, delete operation is carried out to existing configuration order according to the configuration order, alternatively, according to described Configuration order modifies to existing configuration order operation;
The processing module 303 is additionally operable to after the configuration order is created, and outlet pipe is parsed from the management message The address information of reason person, and record the mapping relations of described address information and the configuration order;
The processing module 303 is additionally operable to carrying out delete operation to existing configuration order according to the configuration order Or before operation of modifying, the address information of manager is parsed from the management message, and passes through the configuration life Inquiry mapping relations are enabled, obtain address information corresponding with the configuration order;If it is described management message in address information with Address information in the mapping relations is identical, then according to the configuration order to existing configuration order carry out delete operation or Person modifies operation, otherwise, forbids carrying out delete operation or progress to existing configuration order according to the configuration order Modification operation.
In one example, the processing module 303 is additionally operable to the definitive result when the determining module 302 not deposit When, then obtain the priority of the way to manage, the priority of the configuration order;If the priority of the way to manage is excellent In the priority of the configuration order, then by what is recorded allow to operate the way to manage of the configuration order in the command history It notifies to manager.
In one example, the processing module 303 is additionally operable in the priority for obtaining the way to manage, described matches During the priority for putting order, mapping table is inquired by the way to manage, it is corresponding preferential to obtain the way to manage Grade;By the configuration order querying command set, the corresponding priority of the configuration order is obtained;Wherein, the mapping table For the correspondence of record management mode and priority;The command history is corresponding with priority for recording configuration order Relationship.
The network equipment provided in the embodiment of the present disclosure, for hardware view, hardware structure schematic diagram can specifically join As shown in Figure 4.Including:Machine readable storage medium and processor, wherein:
Machine readable storage medium:Store instruction code.
Processor:It communicates, is stored in reading and execution machine readable storage medium described with machine readable storage medium Instruction code realizes configuration order management operation disclosed in disclosure above-mentioned example.
Here, machine readable storage medium can be any electronics, magnetism, optics or other physical storage devices, can be with Comprising or storage information, such as executable instruction, data, etc..For example, machine readable storage medium can be:RAM(Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard Disk drive), solid state disk, any kind of storage dish (such as CD, dvd) either similar storage medium or they Combination.
Based on the same technical concept of the above method, a kind of machine readable storage is also proposed in the embodiment of the present disclosure and is situated between Matter, the machine readable storage medium can be applied to the network equipment, several meters are stored on the machine readable storage medium Calculation machine instructs, and the computer instruction, which is performed, to be handled as follows:
When receiving management message, configuration order and way to manage are parsed from the management message;
It determines to whether there is and the configuration order and the matched command entry of the way to manage in command history;The life Each command entry in set is enabled to be used to record the correspondence of configuration order and way to manage;
If in the presence of the configuration order is performed.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by having the function of certain product.A kind of typical realization equipment is computer, and the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of arbitrary several equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when open.
It should be understood by those skilled in the art that, embodiment of the disclosure can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the disclosure Apply the form of example.Moreover, the embodiment of the present disclosure can be used wherein includes computer usable program code in one or more The computer that computer-usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
The disclosure is with reference to the flow according to the method for the embodiment of the present disclosure, equipment (system) and computer program product Figure and/or block diagram describe.It is generally understood that it is realized by computer program instructions each in flowchart and/or the block diagram The combination of flow and/or box in flow and/or box and flowchart and/or the block diagram.These computer journeys can be provided Sequence instruct to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with Generate a machine so that the instruction generation performed by computer or the processor of other programmable data processing devices is used for Realize the dress of function specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes It puts.
Computer or other programmable datas can be guided to handle and set moreover, these computer program instructions can also be stored in In the standby computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates Manufacture including command device, the command device are realized in one flow of flow chart or multiple flows and/or block diagram one The function of being specified in a box or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer Or the instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram The step of function of being specified in one box or multiple boxes.
The foregoing is merely embodiment of the disclosure, are not limited to the disclosure.For those skilled in the art For, the disclosure can have various modifications and variations.All any modifications made within the spirit and principle of the disclosure are equal Replace, improve etc., it should be included within the right of the disclosure.

Claims (14)

1. a kind of configuration order management method, which is characterized in that the method includes:
When receiving management message, configuration order and way to manage are parsed from the management message;
It determines to whether there is and the configuration order and the matched command entry of the way to manage in command history;The command set Each command entry in conjunction is used to record the correspondence of configuration order and way to manage;
If in the presence of the configuration order is performed.
2. according to the method described in claim 1, it is characterized in that, it whether there is and the configuration in the determining command history Order and the process of the matched command entry of the way to manage, specifically include:
By the configuration order querying command set, way to manage corresponding with the configuration order is obtained;
If obtained way to manage includes the way to manage in the management message, it is determined that exists and institute in the command history State configuration order and the matched command entry of the way to manage;Otherwise, it determines it is not present and the configuration in the command history Order and the matched command entry of the way to manage.
3. according to the method described in claim 1, it is characterized in that, it whether there is and the configuration in the determining command history Order and the process of the matched command entry of the way to manage, specifically include:
By the way to manage querying command set, configuration order corresponding with the way to manage is obtained;
If obtained configuration order includes the configuration order in the management message, it is determined that exists and institute in the command history State configuration order and the matched command entry of the way to manage;Otherwise, it determines it is not present and the configuration in the command history Order and the matched command entry of the way to manage.
4. according to the method described in claim 1, it is characterized in that, it whether there is and the configuration in the determining command history After order and the matched command entry of the way to manage, the method further includes:
If being not present, refuse to perform the configuration order.
5. according to the method described in claim 1, it is characterized in that,
The process for performing the configuration order, specifically includes:The configuration order is created, alternatively, being ordered according to the configuration It enables and delete operation or operation of modifying is carried out to existing configuration order;
After the establishment configuration order, the method further includes:The ground of manager is parsed from the management message Location information, and record the mapping relations of described address information and the configuration order;
It is described delete operation or operation of modifying are carried out to existing configuration order according to the configuration order before, it is described Method further includes:The address information of manager is parsed from the management message, and is inquired and mapped by the configuration order Relationship obtains address information corresponding with the configuration order;If the address information in the management message is closed with the mapping Address information in system is identical, then performs and carry out delete operation or progress to existing configuration order according to the configuration order The process of operation is changed, otherwise, forbids carrying out delete operation or progress to existing configuration order according to the configuration order Modification operation.
6. according to the method described in claim 1, it is characterized in that, it whether there is and the configuration in the determining command history After order and the matched command entry of the way to manage, the method further includes:
If being not present, the priority of the way to manage, the priority of the configuration order are obtained;
If the priority of the way to manage is better than the priority of the configuration order, permit what is recorded in the command history Perhaps the way to manage for operating the configuration order is notified to manager.
7. according to the method described in claim 6, it is characterized in that,
Priority, the process of the priority of the configuration order for obtaining the way to manage, including:
Mapping table is inquired by the way to manage, obtains the corresponding priority of the way to manage;
By the configuration order querying command set, the corresponding priority of the configuration order is obtained;
Wherein, the mapping table is used for the correspondence of record management mode and priority;
The command history is used to record the correspondence of configuration order and priority.
8. a kind of configuration order managing device, which is characterized in that described device includes:
Parsing module, for when receiving management message, configuration order and way to manage to be parsed from the management message;
Determining module, for determining to whether there is and the configuration order and the matched order of the way to manage in command history ;Wherein, each command entry in the command history is used to record the correspondence of configuration order and way to manage;
Processing module for working as in the presence of definitive result is, then performs the configuration order.
9. device according to claim 8, which is characterized in that the determining module, specifically for determining command history In whether there is with the configuration order and the matched command entry of the way to manage during, looked by the configuration order Command history is ask, obtains way to manage corresponding with the configuration order;If obtained way to manage includes the management message In way to manage, it is determined that in the command history exist and the configuration order and the matched order of the way to manage ;Otherwise, it determines it is not present and the configuration order and the matched command entry of the way to manage in the command history.
10. device according to claim 8, which is characterized in that the determining module, specifically for determining command history In whether there is with the configuration order and the matched command entry of the way to manage during, looked by the way to manage Command history is ask, obtains configuration order corresponding with the way to manage;If obtained configuration order includes the management message In configuration order, it is determined that in the command history exist and the configuration order and the matched order of the way to manage ;Otherwise, it determines it is not present and the configuration order and the matched command entry of the way to manage in the command history.
11. device according to claim 8, which is characterized in that the processing module, specifically for performing the configuration During order, the configuration order is created, alternatively, carrying out deletion behaviour to existing configuration order according to the configuration order Make or operation of modifying;
The processing module is additionally operable to after the configuration order is created, and parses manager's from the management message Address information, and record the mapping relations of described address information and the configuration order;
The processing module is additionally operable to carrying out delete operation or progress to existing configuration order according to the configuration order Before modification operation, the address information of manager is parsed from the management message, and reflect by configuration order inquiry Relationship is penetrated, obtains address information corresponding with the configuration order;If address information and the mapping in the management message Address information in relationship is identical, then carries out delete operation to existing configuration order according to the configuration order or repair Change operation, otherwise, forbid carrying out delete operation or operation of modifying to existing configuration order according to the configuration order.
12. device according to claim 8, which is characterized in that the processing module is additionally operable to when definitive result is does not deposit When, then obtain the priority of the way to manage, the priority of the configuration order;If the priority of the way to manage is excellent In the priority of the configuration order, then by what is recorded allow to operate the way to manage of the configuration order in the command history It notifies to manager.
13. device according to claim 12, which is characterized in that the processing module is additionally operable to obtaining the management During the priority of mode, the priority of the configuration order, mapping table is inquired by the way to manage, is obtained described The corresponding priority of way to manage;By the configuration order querying command set, it is corresponding preferential to obtain the configuration order Grade;The mapping table is used for the correspondence of record management mode and priority;The command history is used to record configuration order With the correspondence of priority.
14. a kind of machine readable storage medium, which is characterized in that several computers are stored on the machine readable storage medium Instruction, the computer instruction, which is performed, to be handled as follows:
When receiving management message, configuration order and way to manage are parsed from the management message;
It determines to whether there is and the configuration order and the matched command entry of the way to manage in command history;The command set Each command entry in conjunction is used to record the correspondence of configuration order and way to manage;
If in the presence of the configuration order is performed.
CN201710769221.9A 2017-08-31 2017-08-31 Configuration command management method, device and machine-readable storage medium Active CN108259214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710769221.9A CN108259214B (en) 2017-08-31 2017-08-31 Configuration command management method, device and machine-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710769221.9A CN108259214B (en) 2017-08-31 2017-08-31 Configuration command management method, device and machine-readable storage medium

Publications (2)

Publication Number Publication Date
CN108259214A true CN108259214A (en) 2018-07-06
CN108259214B CN108259214B (en) 2021-03-23

Family

ID=62721167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710769221.9A Active CN108259214B (en) 2017-08-31 2017-08-31 Configuration command management method, device and machine-readable storage medium

Country Status (1)

Country Link
CN (1) CN108259214B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532121A (en) * 2019-08-20 2019-12-03 新华三大数据技术有限公司 Business module localization method and device
CN111176763A (en) * 2019-12-31 2020-05-19 杭州迪普科技股份有限公司 Method and device for calling help function of command

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859153A (en) * 2005-07-22 2006-11-08 上海华为技术有限公司 Method for setting user's power in communication system
CN1905476A (en) * 2005-07-29 2007-01-31 中兴通讯股份有限公司 Managing system and method for terminal products
CN101051937A (en) * 2006-05-10 2007-10-10 华为技术有限公司 User's power managing method and system based on XML
CN101110702A (en) * 2007-08-14 2008-01-23 中兴通讯股份有限公司 Method for command line interface authority classification and system thereof
JP5220712B2 (en) * 2009-09-09 2013-06-26 日本電信電話株式会社 Management server device, device management system, and device management method
CN103647826A (en) * 2013-12-10 2014-03-19 国家电网公司 Instruction level user permission control method in Telnet mode
CN104518907A (en) * 2014-09-05 2015-04-15 深圳市华讯方舟科技有限公司 Network device and network management system management authority limit synchronizing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859153A (en) * 2005-07-22 2006-11-08 上海华为技术有限公司 Method for setting user's power in communication system
CN1905476A (en) * 2005-07-29 2007-01-31 中兴通讯股份有限公司 Managing system and method for terminal products
CN101051937A (en) * 2006-05-10 2007-10-10 华为技术有限公司 User's power managing method and system based on XML
CN101110702A (en) * 2007-08-14 2008-01-23 中兴通讯股份有限公司 Method for command line interface authority classification and system thereof
JP5220712B2 (en) * 2009-09-09 2013-06-26 日本電信電話株式会社 Management server device, device management system, and device management method
CN103647826A (en) * 2013-12-10 2014-03-19 国家电网公司 Instruction level user permission control method in Telnet mode
CN104518907A (en) * 2014-09-05 2015-04-15 深圳市华讯方舟科技有限公司 Network device and network management system management authority limit synchronizing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532121A (en) * 2019-08-20 2019-12-03 新华三大数据技术有限公司 Business module localization method and device
CN110532121B (en) * 2019-08-20 2022-08-26 新华三大数据技术有限公司 Service module positioning method and device
CN111176763A (en) * 2019-12-31 2020-05-19 杭州迪普科技股份有限公司 Method and device for calling help function of command
CN111176763B (en) * 2019-12-31 2023-03-31 杭州迪普科技股份有限公司 Method and device for calling help function of command

Also Published As

Publication number Publication date
CN108259214B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN104580349B (en) Secure cloud administration agent
CN104954271B (en) Data package processing method and device in SDN network
CN105027070B (en) Roll up the security of operation
CN105531972B (en) It controls data and stores input/output request
JP2024038272A (en) Technique for file sharing
US20190266128A1 (en) Method and system for verification of deleted data for blockchains
US10135871B2 (en) Service oriented software-defined security framework
CN108632074A (en) A kind of business configuration file delivery method and device
KR20200083548A (en) Asset management systems, methods, apparatus, and electronic devices
US20160334998A1 (en) Tenant-level sharding of disks with tenant-specific storage modules to enable policies per tenant in a distributed storage system
US20190058753A1 (en) Maintaining control over restricted data during deployment to cloud computing environments
CN108733507A (en) The method and apparatus of file backup and recovery
US10305749B2 (en) Low latency flow cleanup of openflow configuration changes
BR112021008817A2 (en) ways to define and manage in a trusted network of distributed records
CN105074692A (en) Distributed network management system using a logical multi-dimensional label-based policy model
TW201703485A (en) Methods and systems for orchestrating physical and virtual switches to enforce security boundaries
US11677716B2 (en) System of a distributed web application firewall cluster
CN104020961A (en) Distributed data storage method, device and system
CN108733311A (en) Method and apparatus for managing storage system
CN107317792A (en) A kind of method and apparatus for realizing access control in virtual proprietary network
CN109714239A (en) A kind of delivery method, VNFM equipment and server managing message
CN106878084A (en) A kind of authority control method and device
CN109565518A (en) Interchangeable content retrieval
CN108259218A (en) A kind of IP address distribution method and device
CN106686104A (en) Method and device used for operation and maintenance of target server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant