This command is used to show or clear the statistics related to packets and bytes for the NIC ports in the NS-series Sensors. In Virtual IPS Sensors, it shows or clears the statistics related to packets and bytes for the monitoring ports. This command is primarily used for debugging purposes.
The port numbers used here are internal NIC port numbers. So, the user should have a fair understanding of the internal NIC port mapping to be able to work with this command.
Note
If you observe any errors or memory allocation failures (
RX-nombuf errs) in theniantic_stats showcommand output, you must tune the packet capture filters.The queue level statistics are not shown in the
niantic_stats showcommand output for NS9600, NS9500, and NS7500.
Syntax:
niantic_stats <show|clr><<0-n>|all>
Parameter | Description |
|---|---|
show | Shows the packets and bytes statistics for the NIC ports |
clr | Clears the packets and bytes statistics for the NIC ports |
n |
|
all | Either shows or clears the statistics for all the NIC ports |
Sample Output:
IntruDbg#> niantic_stats show 4
Writing in PID 49929
EAL: ######################## NIC statistics for port 4 ########################
EAL: TX-packets: 780622 TX-errors : 0 TX-bytes : 87428520
EAL: RX-packets: 26 RX-errors : 0 RX-bytes : 2652
EAL: RX-crcerrs: 0 RX-nombuf errs: 0 RX-missed: 0
EAL: RX-lenerrs: 0 RX-rucerrs : 0 RX-roc : 0
EAL: Q0 RX-pkts: 26 RX-bytes : 2652 RX-drop : 0
EAL: Q0 TX-pkts: 546448 TX-bytes : 59015240
EAL: Q1 RX-pkts: 0 RX-bytes : 0 RX-drop : 0
EAL: Q1 TX-pkts: 78059 TX-bytes : 8430372
EAL: Q2 RX-pkts: 0 RX-bytes : 0 RX-drop : 0
EAL: Q2 TX-pkts: 78058 TX-bytes : 8430264
EAL: Q3 RX-pkts: 0 RX-bytes : 0 RX-drop : 0
EAL: Q3 TX-pkts: 78057 TX-bytes : 8430156
EAL: Q4 RX-pkts: 0 RX-bytes : 0 RX-drop : 0
EAL: Q4 TX-pkts: 0 TX-bytes : 0
EAL: ############################################################################
Applicable to:
NS-series and Virtual IPS Sensors