CN116405394A - Configuration detection method and device - Google Patents

Configuration detection method and device Download PDF

Info

Publication number
CN116405394A
CN116405394A CN202310319517.6A CN202310319517A CN116405394A CN 116405394 A CN116405394 A CN 116405394A CN 202310319517 A CN202310319517 A CN 202310319517A CN 116405394 A CN116405394 A CN 116405394A
Authority
CN
China
Prior art keywords
command
inconsistent
command line
software version
lines
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.)
Pending
Application number
CN202310319517.6A
Other languages
Chinese (zh)
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 CN202310319517.6A priority Critical patent/CN116405394A/en
Publication of CN116405394A publication Critical patent/CN116405394A/en
Pending legal-status Critical Current

Links

Images

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
    • H04L41/0866Checking the configuration
    • 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
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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
    • H04L41/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The specification provides a configuration detection method and device, and relates to the technical field of communication. A configuration detection method, comprising: acquiring a command tree of a software version to be updated and configuration information stored by the command tree, wherein the command tree comprises a command line grammar, and the configuration information comprises a plurality of command lines; comparing the command lines with command line grammar, and recording inconsistent command lines; if there is an inconsistent command line, the inconsistent command line is output. By the method, the upgrading reliability of the network equipment can be improved.

Description

Configuration detection method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a configuration detection method and apparatus.
Background
ISSU (uninterrupted service upgrade, in-Service Software Upgrade) is a way for upgrading equipment to start software with high reliability, and can ensure that service is not interrupted or interruption time is short In the upgrading process. When the ISSU is upgraded, the original software version in the network equipment is replaced by the updated software version.
Configuration information is also stored in a network device, and after upgrading is completed, the configuration information is restored to the network device. However, because the software versions before and after updating are different, the configuration information may be unrecognizable, for example, directly recovering the configuration information may cause the network device to malfunction, and reduce the reliability of the upgrade of the network device, so how to improve the reliability of the recovery of the configuration information is a problem to be solved by those skilled in the art.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a configuration detection method and apparatus.
With reference to the first aspect of the embodiments of the present specification, the present application provides a configuration detection method, including:
acquiring a command tree of a software version to be updated and configuration information stored by the command tree, wherein the command tree comprises a command line grammar, and the configuration information comprises a plurality of command lines;
comparing the command lines with command line grammar, and recording inconsistent command lines;
if there is an inconsistent command line, the inconsistent command line is output.
Optionally, after outputting the inconsistent command line, the method further includes:
backing up inconsistent command lines;
deleting inconsistent command lines from the configuration information to generate configuration information to be executed;
updating the software version to be updated;
if errors occur in the configuration recovery based on the configuration information to be executed, recovering the original software version, and carrying out configuration recovery based on the configuration information to be executed and inconsistent command lines.
Optionally, after the command lines are traversed, the method further includes:
and if the inconsistent command lines do not exist, updating the software based on the version of the software to be updated.
Optionally, comparing the command lines with the command line grammar to record inconsistent command lines, including:
extracting syntax elements from the command lines one by one, and determining whether a command line syntax consistent with the syntax elements exists, wherein the syntax elements comprise keywords, sequences and parameter values;
if it is determined that there is no command line syntax consistent with the syntax element, the command line is recorded as an inconsistent command line.
Further, after extracting the syntax elements from the command line by command line, the method further includes:
and correcting the grammar of the command line according to the preprocessing rule.
Optionally, a command tree of the software version to be updated is obtained, specifically, a command text in the software version to be updated is obtained; or, obtaining a command database in the software version to be updated, wherein the command database is provided with a search rule of a command line grammar.
With reference to the second aspect of the embodiments of the present specification, the present application provides a configuration detection apparatus, including:
the system comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring a command tree of a software version to be updated and configuration information stored by the command tree, the command tree comprises a command line grammar, and the configuration information comprises a plurality of command lines;
the comparison unit is used for comparing a plurality of command lines with the command line grammar and recording inconsistent command lines;
and the alarm unit is used for outputting inconsistent command lines if the inconsistent command lines exist.
Optionally, the device further includes:
the backup unit is used for backing up inconsistent command lines;
the processing unit is used for deleting inconsistent command lines from the configuration information and generating configuration information to be executed;
the detection unit is used for carrying out self-updating based on the software version to be updated;
and the recovery unit is used for recovering the original software version if errors occur during configuration recovery based on the configuration information to be executed, and carrying out configuration recovery based on the configuration information to be executed and inconsistent command lines.
Optionally, the device further includes:
and the updating unit is used for updating the software version to be updated if the inconsistent command lines do not exist.
Optionally, the comparing unit includes:
a comparison module for extracting syntax elements from the command lines one by one, and determining whether a command line syntax consistent with the syntax elements exists, wherein the syntax elements include keywords, sequences and parameter values;
and the recording module is used for recording the command line as an inconsistent command line if the command line grammar consistent with the grammar element does not exist.
Optionally, the device further includes:
and the preprocessing unit is used for correcting the command line grammar according to the preprocessing rule.
Optionally, the acquiring unit is specifically configured to acquire a command text in a software version to be updated; or, acquiring a command database in the software version to be updated, wherein the command database is deployed with a search rule of a command line grammar.
In connection with a third aspect of the embodiments of the present specification, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: method steps implementing any of the above.
In connection with a fourth aspect of the embodiments herein, there is provided a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: method steps implementing any of the above.
The technical scheme provided by the embodiment of the specification can comprise the following beneficial effects:
in the embodiment of the specification, the command tree according to the software version to be updated is compared with the configuration information stored by the command tree, and inconsistent command lines are recorded and provided for staff, so that the problem that original configuration information cannot adapt to the updated software version in the ISSU upgrading process is avoided, and the reliability of network equipment upgrading is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a flow chart of a configuration detection method in accordance with the present application;
FIG. 2 is a schematic diagram illustrating a comparison of command trees and command lines in a configuration detection method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a configuration detecting device according to the present application;
fig. 4 is a schematic structural diagram of a network device according to the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
The application provides a configuration detection method, as shown in fig. 1, comprising the following steps:
s100, acquiring a command tree of a software version to be updated and configuration information stored by the command tree.
When the network device is updated, a software version to be updated needs to be acquired. The update, including both upgrade and downgrade, referred to herein may be referred to as a software version to be updated when the network device is updated, and the software version that the network device is running before the update may be referred to as a current software version.
The network device may also obtain configuration information, where the configuration information may be stored in the network device, or may be obtained from other devices, for example, a cloud platform or other network devices, where the configuration information is used to implement configuration for one network device, for example, an IP (internet protocol ) address, an IP network segment to which the configuration information belongs, and the like, which is not limited in this regard.
Each software version contains a command tree that may contain command line syntax that may contain syntax words, syntax order, and syntax parameters. The configuration information may include a number of command lines. Based on the command tree, the network device can parse the function indicated by each command line to realize the configuration of the network device.
Optionally, step S100 is to obtain a command tree of the software version to be updated, specifically, obtain a command text in the software version to be updated; or acquiring a command database in the software version to be updated; wherein, the command database is provided with a search rule of a command line grammar.
If the command tree is stored in the form of a command text in the software version to be updated, the network device can directly read the command text and cache the command text in the memory for subsequent application, and if the command tree is stored in the form of a corresponding command database in the software version to be updated, the network device can acquire an access interface of the command database and search the command database in the subsequent application. Of course, the manner in which the network device obtains the command tree is not limited to the above, and is not limited thereto.
S101, comparing a plurality of command lines with command line grammar, and recording inconsistent command lines.
Each command line may include a syntax element, which may be understood as a configuration object representing a desired implementation of the command line, a configuration element, which may be understood as a configuration result representing a desired implementation of the syntax element, and the like. The syntax element contains a key, an order and a parameter. The key word may be understood as a character string matching a grammar word in a command line grammar, the sequence may be understood as an appearance sequence of configuration elements set by the grammar word corresponding to the grammar sequence in the command line, and the parameter may be understood as an input parameter value corresponding to a grammar parameter.
In the command tree, each syntax element corresponds to a unique configuration object, i.e. affects whether the network device can correctly understand what the configuration element configures. If the grammar of the command line in the current software version and the software version to be updated changes, the network device cannot correctly understand the grammar elements in the command line, and thus cannot correctly realize the configuration result required by the configuration elements, and the network device generates configuration errors.
In the command line grammar, if the grammar word changes, keywords in the command line cannot be matched, so that network equipment cannot understand the configuration content of the command line; if the grammar sequence is changed, deviation of configuration content can be caused; if the syntax parameter changes, the parameter in the command line may be out of the setting range of the syntax parameter. All three conditions can cause the situation that the stored configuration information cannot be recovered after the network equipment updates according to the version of the software to be updated, and the network equipment prompts the fault.
It should be noted that, in one command line, only the syntax element may be included, or a combination of the syntax element and the configuration element may be included, which is not limited.
In summary, in performing the comparison between the command lines and the command tree, it is necessary to pay attention to whether each item of the syntax element in each command line is consistent with each item of the command line syntax in the command tree. If the command lines are consistent, the command lines can be detected, and if the command lines are inconsistent, the inconsistent command lines need to be recorded for confirmation by subsequent users.
Specifically, step S101, comparing a plurality of command lines with command line grammar and command line parameters corresponding to the command line grammar, and recording inconsistent command lines, including:
S101A, extracting syntax elements from command lines one by one, and determining whether command line syntax consistent with the syntax elements exists or not;
S101B, if it is determined that there is no command line syntax consistent with the syntax element, recording the command line as an inconsistent command line.
Optionally, after extracting the syntax elements from the command line by command line, before determining whether there is a command line syntax consistent with the syntax elements, the method further includes:
and correcting the grammar of the command line according to the preprocessing rule.
In the command tree of the software version to be updated, abnormality caused by incorrect input may exist, and since the matching between the syntax element and the command line syntax is a perfect matching manner, that is, only the content of the syntax element is completely consistent with the command line syntax, the syntax element and the command line syntax may not be completely consistent due to abnormality caused by input, thus automatic configuration detection cannot be completed, manual modification is required by staff, and configuration recovery efficiency is reduced.
In order to avoid the above-mentioned problems, a certain preprocessing rule may be configured in the network device, for example, the preprocessing rule includes at least one of deleting repeated space, head space and tail space. Redundant spaces are considered to be the most frequently false input-causing cases, and therefore, spaces repeatedly appearing in the command line grammar, spaces redundantly set at the head and tail of a line, and the like can be deleted by configuring a preprocessing rule.
Of course, according to actual requirements, different preprocessing rules can be set, so that error input possibly occurring in the comparison process is eliminated, and the method is not limited.
S102, if inconsistent command lines exist, outputting the inconsistent command lines.
After comparison, the network device can have a record, if inconsistent command lines exist in the record, the network device can consider that part of command lines in the configuration information cannot be completed, so that the network device can output the inconsistent command lines to the terminal so as to prompt a user to remove the configuration information which can cause errors, the update of the software version can be completed, configuration faults caused by directly updating the software version are avoided, and the reliability of the network device upgrade is improved.
Optionally, after outputting the inconsistent command line in step S102, the method further includes:
s103, backing up inconsistent command lines;
s104, deleting inconsistent command lines from the configuration information to generate configuration information to be executed;
s105, updating the software version based on the software version to be updated;
s106, if errors occur in the configuration recovery based on the configuration information to be executed, recovering the original software version, and performing configuration recovery based on the configuration information to be executed and inconsistent command lines.
In the case of inconsistent command lines being output, these inconsistent command lines may also be backed up. Thereafter, the network device may choose to delete the inconsistent command lines automatically or based on user confirmation, generating a copy of the configuration information to be executed.
Thereafter, the network device may update based on the software version to be updated, and then perform configuration recovery according to the configuration information to be executed. In the recovery process, if no error occurs, the software version to be updated is indicated to be capable of adapting to the configuration information to be executed, and the configuration recovery is completed. If errors occur, the software version to be updated cannot adapt to the configuration information to be executed, configuration recovery cannot be completed, in order to avoid faults caused by configuration errors of the network device, the network device can recover the original software version, and the original configuration information (namely the configuration information stored in the foregoing manner) is recovered according to the inconsistent configuration information and the configuration information to be executed, so that the network device is recovered to the state before the software version is updated.
Optionally, after the network device performs steps S100-S102 until several command lines are traversed, the method further includes:
and S107, if the inconsistent command lines do not exist, updating the software version to be updated.
Thus, it can be stated that the current software version and the software version to be updated are compatible, and the configuration information can smoothly realize recovery between the two software versions, and at this time, the network device can directly update based on the software version to be updated and recover the current configuration information, thereby completing the software version updating process of the network device.
A configuration detecting method according to the present application will be described with reference to a specific embodiment.
S1, the network equipment acquires a software version to be updated, and analyzes a command text from the software version to be updated as a command tree.
S2, the network equipment acquires the configuration information stored by the network equipment, and analyzes and acquires a plurality of command lines in the configuration information.
And S3, the network equipment extracts the syntax elements, the configuration elements and the parameters from a command line.
In a command line shown in fig. 2, a syntax element ip address and a configuration element 24.226.114.27 are included.
In one command line syntax in the command tree illustrated in fig. 2, the command line identifies 0x03160501, the command line syntax IP address x.x.x.x { x.x.x|inter <1-31> }, where IP address is a syntax word, the order is the order of appearance of the content, such as x.x.x.x.x is an IP address configured first, { x.x.x|inter <1-31> } configured later is a mask, the IP address and mask appearance position is a syntax order, inter <1-31> is a mask possible configuration mode is a syntax parameter.
Another command line syntax as shown in FIG. 2 includes a command line identifier 0x03160601 and a command line syntax ip address unnumbered interface { STRING <1-20> STRING <1-27> |STRING <1-47> }, respectively, wherein the syntax word is ip address unnumbered interface and the syntax parameter is { STRING <1-20> STRING <1-27> |STRING <1-47> }.
S4, the network equipment extracts a grammar element in a command line and determines whether a command line grammar consistent with the grammar element exists in the command tree. If so, the next command line in the configuration information is read, and if not, step S5 is skipped.
With one command line example in fig. 2, the command line grammar is pre-processed, and redundant spaces ("0 x 03160501") at the head of the line are present in the command line parameters, and the redundant spaces are deleted. Since the syntax elements and configuration elements in the command line are matched with the syntax words, but the parameters in the command line are inconsistent with the range of the corresponding syntax parameters in the command tree, it can be confirmed that the command line in fig. 2 can be found in the command tree, and the parameters are inconsistent. At this point, the network device needs to record the inconsistent command line and read the next command line for matching.
Taking another command line example in fig. 2, the syntax element in the command line is matched with the command line syntax of the command tree, the parameter in the command line is consistent with the range of the corresponding syntax parameter in the command tree (the parameter: interface-type interface-number, the syntax parameter: STRING <1-20> STRING <1-27> |STRING <1-47 >), and it can be confirmed that the parameter of the command line in fig. 2 is consistent with the corresponding command line parameter in the command tree, and the next command line is directly read for matching.
S5, the network equipment records the determined inconsistent command lines and continues to read the next command line for comparison. If there is a command line that is not being compared, step S3-step S5 are executed in a loop, and if there is no command line that is not being compared, step S6 is skipped.
S6, the network equipment outputs inconsistent command lines and backs up the inconsistent command lines.
After the inconsistent command lines are output, whether the command lines need to be updated or not can be selected by a user, or the network equipment can automatically execute the updating, and the command lines are selected according to actual requirements.
And S7, the network equipment deletes the inconsistent command line from the configuration information to generate execution configuration information which does not contain the inconsistent command line.
And S8, the network equipment updates itself based on the software version to be updated, and performs configuration recovery based on the configuration information to be executed. If no error occurs in the running process, the software version updating and the configuration recovery are completed, and if the error occurs in the running process, the step is skipped to the step S9.
S9, the network equipment recovers the original configuration (namely the stored configuration information described before) based on the original software version and according to the backed-up inconsistent configuration information and the configuration information to be executed.
When steps S3 to S5 are executed, if there is no inconsistent command line in the configuration information, step S10 is skipped.
And S10, the network equipment updates itself based on the software version to be updated, and recovers the configuration information to complete the software version update of the network equipment.
Based on the above procedure, the update of the software version of the network device can be completed, and the network configuration can be restored as much as possible.
Correspondingly, the application also provides a configuration detection device, as shown in fig. 3, which comprises:
the system comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring a command tree of a software version to be updated and configuration information stored by the command tree, the command tree comprises a command line grammar, and the configuration information comprises a plurality of command lines;
the comparison unit is used for comparing a plurality of command lines with command line grammar and command line parameters corresponding to the command line grammar and recording inconsistent command lines;
and the alarm unit is used for outputting inconsistent command lines if the inconsistent command lines exist.
Optionally, the device further includes:
the backup unit is used for backing up inconsistent command lines;
the processing unit is used for deleting inconsistent command lines from the configuration information and generating configuration information to be executed;
the detection unit is used for carrying out self-updating based on the software version to be updated;
and the recovery unit is used for recovering the original software version if errors occur during configuration recovery based on the configuration information to be executed, and carrying out configuration recovery based on the configuration information to be executed and inconsistent command lines.
Optionally, the device further includes:
and the updating unit is used for updating the software version to be updated if the inconsistent command lines do not exist.
Optionally, the comparing unit includes:
a comparison module for extracting syntax elements from the command lines one by one, and determining whether a command line syntax consistent with the syntax elements exists, wherein the syntax elements include keywords, sequences and parameter values;
and the recording module is used for recording the command line as an inconsistent command line if the command line grammar consistent with the grammar element does not exist.
Optionally, the device further includes:
and the preprocessing unit is used for correcting the command line grammar according to the preprocessing rule. For example, the preprocessing rules include at least one of deleting repeated spaces, head spaces, and tail spaces.
Optionally, the acquiring unit is specifically configured to acquire a command text in a software version to be updated; or, obtaining a command database in the software version to be updated, wherein the command database is provided with a search rule of a command line grammar.
Correspondingly, a network device, as shown in fig. 4, comprises a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: method steps implementing any of the above.
Correspondingly, a machine-readable storage medium stores machine-executable instructions that, when invoked and executed by a processor, cause the processor to: method steps implementing any of the above.
The technical scheme provided by the embodiment of the specification can comprise the following beneficial effects:
in the embodiment of the specification, the command tree according to the software version to be updated is compared with the configuration information stored by the command tree, and inconsistent command lines are recorded and provided for staff, so that the problem that original configuration information cannot adapt to the updated software version in the ISSU upgrading process is avoided, and the reliability of network equipment is improved.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (14)

1. A configuration detection method, comprising:
acquiring a command tree of a software version to be updated and configuration information stored in the command tree, wherein the command tree comprises a command line grammar, and the configuration information comprises a plurality of command lines;
comparing the command lines with the command line grammar, and recording inconsistent command lines;
if there is an inconsistent command line, the inconsistent command line is output.
2. The method of claim 1, further comprising, after the outputting the inconsistent command line:
backing up inconsistent command lines;
deleting the inconsistent command line from the configuration information to generate configuration information to be executed;
updating the software version to be updated based on the software version to be updated;
and if errors occur in the configuration recovery based on the configuration information to be executed, recovering the original software version, and carrying out configuration recovery based on the configuration information to be executed and inconsistent command lines.
3. The method of claim 1, further comprising, after the number of command lines are traversed:
and if the inconsistent command lines do not exist, updating the software version to be updated.
4. The method of claim 1, wherein the recording inconsistent command lines according to the comparison of the command lines with the command line syntax and command line parameters corresponding to the command line syntax comprises:
extracting syntax elements from a command line, and determining whether the command line syntax consistent with the syntax elements exists, wherein the syntax elements comprise keywords, sequences and parameter values;
if it is determined that there is no command line syntax consistent with the syntax element, the command line is recorded as an inconsistent command line.
5. The method of claim 4, further comprising, after extracting syntax elements on a command line by command line basis:
and correcting the command line grammar according to a preprocessing rule.
6. The method according to any of the claims 1-5, wherein the obtaining a command tree of the software version to be updated, in particular obtaining a command text in the software version to be updated; or, obtaining a command database in the software version to be updated, wherein the command database is provided with a search rule of a command line grammar.
7. A configuration detecting apparatus, comprising:
the device comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring a command tree of a software version to be updated and configuration information stored by the command tree, the command tree comprises a command line grammar, and the configuration information comprises a plurality of command lines;
the comparison unit is used for comparing the command lines with the command line grammar and recording inconsistent command lines;
and the alarm unit is used for outputting inconsistent command lines if the inconsistent command lines exist.
8. The apparatus as recited in claim 7, further comprising:
the backup unit is used for backing up inconsistent command lines;
the processing unit is used for deleting the inconsistent command lines from the configuration information and generating configuration information to be executed;
the detection unit is used for carrying out self-updating based on the software version to be updated;
and the recovery unit is used for recovering the original software version if errors occur during configuration recovery based on the configuration information to be executed, and carrying out configuration recovery based on the configuration information to be executed and inconsistent command lines.
9. The apparatus as recited in claim 7, further comprising:
and the updating unit is used for updating the software version to be updated if the inconsistent command lines do not exist.
10. The apparatus of claim 7, wherein the alignment unit comprises:
a comparison module for extracting syntax elements from command lines one by one, and determining whether the command line syntax consistent with the syntax elements exists, wherein the syntax elements comprise keywords, sequences and parameter values;
and the recording module is used for recording the command line as an inconsistent command line if the command line grammar consistent with the grammar element is determined to be absent.
11. The apparatus as recited in claim 10, further comprising:
and the preprocessing unit is used for correcting the command line grammar according to the preprocessing rule.
12. The apparatus according to any of the claims 7-11, wherein the obtaining unit is specifically configured to obtain command text in a software version to be updated; or acquiring a command database in the software version to be updated; wherein, the command database is provided with a command line grammar search rule.
13. A network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: method steps of any one of claims 1-6 are carried out.
14. A machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: method steps of any one of claims 1-6 are carried out.
CN202310319517.6A 2023-03-28 2023-03-28 Configuration detection method and device Pending CN116405394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310319517.6A CN116405394A (en) 2023-03-28 2023-03-28 Configuration detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310319517.6A CN116405394A (en) 2023-03-28 2023-03-28 Configuration detection method and device

Publications (1)

Publication Number Publication Date
CN116405394A true CN116405394A (en) 2023-07-07

Family

ID=87009677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310319517.6A Pending CN116405394A (en) 2023-03-28 2023-03-28 Configuration detection method and device

Country Status (1)

Country Link
CN (1) CN116405394A (en)

Similar Documents

Publication Publication Date Title
CN112463450B (en) Incremental backup management method, system, electronic equipment and storage medium
CN109298871B (en) Software version monitoring and deploying method for intelligent scheduling system of power grid
CN100450013C (en) Method for storing configuration data of communication equipment
CN111651304B (en) Software recovery method and device based on double-core intelligent ammeter and computer equipment
CN112579354A (en) Method for backup recovery of edge cloud collaborative software
US8612799B2 (en) Method and apparatus of backing up subversion repository
WO2018177193A1 (en) Software upgrade method and device
CN114356855A (en) File management method, file management device, electronic device and readable storage medium
CN112650624B (en) Cluster upgrading method, device, equipment and computer readable storage medium
CN116405394A (en) Configuration detection method and device
CN112925676A (en) Method for realizing recovery of distributed database cluster at any time point based on WAL
CN112749043B (en) Database disaster recovery method, system, device and medium
CN100442715C (en) Plan and task realizing method in device management
CN117667177A (en) Distributed system patch upgrading method, device, equipment and storage medium
CN111597165B (en) Database management method, terminal and storage medium
CN102520974B (en) Method and device for automatic recovery of repeater station radio frequency data table
CN114003266B (en) Method and device for generating multiple differential packets based on Android flash firmware
CN115794096A (en) Web application framework conversion method and device
CN102831029A (en) Implementation method and system for upgrading backspacing of network element
CN112114837B (en) Firmware updating method and camera
KR100530736B1 (en) An apparatus and method for reusing use cases for capturing requirements of an object oriented system and method for capturing requirements using thereof
CN115599405A (en) Docker-based extended service management method and device
CN115421974A (en) BIOS (basic input output System) recovery method, device, equipment and medium based on PFR (pulse frequency response)
CN113297220A (en) Data recovery method and device, computer readable storage medium and processor
CN113204360A (en) System upgrading method and device

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