Device Management Flashcards

(51 cards)

1
Q

What are the two modes you might end up in when accessing a Juniper device?

A

Linux/BSD Shell
Operational Mode

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

Whats the console port for?

A

Local access via console cable

useful for first device setup when the device has no IP

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

Where does console port put you?

A

Puts you in the BSD/Linux Shell

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

What does Amnesiac mean?

A

Means the device has factory default config

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

How do you get to Operational mode from Shell?

A

“cli” command

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

Whats the management port for?

A

an OOB IP management port for CLI access - SSH or telnet

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

What are the common management interface names?

A

FXP0
EM0
ME0

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

what inband management options are there?

A

SSH, Telnet J-Web

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

What mode does SSH/Telnet put you in?

A

Operational mode

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

What is J-WEB?

A

Its a GUI for configuring a Juniper device.

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

What things do you need to enable J-web?

A
  • Root Password
  • An IP on a reachable interface
  • Enable web-management

“Set system services web-management https interface fxp0.0”

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

What APIs can be used to configure JUNOS?

A

Junos XML API
REST API
JET API

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

Whats the craic with the XML API?

A

Its Netconf. Junos made netconf.

All Junos CLI commands have an XML quilivent.

Executes XML RPC’s over netconf.

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

Whats the craic with REST?

A

Supports get and post. Get executes, post sends data.

Theres a web-based GUI where you can experiment and download data via ASCI, XML, or JSON

Backend wise, all rest queries are converted and executed as XML API.

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

Whats JET?

A

Juniper Extension Toolkit

Standards interface into Junos to allow people to customise or augment device functionality

Can run on or off-box.

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

When logging in, whats the difference between root and non root?

A

Root hits shell. non-root hits CLI

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

what does % in your CLI prompt mean?

A

Means you’re in shell.

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

What help options are there?

A

? - context sensitive completion.

help topic <topic> - like manpage explaining stuff.</topic>

help reference <command></command> - gives reference config and explanation.

help apropos <variable - gives a list of commands within the current hierarchy that use that variable.

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

How do you turn CLI completion off?

A

set cli complete-on-space off

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

What VT does the CLI use and why?

A

VT100 so arrow keys work

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

What are the EMACS commands?

A

Key combos to move around the CLI…

CTRL+B goes left one char
CTRL+F goes right one char
CTRL+A goes to the start of a line
CTRL+E goes to the end of a line
CTRL +D deletes the highlighted char
CTRL + K deletes the rest of the line
CTRL + U deletes all chars and the current command
CTRL + W = Deletes the word to the left
CTRL + L = redraws current line
CTRL + P and CTRL+N cycles through previous and next in the command history
ESC + D - Deletes word to the right
ESC + B - move back one word
Esc + F move forward one word

22
Q

How do you execute an operational mode command from config mode?

23
Q

How do you configure config archival?

A

edit system archival
set transfer-on-commit
or
set transfer-on-interval <interval>
set archive-sites "scp://user@x.x.x.x" password "x" ##SECRET_DATA
or FTP or w/e</interval>

if more than 1 is listed it tries top down, and stops after successful archive.

24
Q

Archival configs… What are frequency options for interval?

A

15 to 2880 minutes (48h)

25
where do archival log messages go?
/var/log/messages
26
Where are archival configs put before they get backed up?
/var/transfer/config
27
Where is syslog?
/var/log/messages
28
In syslog, what are Facility and Severity?
Facility defines the class of log Severity determines the logging detail
29
where is syslog configured/
edit system syslog and edit routing-options options syslog
30
Whats the default max number and size of archive configs?
10 128k
31
what does file do?
within syslog, it defines a new syslog file.
32
what does files do?
defines max number of syslog files
33
How do you add priority info to syslog entries?
edit system syslog file facility severity; set explicit-priority
34
syslog priority. 7 high or low?
7 is low (debug)
35
Where can trace outputs go?
into /var/log/ or syslog over-ride with edit system tracing set destination-override syslog host 1.1.1.1
36
How do you trace a protocol?
edit protocols traceoptions set file size files set flag event detail set error detail
37
what happens when a tracefil hits max size?
gets named 0, the next one is 1, etc
38
how do you remove timestamps from a trace?
with hidden no-stamp option
39
how do you trace an interface?
add the traceoptions parameters you want to edit interfaces traceoptions goes into /var/log/messages -- cannot be changed if you trace the whole interface proccess it goes into /var/log/dcd
40
how do you view logs?
show log you can use "h" at a more page to see the prompt on how to navigate... search the file, etc
41
easiest way to filter a logfile?
show log messages | match "suport info".. ANDs show log messages | match "kernel" | match "error" ORs show log messages | match "error|kernel|panic"
42
What does monitor do?
watches for realtime log file entries...
43
How do you use monitor?
show monitor | match "something"
44
How do you stop monitor from outputting to screen?
ESC+Q
45
how do you stop monitor?
monitor stop
46
how do you stop a trace?
delete traceoptions it deletes all traceoptions at that hierarchy.
47
how do you clear and delete a logfile?
clear log file delete
48
What 4 NTP modes are supported?
Client, server, broadcast, and symmetric active
49
How does NTP auth work?
no fucking clue. my head hurts. Trusted key, authentication key, and server key. something.
50
How can you see NTP connections?
show ntp associations * or O to the right of the host IP= good
51
how do you do a mib walk from CLI?
show snmp mib walk