Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show policy

Syntax

Syntax (EX Series Switches)

Description

Display information about configured routing policies.

Options

none

List the names of all configured routing policies.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

policy-name

(Optional) Show the contents of the specified policy.

statistics

(Optional) Use in conjunction with the test policy command to show the length of time (in microseconds) required to evaluate a given policy and the number of times it has been executed. This information can be used, for example, to help structure a policy so it is evaluated efficiently. Timers shown are per route; times are not cumulative. Statistics are incremented even when the router is learning (and thus evaluating) routes from peering routers.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show policy command. Output fields are listed in the approximate order in which they appear.

Table 1: show policy Output Fields

Field Name

Field Description

policy-name

Name of the policy listed.

term

Name of the user-defined policy term. The term name unnamed is used for policy elements that occur outside of user defined terms

from

Match condition for the policy.

then

Action for the policy.

Sample Output

show policy

show policy policy-name

show policy statistics policy-name

Release Information

Command introduced before Junos OS Release 7.4.

statistics option introduced in Junos OS Release 16.1 for MX Series routers.