dbg_log_mask=0x01
in the configuration fileservice fastdpi reload
The result can be viewed in /var/log/dpi/fastdpi_stat.log
:
Total : proto=20 ('rap' 38) {1/385:0/0}{1/172:0/0} proto=34 ('dns' 53) {2976/295842:0/0}{2976/471359:0/0} proto=56 ('http' 80) {63349/8292468:0/0}{40178/23869035:0/0} proto=82 ('pop3' 110) {11/1051:0/0}{14/4438:0/0} proto=94 ('ntp' 123) {8/912:0/0}{8/912:0/0} proto=336 ('https' 443) {13609/2688675:0/0}{15298/15473511:0/0} proto=482 ('http-alt' 591) {16/1392:0/0}{8/720:0/0} proto=678 ('cap' 1026) {2/190:0/0}{0/0:0/0} proto=679 ('solid-mux' 1029) {6/516:0/0}{0/0:0/0} ... proto=1091 ('ies-lm' 1443) {12/1100:0/0}{8/740:0/0} proto=1101 ('genie-lm' 1453) {1/86:0/0}{1/86:0/0} proto=1145 ('vlsi-lm' 1500) {6/516:0/0}{0/0:0/0} proto=1174 ('rap-service' 1530) {3/258:0/0}{0/0:0/0} proto=1180 ('ampr-inter' 1536) {1/86:0/0}{1/86:0/0} proto=1181 ('sdsc-lm' 1537) {2/343:0/0}{2/172:0/0}
Explanation:
1. Internal index of statistics by protocol
2. Protocol name
3. Protocol port number
Direction subs -→ inet
4. Number of packets
5. Volume in bytes (IP total)
6. Dropped packets
7. Dropped bytes
Direction inet -→ subs
8. Number of packets
9. Volume in bytes (IP total)
10. Dropped packets
11. Dropped bytes
Command to display statistics:
fdpi_ctrl stat --proto
dbg_log_mask=0x4
in the configuration file /etc/dpi/fastdpi.conf
service fastdpi reload
In the file /var/log/dpi/fastdpi_stat.log
you will see output by classes like:
[STAT ][2017/12/07-13:12:32:334249] HTB : Statistics dscp=2, if 'dna2' : DSCP_actual stats Rcvd: [0 bytes][0.00 Mbit/sec] [0 pkts ][0.00 pkt/sec] Drop: [0 bytes][0.00 %] [0 pkts ][0.00 %] Send: [0 bytes][0.00 Mbit/sec] [0 pkts ][0.00 pkt/sec] Esnd: [0 err_pkts][0.00 %] [STAT ][2017/12/07-13:12:32:334266] HTB : Statistics dscp=3, if 'dna2' : DSCP_actual stats Rcvd: [0 bytes][0.00 Mbit/sec] [0 pkts ][0.00 pkt/sec] Drop: [0 bytes][0.00 %]