Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

show policy

Syntax

show policy<logical-system (all | logical-system-name)><policy-name>

Syntax (EX Series Switches)

show policy<policy-name>

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for 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.

Required Privilege Level

view

 

Related Documentation

 

List of Sample Output

show policy
show policy policy-name
show policy (Multicast Scoping)

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

Policy term listed.

from

Match condition for the policy.

then

Action for the policy.

Sample Output

show policy

user@host> show policy
Configured policies:
__vrf-export-red-internal__
__vrf-import-red-internal__
red-export
all_routes

show policy policy-name

user@host> show policy test-statics
Policy test-statics:
    from
         3.0.0.0/8  accept
         3.1.0.0/16  accept
    then reject

show policy (Multicast Scoping)

user@host> show policy test-statics
Policy test-statics:
    from
         multicast-scoping == 8

Published: 2013-03-14

 

Related Documentation

 

Published: 2013-03-14