Process and Memory Management Commands
on Cisco IOS-XR Software
This chapter describes the commands used to manage pro cesses and me mory on the
Cisco IOS-XR software.
Cisco IOS-XR System Management Command Reference
SMR-273
monitor processes
monitor processes
To display auto-updating statistics on processes in a full-screen mode, use the monitor processes
command in EXEC mode.
monitorprocesses [dumbtty] [locationnode-id]
Process and Memory Management Commands on Cisco IOS-XR Software
Syntax Description
DefaultsIf you omit all keywords, the command displays the top 10 processes of CPU usage for the local node,
Command ModesEXEC
Command History
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
dumbtty(Optional) Displays the output of the command as if on a dumb terminal (the
screen is not refreshed).
locationnode-id(Optional) Displays the output of the command from the designated node.
The node-id argument is entered in the rack/slot/module notation.
sorted in descending order by the time used. The display is cleared and updated every 5 seconds until
you quit the monitor processes command by entering the q key.
ReleaseModification
Release 2.0This command was introduced.
task IDs. For detailed information about user groups and t ask IDs, refer to the Conf iguring AAA Services on Cisco IOS-XR Software module of the Cisco IOS-XR System Security Configuration Guide.
This command shows the top 10 processes of CPU usage. The display refreshes every 10 seconds.
• To change the parameters displayed by the monitor processes command, ente r one of th e key
commands described in Table 14.
SMR-274
• To terminate the display and return to the system prompt, enter the q key.
• To list the interactive commands, type ? during the display. Example:
The options are described in Table 14.
Table 14Interactive Disp lay Commands for the monitor processes Command
Command Description
?Display or print the interactive commands.
qQuits the monitor processes display and returns to the system prompt.
nChanges the number of processes to be displayed.
dChanges the delay interval between updates.
lRefreshes the screen.
tSorts display by time (default).
Cisco IOS-XR System Management Command Reference
Process and Memory Management Commands on Cisco IOS-XR Software
Tabl e 14Interactive Display Commands for the monitor processes Command (continued)
Command Description
mSorts display by memory used.
cSorts display by number of open channels.
fSorts display by number of open files.
When the n or d interactive command is used, the monitor processes command prompts you to enter a
number. Fo r example, when the interactive command n is entered, the prompt responds as shown belo w:
DefaultsWhen all keywords are omitted, the command displays the first ten threads for the local node, sorted in
Command ModesEXEC
Command History
dumbtty(Optional) Displays the output of the command as if on a dumb
terminal (the screen is not refreshed).
iterationnumber(Optional) Number of times the statistics display is to be updated, in
the range from 0 to 4294967295.
locationnode-id(Optional) Displays the output from the command from the designated
node. The node-id argument is entered in the rack/slot/module
notation.
descending order by the time used. The display is cleared and updated every 5 seconds until you quit the
monitor command.
ReleaseModification
Release 2.0This command was introduced.
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user gr oups and task IDs, refer to the Config uring AAA Services on Cisco IOS-XR Software module of the Cisco IOS-XR System Security Configuration Guide.
This command shows the top 10 threads based on CPU usage . The displa y refreshes every 10 seconds.
• To change the parameters di splayed by the monitor threads command, enter one of the key
commands described in Table 15.
• To terminate the display and return to the system prompt, enter the q key.
• To list the interactive commands, type ? during the display. Example:
The options are described in Table 15.
Tabl e 15Interactive Display Commands for the monitor threads Command
Command Description
qQuits the interactive display and returns to the system prompt.
nChanges the number of threads to be displayed.
Cisco IOS-XR System Management Command Reference
SMR-277
monitor threads
Tabl e 15Interactive Display Commands for the monitor threads Command (continued)
Command Description
dChanges the delay interval between updates.
lRefreshes the screen.
When the n or d interactive command is used, the monitor threads command prompts for a number
appropriate to the specific interactive command. The following is sample output from the monitor threads command showing the use of the interactive command n after the first display cycle to change
the number of threads:
Enter number of threads to display: 3
Please enter a number between 5 and 40
Enter number of threads to display: 8
87 processes; 249 threads;
CPU states: 95.3% idle, 2.9% user, 1.7% kernel
Memory: 256M total, 175M avail, page size 4K
blockedCollects debug information. The node will be restarted if the mandatory reboot
flag is set.
killKills (stops) a process. The process will not be restarted even if considered
“mandatory”.
restartRestarts a process.
startStarts a process.
executable-name(Optional) Performs the action for all the simultaneously executing instances of
the process, if applicable.
job-id(Optional) Performs the action for only the process instance associated with the
job-id.
locationnode-id(Optional) Specifies a node. The node-id argument is entered in the
rack/slot/module notation.
locationall(Optional) Specifies all nodes.
Command History
Usage GuidelinesTo use this command, you must be in a user group associated with a task group that includes the proper
CautionManually killing or restarting a process can seriously impact the operation of a router. Use these
Cisco IOS-XR System Management Command Reference
SMR-280
ReleaseModification
Release 2.0This command was introduced.
task IDs. For detailed information about user groups and t ask IDs, refer to the Conf iguring AAA Services on Cisco IOS-XR Software module of the Cisco IOS-XR System Security Configuration Guide.
Under normal circumstances, processes are started and restarted automatically by the operating system
as required. If a process crashes, it will be automatically restarted.
You can also use the process commands to manually stop, start or restart individual processes. These
commands should be used only under the supervision of a Cisco support representative because they can
cause a loss of router operations.
commands only under the direction of a Cisco technical support representative.
Loading...
+ 16 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.