6.7. Show, and Clear Command Reference

6.7.1. Command Hierarchies

6.7.1.1. Show Commands

show
— router router-name
policy [name [expand-variables] | damping [name] | prefix-list [name] | as-path [name] | as-path-group [name] | community [name] | admin | exclusive-access]
policy name sub-policy entry entry-id [name subpol-name]
policy name sub-policy entry entry-id name subpol-name entry-2 entry-id name-2 subpol-name
policy name sub-policy entry entry-id name subpol-name entry-2 entry-id name-2 subpol-name entry-3 entry-id name-3 subpol-name
show
— router router-name
— bgp
policy-test plcy-or-long-expr [plcy-or-expr [plcy-or-expr]] [family family] [rd rd] prefix ip-prefix/ip-prefix-length [longer] [neighbor ip-address] [display-rejects] [{detail | brief}] [display-rejects-only]
show
— router router-name
— segment-routing
— sr-policies
all [color color] [end-point {ipv4-address | ipv6-address}] [preference preference-id] [distinguisher distinguisher-id]
all summary
bgp [color color] [end-point {ipv4-address | ipv6-address}] [preference preference-id] [distinguisher distinguisher-id]
bgp summary
egress-statistics color color [end-point {ipv4-address | ipv6-address}]
ingress-statistics color color [end-point {ipv4-address | ipv6-address}]
static [head-end {local | ip-address}] [color color] [end-point {ipv4-address | ipv6-address}] [preference preference-id] [distinguisher distinguisher-id]
static summary
static-policy name [detail]

6.7.1.2. Clear Commands

clear
— router router-name
— segment-routing
— sr-policies
egress-statistics color color [end-point {ipv4-address | ipv6-address}]
ingress-statistics color color [end-point {ipv4-address | ipv6-address}]

6.7.2. Command Descriptions

6.7.2.1. Show Commands

The command outputs in the following section are examples only; actual displays may differ depending on supported functionality and user configuration.

policy

Syntax 
policy [name [expand-variables] | damping [name] | prefix-list [name] | as-path [name] | as-path-group [name] | community [name] | admin | exclusive-access]
policy name sub-policy entry entry-id [name subpol-name]
policy name sub-policy entry entry-id name subpol-name entry-2 entry-id name-2 subpol-name
policy name sub-policy entry entry-id name subpol-name entry-2 entry-id name-2 subpol-name entry-3 entry-id name-3 subpol-name
Context 
show>router
Description 

This command displays configured policy statement information.

Parameters 
admin —
When this keyword is specified, the entire policy option configuration is displayed, including any uncommitted configuration changes. This command is similar to the info command.
as-path —
When this keyword is specified, the parameter displays configured as-path regular expressions (optionally filtered by name).
as-path-group —
When this keyword is specified, the command displays configured as-path-groups, optionally filtered by name.
community —
When this keyword is specified, the command displays configured community lists, optionally filtered by name.
damping —
When this keyword is specified, the information about the route policy damping configurations is displayed.
entry entry-id
Displays the configuration (with parameter value substitution) of the subroutine policy called by the entry with entry ID.
exclusive-access —
Displays the policy that edits exclusive access and lock information.
expand-variables —
Displays the variables that are replaced with values in main policies or in sub-policies.
prefix-list name
Displays the prefix lists configured in the route policy.
policy name
Displays information similar to the info command for a specific policy-statement. If a name is provided, the matching policy-statement displays. If no statement name is specified, a list of all policies statements and descriptions display.
sub-policy —
When this keyword is specified, the configuration of a subroutine policy is displayed.
subpol-name
Specifies the policy name up to 64 characters.
entry-id
Specifies the numeric entry identifier of the policy.
Values—
1 to 4294967295

 

Output 

Table 89 describes route policy output fields.

Table 89:  Route Policy Output Fields  

Label

Description

Policy

Displays a list of route policy names.

Description

Displays the description of each route policy.

Policies

The total number of policies configured.

The following route policy commands are displayed with different command parameter options:

  1. show router policy
  2. show router policy admin
  3. show router policy “BGP to RIP”
  4. show router policy damping
  5. show router policy “pol1” sub-pol entry 10 name “pol2”

The following output is an example of route policy information.

Sample Output

The show router policy command displays all configured route policies.

A:ALA-1# show router policy 
===============================================================================
Route Policies
===============================================================================
Policy                           Description                                    
-------------------------------------------------------------------------------
Direct And Aggregate             Policy Statement ABC
-------------------------------------------------------------------------------
Policies : 
===============================================================================
A:ALA-1# 

The show router policy admin command is similar to the info command which displays information about the route policies and parameters.

A:ALA-1# show router policy admin 
    prefix-list "All-Routes"
            prefix 0.0.0.0/0 longer
            prefix 2.0.0.0/8 longer
            prefix 3.0.0.0/8 longer
            prefix 4.0.0.0/8 longer
            prefix 5.0.0.0/8 longer
            prefix 6.0.0.0/8 exact
            prefix 224.0.0.0/24 longer
    exit
...
A:ALA-1#

The show router policy name command displays information about a specific route policy.

show router policy “BGP To RIP”

description "Policy Statement For 'BGP To RIP'"
    entry 10
        description "Entry For Policy 'BGP To RIP"
        from
            protocol bgp
        exit
        to
            protocol rip
        exit
        action accept
            metric set 1
            next-hop 10.0.18.200
            tag 805
        exit
    exit
    default-action reject
A:ALA-1#

The show router policy damping command displays information about the route policy damping configurations.

A:ALA-1# show router policy damping

=============================================
Route Damping Profiles
=============================================
    damping "TEST-LOW"
        half-life 22
        max-suppress 720
        reuse 10000
        suppress 15000
    exit
    damping "TEST-HIGH"
        half-life 22
        max-suppress 720
        reuse 1000
        suppress 5000
    exit
    damping "TEST-MEDIUM"
        half-life 22
        max-suppress 720
        reuse 5000
        suppress 11000
    exit
=============================================
A:ALA-1#

The show router policy name sub-policy entry entry-id name subpol-name command displays information about the subroutine called by an entry of the route policy. In the following sample output, the term “telnet” is the value of a variable.

show router policy “BGP To RIP”

*A:Dut-B#  show router policy "pol1" sub-policy entry 10 name "pol2"
===============================================================================
pol1 entry 10 sub-policies
===============================================================================
-------------------------------------------------------------------------------
Level1 Sub-policy : pol2    Parent-policy : pol1, Parent-entry 10
-------------------------------------------------------------------------------
    entry 20
        from
            community "telnet"
        exit
    exit
===============================================================================

policy-test

Syntax 
policy-test plcy-or-long-expr [plcy-or-expr [plcy-or-expr]] [family family] [rd rd] prefix ip-prefix/ip-prefix-length [longer] [neighbor ip-address] [display-rejects] [{detail | brief}] [display-rejects-only]
Context 
show>router>bgp
Description 

This command allows an operator to evaluate an existing policy or chain or policies (possibly including a logical expression) against received BGP routes to identify the routes accepted or rejected by the full evaluation of the policy, policy chain, or logical expression.

Parameters 
plcy-or-long-expr—
Specifies the name of a policy, up to 64 characters or a policy logical expression up to 255 characters.
plcy-or-expr—
Specifies the name of a policy, up to 64 characters or a policy logical expression up to 64 characters.
family—
Specifies the BGP address family.
Values—
ipv4, ipv6, vpn-ipv4, vpn-ipv6, label-ipv4, label-ipv6

 

rd—
Specifies the route distinguisher value in one of the following formats:
  1. ip-addr:comm-val
  2. 2byte-asnumber:ext-comm-val
  3. 4byte-asnumber:comm-val
ip-prefix/ip-prefix-length—
Specifies the IPv4 or IPv6 prefix to be evaluated.
longer—
Matches prefixes with a longer prefix-length.
ip-address—
Specifies the neighbor IP address.
display-rejects—
Displays routes rejected by the policy test as opposed to routes that are accepted.
detail—
Displays detailed information.
brief—
Displays abridged information.
display-rejects-only—
Displays routes only rejected by the policy test.

all

Syntax 
all [color color] [end-point {ipv4-address | ipv6-address}] [preference preference-id] [distinguisher distinguisher-id]
all summary
Context 
show>router>segment-routing>sr-policies
Description 

This command displays all the traffic statistics of the SR policy specified by its color and end-point.

Parameters 
color—
Displays the color that is configured for this SR policy.
Values—
0 to 4294967295

 

ipv4-address | ipv6-address—
Displays the IPv4 or IPv6 address expressed in dotted decimal notation.
Values—
ipv4-address:
  1. a.b.c.d
ipv6-address:
  1. x:x:x:x:x:x:x:x (eight 16-bit pieces)
  2. x:x:x:x:x:x:d.d.d.d
  3. x: [0 to FFFF]H
  4. d: [0 to 255]D

 

preference-id—
Displays the preference ID that is configured for this SR policy.
Values—
0 to 4294967295

 

distinguisher-id—
Displays the distinguisher ID that is configured for this SR policy.
Values—
0 to 4294967295

 

summary
Displays the summary information of the SR policy.
Output 

The following output is an example of traffic statistics of the SR policy, and Table 90 describes the output fields.

Sample Output Show All Router Segment Route Policies
# show router segment-routing sr-policies all color 10 end-point 3ffe::a14:103    
===============================================================================
SR-Policies Path
===============================================================================
-------------------------------------------------------------------------------
Active          : Yes                   Owner           : static
Color           : 10                    
Head            : 0.0.0.0               Endpoint Addr   : 3ffe::a14:103
RD              : 1                     Preference      : 10
BSID            : 100000                
TunnelId        : 917527                Age             : 674
Origin ASN      : 0                     Origin          : 0.0.0.0
NumReEval       : 0                     ReEvalReason    : none
NumActPathChange: 0                     Last Change     : 10/01/2019 19:58:44
 
Path Segment Lists:
Segment-List    : 1                     Weight          : 1
Num Segments    : 1                     Last Change     : 09/28/2019 15:43:35
  Seg 1 Label   : 20003                 State           : resolved-up
 
===============================================================================
# show router segment-routing sr-policies all                                  
===============================================================================
SR-Policies Path
===============================================================================
-------------------------------------------------------------------------------
Active          : Yes                   Owner           : static
Color           : 10                    
Head            : 0.0.0.0               Endpoint Addr   : 3ffe::a14:103
RD              : 1                     Preference      : 10
BSID            : 100000                
TunnelId        : 917527                Age             : 714
Origin ASN      : 0                     Origin          : 0.0.0.0
NumReEval       : 0                     ReEvalReason    : none
NumActPathChange: 0                     Last Change     : 10/01/2019 19:58:44
 
Path Segment Lists:
Segment-List    : 1                     Weight          : 1
Num Segments    : 1                     Last Change     : 09/28/2019 15:43:35
  Seg 1 Label   : 20003                 State           : resolved-up
 
-------------------------------------------------------------------------------
Active          : Yes                   Owner           : bgp
Color           : 20                    
Head            : 0.0.0.0               Endpoint Addr   : 3ffe::a14:102
RD              : 2                     Preference      : 10
BSID            : 100001                
TunnelId        : 917528                Age             : 707
Origin ASN      : 2                     Origin          : ::a14:102
NumReEval       : 0                     ReEvalReason    : none
NumActPathChange: 0                     Last Change     : 10/01/2019 19:58:50
 
Path Segment Lists:
Segment-List    : 1                     Weight          : 1
Num Segments    : 2                     Last Change     : 09/28/2019 15:43:35
  Seg 1 Label   : 20003                 State           : resolved-up
  Seg 2 Label   : 22002                 State           : N/A
 
-------------------------------------------------------------------------------
Active          : Yes                   Owner           : bgp
Color           : 30                    
Head            : 0.0.0.0               Endpoint Addr   : ::
RD              : 3                     Preference      : 10
BSID            : 100002                
TunnelId        : 917529                Age             : 704
Origin ASN      : 2                     Origin          : ::a14:102
NumReEval       : 0                     ReEvalReason    : none
NumActPathChange: 0                     Last Change     : 10/01/2019 19:58:53
 
Path Segment Lists:
Segment-List    : 1                     Weight          : 1
Num Segments    : 2                     Last Change     : 09/28/2019 15:43:35
  Seg 1 Label   : 20003                 State           : resolved-up
  Seg 2 Label   : 22002                 State           : N/A
 
===============================================================================
 
Table 90:  Show Statistics Field Descriptions  

Label

Description

Active

Indicates if the SR policy is active or not.

Owner

Indicates the SR policy owner.

Color

Indicates the color of the SR policy.

Head

Indicates the head-end address of the SR policy.

Endpoint Addr

Indicates the end-point address of the SR policy.

RD

Indicates the RD value of the SR policy.

Preference

Indicates the preference value of the SR policy.

BSID

Indicates the BSID value of the SR policy.

TunnelId

Indicates the tunnel identifier of the SR policy.

Age

Indicates the age of the SR policy.

Origin ASN

Indicates the origin ASN of the SR policy.

Origin

Indicates the origin of the SR policy.

NumReEval

Indicates the number of re-evalutations of the SR policy.

ReEvalReason

Indicates the re-evalutations reason

NumActPathChange

Indicates the number of active path changes.

Last Change

Indicates the date and time of the last change.

Path Segment Lists

Indicates the path segment list counts for each segment list number.

Segment-List

Indicates the segment list number.

Weight

Indicates the segment list weight.

Num Segments

Indicates the number of segments.

Seg 1 Label

Indicates the segment 1 label name.

State

Indicates the segment state value.

Seg 2 Label

Indicates the segment 2 label name.

bgp

Syntax 
bgp [color color] [end-point {ipv4-address | ipv6-address}] [preference preference-id] [distinguisher distinguisher-id]
bgp summary
Context 
show>router>segment-routing>sr-policies
Description 

This command displays all the traffic statistics of the SR policy specified by its color and end-point.

Parameters 
color—
Displays the color that is configured for this SR policy.
Values—
0 to 4294967295

 

ipv4-address | ipv6-address—
Displays the IPv4 or IPv6 address expressed in dotted decimal notation.
Values—
ipv4-address:
  1. a.b.c.d
ipv6-address:
  1. x:x:x:x:x:x:x:x (eight 16-bit pieces)
  2. x:x:x:x:x:x:d.d.d.d
  3. x: [0 to FFFF]H
  4. d: [0 to 255]D

 

preference-id—
Displays the preference ID that is configured for this SR policy.
Values—
0 to 4294967295

 

distinguisher-id—
Displays the distinguisher ID that is configured for this SR policy.
Values—
0 to 4294967295

 

summary
Displays the summary information for the SR policy.
Output 

The following output is an example of traffic statistics of the SR policy, and Table 90 describes the output fields.

Sample Output Show Router BGP Segment Route Policies
# show router segment-routing sr-policies bgp color 20 end-point 3ffe::a14:102 
===============================================================================
SR-Policies Path
===============================================================================
-------------------------------------------------------------------------------
Active          : Yes                   Owner           : bgp
Color           : 20                    
Head            : 0.0.0.0               Endpoint Addr   : 3ffe::a14:102
RD              : 2                     Preference      : 10
BSID            : 100001                
TunnelId        : 917528                Age             : 614
Origin ASN      : 2                     Origin          : ::a14:102
NumReEval       : 0                     ReEvalReason    : none
NumActPathChange: 0                     Last Change     : 10/01/2019 19:58:50
 
Path Segment Lists:
Segment-List    : 1                     Weight          : 1
Num Segments    : 2                     Last Change     : 09/28/2019 15:43:35
  Seg 1 Label   : 20003                 State           : resolved-up
  Seg 2 Label   : 22002                 State           : N/A
 
===============================================================================

egress-statistics

Syntax 
egress-statistics color color [end-point {ipv4-address | ipv6-address}]
Context 
show>router>segment-routing>sr-policies
Description 

This command displays the egress traffic statistics of the SR policy specified by its color and end-point.

Parameters 
color—
Displays the color that is configured for this SR policy.
Values—
0 to 4294967295

 

ipv4-address | ipv6-address—
Displays the IPv4 or IPv6 address expressed in dotted decimal notation.
Values—
ipv4-address:
  1. a.b.c.d
ipv6-address:
  1. x:x:x:x:x:x:x:x (eight 16-bit pieces)
  2. x:x:x:x:x:x:d.d.d.d
  3. x: [0 to FFFF]H
  4. d: [0 to 255]D

 

Output 

The following output is an example of egress traffic statistics of the SR policy, and Table 91 describes the output fields.

Sample Output Show Router Segment Route Policy Egress Statistics
# show router segment-routing sr-policies egress-statistics color 20102011 end-point 10.8.100.12 
===============================================================================
SR-Policies Egress Statistics
===============================================================================
 
Egress Statistics:
 
Color           : 20102011              Endpoint Addr   : 10.8.100.12
Segment-List    : 1                     
TunnelId        : 917548                BSID            : 180001
Pkt Count       : 0                     Octet Count     : 0
 
 
Egress Statistics:
 
Color           : 20102011              Endpoint Addr   : 10.8.100.12
Segment-List    : 2                     
TunnelId        : 917548                BSID            : 180001
Pkt Count       : 0                     Octet Count     : 0
 
===============================================================================
#
show router segment-routing sr-policies egress-statistics color 10 end-point 3ffe::a14:102 
===============================================================================
SR-Policies Egress Statistics
===============================================================================
 
Egress Statistics:
 
Color           : 10                    Endpoint Addr   : 3ffe::a14:102
Segment-List    : 1                     
TunnelId        : 917520                BSID            : 100008
Pkt Count       : 3015                  Octet Count     : 313560
 
===============================================================================
Table 91:  Show Egress Statistics Field Descriptions  

Label

Description

Color

Indicates the color of the SR policy.

Endpoint Addr

Indicates the endpoint address of the SR policy.

Segment-List

Indicates the index of the segment list.

TunnelId

Indicates the tunnel identifier of the SR policy.

BSID

Indicates the binding SID value.

Pkt Count

Indicates the count of packets for the corresponding segment list.

Octet Count

Indicates the count of octets for the corresponding segment list.

ingress-statistics

Syntax 
ingress-statistics color color [end-point {ipv4-address | ipv6-address}]
Context 
show>router>segment-routing>sr-policies
Description 

This command displays the ingress traffic statistics of the SR policy specified by its color and end-point.

Parameters 
color—
Displays the color that is configured for this SR policy.
Values—
0 to 4294967295

 

ipv4-address | ipv6-address—
Displays the IPv4 or IPv6 address expressed in dotted decimal notation.
Values—
ipv4-address:
  1. a.b.c.d
ipv6-address:
  1. x:x:x:x:x:x:x:x (eight 16-bit pieces)
  2. x:x:x:x:x:x:d.d.d.d
  3. x: [0 to FFFF]H
  4. d: [0 to 255]D

 

Output 

The following output is an example of ingress traffic statistics of the SR policy, and Table 92 describes the output fields.

Sample Output Show Router Segment Route Policy Ingress Statistics
show router segment-routing sr-policies ingress-statistics color 10 end-point 3ffe::a14:102 
===============================================================================
SR-Policies Ingress Statistics
===============================================================================
 
Ingress Statistics:
 
Color           : 10                    Endpoint Addr   : 3ffe::a14:102
TunnelId        : 917520                BSID            : 100008
Pkt Count       : 3015                  Octet Count     : 301500
 
===============================================================================
Table 92:  Show Ingress Statistics Field Descriptions  

Label

Description

Color

Indicates the color of the SR policy.

Endpoint Addr

Indicates the end-point address of the SR policy.

TunnelId

Indicates the tunnel identifier of the SR policy.

BSID

Indicates the binding SID value.

Pkt Count

Indicates the count of packets for the corresponding segment list.

Octet Count

Indicates the count of octets for the corresponding segment list.

static

Syntax 
static [head-end {local | ip-address}] [color color] [end-point {ipv4-address | ipv6-address}] [preference preference-id] [distinguisher distinguisher-id]
static summary
Context 
show>router>segment-routing>sr-policies
Description 

This command displays all the static traffic statistics of the SR policy specified by its color, end-point, preference, distinguisher, or summary parameters.

Parameters 
head-end local
Displays the head-end local values that is configured for this SR policy.
head-end ip-address
Displays the head-end IP address values that is configured for this SR policy.
color—
Displays the color that is configured for this SR policy.
Values—
0 to 4294967295

 

ipv4-address | ipv6-address—
Displays the IPv4 or IPv6 address expressed in dotted decimal notation.
Values—
ipv4-address:
  1. a.b.c.d
ipv6-address:
  1. x:x:x:x:x:x:x:x (eight 16-bit pieces)
  2. x:x:x:x:x:x:d.d.d.d
  3. x: [0 to FFFF]H
  4. d: [0 to 255]D

 

preference-id—
Displays the preference ID that is configured for this SR policy.
Values—
0 to 4294967295

 

distinguisher-id—
Displays the distinguisher ID that is configured for this SR policy.
Values—
0 to 4294967295

 

summary
Displays the summary information of the SR policy.
Output 

The following output is an example of traffic statistics of the SR policy, and Table 90 describes the output fields.

Sample Output Show Router Static Traffic Statistics for Segment Route Policies
*A:Dut-A# show router segment-routing sr-policies static color 10 end-point 3ffe::a14:103 
===============================================================================
SR-Policies Path
===============================================================================
-------------------------------------------------------------------------------
Active          : Yes                   Owner           : static
Color           : 10                    
Head            : 0.0.0.0               Endpoint Addr   : 3ffe::a14:103
RD              : 1                     Preference      : 10
BSID            : 100000                
TunnelId        : 917527                Age             : 665
Origin ASN      : 0                     Origin          : 0.0.0.0
NumReEval       : 0                     ReEvalReason    : none
NumActPathChange: 0                     Last Change     : 10/01/2019 19:58:44
 
Path Segment Lists:
Segment-List    : 1                     Weight          : 1
Num Segments    : 1                     Last Change     : 09/28/2019 15:43:35
  Seg 1 Label   : 20003                 State           : resolved-up
 
===============================================================================
*A:Dut-A# 

static-policy

Syntax 
static-policy name [detail]
Context 
show>router>segment-routing>sr-policies
Description 

This command displays all the static policy traffic statistics of the SR policy specified by its name or detail parameters.

Parameters 
name—
Displays the name of this SR policy.
detail—
Displays detail information for the SR policy.
Output 

The following output is an example of traffic statistics of the SR policy, and Table 90 describes the output fields.

Sample Output Show Router Traffic Statistics for Segment Route Static Policies
#show router seg-rt sr-policies egress-statistics color 600 end-point 192.0.2.2
===============================================================================
SR-Policies Egress Statistics
===============================================================================
Color           : 600                   Endpoint Addr   : 192.0.2.2
TunnelId        : 917521                
Active          :
EgrStatsState   : Up/Down
Agg Pkt count   : 0                     Agg Octet Count : 0
Seg List Index  :                       StatsOperState    : Up/Down
Pkt Count       : 0                     Octet Count     : 0
Seg List Index  :                       StatsOperState    : Up/Down
Pkt Count       : 0                     Octet Count     : 0
...
Color           : 601                   Endpoint Addr   : 192.0.2.2
TunnelId        : 917521                
Active          :
EgrStatsState   : Up/Down
Agg Pkt count   : 0                     Agg Octet Count : 0
Seg List Index  :                       StatsOperState    : Up/Down
Pkt Count       : 0                     Octet Count     : 0
Seg List Index  :                       StatsOperState    : Up/Down
Pkt Count       : 0                     Octet Count     : 0
...
===============================================================================
show router segment-routing sr-policies egress-statistics color 10 end-point 3ffe::a14:102 
===============================================================================
SR-Policies Egress Statistics
===============================================================================
 
Egress Statistics:
 
Color           : 10                    Endpoint Addr   : 3ffe::a14:102
Segment-List    : 1                     
TunnelId        : 917520                BSID            : 100008
Pkt Count       : 3015                  Octet Count     : 313560
 
===============================================================================

summary

Syntax 
summary
Context 
show>router>segment-routing>sr-policies
Description 

This command displays all the summary traffic statistics of the SR policy.

Output 

The following output is an example of traffic statistics of the SR policy, and Table 90 describes the output fields.

Sample Output Summary Statistics for Segment Route Policies
#show router seg-rt sr-policies egress-statistics color 600 end-point 192.0.2.2
===============================================================================
SR-Policies Egress Statistics
===============================================================================
Color           : 600                   Endpoint Addr   : 192.0.2.2
TunnelId        : 917521                
Active          :
EgrStatsState   : Up/Down
Agg Pkt count   : 0                     Agg Octet Count : 0
Seg List Index  :                       StatsOperState    : Up/Down
Pkt Count       : 0                     Octet Count     : 0
Seg List Index  :                       StatsOperState    : Up/Down
Pkt Count       : 0                     Octet Count     : 0
...
Color           : 601                   Endpoint Addr   : 192.0.2.2
TunnelId        : 917521                
Active          :
EgrStatsState   : Up/Down
Agg Pkt count   : 0                     Agg Octet Count : 0
Seg List Index  :                       StatsOperState    : Up/Down
Pkt Count       : 0                     Octet Count     : 0
Seg List Index  :                       StatsOperState    : Up/Down
Pkt Count       : 0                     Octet Count     : 0
...
===============================================================================
show router segment-routing sr-policies egress-statistics color 10 end-point 3ffe::a14:102 
===============================================================================
SR-Policies Egress Statistics
===============================================================================
 
Egress Statistics:
 
Color           : 10                    Endpoint Addr   : 3ffe::a14:102
Segment-List    : 1                     
TunnelId        : 917520                BSID            : 100008
Pkt Count       : 3015                  Octet Count     : 313560
 
===============================================================================

6.7.2.2. Clear Commands

egress-statistics

Syntax 
egress-statistics color color [end-point {ipv4-address | ipv6-address}]
Context 
clear>router>segment-routing>sr-policies
Description 

This command clears the egress traffic statistics of the SR policy specified by its color and end-point.

Parameters 
color—
Displays the color that is configured for this SR policy.
Values—
0 to 4294967295

 

ipv4-address | ipv6-address—
Displays the IPv4 or IPv6 address expressed in dotted decimal notation.
Values—
ipv4-address:
  1. a.b.c.d
ipv6-address:
  1. x:x:x:x:x:x:x:x (eight 16-bit pieces)
  2. x:x:x:x:x:x:d.d.d.d
  3. x: [0 to FFFF]H
  4. d: [0 to 255]D

 

ingress-statistics

Syntax 
ingress-statistics color color [end-point {ipv4-address | ipv6-address}]
Context 
clear>router>segment-routing>sr-policies
Description 

This command clears the ingress traffic statistics of the SR policy specified by its color and end-point.

Parameters 
color—
Displays the color that is configured for this SR policy.
Values—
0 to 4294967295

 

ipv4-address | ipv6-address—
Displays the IPv4 or IPv6 address expressed in dotted decimal notation.
Values—
ipv4-address:
  1. a.b.c.d
ipv6-address:
  1. x:x:x:x:x:x:x:x (eight 16-bit pieces)
  2. x:x:x:x:x:x:d.d.d.d
  3. x: [0 to FFFF]H
  4. d: [0 to 255]D