Related Documentation
- EX Series
- clear firewall
- show firewall log
- Verifying That Firewall Filters Are Operational
- Verifying That Policers Are Operational
- J Series
- clear firewall
- show firewall log
- M Series
- clear firewall
- show firewall log
- MX Series
- clear firewall
- show firewall log
- PTX Series
- clear firewall
- show firewall log
- T Series
- clear firewall
- show firewall log
show firewall
Syntax
Syntax (EX Series Switches)
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
logical-system option introduced in Junos OS Release 9.3.
terse option introduced in Junos OS Release 9.4.
Option policer counters introduced in Junos OS Release 12.2 for EX Series switches.
Description
Display statistics about configured firewall filters.
Options
none | — | (Optional) Display statistics about all configured firewall filters and counters. For EX Series switches, this command also displays statistics about all configured policers. |
counter counter-name | — | (Optional) Name of a filter counter. |
filter filter-name | — | (Optional) Name of a configured filter. |
logical-system (all | logical-system-name) | — | (Optional) Perform this operation on all logical systems or on a particular system. |
log | — | (Optional) Display log entries for firewall filters. |
log <(detail | interface interface-name)> | — | (EX Series switches only) (Optional) Display detailed log entries of firewall activity or log information about a specific interface. |
policer counters <(detail | counter-id counter-index <detail>)> | — | (EX8200 switches only) (Optional) Display policer counter statistics in brief or in detail. |
terse | — | (Optional) Display firewall filter names only. |
Required Privilege Level
view
Related Documentation
- EX Series
- clear firewall
- show firewall log
- Verifying That Firewall Filters Are Operational
- Verifying That Policers Are Operational
- J Series
- clear firewall
- show firewall log
- M Series
- clear firewall
- show firewall log
- MX Series
- clear firewall
- show firewall log
- PTX Series
- clear firewall
- show firewall log
- T Series
- clear firewall
- show firewall log
List of Sample Output
show firewall filtershow firewall filter (Dynamic Input Filter)
show firewall (Logical Systems)
show firewall (counter counter-name)
show firewall log
show firewall policer counters (EX8200 Switch)
show firewall policer counters (detail) (EX8200 Switch)
show firewall policer counters (counter-id counter-index) (EX8200 Switch)
show firewall policer counters (counter-id counter-index detail) (EX8200 Switch)
Output Fields
Table 1 lists the output fields for the show firewall command. Output fields are listed in the approximate order in which they appear.
Table 1: show firewall Output Fields
Field Name | Field Description |
|---|---|
Filter | Name of a filter that has been configured with the filter statement at the [edit firewall] hierarchy level. Except on EX Series switches:
|
Counters | Display filter counter information:
Note: On M and T series routers, firewall filters cannot count ip-options packets on a per option type and per interface basis. A limited work around is to use the show pfe statistics ip options command to see ip-options statistics on a per Packet Forwarding Engine (PFE) basis. See show pfe statistics ip for sample output. |
Policers | Display policer information:
|
Policer Counter Index | (EX8200 switch only) Global management counter ID. The counter ID value (counter-index) can be 0, 1, or 2. |
Green | (EX8200 switch only) Number of packets within the limits. The number of packets is smaller than the committed information rate (CIR). |
Yellow | (EX8200 switch only) Number of packets partially within the limits. The number of packets is greater than the CIR, but the burst size is within the excess burst size (EBS) limit. |
Discard | (EX8200 switch only) Number of discarded packets. |
Bytes | (EX8200 switch only) Number of green, yellow, red, or discarded packets in bytes. |
Packets | (EX8200 switch only) Number of green, yellow, red, or discarded packets. |
Filter name | (EX8200 switch only) Name of the filter with a term associated to a policer. |
Term name | (EX8200 switch only) Name of the term associated with a policer. |
Policer name | (EX8200 switch only) Name of the policer that is associated with a global management counter. |
Sample Output
show firewall filter
user@host> show firewall filter testFilter: test Counters: Name Bytes Packets Counter-1 0 0 Counter-2 0 0 Policers: Name Bytes Packets Policer-1 2770 70
show firewall filter (Dynamic Input Filter)
user@host> show firewall filter dfwd-ge-5/0/0.1-inFilter: dfwd-ge-5/0/0.1-in Counters: Name Bytes Packets c1-ge-5/0/0.1-in 0 0
show firewall (Logical Systems)
user@host>show firewallFilter: __lr1/test Counters: Name Bytes Packets icmp 420 5 Filter: __default_bpdu_filter__ Filter: __lr1/inet_filter1 Counters: Name Bytes Packets inet_tcp_count 0 0 inet_udp_count 0 0 Filter: __lr1/inet_filter2 Counters: Name Bytes Packets inet_icmp_count 0 0 inet_pim_count 0 0 Filter: __lr2/inet_filter1 Counters: Name Bytes Packets inet_tcp_count 0 0 inet_udp_count 0 0
show firewall (counter counter-name)
user@host> show firewall counter icmp-counterFilter: ingress-port-voip-class-filter Counters: Name Bytes Packets icmp-counter 0 0
show firewall log
user@host> show firewall logLog : Time Filter Action Interface Protocol Src Addr Dest Addr 08:00:53 pfe R ge-1/0/1.0 ICMP 192.168.3.5 192.168.3.4 08:00:52 pfe R ge-1/0/1.0 ICMP 192.168.3.5 192.168.3.4 08:00:51 pfe R ge-1/0/1.0 ICMP 192.168.3.5 192.168.3.4 08:00:50 pfe R ge-1/0/1.0 ICMP 192.168.3.5 192.168.3.4 08:00:49 pfe R ge-1/0/1.0 ICMP 192.168.3.5 192.168.3.4 08:00:48 pfe R ge-1/0/1.0 ICMP 192.168.3.5 192.168.3.4 08:00:47 pfe R ge-1/0/1.0 ICMP 192.168.3.5 192.168.3.4
show firewall policer counters (EX8200 Switch)
user@switch> show firewall policer countersPolicer Counter Index 0:
Bytes Packets
Green: 73 15914
Yellow: 9 1962
Discard: 119 25942
Policer Counter Index 1:
Bytes Packets
Green: 0 0
Yellow: 0 0
Discard: 0 0
Policer Counter Index 2:
Bytes Packets
Green: 0 0
Yellow: 0 0
Discard: 0 0show firewall policer counters (detail) (EX8200 Switch)
user@switch> show firewall policer counters
detailPolicer Counter Index 0:
Bytes Packets
Green: 73 15914
Yellow: 9 1962
Discard: 119 25942
Filter name Term name Policer name
myfilter polcr-term-1 myfilter-polcr-1
inet-filter-ae ae-snmp policer-1
inet-filter-ae ae-ssh policer-2
Policer Counter Index 1:
Bytes Packets
Green: 0 0
Yellow: 0 0
Discard: 0 0
Filter name Term name Policer name
Policer Counter Index 2:
Bytes Packets
Green: 0 0
Yellow: 0 0
Discard: 0 0
Filter name Term name Policer nameshow firewall policer counters (counter-id counter-index) (EX8200 Switch)
user@switch> show firewall policer counters
counter-id 0Policer Counter Index 0:
Bytes Packets
Green: 73 15914
Yellow: 9 1962
Discard: 119 25942show firewall policer counters (counter-id counter-index detail) (EX8200 Switch)
user@switch> show firewall policer counters
counter-id 0 detailPolicer Counter Index 0:
Bytes Packets
Green: 73 15914
Yellow: 9 1962
Discard: 119 25942
Filter name Term name Policer name
myfilter polcr-term-1 myfilter-polcr-1
inet-filter-ae ae-snmp policer-1
inet-filter-ae ae-ssh policer-2