12.7. SR P2MP Show Command Reference

12.7.1. Command Hierarchies

12.7.1.1. SR P2MP Show Commands

show
— router
p2mp-policy [root-address ip-address] [tree-id tree-id] [candidate-path path-name] [detail]
replication-segment [root-address ip-address] [tree-id tree-id] [inst-id instance-id] [origin {Static | PCEP | SR-Policy}] [detail]
label summary
label [start start-label] [end end-label] [in-use] [owner {static| pce | sr-pol}]
p2mp-policy [policy-name] [root-tree-id root-tree-id] [root-addr ip-address]
p2mp-candidate-path [path-name] [oper {up | down}] [in-use]
replication-segment [segment-name] [inst-id instance-id] [incoming-sid static-label] [origin {Static | PCEP | SR-Policy}] [oper {up | down}] [tree-id tree-id] [root-address ip-address]
next-hop-id [id] [nh-addr ip-address] [nh-ifName interface-name] [replication-sid label] [oper {up | down}]
status

12.7.2. Command Descriptions

12.7.2.1. Show Commands

p2mp-sr-tree

Syntax 
p2mp-sr-tree
Context 
show>router
Description 

This command enters the context to display P2MP SR tree information.

database

Syntax 
database
Context 
show>router>p2mp-sr-tree
Description 

This command enters the context to display P2MP SR tree database information.

p2mp-policy

Syntax 
p2mp-policy [root-address ip-address] [tree-id tree-id] [candidate-path path-name] [detail]
Context 
show>router>p2mp-sr-tree>database
Description 

This command displays the policy information present in the P2MP SR tree database.

Parameters 
ip-address—
Specifies the root IP address.
tree-id—
Specifies the P2MP SR tree ID.
Values—
8193 to 16286

 

candidate-path—
Specifies the candidate path name, up to 64 characters.
detail—
Displays detailed information.
Output 

The following output is an example of P2MP policy information.

Sample Output
A:swsim103>show>router>p2mp-sr-tree# database p2mp-policy 
===============================================================================
P2MP Policies
===============================================================================
Policy-Name                                                            
RootAddr                            TreeId              State         NumPaths
Tunnel                              Active-Path                        
  Candidate-Path                    Origin              ASN           PLSP-ID
  State                             Create-Time                       Desc
-------------------------------------------------------------------------------
test                                                                   
100.0.0.103                         9000                inService     1
73729                               Primary-path                       
  Primary-path                      configuration       0             --
  inService                         0d 00:00:01                       1
test-spmsi                                                             
100.0.0.103                         9001                inService     1
0                                   Primary-path                       
  Primary-path                      configuration       0             --
  inService                         0d 00:00:01                       1
-------------------------------------------------------------------------------
Total P2MP Policies : 2

replication-segment

Syntax 
replication-segment [root-address ip-address] [tree-id tree-id] [inst-id instance-id] [origin {Static | PCEP | SR-Policy}] [detail]
Context 
show>router>p2mp-sr-tree>database
Description 

This command displays the information for the replication segments in the P2MP SR tree database.

Parameters 
ip-address—
Displays replication segment information for the root with the specified IPv4 address.
tree-id—
Displays replication segment information for the P2MP SR tree with the specified ID.
Values—
8193 to 16286

 

inst-id—
Displays replication segment information for the instance with the specified ID.
Values—
0 to 4294967295

 

origin—
Displays information for policies created using the specified method.
Static—
Displays static policies.
PCEP—
Displays PCEP policies.
SR-Policy—
Displays SR policies.
detail—
Displays detailed information.
Output 

The following output is an example of replication segment information.

Sample Output
A:swsim103>show>router>p2mp-sr-tree# database replication-segment
===============================================================================
Replication Segments
===============================================================================
Policy-name                                                        
RootAddr                          TreeId          NumNHLFEs       Instance
Origin                            Tunnel          Down-Reason     State
SID-action                        InLabel         LTN/Local       Update-ID
  NhId                            REP-SID         Down-Reason     State
  Nexthop                         Interface                        
    ProtectNhId                   REP-SID         Down-Reason     State
    Nexthop                       Interface                       
-------------------------------------------------------------------------------
rs-test-100-103                                                    
100.0.0.100                       9000            1               1000
Static                            73731           none            inService
pop                               30000           False/True      0
  N/A                             N/A             ---             ---
  ---                             ---                              
    N/A                           N/A             ---             ---
    ---                           ---                              
                                                                   
rs-test-100-103-spmsi                                              
100.0.0.100                       9001            0               1000
Static                            0               all-nh-down     outOfService
swap                              30001           False/False     0
  N/A                             N/A             ---             ---
  ---                             ---                              
    N/A                           N/A             ---             ---
    ---                           ---                              
                                                                   
rs-test-103-100                                                    
100.0.0.103                       9000            1               1000
Static                            73729           none            inService
push                              0               True/False      0
  1                               30100, 0, 0, 0* none            inService
  102.103.1.1                     to102port1-1                     
    N/A                           N/A             ---             ---
    ---                           ---                              
                                                                   
rs-test-spmsi-103-100                                              
100.0.0.103                       9001            1               1000
Static                            0               none            inService
push                              0               True/False      0
  1                               30101, 0, 0, 0* none            inService
  102.103.1.1                     to102port1-1                     
    N/A                           N/A             ---             ---
    ---                           ---                              
                                                                   
-------------------------------------------------------------------------------
Total replication segments : 4

label

Syntax 
label summary
label [start start-label] [end end-label] [in-use] [owner {static | pce | sr-pol}]
Context 
show>router>p2mp-sr-tree
Description 

This command displays P2MP-SR label information.

Parameters 
start-label—
The starting label value for which to display. If only start-label is specified, only labels using start-label are displayed.
Values—
32 to 524287

 

in-use—
Displays labels that are in use.
owner—
Displays labels owned by the specified owner.
static—
Displays labels owned by static owner.
pce—
Displays labels owned by PCE.
sr-pol—
Displays labels owned by the SR policy.
Output 

The following output is an example of P2MP SR label information.

Sample Output
A:swsim103>show>router>p2mp-sr-tree# label 
============================================================
P2MP-SR Label Information
============================================================
Label               Owner               InUse
------------------------------------------------------------
30000               static              Yes
30001               static              Yes

p2mp-policy

Syntax 
p2mp-policy [policy-name] [root-tree-id root-tree-id] [root-addr ip-address]
Context 
show>router>p2mp-sr-tree
Description 

This command displays the P2MP policy information.

Parameters 
policy-name—
Specifies the policy name, up to 256 characters.
root-tree-id—
Specifies the root tree ID.
Values—
8193 to 16286

 

ip-address—
Specifies the root IPv4 address.
Output 

The following output is an example of P2MP SR tree policy information.

Sample Output
A:swsim103>show>router>p2mp-sr-tree# p2mp-policy 
===============================================================================
P2MP Policies
===============================================================================
Name                                    TreeId NumPaths       Adm/Opr
RootAddr                                                      SvcId
activeCPName                                                  ActInstId
-------------------------------------------------------------------------------
test                                    9000   1              Up/Up
100.0.0.103                                                   70
Primary-path                                                  1
                                                               
test-spmsi                              9001   1              Up/Up
100.0.0.103                                                   70
Primary-path                                                  1
                                                               
-------------------------------------------------------------------------------
Total P2MP Policies : 2
===============================================================================

p2mp-candidate-path

Syntax 
p2mp-candidate-path [path-name] [oper {up | down}] [in-use]
Context 
show>router>p2mp-sr-tree>p2mp-policy
Description 

This command displays candidate path information.

Parameters 
path-name—
Specifies the candidate path name, up to 32 characters.
oper—
Displays the candidate paths with the specified operational status.
in-use—
Displays candidate paths that are in use.

replication-segment

Syntax 
replication-segment [segment-name] [inst-id instance-id] [incoming-sid static-label] [origin {Static | PCEP | SR-Policy}] [oper {up | down}] [tree-id root-tree-id] [root-addr ip-address]
Context 
show>router>p2mp-sr-tree
Description 

This command displays the information for the specified replication segment of the P2MP SR tree.

Parameters 
ip-address—
Specifies the root IPv4 address.
tree-id—
Specifies the P2MP SR tree ID.
Values—
8193 to 16286

 

inst-id—
Specifies the instance ID.
Values—
0 to 4294967295

 

origin—
Displays information for policies created using the specified method.
Static—
Displays static policies.
PCEP—
Displays PCEP policies.
SR-Policy—
Displays SR policies.
oper—
Displays replication segments with the specified operational status.
detail—
Displays detailed information.
Output 

The following output is an example of replication segment information.

Sample Output
A:swsim103>show>router>p2mp-sr-tree# replication-segment 
===============================================================================
Replication Segments
===============================================================================
Name                                    Origin InstId    NumNhIds  Adm/Opr
RootAddr                                       TreeId    InSID     Action
-------------------------------------------------------------------------------
rs-test-100-103                         Static 1000      --        Up/Up
100.0.0.100                                    9000      30000     Pop
                                                                    
rs-test-103-100                         Static 1000      1         Up/Up
100.0.0.103                                    9000      --        Push
                                                                    
rs-test-100-103-spmsi                   Static 1000      --        Up/Down
100.0.0.100                                    9001      30001     Swap
                                                                    
rs-test-spmsi-103-100                   Static 1000      1         Up/Up
100.0.0.103                                    9001      --        Push
                                                                    
-------------------------------------------------------------------------------
Total Replication Segments : 4

next-hop-id

Syntax 
next-hop-id [id] [nh-addr ip-address] [nh-ifName interface-name] [replication-sid label] [oper {up | down}]
Context 
show>router>p2mp-sr-tree>replication-segment
Description 

This command displays information for the specified replication segment next-hop of the P2MP SR tree.

Parameters 
id—
Specifies the next-hop ID.
Values—
1 to 4096

 

ip-address—
Specifies the root IPv4 address.
interface-name—
Specifies the interface name, up to 32 characters.
label—
Displays the specified label number.
Values—
0, 16 to 1048576

 

oper—
Displays the next hop with the specified operational status.

statistics

Syntax 
statistics
Context 
show>router>p2mp-sr-tree
Description 

This command displays P2MP SR tree statistics.

Output 

The following output is an example of P2MP SR tree statistics information.

Sample Output
A:swsim103>show>router>p2mp-sr-tree# statistics 
============================================================
P2MP-SR Statistics
============================================================
General
  Total Number of p2mp-policies        : 2
    static                             : 2
    pce                                : 0
    sr-policy                          : 0
  Total Number p2mp-candidate-path     : 2
    static                             : 2
    pce                                : 0
    sr-policy                          : 0
  Total Number replication-segments    : 4
    static                             : 4
    pce                                : 0
    sr-policy                          : 0
  Total Number next-hops               : 2
     static                            : 2
     pce                               : 0
     sr-policy                         : 0
  Total Number push                    : 2
  Total Number swap                    : 1
  Total Number pop                     : 1
  Total Number tunnel-allocated        : 2
Total Number next-hop interfaces
  inService                            : 1
  outOfService                         : 0
  unsupported                          : 0
  mismatched                           : 0
  without BFD                          : 0
BackPressure
  DataPlane backpressure active        : disabled
  DataPlane backpressure count         : 0
Errors
  Unknown Originator Owner             : 0
  Duplicate TreeIds                    : 0
  Programming failures
    NhIdx                              : 0
    Labels                             : 0
    Tunnels                            : 0
    Protection Grp                     : 0

status

Syntax 
status
Context 
show>router>p2mp-sr-tree
Description 

This command displays P2MP SR tree status information.

Output 

The following output is an example of P2MP SR tree status information.

Sample Output
A:swsim103>show>router>p2mp-sr-tree# status 
===============================================================================
P2MP-SR-TREE Status
===============================================================================
Admin Status       : Up                 Oper Status        : Up
Reserved Lbl Blk   : treeSID
===============================================================================