This article provides information about the CLI command to check the number of active routes that are associated with each RSVP LSP.
The CLI command to check the number of active routes that are associated with each RSVP LSP.
The show mpls lsp and show rsvp session commands have the Rt counter, which displays the number of active routes that are using a particular LSP as a next-hop.The command to check this Rt counter was changed via PR 611292 . With this PR fix, you now need the count-active-routes knob to display the number of active routes against the Rt counter. The versions with this PR fix will no longer show the number of active routes with just the show mpls lsp or show rsvp session commands. The following sample shows Junos CLI output with and without count-active-routes on Junos 10.4R9, which has fix for PR 611292.
lab@router> show mpls lsp Ingress LSP: 2 sessionsTo From State Rt P ActivePath LSPname10.0.0.3 10.0.0.1 Up 0 * p1-to-p2 < Rt counter is 0 10.0.0.5 10.0.0.1 Up 0 * p1-to-p3Total 2 displayed, Up 2, Down 0Egress LSP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router> show rsvp session Ingress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.3 10.0.0.1 Up 0 1 FF - 300688 p1-to-p3Total 2 displayed, Up 2, Down 0Egress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 110.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit RSVP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router> show mpls lsp count-active-routes Ingress LSP: 2 sessionsTo From State Rt P ActivePath LSPname10.0.0.3 10.0.0.1 Up 5 * p1-to-p2 < Rt counter shows number of routes 5 10.0.0.5 10.0.0.1 Up 0 * p1-to-p3Total 2 displayed, Up 2, Down 0Egress LSP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0 lab@router> show mpls lsp count-active-routes Ingress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.3 10.0.0.1 Up 5 1 FF - 300752 p1-to-p2 < Rt counter shows number of routes 5 10.0.0.5 10.0.0.1 Up 0 1 FF - 300688 p1-to-p3Total 2 displayed, Up 2, Down 0Egress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit RSVP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router>
lab@router> show mpls lsp Ingress LSP: 2 sessionsTo From State Rt P ActivePath LSPname10.0.0.3 10.0.0.1 Up 0 * p1-to-p2 < Rt counter is 0 10.0.0.5 10.0.0.1 Up 0 * p1-to-p3Total 2 displayed, Up 2, Down 0Egress LSP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router> show rsvp session Ingress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.3 10.0.0.1 Up 0 1 FF - 300688 p1-to-p3Total 2 displayed, Up 2, Down 0Egress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 110.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit RSVP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router> show mpls lsp count-active-routes Ingress LSP: 2 sessionsTo From State Rt P ActivePath LSPname10.0.0.3 10.0.0.1 Up 5 * p1-to-p2 < Rt counter shows number of routes 5 10.0.0.5 10.0.0.1 Up 0 * p1-to-p3Total 2 displayed, Up 2, Down 0Egress LSP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0
lab@router> show mpls lsp
Ingress LSP: 2 sessionsTo From State Rt P ActivePath LSPname10.0.0.3 10.0.0.1 Up 0 * p1-to-p2 < Rt counter is 0 10.0.0.5 10.0.0.1 Up 0 * p1-to-p3Total 2 displayed, Up 2, Down 0Egress LSP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router> show rsvp session Ingress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.3 10.0.0.1 Up 0 1 FF - 300688 p1-to-p3Total 2 displayed, Up 2, Down 0Egress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 110.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit RSVP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router> show mpls lsp count-active-routes Ingress LSP: 2 sessionsTo From State Rt P ActivePath LSPname10.0.0.3 10.0.0.1 Up 5 * p1-to-p2 < Rt counter shows number of routes 5 10.0.0.5 10.0.0.1 Up 0 * p1-to-p3Total 2 displayed, Up 2, Down 0Egress LSP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit LSP: 0 sessionsTotal 0 displayed, Up 0, Down 0
lab@router> show mpls lsp count-active-routes Ingress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.3 10.0.0.1 Up 5 1 FF - 300752 p1-to-p2 < Rt counter shows number of routes 5 10.0.0.5 10.0.0.1 Up 0 1 FF - 300688 p1-to-p3Total 2 displayed, Up 2, Down 0Egress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit RSVP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router>
count-active-routes
Ingress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.3 10.0.0.1 Up 5 1 FF - 300752 p1-to-p2 < Rt counter shows number of routes 5 10.0.0.5 10.0.0.1 Up 0 1 FF - 300688 p1-to-p3Total 2 displayed, Up 2, Down 0Egress RSVP: 2 sessionsTo From State Rt Style Labelin Labelout LSPname10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p110.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1Total 2 displayed, Up 2, Down 0Transit RSVP: 0 sessionsTotal 0 displayed, Up 0, Down 0lab@router>