Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     
     

    show pfe tcam usage

    Syntax

    show pfe tcam usage (all-tcam-stages | app | tcam-stage)
    show pfe tcam usage all-tcam-stages detail
    show pfe tcam usage app
    show pfe tcam usage app <application-name> detail | shared-usage
    show pfe tcam usage tcam-stage (ingress | egress | pre-egress)
    show pfe tcam usage tcam-stage ingress app <application-name>
    show pfe tcam usage tcam-stage egress app <application-name>
    show pfe tcam usage tcam-stage pre-egress app <application-name>

    Release Information

    Command introduced in Junos OS Release 15.1X54–D20 for ACX5048 and ACX5096 routers.

    Description

    Display the TCAM resource usage for an application and stages (egress, ingress, and pre-ingress).

    Options

    all-tcam-stagesDisplay the TCAM resource usage for all stages (egress, ingress, and pre-ingress).
    appDisplay the TCAM resource usage for an application.
    tcam-stageDisplay the TCAM resource usage for a stage (egress, ingress, and pre-ingress) and its application.
    detailDisplay the TCAM resource usage for an application in detail.
    shared-usageDisplay the TCAM resource usage for an application along with its other shared application.

    Required Privilege Level

    view

     
     

    List of Sample Output

    show pfe tcam usage app <application-name>
    show pfe tcam usage app <application-name> detail
    show pfe tcam usage app <application-name> shared-usage
    show pfe tcam usage all-tcam-stages
    show pfe tcam usage all-tcam-stages detail
    show pfe tcam usage tcam-stage ingress
    show pfe tcam usage tcam-stage ingress app <application-name>
    show pfe tcam usage tcam-stage ingress app <application-name> detail
    show pfe tcam usage tcam-stage ingress detail
    show pfe tcam usage tcam-stage ingress detail

    Output Fields

    Table 1 lists the output fields for the show pfe tcam usage command. Output fields are listed in the approximate order in which they appear.

    Table 1: show pfe tcam usage Output Fields

    Field Name

    Field Description

    App name

    Name of the application using the TCAM resource

    Related-App-Name

    Name of the related applications for an application using the TCAM resource.

    Precedence

    Application priority

    State

    Status of the application. The status can be OK or FAILED.

    Tcam-stage

    Describes the stage (egress, ingress, and pre-ingress)

    Group

    Logical representation of one or more tcam-slices.

    Note: Tcam-slice represents the hardware TCAM block, where the TCAM lookup can happen in parallel.

    Mode

    Defines the matching capability of a given group. The following are the possible values for Mode:

    • SINGLE—TCAM space is single-wide. Single-wide modes is used to configure a TCAM entry from a single TCAM slice.
    • DOUBLE—TCAM space mode is double-wide. Double-wide mode is used to configure two TCAM slices using one TCAM entry from each TCAM slice.
    • DOUBLE(I)—TCAM space mode is double-wide intra-slice. Double-wide intra-slice mode is used to configure a TCAM slice to use two TCAM entries as a single entry.

    Tcam-Entries

    TCAM resource used by an application to achieve the functionality of the application.

    Counters

    Counter resource used by an application.

    Policers

    Policer resource used by an application.

    Free

    Available TCAM space.

    Used

    Number of resources used by application or group.

    Errors

    Number of errors occurred due to shortage of TCAM resources.

    Resource-Shortage

    Shortage of TCAM resources for an application.

    Allocated

    Number of TCAM resources allocated for a group.

    Available

    Number of available TCAM resources for a group.

    Hw grps used

    Number of TCAM slices used by the group.

    Tcam apps

    Number of TCAM applications for a group.

    Tcam-slice represents the hardware TCAM block, where the TCAM lookup can happen in parallel. Tcam-group represents the logical representation of one or more tcam-slices.

    Sample Output

    show pfe tcam usage app <application-name>

    user@host> show pfe tcam usage app fw-inet-in
    App name : fw-inet-in, Precedence: 4, State: OK
    Tcam-stage: Ingress, Group:7, Mode: DOUBLE
                  Used  Errors   Resource-Shortage
    Tcam-Entries     1       0                   0
    Counters         1       0                   0
    Policers         0       0                   0
    
    

    show pfe tcam usage app <application-name> detail

    user@host> show pfe tcam usage app fw-inet-in detail
    App name : fw-inet-in, Precedence: 4, State: OK
    Tcam-stage: Ingress, Group:7, Mode: DOUBLE
                  Used  Errors   Resource-Shortage
    Tcam-Entries     1       0                   0
    Counters         1       0                   0
    Policers         0       0                   0
    
      Related Apps:
      -------------
      App name : fw-semantics, Precedence: 1, State: OK
      Tcam-stage: Pre-Ingress, Group:1, Mode: SINGLE
                    Used  Errors   Resource-Shortage
      Tcam-Entries     0       0                   0
    
      App name : fw-inet-pm, Precedence: 2, State: OK
      Tcam-stage: Ingress, Group:15, Mode: SINGLE
                    Used  Errors   Resource-Shortage
      Tcam-Entries     0       0                   0
      Counters         0       0                   0
      Policers         0       0                   0
    
    

    show pfe tcam usage app <application-name> shared-usage

    user@host> show pfe tcam usage app fw-inet-in shared-usage
    App name : fw-inet-in, Precedence: 4, State: OK
    Tcam-stage: Ingress, Group:7, Mode: DOUBLE
                  Used  Errors   Resource-Shortage
    Tcam-Entries     1       0                   0
    Counters         1       0                   0
    Policers         0       0                   0
    
    Other apps sharing the same group
    ----------------------------------
    App name : inet_skip_mpls, Precedence: 5, State: OK
    Tcam-stage: Ingress, Group:7, Mode: DOUBLE
                  Used  Errors   Resource-Shortage
    Tcam-Entries     1       0                   0
    Counters         1       0                   0
    Policers         0       0                   0
    

    show pfe tcam usage all-tcam-stages

    user@host> show pfe tcam usage all-tcam-stages
    Tcam Resource Stage: Pre-Ingress
    --------------------------------
    Free [hw-grps: 3 out of 3]
    No dynamic tcam usage
    
    Tcam Resource Stage: Ingress
    ----------------------------
    Free [hw-grps: 1 out of 8]
    Group: 7, Mode: DOUBLE, Hw grps used: 2, Tcam apps: 2
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2       1024       1022          0
    Policers          0       1024       1024          0
    
    Group: 5, Mode: SINGLE, Hw grps used: 1, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2        512        510          0
    Policers          0        512        512          0
    
    Group: 8, Mode: DOUBLE, Hw grps used: 4, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      1        512        511          0
    Counters          1       1024       1023          0
    Policers          0       1024       1024          0
    
    Tcam Resource Stage: Egress
    ---------------------------
    Free [hw-grps: 3 out of 3]
    No dynamic tcam usage
    
    

    show pfe tcam usage all-tcam-stages detail

    user@host> show pfe tcam usage all-tcam-stages detail
    Tcam Resource Stage: Pre-Ingress
    --------------------------------
    Free [hw-grps: 3 out of 3]
    No dynamic tcam usage
    
    Tcam Resource Stage: Ingress
    ----------------------------
    Free [hw-grps: 1 out of 8]
    Group: 7, Mode: DOUBLE, Hw grps used: 2, Tcam apps: 2
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2       1024       1022          0
    Policers          0       1024       1024          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    fw-inet-in                  1        1        0          4     OK
      fw-semantics              0        X        X          1     OK
      fw-inet-pm                0        0        0          2     OK
    inet_skip_mpls              1        1        0          5     OK
    
    Group: 5, Mode: SINGLE, Hw grps used: 1, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2        512        510          0
    Policers          0        512        512          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    lo0-inet-fil                2        2        0          0     OK
    
    Group: 8, Mode: DOUBLE, Hw grps used: 4, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      1        512        511          0
    Counters          1       1024       1023          0
    Policers          0       1024       1024          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    fw-l2-in                    1        1        0          2     OK
      fw-semantics              0        X        X          1     OK
    
    Tcam Resource Stage: Egress
    ---------------------------
    Free [hw-grps: 3 out of 3]
    No dynamic tcam usage
    

    show pfe tcam usage tcam-stage ingress

    user@host> show pfe tcam usage tcam-stage ingress
    Free [hw-grps: 1 out of 8]
    Group: 7, Mode: DOUBLE, Hw grps used: 2, Tcam apps: 2
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2       1024       1022          0
    Policers          0       1024       1024          0
    
    Group: 5, Mode: SINGLE, Hw grps used: 1, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2        512        510          0
    Policers          0        512        512          0
    
    Group: 8, Mode: DOUBLE, Hw grps used: 4, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      1        512        511          0
    Counters          1       1024       1023          0
    Policers          0       1024       1024          0
    

    show pfe tcam usage tcam-stage ingress app <application-name>

    user@host> show pfe tcam usage tcam-stage ingress app fw-inet-in
    App name : fw-inet-in, Precedence: 4, State: OK
    Tcam-stage: Ingress, Group:7, Mode: DOUBLE
                  Used  Errors   Resource-Shortage
    Tcam-Entries     1       0                   0
    Counters         1       0                   0
    Policers         0       0                   0
    

    show pfe tcam usage tcam-stage ingress app <application-name> detail

    user@host> show pfe tcam usage tcam-stage ingress app fw-inet-in detail
    App name : fw-inet-in, Precedence: 4, State: OK
    Tcam-stage: Ingress, Group:7, Mode: DOUBLE
                  Used  Errors   Resource-Shortage
    Tcam-Entries     1       0                   0
    Counters         1       0                   0
    Policers         0       0                   0
    
      Related Apps:
      -------------
      App name : fw-semantics, Precedence: 1, State: OK
      Tcam-stage: Pre-Ingress, Group:1, Mode: SINGLE
                    Used  Errors   Resource-Shortage
      Tcam-Entries     0       0                   0
    
      App name : fw-inet-pm, Precedence: 2, State: OK
      Tcam-stage: Ingress, Group:15, Mode: SINGLE
                    Used  Errors   Resource-Shortage
      Tcam-Entries     0       0                   0
      Counters         0       0                   0
      Policers         0       0                   0
    

    show pfe tcam usage tcam-stage ingress detail

    user@host> show pfe tcam usage tcam-stage ingress detail
    Free [hw-grps: 1 out of 8]
    Group: 7, Mode: DOUBLE, Hw grps used: 2, Tcam apps: 2
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2       1024       1022          0
    Policers          0       1024       1024          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    fw-inet-in                  1        1        0          4     OK
      fw-semantics              0        X        X          1     OK
      fw-inet-pm                0        0        0          2     OK
    inet_skip_mpls              1        1        0          5     OK
    
    Group: 5, Mode: SINGLE, Hw grps used: 1, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2        512        510          0
    Policers          0        512        512          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    lo0-inet-fil                2        2        0          0     OK
    
    Group: 8, Mode: DOUBLE, Hw grps used: 4, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      1        512        511          0
    Counters          1       1024       1023          0
    Policers          0       1024       1024          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    fw-l2-in                    1        1        0          2     OK
      fw-semantics              0        X        X          1     OK
    
    

    show pfe tcam usage tcam-stage ingress detail

    user@host> show pfe tcam usage tcam-stage ingress detail
    Free [hw-grps: 1 out of 8]
    Group: 7, Mode: DOUBLE, Hw grps used: 2, Tcam apps: 2
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2       1024       1022          0
    Policers          0       1024       1024          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    fw-inet-in                  1        1        0          4     OK
      fw-semantics              0        X        X          1     OK
      fw-inet-pm                0        0        0          2     OK
    inet_skip_mpls              1        1        0          5     OK
    
    Group: 5, Mode: SINGLE, Hw grps used: 1, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      2        512        510          0
    Counters          2        512        510          0
    Policers          0        512        512          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    lo0-inet-fil                2        2        0          0     OK
    
    Group: 8, Mode: DOUBLE, Hw grps used: 4, Tcam apps: 1
                   Used  Allocated  Available     Errors
    Tcam-Entries      1        512        511          0
    Counters          1       1024       1023          0
    Policers          0       1024       1024          0
    
    App tcam usage:
    ----------------
    App-Name              Entries Counters Policers Precedence  State
      Related-App-Name ..
    -----------------------------------------------------------------
    fw-l2-in                    1        1        0          2     OK
      fw-semantics              0        X        X          1     OK
    
    

    Modified: 2017-09-13