キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
2822
閲覧回数
0
いいね!
0
コメント
Ryota Takao
Cisco Employee
Cisco Employee

[toc:faq]

 


 

IOS-XE Router にて CPU 使用率が高騰した場合に取得するログなどを記載しています。

 

 

 



ログ取得前に事前に設定頂きたいコマンド

 

ログを取得する場合は以下の Link に記載されている設定を行ったうえでログをご取得ください。

IOS/IOS-XE Router でログ取得前に事前に設定頂きたいコマンド

 

 



show コマンド

IOS-XE Router にて CPU 使用率が高騰した場合には事象発生中に以下のコマンドを複数回ご取得ください。

 

 

 

show processes cpu sorted
show processes cpu platform sorted
show stacks

show stacks <PID>

show buffers

show interfaces

show interfaces accounting

show interfaces stats

show interfaces switching

show controllers

show ip traffic

show ip traffic interface <Interface>

show ip spd

show ipv6 traffic

show ipv6 traffic interface <Interface>

show ipv6 spf

show platform software process environment ios RP active

show platform hardware qfp active datapath utilization
show platform hardware qfp active statistics drop detail

show platform hardware qfp active infrastructure punt statistics type global-drop | exclude _0_
show platform hardware qfp active infrastructure punt statistics type per-cause | exclude _0_
show platform hardware qfp active infrastructure punt statistics type punt-drop | exclude _0_
show platform hardware qfp active infrastructure punt statistics type inject-drop | exclude _0_

show platform hardware qfp active infrastructure bqs interface <Interface>
show platform hardware qfp active infrastructure bqs interface <Interface> detail
show platform software infrastructure punt
show platform software infrastructure inject

show platform software infrastructure lsmpi
show platform software infrastructure lsmpi bufusage
show platform software infrastructure lsmpi driver
show platform software infrastructure detailed thread fastpath
show platform software infrastructure detailed thread interrupt
show platform software infrastructure detailed packet
show platform software punt-policer
show platform software punt-policer drop-only

show platform software status control-processor brief

show platform software process slot RP active monitor cycles 1

show platform software process slot FP active monitor cycles 1

show platform software process slot 0 monitor cycles 1

show platform software process slot 1 monitor cycles 1

show platform software process slot 2 monitor cycles 1

show platform software process list RP active

show platform software process list RP active process-id <Linux PID>

show platform software process list FP active

show platform software process list FP active process-id <Linux PID>

show platform software process list 0

show platform software process list 0 process-id <Linux PID>

show platform software process list 1

show platform software process list 1 process-id <Linux PID>

show platform software process list 2

show platform software process list 2 process-id <Linux PID>

show logging

show tech-support

 

CSR1000v では上記のコマンドに加えて以下のコマンドも取得してください。

show platform software system all

show platform hardware qfp active datapath infrastructure sw-nic 

show platform hardware qfp active datapath infrastructure sw-hqf

 

show tech-support は多少CPUに負荷がかかります。

*以下のコマンドはプラットフォームの種類や使用状況によっては取得出来ません。

show platform software process slot 1 monitor cycles 1
show platform software process slot 2 monitor cycles 1
show platform software process list 1
show platform software process list 1 process-id <Linux PID>
show platform software process list 2
show platform software process list 2 process-id <Linux PID>

 

 

 

  • <PID> の部分には show processes cpu sorted で CPU 使用率が上昇している Process の PID を確認して、PID を入力してください。

 

 

Router#show processes cpu sorted
CPU utilization for five seconds: 81%/0%; one minute: 3%; five minutes: 1%
 PID Runtime(ms)     Invoked      uSecs   5Sec   1Min   5Min TTY Process
  88       12660       71555        176 80.31%  1.62%  0.33%   0 IP Input         
 101        3880        1508       2572  0.39%  0.07%  0.01%   0 Exec 

 

この例であれば、IP Input の CPU 使用率が上昇していて PID が 88 なので show stacks 88 と入力してください。

 

 

  • <interface> には関連する interface を入力してください。不明であれば全ての Interface を入力頂ければと思います。

 

  • show ipv6 ... のコマンドは IPv6 使用時のみご取得ください。

 

  • <Linux PID> には show platform software process slot <slot> monitor cycles 1 で何か問題のあるプロセスがあればそのプロセスの PID を入力してください。

例えば以下の例であれば、hman の CPU 使用率が 83.7% になっているので、hman の PID 32767 を入力してください。

 

Router#show platform software process slot R0 monitor cycles 1
top - 08:53:22 up 1 day,  8:52,  0 users,  load average: 1.07, 1.11, 1.08
Tasks: 148 total,   3 running, 145 sleeping,   0 stopped,   0 zombie
Cpu(s):  5.3%us,  2.7%sy,  0.0%ni, 91.8%id,  0.0%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:   3874476k total,  1748840k used,  2125636k free,   132672k buffers
Swap:        0k total,        0k used,        0k free,  1000420k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
32767 root      20   0 1963m 518m 191m R 83.7 13.7  93:27.03 hman               
 1225 root      20   0 21148 7356 4936 S 13.6  0.2  27:43.41 linux_iosd-imag    
18352 root      20   0  2652 1168  892 R  3.9  0.0   0:00.02 top                
--- snip ---

 

 

Getting Started

検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう

シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします