[Contents] [Prev] [Next] [Index] [Report an Error]

show policy

Syntax

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

Release Information

Command introduced before JUNOS Release 7.4.

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 Topics

show policy damping

List of Sample Output

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

Output Fields

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

Table 129: 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

[Contents] [Prev] [Next] [Index] [Report an Error]