Snapshots
This scenario shows how to generate and user configuration snapshots.
Test Snapshots
Description
Multiple snapshots are generated by committing changes in the configuration. Snapshots are a very powerful way for making quick configuration changes.
Scenario
Step 1: Run the command delete system snapshot all on DUT0 and expect no output.
Step 2: Set the following configuration in DUT0 :
set system description Initial set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system snapshots include-uncommented
Step 3: Modify the following configuration lines in DUT0 :
set system description Dummy1
Step 4: Run the command show snapshot on DUT0 and expect the following output:
Show output
Snapshot Comment ----------------------------- 20260519120950_commit <empty>
Step 5: Modify the following configuration lines in DUT0 :
set system description Dummy2
Step 6: Run the command show snapshot on DUT0 and expect the following output:
Show output
Snapshot Comment ----------------------------- 20260519120950_commit <empty> 20260519120952_commit <empty>
Step 7: Run the command show running on DUT0 and check whether the output matches the following regular expressions:
Dummy2Show output
# Teldat OSDx VM version v4.2.10.0 # Tue 19 May 2026 12:09:52 +00:00 # Warning: Configuration has not been saved set system description Dummy2 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system snapshots include-uncommented
Step 8: Run the command show changes snapshot 20260519120950_commit snapshot 20260519120952_commit on DUT0 and check whether the output matches the following regular expressions:
Dummy1Show output
set system description Dummy1
Step 9: Modify the following configuration lines in DUT0 :
set system description Dummy1
Step 10: Run the command show running on DUT0 and check whether the output matches the following regular expressions:
Dummy1Show output
# Teldat OSDx VM version v4.2.10.0 # Tue 19 May 2026 12:09:53 +00:00 # Warning: Configuration has not been saved set system description Dummy1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system snapshots include-uncommented