Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
IJOS-12a-guide_pdf / IJOS-12.a_LGD (Detailed Lab Guide).pdf
Скачиваний:
379
Добавлен:
11.04.2015
Размер:
1.51 Mб
Скачать

Introduction to the Junos Operating System

Part 1: Monitoring System and Chassis Operation

In this lab part, each team will use key commands within the CLI to monitor system and chassis operation.

Step 1.1

Ensure that you know to which student device you have been assigned. Check with your instructor if you are not certain. Consult the management network diagram to determine the management address of your student device

Question: What is the management address assigned to your station?

Answer: The answer varies; in the example used throughout this lab, the user belongs to the srxA-1 station, which uses an IP address of 10.210.14.131. Your answer will depend on the rack of equipment your class is using.

Step 1.2

Access the CLI at your station using either the console, Telnet, or SSH as directed by your instructor. Refer to the management network diagram for the IP address associated with your team’s station. The following example uses a simple Telnet access to srxA-1 with the Secure CRT program as a basis:

Step 1.3

Log in to the student device with the username lab using a password of lab123. Note that both the name and password are case-sensitive. Enter configuration mode and load the reset configuration file using the load override /var/home/ lab/ijos/lab4-start.config command. After the configuration has been loaded, commit the changes and return to operational mode.

srxA-1 (ttyp0)

login: lab Password:

Lab 4–2 • Operational Monitoring and Maintenance (Detailed)

www.juniper.net

Introduction to the Junos Operating System

--- JUNOS 12.1R1.9 built 2012-03-24 12:12:49 UTC lab@srxA-1> configure

Entering configuration mode

[edit]

lab@srxA-1# load override ijos/lab4-start.config load complete

[edit]

lab@srxA-1# commit and-quit commit complete

Exiting configuration mode

lab@srxA-1>

Step 1.4

Issue the show system processes extensive command to check the status of the routing protocol daemon (rpd). Alternatively, issue the show system processes extensive | match "pid | rpd" command to parse the output. The use of two pipes (|) in this command allows you to make multiple matches. In this case it matches rpd for the routing protocol process as well as PID to view the column headers.

lab@srxA-1> show

system processes

extensive

 

last pid: 5976;

 

load averages:

0.08,

0.14, 0.07 up 1+21:08:16

07:32:28

124 processes: 18

running, 95 sleeping,

11 waiting

 

Mem: 143M Active, 98M Inact, 535M Wired, 159M Cache, 112M Buf, 34M Free Swap:

PID

USERNAME

THR PRI NICE

SIZE

RES

STATE

C

TIME

WCPU COMMAND

1234

root

7

76

0

511M

61524K

select 0 140.4H

282.62%

 

flowd_octeon_hm

 

 

 

 

 

 

 

 

 

 

22

root

1

171

52

0K

16K

RUN

0

39.0H

87.94%

idle: cpu0

23

root

1

-20 -139

0K

16K

RUN

0

16:54

0.00%

swi7: clock

1256

root

1

76

0

10896K

4104K

select 0

5:14

0.00%

license-check

5 root

1 -16

0

0K

16K rtfifo 0

 

5:12 0.00% rtfifo_kern_recv

1223

root

1

76

0

26180K

9224K

select 0

4:03

0.00%

mib2d

1225

root

1

76

0

18768K

7252K

select 0

3:41

0.00%

l2ald

1244

root

1

76

0

15588K

3464K

select 0

2:48

0.00%

shm-rtsdbd

1218

root

1

76

0

113M

16796K

select 0

1:49

0.00%

chassisd

19

root

1

171

52

0K

16K

RUN

3

1:44

0.00%

idle: cpu3

20

root

1

171

52

0K

16K

RUN

2

1:44

0.00%

idle: cpu2

21

root

1

171

52

0K

16K

RUN

1

1:43

0.00%

idle: cpu1

1227

root

2

76

0

22948K

7616K

select 0

1:40

0.00%

pfed

1222

root

1

76

0

18932K

11360K

select 0

1:33

0.00%

snmpd

1252

root

1

76

0

16684K

7916K

select 0

1:28

0.00%

utmd

50

root

1

-16

0

0K

16K

psleep 0

1:14

0.00%

vmkmemdaemon

25 root

1 -40 -159

0K

16K WAIT

0

1:13

0.00% swi2: netisr 0

1215

root

1

76

0

3288K

1376K

select 0

1:10

0.00%

bslockd

1219

root

1

76

0

11132K

3324K

select 0

1:10

0.00%

alarmd

1685

root

1

4

0

49392K

22156K

kqread 0

0:40

0.00%

rpd

...TRIMMED...

www.juniper.net

Operational Monitoring and Maintenance (Detailed) • Lab 4–3

Introduction to the Junos Operating System

 

 

 

 

 

 

lab@srxA-1> show system processes extensive | match "pid

| rpd"

 

PID USERNAME

THR PRI

NICE

SIZE

RES STATE C

 

TIME

 

WCPU

COMMAND

1685 root

1

4

0 49392K 22156K kqread

0

0:40

0.00% rpd

Question: What is the weighted CPU usage of rpd?

Answer: The answer can vary. In the sample output taken from srxA-1, the weighted CPU usage is 0%. The weighted CPU column represents the CPU usage over a period of time.

Step 1.5

Issue the show system statistics command to view protocol statistics related to your team’s device.

lab@srxA-1> show system statistics tcp:

466 packets sent

340 data packets (16474 bytes)

0 data packets (0 bytes) retransmitted

0 resends initiated by MTU discovery

116 ack-only packets (91 delayed)

0 URG only packets

2 window probe packets

0 window update packets

10 control packets

...TRIMMED...

Question: How many TCP packets did your assigned device send since the last clearing of the system statistics?

Answer: The answer can vary. In the previous example taken from srxA-1, the device sent 466 TCP packets.

Step 1.6

Issue the show system storage command to view information regarding the device storage space.

lab@srxA-1> show system storage

 

 

 

 

Filesystem

Size

Used

Avail

Capacity

Mounted on

/dev/da0s1a

898M

497M

330M

60%

/

devfs

1.0K

1.0K

0B

100%

/dev

devfs

1.0K

1.0K

0B

100%

/dev/

/dev/md0

477M

477M

0B

100%

/junos

/cf

898M

497M

330M

60%

/junos/cf

devfs

1.0K

1.0K

0B

100%

/junos/dev/

Lab 4–4 • Operational Monitoring and Maintenance (Detailed)

www.juniper.net

 

 

 

 

Introduction to the Junos Operating System

procfs

4.0K

4.0K

0B

100%

/proc

/dev/bo0s1e

24M

22K

22M

0%

/config

/dev/md1

168M

13M

142M

8%

/mfs

/dev/da0s1f

61M

624K

55M

1%

/cf/var/log

/cf/var/jail

898M

497M

330M

60%

/jail/var

devfs

1.0K

1.0K

0B

100%

/jail/dev

/dev/md2

39M

4.0K

36M

0%

/mfs/var/run/utm

Question: How much free space is available on your device?

Answer: The answer can vary. In the sample output taken from srxA-1, 330 Megabytes are available.

Step 1.7

Issue the show system uptime command to view the current system time.

lab@srxA-1> show system uptime

Current time: 2012-04-20 08:01:50 PDT

System booted: 2012-04-18 10:24:42 PDT (1d 21:37 ago) Protocols started: 2012-04-18 12:27:26 PDT (1d 19:34 ago)

Last configured: 2012-04-20 07:52:13 PDT (00:09:37 ago) by lab 8:01AM up 1 day, 21:37, 2 users, load averages: 0.07, 0.05, 0.03

Question: When was your team’s device last booted?

Answer: The answer will vary. In the example taken from srxA-1, you can see that the system booted close to two days ago.

Step 1.8

Open another terminal window and use Telnet to access your system’s management IP address. If needed, refer to the management network diagram. Log in with the username walter and the password walter123.

www.juniper.net

Operational Monitoring and Maintenance (Detailed) • Lab 4–5