Active and Candidate

Active and Candidate

Quiz Page

Test your understanding of key concepts with a short quiz. A quick way to check what you know before moving on.

Lab Page

Hands-on practice exercises to reinforce what you’ve learned. Work through real scenarios in a guided environment.

Notes

Unlike some vendors, Juniper changes are not applied immediately. They need to be committed first.

The ‘active’ configuration is the configuration that’s running right now. The candidate config is a copy of the active that we’re making changes to. This overwrites the active configuration when it’s committed.

Candidate configs are stored in /var/rundb/juniper.data

When committing, Junos runs some checks to make sure the changes are fine before they’re applied. If they’re not fine, the commit will fail, and no changes are made.

‘Private configuration’ means that everyone in configuration mode will get their own copy of the candidate config. This stops admins making changes to each other’s configs. These may need to be synchronised before committing.

‘Exclusive configuration’ means that only one admin will be able to edit the configuration. This locks out other changes until the admin leaves exclusive mode.

Configuration archival takes backups of the config, and stores it on a remote server. This can be at regular intervals, or whenever changes are made.

These files are temporarily stored in /var/transfer/config. Archive sites can use either FTP or SCP.

The file naming convention is hostname.juniper.conf.gz_yyyymmdd_HHMMSS

Whenever a config is archived to a remote site, a syslog entry is raised.

Command Summary

CommandModeDescription
commitConfigurationMove a candidate config to the active config (applies configuration changes)
commit checkConfigurationConfirm your changes are valid, without committing them
commit commentConfigurationAdd a comment to the commit
commit atConfigurationSchedule a commit
commit and-quitConfigurationCommit, and take us back to operational mode
show | compareConfigurationCompare your changes (candidate) to the active config
configure privateOperationalEnter private configuration mode
configure exclusiveOperationalEnter exclusive configuration mode
update ConfigurationSync the candidate config with changes others have made
set system archival configuration archive-sitesConfigurationA site to archive the config to
set system archival configuration transfer-intervalConfigurationA regular interval to perform an archive
set system archival configuration transfer-on-commitConfigurationArchive config when committing
test configuration FILEOperationalTest if a configuration file is ok

Additional References

Configuration Files

Configuration Files

Leave a Reply