Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show policy conditions

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show policy conditions
<condition-name>
<detail>
<dynamic>
<logical-system (all | logical-system-name)>

Syntax (EX Series Switches)

content_copy zoom_out_map
show policy conditions
<condition-name>
<detail>
<dynamic>

Description

Display all the configured conditions as well as the routing tables with which the configuration manager is interacting. If the detail keyword is included, the output also displays dependent routes for each condition.

Options

none

Display all configured conditions and associated routing tables.

condition-name

(Optional) Display information about the specified condition only.

detail

(Optional) Display the specified level of output.

dynamic

(Optional) Display information about the conditions in the dynamic database.

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

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

Required Privilege Level

view

Output Fields

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

Table 1: show policy conditions Output Fields

Field Name

Field Description

Level of Output

Condition

Name of configured condition.

All levels

event

Condition type. If the if-route-exists option is configured, the event type is: Existence of a route in a specific routing table.

All levels

Dependent routes

List of routes dependent on the condition, along with the latest generation number.

detail

Condition tables

List of routing tables associated with the condition, along with the latest generation number and number of dependencies.

All levels

If-route-exists conditions

List of conditions configured to look for a route in the specified table.

All levels

Sample Output

show policy conditions detail

content_copy zoom_out_map
user@host> show policy conditions detail
Configured conditions:
Condition cond1, event: Existence of a route in a specific routing table
Dependent routes:
 172.16.4.4/32, generation 3
 6.6.6.6/32, generation 3
 10.10.10.10/32, generation 3

Condition cond2, event: Existence of a route in a specific routing table
Dependent routes:
None

Condition tables:
Table inet.0, generation 4, dependencies 3, If–route-exists conditions: cond1 (static) cond2 (static)

Release Information

Command introduced in Junos OS Release 9.0.

footer-navigation