show policy
Syntax
show policy<logical-system (all | logical-system-name)><policy-name>
Syntax (EX Series Switch)
show policy<policy-name>
Release Information
Command introduced before JUNOS Release 7.4.
Command introduced in JUNOS 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 Topics
List of Sample Output
show policyshow policy policy-name
show policy (Multicast Scoping)
Output Fields
Table 148 lists the output fields for the show policy command. Output fields are listed in the approximate order in which they appear.
Table 148: 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 policyConfigured policies: __vrf-export-red-internal__ __vrf-import-red-internal__ red-export all_routes
show policy policy-name
user@host> show policy test-staticsPolicy 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-staticsPolicy test-statics:
from
multicast-scoping == 8