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 ospf flex-algorithm

date_range 09-Dec-23

Syntax

content_copy zoom_out_map
show ospf (spring | spf | route) flex-algorithm flex-algorithm-id
logical-system (all |logical-system-name)

Description

Display the configured flexible algorithm and the defined parameters.

Options

flex-algorithm-id

Specify the ID of the flex algorithm to view its configured parameters.

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 describes the output fields for the show ospf flex-algorithm command. Output fields are listed in the approximate order in which they appear.

Table 1: show ospf flex-algorithm Output Fields

Field Name

Field Description

flex algorithm

Name of the defined flexible algorithm.

color

Name of the BGP colored community mapped with the flexible algorithm.

Chosen Definition

Name of the flexible algorithm definition that the device has chosen to participate in.

calculation-type

The calculation type specified in the flexible algorithm definition (FAD).

metric-type

The metric type specified in the FAD

priority

The specified priority for the advertised flexible algorithm.

Include Any

The administrative groups included in the FAD.

Include All

All the administrative groups included in the FAD.

Exclude

The administrative groups to be excluded.

Prefix

Destination of the route.

Area

Area number. Area 0.0.0.0 is the backbone area.

Version

Version of SPF that generated the route.

Metric

Metric value associated with the route.

Type

Metric type: int (internal) or ext (external).

Interface

Interface to the next hop.

NH

Next hop address type:

  • IPv4

  • IPv6

  • MPLS

Via

System identifier of the next hop, displayed as a name if possible.

Sample Output

show isis spring flex-algorithm flex-algorithm-id

content_copy zoom_out_map
user@host> show ospf spring flex-algorithm flex-algorithm-id 128
Flex algortihm : 129, Paritcipating
Color: <color> 
Chosen Definition: <hostname> 	
calculation-type: spf/strict-spf 
	metric-type: igp-metric/te-metric 	
priority: <priority> 	
Include Any: <admin-groups> 	
Include All: <admin-groups> 	
Exclude: <admin-groups> 
content_copy zoom_out_map
user@host> show ospf spring flex-algorithm flex-algorithm-id 128
Flex Algo: 128, Area: 0.0.0.0
Color: 128, Participating, FAD supported
Winner: 192.168.255.10, Metric: 0, Calc: 0, Prio: 0, inc-any: 0x1, FAD supported
Include-Any:  0x1 RED
SPF Version: 296
Participation toggles: 1
Topo refresh count: 0
Full SPFs: 296, Partial SPFs: 0

show ospf spring flex-algorithm

content_copy zoom_out_map
user@host> show ospf spring flex-algorithm
Flex Algo: 128, Area: 0.0.0.0
  Color: 128, Participating, FAD supported
      Winner: 100.100.100.100, Metric: 2, Calc: 1, Prio: 10, inc-any: 0x2, inc-all: 0x2, Excl: 0x4, Flags: 0X80000000, FAD supported
        Include-Any:  0x2 red 
        Include-All:  0x2 red 
        Exclude:  0x4 green
  SPF Version: 14
  Participation toggles: 1
  Topo refresh count: 0
  Full SPFs: 14, Partial SPFs: 0

show ospf log

content_copy zoom_out_map
user@host> show ospf log
Topology default SPF log:
   
   Last instance of each event type
When            Type            Elapsed
1w2d 14:16:01   SPF             0.000316  
1w2d 14:16:01   Stub            0.000233  
1w2d 14:16:01   Interarea       0.000002  
1w2d 14:16:01   External        0.000004  
1w2d 14:16:01   NSSA            0.000001  
1w2d 14:16:01   Cleanup         0.000551  
    
   Maximum length of each event type
When            Type            Elapsed
1w2d 14:51:10   SPF             0.000997  
1w2d 16:16:18   Stub            0.000675  
1w3d 07:25:10   Interarea       0.000010  
1w3d 07:45:50   External        0.000013  
1w3d 07:32:04   NSSA            0.000008  
1w3d 08:54:48   Cleanup         0.001044  
    
   Last 100 events
When            Type            Elapsed

1w2d 14:25:19   FlexAlgo SPF    0.000680  
1w2d 14:25:19   SPF             0.000204  
1w2d 14:25:19   Stub            0.000025  
1w2d 14:25:19   Interarea       0.000003  
1w2d 14:25:19   External        0.000002  
1w2d 14:25:19   NSSA            0.000001  
1w2d 14:25:19   Prefix SID      0.000222  
1w2d 14:25:19   Adj SID         0.000074  
1w2d 14:25:19   Cleanup         0.000607  
1w2d 14:25:19     Total         0.001209  
1w2d 14:25:14   SPF             0.000188  
1w2d 14:25:14   Stub            0.000054  
1w2d 14:25:14   Interarea       0.000002  
1w2d 14:25:14   External        0.000001  
1w2d 14:25:14   NSSA            0.000001  
1w2d 14:25:14   Prefix SID      0.000181  
1w2d 14:25:14   Adj SID         0.000178  
1w2d 14:25:14   Cleanup         0.000413  
1w2d 14:25:14     Total         0.001656  
1w2d 14:23:37   FlexAlgo SPF    0.001914  
1w2d 14:23:37   FlexAlgo SPF    0.000081  
1w2d 14:23:37   SPF             0.000215 
 

show ospf route flex-algorithm-id

content_copy zoom_out_map
user@host> show ospf route flex-algorithm-id 128
Topology default Route Table:

Prefix             Path  Route      NH       Metric NextHop       Nexthop      
                   Type  Type       Type            Interface     Address/LSP
192.168.255.11     Intra Router     IP            1 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
192.168.255.12     Intra Router     IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.13     Intra Router     IP            1 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.14     Intra Router     IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.15     Intra Router     IP            3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.1.0/30       Intra Network    IP            1 ge-0/0/0.0
10.10.1.4/30       Intra Network    IP            1 ge-0/0/1.0
10.10.3.0/30       Intra Network    IP            1 ge-0/0/2.0
10.10.3.4/30       Intra Network    IP            1 ge-0/0/3.0
10.10.12.0/30      Intra Network    IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
10.10.12.4/30      Intra Network    IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
10.10.13.0/30      Intra Network    IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.14.0/30      Intra Network    IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
10.10.23.0/30      Intra Network    IP            2 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.24.0/30      Intra Network    IP            3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.25.0/30      Intra Network    IP            3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.25.4/30      Intra Network    IP            3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.34.0/30      Intra Network    IP            2 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.34.4/30      Intra Network    IP            2 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.45.0/30      Intra Network    IP            3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
10.10.45.4/30      Intra Network    IP            3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
128.49.106.245/32  Intra Network    IP            1 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
128.49.107.40/32   Intra Network    IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.10/32  Intra Network    IP            0 lo0.0
192.168.255.10/32  Intra Network    Spring        0 lo0.0
192.168.255.11/32  Intra Network    IP            1 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
192.168.255.11/32  Intra Network    Spring        1 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
192.168.255.12/32  Intra Network    IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.12/32  Intra Network    Spring        2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.13/32  Intra Network    IP            1 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.13/32  Intra Network    Spring        1 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.14/32  Intra Network    IP            2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.14/32  Intra Network    Spring        2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.15/32  Intra Network    IP            3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
192.168.255.15/32  Intra Network    Spring        3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
16                 Intra Network    Mpls          0 ge-0/0/0.0    10.10.1.2
                                    Bkup MPLS       ge-0/0/1.0    10.10.1.6
16 (S=0)           Intra Network    Mpls          0 ge-0/0/0.0    10.10.1.2
                                    Bkup MPLS       ge-0/0/1.0    10.10.1.6
17                 Intra Network    Mpls          0 ge-0/0/1.0    10.10.1.6
                                    Bkup MPLS       ge-0/0/0.0    10.10.1.2
17 (S=0)           Intra Network    Mpls          0 ge-0/0/1.0    10.10.1.6
                                    Bkup MPLS       ge-0/0/0.0    10.10.1.2
20                 Intra Network    Mpls          0 ge-0/0/2.0    10.10.3.2
                                    Bkup MPLS       ge-0/0/3.0    10.10.3.6
20 (S=0)           Intra Network    Mpls          0 ge-0/0/2.0    10.10.3.2
                                    Bkup MPLS       ge-0/0/3.0    10.10.3.6
21                 Intra Network    Mpls          0 ge-0/0/3.0    10.10.3.6
                                    Bkup MPLS       ge-0/0/2.0    10.10.3.2
21 (S=0)           Intra Network    Mpls          0 ge-0/0/3.0    10.10.3.6
                                    Bkup MPLS       ge-0/0/2.0    10.10.3.2
81001              Intra Network    Mpls          1 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
81001 (S=0)        Intra Network    Mpls          1 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
81003              Intra Network    Mpls          2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
81004              Intra Network    Mpls          1 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
81004 (S=0)        Intra Network    Mpls          1 ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
81006              Intra Network    Mpls          2 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6
81007              Intra Network    Mpls          3 ge-0/0/0.0    10.10.1.2
                                                    ge-0/0/1.0    10.10.1.6
                                                    ge-0/0/2.0    10.10.3.2
                                                    ge-0/0/3.0    10.10.3.6

Release Information

Command introduced in Junos OS Release 21.1R1.

footer-navigation