Command:
show processes cpu
Usage:
The ‘show processes cpu’ command is used to display information about the CPU utilization of various processes running on a Cisco device.
Function:
The ‘show processes cpu’ command provides detailed information about the CPU usage of various system, user, and kernel processes. It displays the percentage of CPU time each process has consumed, as well as the process ID (PID), state, and CPU time in seconds.
Output:
The output of the ‘show processes cpu’ command is divided into several columns that provide information about the running processes. The columns typically include:
- PID: The process ID (PID) of the process.
- User: The username associated with the process.
- Process: The name of the process.
- %CPU: The percentage of CPU time consumed by the process.
- CPU Time: The CPU time consumed by the process in seconds.
- State: The current state of the process, such as Running, Sleeping, or Zombie.
Equipment:
The ‘show processes cpu’ command is supported on a wide range of Cisco devices, including routers, switches, security appliances, and wireless controllers.
Additional Information:
- The ‘show processes cpu’ command is a useful tool for troubleshooting performance issues on Cisco devices. It can help identify processes that are consuming excessive CPU resources.
- The command output can be filtered using the ‘include’ or ‘exclude’ keywords to focus on specific processes or process states.
- The ‘show processes cpu history’ command can be used to display historical CPU utilization data for various processes.
show processes cpu Usage Examples
Router# show processes cpu
PID Runtime(ms) Invoked Avg runtime(us) CPU utilization
2975 22524227 1011154 22.273 100.0
PID Runtime(ms) Invoked Avg runtime(us) CPU utilization
4120 2189911 496309 4.412 0.0
1174 2885674 193923 14.880 0.0
586 622054 656879 0.947 0.0
1196 105598 126275 0.836 0.0
1145 70517 115020 0.613 0.0
1184 30490 140300 0.217 0.0
1197 20466 113125 0.181 0.0
579 12107 45405 0.267 0.0
1202 10422 55116 0.189 0.0
2071 7020 40347 0.174 0.0
Router#