Statements that are only in the comparison file are prefixed Statements that are only in the active or candidate configuration Output uses the following conventions to specify the differences between The text output is enclosed in the and tags. The compare operation returns XML output.įor all other comparisons, it returns the output as text using a patchįormat. When you compare the candidate configuration to the active configuration, That selects the elements to compare, as shown in the following example: To compare a subset of the configuration, define a subtree filter The full configuration or you can compare a subset of the configuration. You can also specify the scope of the comparison. Include the database="committed" attribute. To compare the active configuration to a previous configuration, That has the given rollback index, use the following syntax: Similarly, to compare the candidate configuration to the configuration That has the given configuration revision identifier, use the following The active configuration correspondsįor example, to compare the candidate configuration to the configuration If you include the compare attribute but either omit the corresponding configuration-revision or rollback attribute or provide an invalidĬonfiguration revision identifier, the server uses the active configurationĪs the comparison configuration. You define the comparison configuration by defining the configuration-revision or rollback attribute and specifying the appropriate configuration revision To compare the candidate configuration, specify database="candidate" or omit the database attribute. To compare theĪctive configuration, specify database="committed". Whether the candidate configuration or the active configuration isĬompared to the previously committed configuration. The rollback=" rollback-number" attribute. String, which you define in the configuration-revision=" revision-id" attribute.Ĭomparison configuration by its rollback index, which you define in The comparison configuration by its configuration revision identifier Used to reference the comparison configuration: The compare attribute accepts the following values, which indicate the method (the comparison configuration), a client application uses the operation with the compare attribute. OS, to request that the server display the differences between theĪctive or candidate configuration and a previously committed configuration In a Junos XML protocol session with a device running Junos Similarly in configuration mode, you can compare theĬandidate configuration to a previously committed configuration by Show configuration | compare rollback rollback-number Show configuration | compare revision revision-id The comparison configuration by referencing its configuration revisionįor example, in operational mode, you can compare theĪctive configuration to a previously committed configuration by using JSONPath.pm is a simple perl class, ported from the Javascript and PHP versions, that can be wrapped within a script like to give command line inspection into a JSON file or leveraged in a larger application.In the Junos OS CLI, you use the compare command to compare the active or candidate configuration to a previouslyĬommitted configuration and display the differences. This could be a key in a hash, an item in an array, book the books with a ratings element that contains the word "good" store//price $.store.price the price of everything in the store. store/* $.store.* all things in store, which are some books and a red bicycle. store/book/author $. the authors of all books in the store
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |