Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Junos Snapshot Administrator Test Operators Summary

 

Junos Snapshot Administrator enables you to capture and audit runtime environment snapshots of your networked devices running Junos OS. The Junos Snapshot Administrator configuration file defines the scope of a snapshot and the evaluation criteria for either a single snapshot or a comparison of two snapshots. Within the configuration file, you can create test cases that evaluate or compare content from specific Junos OS operational mode commands. The test cases use test operators to either evaluate data elements in a single snapshot or compare data elements in two separate snapshots.

Table 1 lists the Junos Snapshot Administrator test operators along with a brief description of each operator. Operators are grouped by operand type.

Table 1: Junos Snapshot Administrator Test Operators

Operator

Description

Compare Elements or Element Values in Two Snapshots

delta

Compare the change in value of a specified data element, which must be present in both snapshots, to a specified delta. You can specify the delta as an absolute, positive, or negative percentage, or an absolute, positive, or negative fixed value.

list-not-less

Determine if the specified items are present in the first snapshot but are not present in the second snapshot.

list-not-more

Determine if the specified items are present in the second snapshot but are not present in the first snapshot.

no-diff

Compare specified data elements that are present in both snapshots, and verify that the value is the same.

Operate on Elements with Numeric or String Values

all-same

Check if all content values for the specified elements are the same. Optionally, you can check if all content values for the specified elements are the same as the content value of a reference item.

is-equal

Test if an XML element string or integer value matches a given value.

not-equal

Test if an XML element string or integer value does not match a given value.

Operate on Elements with Numeric Values

in-range

Test if the XML element value is within a given numeric range.

is-gt

Test if the XML element value is greater than a given numeric value.

is-lt

Test if the XML element value is less than a given numeric value.

not-range

Test if the XML element value is outside a given numeric range.

Operate on Elements with String Values

contains

Determine if an XML element string value contains the provided string value.

is-in

Determine if an XML element string value is included in a specified list of string values.

not-in

Determine if an XML element string value is excluded from a specified list of string values.

Operate on XML Elements

exists

Verify the existence of an XML element in the snapshot.

not-exists

Verify the lack of existence of an XML element in the snapshot.