소개
이 문서에서는 SNMP(Simple Network Management Protocol) 유틸리티를 통해 Aggregation Services Router 1000(ASR 1000) CPU를 모니터링하는 방법에 대해 설명합니다.
사전 요구 사항
요구 사항
SNMP 컨피그레이션에 대해 알고 있는 것이 좋습니다.
사용되는 구성 요소
이 문서의 정보는 다음 소프트웨어 및 하드웨어 버전을 기반으로 합니다.
- Cisco IOS® XE
- ASR1000
- SNMP
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다. 이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다. 현재 네트워크가 작동 중인 경우 모든 명령의 잠재적인 영향을 미리 숙지하시기 바랍니다.
배경 정보
ASR1000 CPU를 모니터링하는 다양한 방법과 명령이 있으며 항상 모니터링하는 것이 매우 중요합니다. SNMP는 ASR1000 시스템의 CPU를 모니터링하는 유틸리티 중 하나입니다. 이 문서에서 다양한 show 명령 출력 및 SNMP walk 결과를 찾을 수 있습니다.
문제: show 명령 출력을 SNMP 결과와 연계하여 ASR1000 CPU를 모니터링하는 방법은 무엇입니까?
이 문서에서는 ASR1000 라우터에 상주하는 RP(Route Processor), ESP(Extended Services Processor), SIP(SPA Interface Processor) 등 다양한 모듈의 CPU를 모니터링하는 방법을 확인할 수 있습니다.
솔루션
모니터링할 CPU에는 두 가지 유형이 있습니다.
1. 컨트롤 플레인 CPU - RP, ESP 및 SIP에서 사용 가능
2. 데이터 플레인 CPU - QFP(Quantum Flow Processor)에서 사용 가능(ESP에 있음)
ASR1000 CPU를 모니터링하는 show 명령의 목록
컨트롤 플레인 CPU:
- show proc cpu sorted | 예 0.00
- show processes cpu platform sorted
- show platform software status control-processor 개요
- show process cpu platform location <R0/F0/0>
데이터 플레인 CPU:
- 플랫폼 하드웨어 qfp 활성 데이터 경로 사용률 표시
SNMP OID를 show 명령과 상호 연결
show proc cpu sorted를 사용할 때 | 예: 0.00. 생성된 출력은 다음과 같습니다.
ASR1002#show proc cpu sorted | ex 0.00
CPU utilization for five seconds: 51%/0%; one minute: 44%; five minutes: 25%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
274 140997 2976 47378 50.55% 32.66% 17.41% 0 IP RIB Update
124 147354 10279 14335 0.64% 0.07% 0.01% 0 Per-minute Jobs
411 191924 4812122 39 0.08% 0.03% 0.05% 0 MMA DB TIMER
This command only shows processes inside the IOS daemon.
Please use 'show processes cpu platform sorted'
to show processes from the underlying operating system.
LAPTOP ~ % snmpwalk -v2c -c cisco 10.197.219.243 1.3.6.1.4.1.9.2.1.56
snmpwalk -v2c -c cisco 10.197.219.243 1.3.6.1.4.1.9.2.1.57
snmpwalk -v2c -c cisco 10.197.219.243 1.3.6.1.4.1.9.2.1.58
SNMPv2-SMI::enterprises.9.2.1.56.0 = INTEGER: 51
SNMPv2-SMI::enterprises.9.2.1.57.0 = INTEGER: 44
SNMPv2-SMI::enterprises.9.2.1.58.0 = INTEGER: 25
LAPTOP ~ %
show processes cpu platform sorted를 사용할 때 생성되는 출력은 다음과 같습니다.
ASR1006#show processes cpu platform sorted
CPU utilization for five seconds: 51%, one minute: 12%, five minutes: 6%
Core 0: CPU utilization for five seconds: 59%, one minute: 17%, five minutes: 7%
Pid PPid 5Sec 1Min 5Min Status Size Name
--------------------------------------------------------------------------------
6843 5579 53% 9% 1% S 159371264 smand
3139 1688 3% 2% 1% R 49434624 hman
ASR1006#
LAPTOP ~ % snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.3.7
snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.4.7
snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.5.7
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.3.7 = Gauge32: 51
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.4.7 = Gauge32: 12
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.5.7 = Gauge32: 6
LAPTOP ~ %
show platform software status control-processor brief를 사용할 때 생성되는 출력은 다음과 같습니다.
ASR1006#show platform software status control-processor brief | sec Load
Load Average
Slot Status 1-Min 5-Min 15-Min
RP0 Healthy 0.49 0.26 0.09
ESP0 Healthy 0.17 0.08 0.18
SIP0 Healthy 0.00 0.00 0.00
ASR1006-1#
LAPTOP ~ % snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.24
snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.25
snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.26
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.24.1 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.24.7 = Gauge32: 49
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.24.9 = Gauge32: 17
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.25.1 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.25.7 = Gauge32: 26
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.25.9 = Gauge32: 8
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.26.1 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.26.7 = Gauge32: 9
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.26.9 = Gauge32: 18
LAPTOP ~ %
여기서는 1분, 5분, 15분 동안 SIP/RP/ESP CPU의 출력을 가져옵니다. 순서는 SIP, RP 및 ESP입니다.
show process cpu platform location <R0/F0/0>을 사용할 때 생성되는 출력은 다음과 같습니다.
ASR1006#show process cpu platform location R0
CPU utilization for five seconds: 3%, one minute: 10%, five minutes: 7%
Core 0: CPU utilization for five seconds: 3%, one minute: 10%, five minutes: 7%
Pid PPid 5Sec 1Min 5Min Status Size Name
ASR1006#show process cpu platform location F0
CPU utilization for five seconds: 21%, one minute: 22%, five minutes: 22%
Core 0: CPU utilization for five seconds: 21%, one minute: 21%, five minutes: 22%
Pid PPid 5Sec 1Min 5Min Status Size Name
ASR1006#show process cpu platform location 0
CPU utilization for five seconds: 1%, one minute: 2%, five minutes: 1%
Core 0: CPU utilization for five seconds: 1%, one minute: 2%, five minutes: 1%
Pid PPid 5Sec 1Min 5Min Status Size Name
--------------------------------------------------------------------------------
1 0 0% 0% 0% S 2203648 init
2 0 0% 0% 0% S 0 kthreadd
LAPTOP ~ % snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.6
snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.7
snmpwalk -v2c -c cisco 10.197.219.245 1.3.6.1.4.1.9.9.109.1.1.1.1.8
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.6.1 = Gauge32: 1
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.6.7 = Gauge32: 3
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.6.9 = Gauge32: 21
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.1 = Gauge32: 2
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.7 = Gauge32: 10
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.9 = Gauge32: 22
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.1 = Gauge32: 1
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.7 = Gauge32: 7
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.9 = Gauge32: 22
LAPTOP ~ %
여기서, 5초, 1분, 5분 동안 SIP, RP, ESP 순으로 출력을 준다. 듀얼 RP/ESP 플랫폼에서는 활성 RP/ESP를 사용할 수 있습니다. 예를 들어, ESP1이 활성 상태이면 명령은 show process cpu platform location F1이어야 합니다. show process cpu platform location <RP/FP> active 명령도 사용할 수 있지만, 이는 RP/ESP에만 적용됩니다. SIP의 경우 위치(슬롯)를 구체적으로 언급해야 합니다.
show platform hardware qfp active datapath utilization을 사용할 때 생성되는 출력은 다음과 같습니다.
ASR1002#show platform hardware qfp active datapath utilization
CPP 0: Subdev 0 5 secs 1 min 5 min 60 min
Input: Priority (pps) 7 6 6 6
(bps) 3936 3832 3840 3384
Non-Priority (pps) 28241 28259 28220 6047
(bps) 14459200 14468448 14448584 3095664
Total (pps) 28248 28265 28226 6053
(bps) 14463136 14472280 14452424 3099048
Output: Priority (pps) 1 1 1 0
(bps) 1040 1056 1064 408
Non-Priority (pps) 27894 28049 17309 3372
(bps) 8484592 8539056 5276496 1034552
Total (pps) 27895 28050 17310 3372
(bps) 8485632 8540112 5277560 1034960
Processing: Load (pct) 1 1 1 0
ASR1002#
LAPTOP ~ % snmpwalk -v2c -c cisco 10.197.219.243 1.3.6.1.4.1.9.9.715.1.1.6.1.14
SNMPv2-SMI::enterprises.9.9.715.1.1.6.1.14.9027.1 = Gauge32: 1
SNMPv2-SMI::enterprises.9.9.715.1.1.6.1.14.9027.2 = Gauge32: 1
SNMPv2-SMI::enterprises.9.9.715.1.1.6.1.14.9027.3 = Gauge32: 1
SNMPv2-SMI::enterprises.9.9.715.1.1.6.1.14.9027.4 = Gauge32: 0
LAPTOP ~ %
이 출력에서 여러 서브버스가 있는 경우 로드 평균 출력을 제공합니다.
요약
명령 |
SNMP OID |
show proc cpu sorted | 예 0.00 |
1.3.6.1.4.1.9.2.1.56
1.3.6.1.4.1.9.2.1.57
1.3.6.1.4.1.9.2.1.58
|
show processes cpu platform sorted |
1.3.6.1.4.1.9.9.109.1.1.1.1.3.7
1.3.6.1.4.1.9.9.109.1.1.1.1.4.7
1.3.6.1.4.1.9.9.109.1.1.1.1.5.7
|
show platform software status control-processor 개요 |
1.3.6.1.4.1.9.9.109.1.1.1.1.24
1.3.6.1.4.1.9.9.109.1.1.1.1.25
1.3.6.1.4.1.9.9.109.1.1.1.1.26
|
show process cpu platform location <R0/F0/0> |
1.3.6.1.4.1.9.9.109.1.1.1.1.6
1.3.6.1.4.1.9.9.109.1.1.1.1.7
1.3.6.1.4.1.9.9.109.1.1.1.1.8
|
플랫폼 하드웨어 qfp 활성 데이터 경로 사용률 표시 |
1.3.6.1.4.1.9.9.715.1.1.6.1.14
|