You can display global statistics after enabling global statistics collection.
Background
With the global statistics function, you can collect statistics on all connections, regardless of traffic direction. Counters start from zero when statistics collection is enabled or whenever the counters are reset.
display firewall statistics system { brief | discard | received | table | transmitted | increased } [ slot slot-id cpu cpu-id ] [ all ]
You can run this command to display global statistics only after global statistics collection is enabled.
If parameter all is selected, the statistical items whose value is 0 are displayed; if all is not selected, only the statistical items whose value is non-0 are displayed. Therefore, if no information is displayed, global statistics collection may be disabled, or parameter all is not selected and the value of each statistical item happens to be 0.
Table 1 describes the parameters for displaying global statistics.
Parameter |
Description |
|---|---|
brief |
Displays summary information, including the total number of sent and received IP packets and discarded protocol packets. |
discard |
Displays statistics on discarded packets by protocol and cause. |
received |
Displays statistics on received packets by protocol. |
table |
Displays statistics on session entries of various types. The number of session entries is regarded as the number of connections. |
transmitted |
Displays statistics on sent packets, including the total number of sent packets, the number of forwarded packets, the number of packets originating from the FW, and the number of fragments. |
As noted in the previous table, parameters brief and discard are frequently used in this command to display global statistics, including the total number of sent and received IP packets, the number of discarded packets by protocol and the cause for discarding packets. For the description of the command parameters, see the Example of the display firewall statistics system { brief | discard | received | table | transmitted | increased } [ slot slot-id cpu cpu-id ] [ all ] command.
Follow-up Procedure
To clear IPv4 global statistics and restart counting from zero, run the reset firewall statistics system command in the user view.
If you do not need to continue collecting statistics, run the undo firewall statistics system enable command to disable statistics collection to save system resources.
Background
With the global statistics function, you can collect statistics on all connections, regardless of traffic direction. Counters start from zero when statistics collection is enabled or whenever the counters are reset.
display firewall ipv6 statistics system [ brief | discarded | received | session | transmitted ] [ all ]
Follow-up Procedure
To clear IPv6 global statistics and restart counting from zero, run the reset firewall ipv6 statistics system command in the user view.
If you do not need to continue collecting statistics, run the undo firewall ipv6 statistics system enable command to disable IPv6 statistics collection to save system resources.