Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

show policer

Syntax

show policer<detail><policer-name>

Release Information

Command introduced before Junos OS Release 7.4.

Option detail introduced in Junos OS Release 12.3.

Command introduced in Junos OS Release 12.3R2 for EX Series switches.

Description

Display the number of policed packets for a given policer or an aggregate policer. An aggregate policer is an aggregate of different policers on the same logical interface.

Options

none

Display the number of policed packets for all configured policers.

detail

(Optional) Display enhanced statistics for policers.

policer-name

(Optional) Display the number of policed packets for the specified policer.

Required Privilege Level

view

List of Sample Output

show policer (MX Series Router and EX Series Switch)
show policer (non MX Series Router)
show policer (Aggregate Policer, non MX Series Router)
show policer detail

Output Fields

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

Table 1: show policer Output Fields

Field Name

Field Description

Name

Name of the policer.

Bytes

(For two-color policers on MX Series routers and EX Series switches, and for hierarchical policers on interfaces hosted on MICs and MPCs in MX Series routers) Total number of bytes policed by the specified policer.

For other platforms, this field is blank.

Packets

Total number of packets policed by the specified policer.

Sample Output

show policer (MX Series Router and EX Series Switch)

user@host> show policer
Policers:
Name                                                Bytes              Packets
__default_arp_policer__                            314520                 5242
pol-2M-ge-1/2/0.1-inet-i                         10372300               103723
pol-2M-ge-1/2/0.1-inet6-i                         7727800                77278
pol-2M-ge-1/2/0.1-mpls-i                          7070336                67984
pol-2M-ge-1/2/0.1001-vpls-i                      65153700               651537
pol-2M-ge-1/2/0.2001-vpls-i                      65180900               651809
pol-2M-ge-1/2/0.3001-ccc-i                       62202144               647939

show policer (non MX Series Router)

user@host> show policer
Policers:
Name                                                Bytes              Packets
__default_arp_policer__                                                   5242
pol-2M-ge-1/2/0.1-inet-i                                                103723
pol-2M-ge-1/2/0.1-inet6-i                                                77278
pol-2M-ge-1/2/0.1-mpls-i                                                 67984
pol-2M-ge-1/2/0.1001-vpls-i                                             651537
pol-2M-ge-1/2/0.2001-vpls-i                                             651809
pol-2M-ge-1/2/0.3001-ccc-i                                              647939

show policer (Aggregate Policer, non MX Series Router)

user@host> show policer
Policers:
Name                                                Bytes              Packets
__default_arp_policer__                                                      0
P1-ae0.0-log_int-o                                                           0
P2-ge-7/0/2.0-inet-o                                                         0
P2-ge-7/0/2.0-inet6-o                                                        0
__policer_tmpl__-term                                                        0
__policer_tmpl__-fc0                                                         0
__policer_tmpl__-fc0                                                         0
__policer_tmpl__-fc1                                                         0
__policer_tmpl__-fc0                                                         0
__policer_tmpl__-fc1                                                         0
__policer_tmpl__-fc2                                                         0
__policer_tmpl__-fc0                                                         0
__policer_tmpl__-fc1                                                         0
__policer_tmpl__-fc2                                                         0
__policer_tmpl__-fc3                                                         0

show policer detail

user@host> show policer detail
Policers:
Name                                                Bytes              Packets
__default_arp_policer__
    OOS                                                 0                    0
    Offered                                             0                  496
    Transmitted                                         0                  496
P1-xe-1/0/0.0-inet-i
    OOS                                                 0                11329
    Offered                                             0               111188
    Transmitted                                         0                99859

Published: 2013-04-10

Published: 2013-04-10