Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Cisco Public
Presentation Goals
Introduce debugging tools available in IOS-XR
Provide a chance to practice using the tools
Short lab time after each set of commands
XR Training / lwigley
Cisco Public
Agenda
Processes
Memory
System Monitoring
XR Training / lwigley
Cisco Public
Thread
Sub-process managed by the parent process
Responsible for executing a portion of the overall process
A process may contain one or more threads
Only runs when the parent process is allocated runtime
Example - OSPF thread which handles hello receipt and
transmission, one per neighbor
Cisco Public
Process Identification
Job ID (JID)
Assigned when process first run
Globally unique identifies the process
No change if process restarts
Process ID (PID)
Assigned when instance of process is created
Globally unique identifies the process
New PID assigned if process restarts
Thread ID (TID)
TID numbering restarts at 1 for each process
Name
Some commands allow process identification by name
XR Training / lwigley
Cisco Public
XR Training / lwigley
Cisco Public
Cisco Public
FDs Tmrs
13
6
9
3
94
1
17
4
30
6
8
2
27
7
40
14
49
3
28
5
53
9
16
13
57
8
10
1
34
3
36
5
22
4
7
2
MEM
12M
624K
0
564K
976K
124K
276K
684K
872K
544K
524K
2M
552K
152K
204K
440K
568K
236K
HH:MM:SS
0:18:53
0:01:47
502:07:10
0:14:43
0:25:48
0:03:00
0:02:07
0:00:16
0:00:08
0:00:08
0:00:21
0:23:24
0:00:01
0:00:10
0:00:00
0:00:00
0:00:00
0:00:00
CPU
2.95%
1.74%
1.02%
0.85%
0.13%
0.03%
0.03%
0.03%
0.03%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
0.00%
NAME
eth_server
qnet
procnto-600-smp
qsm
egressq
hbagent
mstats_svr
pse_driver
pifibm_server
pla_server
hfr_pm
wdsysmon
arp
SNMP Process
reddrv_listener
contains 8 threads
ppp_socket
which operate
nfsvr under JID 288
sysmgr
sysmgr
Cisco Public
XR Training / lwigley
Cisco Public
Cisco Public
10
Process Shutdown
RP/0/RP0/CPU0:CRS#process shut ospf
RP/0/RP0/CPU0:CRS#show process ospf
Job Id: 262
PID: 6983888
Executable path: /disk0/hfr-rout-3.3.1/bin/ospf
Instance #: 1
Process not running
Version ID: 00.00.0000
Respawn: ON
Respawn count: 4
Max. spawns per minute: 12
Last started: Thu Aug 31 07:02:32 2006
Process state: Killed (last exit status : 1)
Package state: Normal
Registered item(s): cfg/gl/ipv4-ospf/proc/
core: TEXT SHAREDMEM MAINMEM
Max. core: 0
Placement: ON
startup_path: /pkg/startup/ospf.startup
Ready: 6.368s
Available: 10.385s
RP/0/RP0/CPU0:CRS#process start ospf
XR Training / lwigley
Cisco Public
11
XR Processes Mini-lab
Cisco Public
12
Cisco Public
13
System Monitoring
Monitoring
show tech
show system verify
monitor interface
monitor controller
Online Help
describe
man
XR Training / lwigley
Cisco Public
14
XR Training / lwigley
Cisco Public
15
313326
5
34467898
3
37633
0
2034463
0
Delta
17
1033
4
244
1
0
0
0
0
0
0
0
0
0
0
0
Cisco Public
16
SysUptime: 16:35:50
MgmtEth0/RP0/CPU0/0 ARPA
Input
pps
4
Output
pps
0
Input
Kbps
2
Output
Kbps
0
MgmtEth0/RP1/CPU0/0 ARPA
POS0/4/0/0
HDLC
1230
542210
POS0/4/0/3
HDLC
POS0/4/0/6
PPP
POS0/4/0/7
HDLC
1230
542210
XR Training / lwigley
Cisco Public
17
Online Help
Cisco Public
18
pkg-mgmt 2005(READ)
Cisco Systems, Inc. All rights reserved.
Cisco Public
19
Monitoring
show tech
show system verify
monitor interface
monitor controller
Online Help
describe
man
XR Training / lwigley
Cisco Public
20
9. show context
3. show version
4. show running-config
5. show logging
6. show environment
7. show context
8. exit
XR Training / lwigley
Cisco Public
21
Presentation_ID
XR Training
/ lwigley
Cisco Systems,
Systems, Inc.
Inc. All
All rights
rights reserved.
reserved.
2004,
2005 Cisco
Cisco Public
22
22