Display CPU utilization with every show command

Xavier has mentioned an interesting undocumented command in his comment to the “Continuous display of top CPU processes” post: after you execute terminal exec prompt timestamp, every show command displays current time and CPU utilization before the requested printout. Here is a short example:
R1#terminal exec prompt timestamp 
R1#show ip interface brief
Load for five secs: 4%/0%; one minute: 1%; five minutes: 0%
Time source is NTP, 17:31:14.456 UTC Wed May 28 2008


Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.0.0.1 YES NVRAM up up
FastEthernet0/1 192.168.200.205 YES DHCP up up
Serial1/0 unassigned YES NVRAM administratively down down
Serial1/1 unassigned YES NVRAM administratively down down
Serial1/2 unassigned YES NVRAM administratively down down
Serial1/3 unassigned YES NVRAM administratively down down

4 comments:

  1. A thing i noticed...

    lgb-fw-p#sh terminal | i Length
    Length: 38 lines, Width: 120 columns
    lgb-fw-p#terminal exec prompt timestamp
    lgb-fw-p#sh terminal | i Length
    Length: 38 lines, Width: 120 columns

    It seems as if the pager line-counter counts only the specific show output, and doesn't include the 3 line timestamp info. And since terminal exec prompt timestamp doesn't change the terminal length, long-output show commands will "push" the load/timestamp info off the screen.

    So remember to change the terminal length at the same time :)

    Running on a 2800 series with IOS 12.4(9)T.
  2. Hi,

    What is the command to disable terminal exec prompt timestamps

    Thanks..
  3. to disable:

    term no exec prompt time
  4. To make it permanent:
    line vty 0 4
    exec prompt timestamp
Add comment
Sidebar