Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

show policy

 

List of Syntax

Syntax

Syntax (EX Series Switches)

Syntax

Syntax (EX Series Switches)

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

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

Description

Display information about configured routing policies.

Options

noneList 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

Related Documentation

List of Sample Output

show policy

show policy policy-name

show policy statistics policy-name

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

user@host> show policy

show policy policy-name

user@host> show policy vrf-import-red-internal

show policy statistics policy-name

user@host> show policy statistics iBGP-v4-RR-Import