DDevice COnfiguration Flashcards

1
Q

What are the two types of configuration?

A

Active
Candidate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where does a candidate config come from?

A

It spawns when you enter configure mode. Created based on the current running config.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you apply a candidate configuration?

A

Commit.

if it passes the syntax checks it gets moved to active.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many rollback configs are stored?

A

Active + 49 old (50)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many users can be in configure mode at the same time?

A

32

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Whats configure exclusive?

A

Enters you into configuration mode and stops, and blocks other users entering it until you’re done.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Whats configure private?

A

Enables multi-user config with each user getting their own candidate config.

All other users must use config private

rollback 0 rolls back only that users candidate while private mode is active.

An admin can take over with configure exclusive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens when two users apply the same config in configure private?

A

First users commit is good.
Second user will get a commit error advising over-write coming. if they commit again it will use the second users config.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is config batch?

A

batch config mode. its for applying lots of small config changes in batches to be more efficient. Changes are queued up, and then the batch server applies them together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is configure dynamic?

A

Its a lightweight config mode for creating routing policies and routing objects.

Commits faster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does ; in the config mean?

A

Means the end of a leaf - nothing else in that specific context.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how do you go up in the config heirarchy?

A

up
or to move up x levels;
up x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you use top?

A

top takes you to the top of the hierarchy.

it can be chained with other commands to go up and then down another branch - eg;

top edit system login

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does exit do?

A

takes you back to the previous level hierarchy you were in

If you’re already at the top exit takes you out of config mode back to operational

exit configuration mode also quits you back to op instantly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does deactivate do?

A

Turns off a block of config without removing all of the config commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does activate do?

A

turns a block of config back on again

17
Q

command “set interface ge-0/0/0 disable” was commited. How do you undo it?

A

delete interfaces ge-0/0/0 disable

18
Q

how do you view the candidate config?

A

from config mode, show

You can use more specific commands like;

show system services

19
Q

how do you view the specific set commands in a config?

A

show system services | display set

20
Q

Where can you commit from?

A

Any level, unless you’re in commit private - and then you have to be at the top

21
Q

Commits on dual RE devices?

A

commit synchronize pushes the candidate to both REs

22
Q

How do you config auto commit synchronize?

A

set system commit synchronize

23
Q

what does commit check do?

A

syntax checks the candidate config without applying it

24
Q

what does commit confirmed do?

A

Commits the config and starts a 10 minute timer. At the end of the timer it reverts.

end the timer and confirm the commit with a second commit.

This prevents you locking yourself out of a device.

By default its 10 minutes. You can specify between 1 and 65,535 minutes.

25
Q

What does commit at <time> do?</time>

A

schedules a commit

View scheduled commits with

show system commit

cancel them with

clear system commit

26
Q

How do you compare the candidate to the active config?

A

from configure mode,

show | compare

27
Q

how do you know if you have a scheduled commit?

A

show system commit

look for “commit requested by <user> via cli at <datetime></datetime></user>

28
Q

how do you add a comment to a commit?

A

commit comment

29
Q

what does commit prepare do?

A

it creates a new version of the config, does syntax validation but doesnt make the config live yet.

commit activate completes the prepare.

30
Q

How do you compare active to a rollback config?

A

show configuration | compare rollback <number></number>

31
Q

how do you compare two text files?

A

file compare files <file1> <file2></file2></file1>

32
Q

how do you change the number of rollback configs that can be saved?

A

edit system
set max-configurations-on-flash <1-49>

33
Q

Whats the rescue config?

A

Allows you to define a known working config prior to making changes. Means you dont need to remember or track which rollback is good.

Can also be used as a last resort if the config/backup config gets lost.

34
Q

How do you make a rescue config?

A

Request system configuration rescue save

35
Q

how do you revert to the rescue config?

A

rollback rescue
commit

36
Q

What is the Ephemeral configuration database?

A

Alternate config DB for commiting config changes.

Accessed via JET/XML API - not CLI
Fast. can do 1,000’s of commits/min.
Does only basic syntax checks. You can commit config that references things that dont exist which will break stuff.

37
Q

What happens if the config databases during a commit conflict?

A

Ephemeral wins.