cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7598
Views
5
Helpful
0
Comments
Santosh Sharma
Cisco Employee
Cisco Employee

Introduction

This document describes the steps to monitor CPU and Memory in NCS5500 device. The examples are from a router having one LC and two RPs:

RP/0/RP0/CPU0:leaf-1#show platform
Tue Mar 26 14:24:13.010 UTC
Node Type State Config state
--------------------------------------------------------------------------------
0/2/CPU0 NC55-36X100G IOS XR RUN NSHUT
0/2/NPU0 Slice UP
0/2/NPU1 Slice UP
0/2/NPU2 Slice UP
0/2/NPU3 Slice UP
0/2/NPU4 Slice UP
0/2/NPU5 Slice UP
0/RP0/CPU0 NC55-RP(Active) IOS XR RUN NSHUT
0/RP1/CPU0 NC55-RP(Standby) IOS XR RUN NSHUT
0/FC0 NC55-5504-FC OPERATIONAL NSHUT
0/FC1 NC55-5504-FC OPERATIONAL NSHUT
0/FC2 NC55-5504-FC OPERATIONAL NSHUT
0/FC3 NC55-5504-FC OPERATIONAL NSHUT
0/FC4 NC55-5504-FC OPERATIONAL NSHUT
0/FC5 NC55-5504-FC OPERATIONAL NSHUT
0/FT0 NC55-5504-FAN OPERATIONAL NSHUT
0/FT1 NC55-5504-FAN OPERATIONAL NSHUT
0/FT2 NC55-5504-FAN OPERATIONAL NSHUT
0/SC0 NC55-SC OPERATIONAL NSHUT
0/SC1 NC55-SC OPERATIONAL NSHUT

 

sysadmin-vm:0_RP0# show platform
Tue Mar 26 14:25:13.010 UTC
Location Card Type HW State SW State Config State
----------------------------------------------------------------------------
0/2 NC55-36X100G OPERATIONAL OPERATIONAL NSHUT
0/RP0 NC55-RP OPERATIONAL OPERATIONAL NSHUT
0/RP1 NC55-RP OPERATIONAL OPERATIONAL NSHUT
0/FC0 NC55-5508-FC OPERATIONAL OPERATIONAL NSHUT
0/FC1 NC55-5508-FC OPERATIONAL OPERATIONAL NSHUT
0/FC2 NC55-5508-FC OPERATIONAL OPERATIONAL NSHUT
0/FC3 NC55-5508-FC OPERATIONAL OPERATIONAL NSHUT
0/FC4 NC55-5508-FC OPERATIONAL OPERATIONAL NSHUT
0/FC5 NC55-5508-FC OPERATIONAL OPERATIONAL NSHUT
0/FT0 NC55-5508-FAN OPERATIONAL N/A NSHUT
0/FT1 NC55-5508-FAN OPERATIONAL N/A NSHUT
0/FT2 NC55-5508-FAN OPERATIONAL N/A NSHUT
0/SC0 NC55-SC OPERATIONAL OPERATIONAL NSHUT
0/SC1 NC55-SC OPERATIONAL OPERATIONAL NSHUT

Monitoring CPU

CPUs on RPs and LCs (both XR and SysAdmin VM) can be monitored through SNMP. For eXR operating system we support monitoring for nodes for both XR and admin mode.

 

To list the index for each CPU, use either:

RP/0/RP0/CPU0:leaf-1#show snmp entity | i "Virtual processor for"
Tue Mar 26 14:34:32.937 UTC
entPhysicalIndex: 12299 entPhysicalName: 0/2-Virtual processor for admin   >>> Admin entPhysicalIndex for slot 0/2
entPhysicalIndex: 12301 entPhysicalName: 0/2-Virtual processor for RP XR   >>> XR entPhysicalIndex for slot 0/2
entPhysicalIndex: 86027 entPhysicalName: 0/FC0-Virtual processor for admin  >>> Admin entPhysicalIndex for slot 0/FC1
entPhysicalIndex: 90123 entPhysicalName: 0/FC1-Virtual processor for admin
entPhysicalIndex: 94219 entPhysicalName: 0/FC2-Virtual processor for admin
entPhysicalIndex: 98315 entPhysicalName: 0/FC3-Virtual processor for admin
entPhysicalIndex: 102411 entPhysicalName: 0/FC4-Virtual processor for admin
entPhysicalIndex: 106507 entPhysicalName: 0/FC5-Virtual processor for admin
entPhysicalIndex: 110603 entPhysicalName: 0/RP0-Virtual processor for admin  >>> Admin entPhysicalIndex for slot 0/RP0
entPhysicalIndex: 110605 entPhysicalName: 0/RP0-Virtual processor for RP XR  >>> XR entPhysicalIndex for slot 0/RP0
entPhysicalIndex: 114699 entPhysicalName: 0/RP1-Virtual processor for admin  >>> Admin entPhysicalIndex for slot 0/RP1
entPhysicalIndex: 114701 entPhysicalName: 0/RP1-Virtual processor for RP XR  >>> XR entPhysicalIndex for slot 0/RP1
entPhysicalIndex: 118795 entPhysicalName: 0/SC0-Virtual processor for admin
entPhysicalIndex: 122891 entPhysicalName: 0/SC1-Virtual processor for admin
RP/0/RP0/CPU0:leaf-1#

Or
gsr-india01-lnx:139> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.2.1.47.1.1.1.1.7 | grep "Virtual processor for"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.12299 = STRING: "0/2-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.12301 = STRING: "0/2-Virtual processor for RP XR"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.86027 = STRING: "0/FC0-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.90123 = STRING: "0/FC1-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.94219 = STRING: "0/FC2-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.98315 = STRING: "0/FC3-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.102411 = STRING: "0/FC4-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.106507 = STRING: "0/FC5-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.110603 = STRING: "0/RP0-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.110605 = STRING: "0/RP0-Virtual processor for RP XR"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.114699 = STRING: "0/RP1-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.114701 = STRING: "0/RP1-Virtual processor for RP XR"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.118795 = STRING: "0/SC0-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.122891 = STRING: "0/SC1-Virtual processor for admin"
gsr-india01-lnx:140>

MIB/OID

MIB: CISCO-PROCESS-MIB


Object: cpmCPUTotalEntry


OID: 1.3.6.1.4.1.9.9.109.1.1.1.1
.2 = cpmCPUTotalPhysicalIndex


.7 = cpmCPUTotal1minRev


.8 = cpmCPUTotal5minRev

 

Walking cpmCPUTotalEntry


gsr-india01-lnx:130> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.109.1.1.1.1
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.513 = INTEGER: 12301  >>> 0/2 XR
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.545 = INTEGER: 12299  >>> 0/2 ADMIN
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.4097 = INTEGER: 110605 >>> 0/RP0 XR
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.4129 = INTEGER: 110603  >>> 0/RP0 ADMIN
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.4353 = INTEGER: 114701  >>> 0/RP1 XR
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.4385 = INTEGER: 114699  >>> 0/RP0 ADMIN
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.8225 = INTEGER: 86027   >>> 0/FC1 ADMIN
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.8481 = INTEGER: 90123
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.8737 = INTEGER: 94219
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.8993 = INTEGER: 98315
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.9249 = INTEGER: 102411
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.9505 = INTEGER: 106507
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.49185 = INTEGER: 118795
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.49441 = INTEGER: 122891
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.513 = Gauge32: 1  >>> 0/2 XR 1 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.545 = Gauge32: 0  >>> 0/2 ADMIN 1 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.4097 = Gauge32: 1  >>> 0/RP0 XR 1 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.4129 = Gauge32: 0  >>> 0/RP0 ADMIN 1 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.4353 = Gauge32: 0  >>> 0/RP1 XR 1 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.4385 = Gauge32: 0  >>> 0/RP1 ADMIN 1 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.8225 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.8481 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.8737 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.8993 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.9249 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.9505 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.49185 = Gauge32: 4
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.49441 = Gauge32: 4
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.513 = Gauge32: 1   >>> 0/2 XR 5 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.545 = Gauge32: 0   >>> 0/2 ADMIN 5 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.4097 = Gauge32: 0  >>> 0/RP0 XR 5 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.4129 = Gauge32: 0  >>> 0/RP0 ADMIN 5 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.4353 = Gauge32: 0  >>> 0/RP1 XR 5 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.4385 = Gauge32: 0  >>> 0/RP1 ADMIN 5 min CPU Usage
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.8225 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.8481 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.8737 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.8993 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.9249 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.9505 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.49185 = Gauge32: 4
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.49441 = Gauge32: 4

 

Getting CPU from CLI

XR

On the CLI of the NCS-5500, the above values maps to the values found through:

RP/0/RP0/CPU0:leaf-1#show processes cpu location 0/2/CPU0 | i CPU
Tue Mar 26 14:36:47.794 UTC
---- node0_2_CPU0 ----
CPU utilization for one minute: 1%; five minutes: 1%; fifteen minutes: 1%
RP/0/RP0/CPU0:leaf-1#show processes cpu location 0/RP0/CPU0 | i CPU
Tue Mar 26 14:36:54.446 UTC
---- node0_RP0_CPU0 ----
CPU utilization for one minute: 0%; five minutes: 0%; fifteen minutes: 0%
RP/0/RP0/CPU0:leaf-1#show processes cpu location 0/RP1/CPU0 | i CPU
Tue Mar 26 14:37:00.019 UTC
---- node0_RP1_CPU0 ----
CPU utilization for one minute: 0%; five minutes: 0%; fifteen minutes: 0%
RP/0/RP0/CPU0:leaf-1#

ADMIN

sysadmin-vm:0_RP0# show cpu cpuutils
Tue Apr 16 03:08:44.917 UTC

Location: 0/2

---------------------------------
CPU Utilization for one minute : 0% five minutes:0% fifteen minute: 0%

Location: 0/RP0

---------------------------------
CPU Utilization for one minute : 0% five minutes:0% fifteen minute: 0%

Location: 0/RP1

---------------------------------
CPU Utilization for one minute : 0% five minutes:0% fifteen minute: 0%

 

 

Monitoring Memory

RP/0/RP0/CPU0:leaf-1#show snmp entity | i "Virtual processor for"
Tue Mar 26 14:34:32.937 UTC
entPhysicalIndex: 12299 entPhysicalName: 0/2-Virtual processor for admin
entPhysicalIndex: 12301 entPhysicalName: 0/2-Virtual processor for RP XR
entPhysicalIndex: 86027 entPhysicalName: 0/FC0-Virtual processor for admin
entPhysicalIndex: 90123 entPhysicalName: 0/FC1-Virtual processor for admin
entPhysicalIndex: 94219 entPhysicalName: 0/FC2-Virtual processor for admin
entPhysicalIndex: 98315 entPhysicalName: 0/FC3-Virtual processor for admin
entPhysicalIndex: 102411 entPhysicalName: 0/FC4-Virtual processor for admin
entPhysicalIndex: 106507 entPhysicalName: 0/FC5-Virtual processor for admin
entPhysicalIndex: 110603 entPhysicalName: 0/RP0-Virtual processor for admin
entPhysicalIndex: 110605 entPhysicalName: 0/RP0-Virtual processor for RP XR
entPhysicalIndex: 114699 entPhysicalName: 0/RP1-Virtual processor for admin
entPhysicalIndex: 114701 entPhysicalName: 0/RP1-Virtual processor for RP XR
entPhysicalIndex: 118795 entPhysicalName: 0/SC0-Virtual processor for admin
entPhysicalIndex: 122891 entPhysicalName: 0/SC1-Virtual processor for admin
RP/0/RP0/CPU0:leaf-1#

Or
gsr-india01-lnx:139> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.2.1.47.1.1.1.1.7 | grep "Virtual processor for"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.12299 = STRING: "0/2-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.12301 = STRING: "0/2-Virtual processor for RP XR"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.86027 = STRING: "0/FC0-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.90123 = STRING: "0/FC1-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.94219 = STRING: "0/FC2-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.98315 = STRING: "0/FC3-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.102411 = STRING: "0/FC4-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.106507 = STRING: "0/FC5-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.110603 = STRING: "0/RP0-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.110605 = STRING: "0/RP0-Virtual processor for RP XR"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.114699 = STRING: "0/RP1-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.114701 = STRING: "0/RP1-Virtual processor for RP XR"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.118795 = STRING: "0/SC0-Virtual processor for admin"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.122891 = STRING: "0/SC1-Virtual processor for admin"
gsr-india01-lnx:140>

 

SNMP Memory related OIDs

• cempMemPoolHCUsed 1.3.6.1.4.1.9.9.221.1.1.1.1.18
• cempMemPoolHCFree 1.3.6.1.4.1.9.9.221.1.1.1.1.20

Getting memory using cempMemPoolHCUsed

gsr-india01-lnx:168> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.18.12299.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.12299.1 = Counter64: 541171712
gsr-india01-lnx:169> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.18.12301.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.12301.1 = Counter64: 3987210240
gsr-india01-lnx:170> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.18.110603.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.110603.1 = Counter64: 588963840
gsr-india01-lnx:171> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.18.110605.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.110605.1 = Counter64: 3079307264
gsr-india01-lnx:172> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.18.114699.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.114699.1 = Counter64: 2039320576
gsr-india01-lnx:173> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.18.114701.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.114701.1 = Counter64: 3135389696
gsr-india01-lnx:174>

 

Getting memory using cempMemPoolHCFree

gsr-india01-lnx:142> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.20.12299.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.12299.1 = Counter64: 532770816
gsr-india01-lnx:143> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.20.12301.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.12301.1 = Counter64: 10178301952
gsr-india01-lnx:144> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.20.110603.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.110603.1 = Counter64: 3607703552
gsr-india01-lnx:145> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.20.110605.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.110605.1 = Counter64: 16396382208
gsr-india01-lnx:146> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.20.114699.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.114699.1 = Counter64: 2156003328
gsr-india01-lnx:147> snmpwalk -v2c -c public 5.34.200.94 1.3.6.1.4.1.9.9.221.1.1.1.1.20.114701.1
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.114701.1 = Counter64: 16337850368
gsr-india01-lnx:148>

 

Getting memory using CLI

XR

RP/0/RP0/CPU0:leaf-1#show memory summary
Tue Mar 26 14:41:22.079 UTC

node: node0_RP0_CPU0
------------------------------------------------------------------

Physical Memory: 18571M total (15632M available)
Application Memory : 18571M (15632M available)
Image: 4M (bootram: 0M)
Reserved: 0M, IOMem: 0M, flashfsys: 0M
Total shared window: 482M

RP/0/RP0/CPU0:leaf-1#show memory summary location 0/2/CPU0
Tue Mar 26 14:41:28.084 UTC

node: node0_2_CPU0
------------------------------------------------------------------

Physical Memory: 13509M total (9706M available)
Application Memory : 13509M (9706M available)
Image: 4M (bootram: 0M)
Reserved: 0M, IOMem: 0M, flashfsys: 0M
Total shared window: 167M

RP/0/RP0/CPU0:leaf-1#show memory summary location 0/?
0/2/CPU0 0/RP0/CPU0 0/RP1/CPU0 WORD
RP/0/RP0/CPU0:leaf-1#show memory summary location 0/
RP/0/RP0/CPU0:leaf-1#show memory summary location 0/rP1/CPU0
Tue Mar 26 14:41:43.488 UTC

node: node0_RP1_CPU0
------------------------------------------------------------------

Physical Memory: 18571M total (15580M available)
Application Memory : 18571M (15580M available)
Image: 4M (bootram: 0M)
Reserved: 0M, IOMem: 0M, flashfsys: 0M
Total shared window: 482M

RP/0/RP0/CPU0:leaf-1#

Admin

sysadmin-vm:0_RP0# show memory summary location 0/RP0
Tue Mar 26 14:42:16.517 UTC
************************************************************


Location : 0/RP0

************************************************************

Physical Memory: 4001 MB total (3435 MB available)
sysadmin-vm:0_RP0# show memory summary location 0/RP1
Tue Mar 26 14:42:19.512 UTC
************************************************************


Location : 0/RP1

************************************************************

Physical Memory: 4001 MB total (2054 MB available)
sysadmin-vm:0_RP0# show memory summary location 0/2
Tue Mar 26 14:42:22.503 UTC
************************************************************


Location : 0/2

************************************************************

Physical Memory: 1024 MB total (505 MB available)
sysadmin-vm:0_RP0#

 

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: