Creating and Managing Baseline of Device Configuration Files
You can create a baseline device configuration and the device Junos (OS) version on the Network Director server. By creating a baseline configuration file for a device you define a reference point to save the device configuration and its OS version to a particular known state and later restore the configuration to that known state. You can select the devices at the scope level, custom grouping, or for individual devices and create baseline configuration files and images for all or for the selected devices. The baseline configuration file includes the entire configuration and image files. When you restore a device configuration, you restore both the baseline configuration file and the image of the file. However, restoring image is optional.
An alarm is triggered if there are any changes to the baseline configuration. The alarm contains the delta information for later reference. For example, when you add a new device an alarm of with minor severity is generated to inform user about the device addition. When you move a device from an unassigned category to a specific category, an alarm of major severity is generated.
To start baseline file management:
- Click Deploy in the Network Director banner.
- In the Tasks pane, select Baseline Management > Manage
The Manage Device Baseline page opens in the main window.
This topic describes:
Selecting Baseline Management Options
From the Manage Device Baseline page, you can:
Create device baseline configuration files by clicking Baseline. See Baselining Device Configuration Files for more information.
Restore baselined device configuration files to devices by selecting devices and clicking Restore. See Restoring Baseline Device Configuration Files for more information.
View the baselined configuration files by selecting the device and clicking View Configuration File. See Viewing Baseline Configuration Files for more information.
Compare baseline device configuration files with current configuration files by selecting devices and clicking Compare With Current Config. See Comparing Baseline Configuration with Current Configuration for more information.
Delete baseline configuration files for devices by selecting devices and clicking Delete. See Deleting Baseline for more information.
Table 1 describes the information provided in the Manage Device Baseline table.
Table 1: Manage Device Baseline Table
Name of baseline device.
Name of the baseline configuration.
Baseline Update Time
Date and time when the baseline configuration file for a device is last updated.
Indicates whether the baseline configuration is same as or out of sync with the current configuration.
Baselining Device Configuration Files
To create baseline configurationfor devices:
- Click Baseline.
The Create Baseline for Devices page opens in the main window.
- Type a baseline label name.
- Select the devices for which you want to create a baseline configuration files from the device tree.
- To back up configuration files immediately, click Create Baseline Now.
The device baseline job runs. When it finishes, the Manage Device Baseline table shows updated information for the devices for which you performed the baselining.
- To schedule the backup to run later, click Schedule
The Schedule Baseline window opens.
- Select the Schedule at a later time check box.
- Specify when the baseline will run using the Date and Time fields.
- Optionally, configure the baseline job to repeat by selecting
the Repeat check box, and then specifying the backup schedule
by using the fields provided.
Optionally, you can specify when repeated backups will stop by selecting the End Time check box, and then specifying the last date on which the repeated backup job will run, using the Date and Time fields.
- Click Schedule Baseline.
Restoring Baseline Device Configuration Files
To restore the baseline configuration file and the OS image of devices:
- Select the devices from the Manage Device Baseline list.
- Click Restore.
The Restore Baseline(s) window opens.
- Click Restore Image to restore the OS image and select Reboot device after successful installation if you want to reboot the device.
- To view the device configuration summary, click Click to View Config File.
- Click Restore.
The device baseline job runs. When it finishes, the Manage Device Baseline table shows updated information for the devices for which you performed the restore.
Viewing Baseline Configuration Files
To view the baseline configuration files for a device:
- Select the device from the Manage Device Baseline list.
- Click View.
The Device Configuration Summary window opens, displaying the most recently baseline configuration file.
- To compare the baseline configuration with the current configuration, click Compare With Current Config.
Comparing Baseline Configuration with Current Configuration
To compare the baseline configuration with the current configuration:
- Select the configuration files to compare from the Manage Device Baseline list.
- Click Compare With Current Config.
The Compare Baseline With Current Configuration window opens.
- The baseline versions and the current version are displayed in the window. The device name and version appear at the top of each file. The differences between the configuration files are color-coded. The color-coding legend appears at the top of the window.
- Click Close.
When you delete a baseline configuration file, all its corresponding versions are also deleted.
To delete baseline configuration file for a device:
- Select the device name from the Manage Device Baseline list.
- Click Delete.
The Delete Baseline(s) window opens.
- Verify that the correct devices are listed, then click Delete to delete the device configuration.
Managing Baseline Management Jobs
Each time you create baseline configuration files, a baseline management job is also created.
To manage device configuration file management jobs:
- Click Deploy in the Network Director banner.
- In the Tasks pane, select Device Configuration Files
> View Baseline Mgmt Jobs.
The Device Configuration Jobs page opens in the main window, listing the device configuration file management jobs.
- To view the details of a job, select the job name and click Show Details.
Managing these jobs is similar to managing other types of jobs using the System mode. The advantage of accessing the jobs this way is that the jobs list shows only configuration file management jobs. See Managing Jobs for more information about managing jobs.