monitor
To monitor counters with full screen auto-updating statistics in real time, use the monitor command in XR EXEC mode.
monitor { interface [ interface-type forward-interface ] | processes | threads iteration number-of-iteration }
Syntax Description
interface |
Displays interface statistics in real-time. |
||
interface-type |
Specifies the Interface type. For more information, use the question mark ( ? ) online help function. |
||
forward-interface |
Specifies the interface in Rack/Slot/Instance/Port format.
|
||
processes |
Displays process statistics in real-time. |
||
threads |
Displays thread statistics in real-time. |
||
iteration number-of-iteration |
Specifies the iteration of the thread. |
Command Default
The display refreshes every 2 seconds for the monitor command.
Command Modes
XR EXEC mode
Command History
Release |
Modification |
---|---|
Release 7.0.12 |
This command was introduced. |
Usage Guidelines
Command |
Description |
Use the following keys to suspend or resume the counter refresh: |
|
f |
Freezes the display screen, thereby suspending the display of fresh counters. |
t |
Thaws the display screen, thereby resuming the display of fresh counters. |
Use the following key to reset the counters: |
|
c |
Resets interface counters to 0. |
Use the following keys when displaying statistics for a single interface. These keys display counters in normal or detailed view. |
|
d |
Changes the display mode for the interface monitoring session to display detailed counters. Use the b interactive command to return to the regular display mode. |
r |
Displays the protocol divided by IPv4 or IPv6, and multicast and unicast. When the statistics are displayed using the r option, you can also use the k or y keys to display statistics in packets (“k”) or bytes (“y”). |
b |
Returns the interface monitoring session to the regular display mode for counters. Statistics are not divided by protocol. |
Use the following keys when displaying statistics for multiple interfaces. These keys modify the display to show statistics in bytes or packets. |
|
k |
Displays statistics in packets (“k”). |
y |
(Default) Displays statistics in bytes (“y”). |
Use the following keys to display statistics for a different interface: |
|
i |
Enables you to jump to a nonsequential interface. You are prompted to enter the interface type and interface path ID to be monitored. |
p |
Displays the previous sequential interface in the list of available interfaces. |
n |
Displays the next sequential interface in the list of available interfaces. |
q |
Terminates the interface monitoring session. |
Task ID
Task ID |
Operations |
---|---|
basic-services |
execute |
monitor |
read |
This is the sample output for the monitor processes command. This command displays statistics for all processes in the system.
Router# monitor processes
top - 06:55:00 up 1 day, 53 min, 0 users, load average: 0.16, 0.16, 0.17
Tasks: 476 total, 1 running, 474 sleeping, 0 stopped, 1 zombie
%Cpu(s): 1.4 us, 2.8 sy, 0.0 ni, 95.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 32620396 total, 26953916 free, 3459252 used, 2207228 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 27780560 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4360 root 20 0 8522304 50912 39736 S 5.0 0.2 71:14.11 gsp
4266 root 20 0 8682364 250472 219884 S 4.0 0.8 55:12.60 spp
4437 root 20 0 11.489g 847708 190376 S 3.0 2.6 106:27.92 NPU Main Thread
2818 root 20 0 400632 25636 16372 S 1.0 0.1 8:51.17 docker-containe
4004 root 20 0 8815260 128036 22980 S 0.7 0.4 10:36.15 SPI Envmon Main
4273 root 20 0 9014704 24536 14760 S 0.7 0.1 13:51.04 wd main
9020 root 20 0 30876 3432 2516 R 0.7 0.0 0:00.10 top
7 root 20 0 0 0 0 S 0.3 0.0 0:29.94 rcu_sched
532 root 20 0 42396 6316 4384 S 0.3 0.0 0:00.95 systemd-udevd
4382 root 20 0 7899076 11596 9340 S 0.3 0.0 5:26.69 npu_cfg
4974 root 20 0 8945128 39460 31576 S 0.3 0.1 0:25.38 eth_mgmt
5138 root 20 0 8950280 54216 46884 S 0.3 0.2 0:31.70 ipv6_mfwd_partn
5210 root 20 0 8860556 40356 33444 S 0.3 0.1 1:16.63 xlncd
6088 root 20 0 8911892 40720 35212 S 0.3 0.1 0:00.51 sshd_child_hand
6356 root 20 0 9756120 71712 45168 S 0.3 0.2 5:59.85 pim6
6379 root 20 0 9360656 56624 40020 S 0.3 0.2 2:13.26 igmp
6390 root 20 0 9345208 68944 48724 S 0.3 0.2 3:31.12 mrib6
6539 root 20 0 9785.9m 47284 41672 S 0.3 0.1 0:14.70 udp_main
6580 root 20 0 8717900 29348 24156 S 0.3 0.1 1:23.88 bundlemgr_local
6716 root 20 0 8784028 25228 15628 S 0.3 0.1 0:27.79 Plat SL Client
1 root 20 0 41700 8032 5364 S 0.0 0.0 0:09.24 systemd