Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Display Tasks



You can display information about tasks to further your investigation of a memory problem on the router.


To display a list of tasks that are enabled on the router, enter the following Junos OS CLI operational mode commands:

Sample Output

user@R1> show task


The sample output shows a list of routing, routing protocol, and interface tasks that are currently running on the router (show task), a summary of memory utilization (show task memory), and the memory utilization of a particular task (show task io). Tasks can be baseline tasks performed regardless of the router configuration, and other tasks that depend on the router configuration. For example, the BGP_Group_internal task is the result of the configuration of BGP on the router, while the INET6 task is a base task associated with the routing process (rpd).

Each task in the show task command output has a priority and a task name. For example, the current priority is 10 for LMP Client and 80 for IF Delete. A lower number indicates a higher priority.

Some tasks have flags attached to them. For example, the BGP. task has two flags, Accept and LowPrio. The Accept flag indicates that the task is waiting for incoming connections, and the LowPrio flag indicates that the task will be dispatched to read its socket after other, higher priority tasks. Two additional flags are Connect, which indicates that a task is waiting for a connection to complete, and Delete, which indicates that a task has been deleted and is being cleaned up.

The show task io command shows the statistics gathered for each IO operation. The counters show the following:

  • Reads—This counter increments when a datagram arrives on a connected socket of the task and the task’s read callback is called.

  • Writes—This counter increments when a connected socket of a task becomes writable and the tasks’s callback is called.

  • Rcvd—This counter increments when the task calls the Routing Engine to read a datagram from a socket which may or may not be connected.

  • Sent—This counter increments when a task attempts to read or write a datagram on an existing or nonexisting socket.

  • Drops—This counter increments when a task attempts to read or write a datagram through the Routing Engine on a prebuilt socket, but the request fails for any reason.