EP2804342A2

Method and device for clearing configuration command in communication equipment

Abstract

Embodiments of the present invention provide a method and an apparatus for clearing a configuration command in a communication equipment. The method mainly includes: acquiring hierarchy information of each network element and information of a configuration command deployed on each network element in a communication equipment, determining the hierarchy information of each network element as hierarchy information of the configuration command deployed on each network element, and constructing a configuration command tree in an initial status according to hierarchy information of configuration commands deployed on all network elements; obtaining a target status of the configuration command tree according to a specific configuration status that is specified by a user and the communication equipment needs to recover to, comparing the initial status and the target status of the configuration command tree, determining, according to a comparison result, a node that needs to be cleared from the configuration command tree, and clearing, according to a default clearing rule of the communication equipment and/or a customized clearing rule, the node that needs to be cleared. According to the embodiments of the present invention, the configuration command in the communication equipment may be cleared effectively and rapidly.

EP2804342A2, drawing sheet 1
Sheet 1 of 4

Term

Projected expiry 17 February 2032.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

10 claims: 2 independent, 8 dependent

  1. 1
    A method for clearing a configuration command in a communication equipment, comprising:acquiring hierarchy information of each network element and information of a configuration command deployed on each network element in a communication equipment, determining the hierarchy information of each network element as hierarchy information of the configuration command deployed on each network element, and constructing a configuration command tree in an initial status according to hierarchy information of configuration commands deployed on all network elements, wherein each node in the configuration command tree represents one configuration command;obtaining a target status of the configuration command tree according to a specific configuration status that is specified by a user and the communication equipment needs to recover to, comparing the initial status and the target status of the configuration command tree, and determining, according to a comparison result, a node that needs to be cleared from the configuration command tree;and clearing, according to a default clearing rule of the communication equipment and/or a customized clearing rule, the node that needs to be cleared.
  2. 7
    An apparatus for clearing a configuration command in a communication equipment, comprising:a configuration command tree constructing module, configured to acquire hierarchy information of each network element and information of a configuration command deployed on each network element in a communication equipment, determine the hierarchy information of each network element as hierarchy information of the configuration command deployed on each network element, and construct a configuration command tree in an initial status according to hierarchy information of configuration commands deployed on all network elements, wherein each node in the configuration command tree represents one configuration command;and a configuration command clearing processing module, configured to obtain a target status of the configuration command tree according to a specific configuration status that is specified by a user and the communication equipment needs to recover to, compare the initial status and the target status of the configuration command tree, determine, according to a comparison result, a node that needs to be cleared from the configuration command tree, and clear, according to a default clearing rule of the communication equipment and/or a customized clearing rule, the node that needs to be cleared.
  3. 10
    The apparatus according to any one of claims 7 to 9, wherein the configuration command clearing processing module is further configured to, when a first node that needs to be cleared is dependent on a second node, clear the second node first and then clear the first node.