# diag netlink interface clear ? arg please input argsAlso as far as I know it <arg> is the interface name but the command seems to happy accepting gibberish text as well.
NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
gate # diag netlink interface list if=lo family=00 type=772 index=1 mtu=16436 link=0 master=0 ref=5 state=present flags=loopback if=eth0 family=00 type=1 index=2 mtu=1500 link=0 master=0 ref=2 state=start present flags=up broadcast run promsic multicast if=wan1 family=00 type=1 index=3 mtu=1500 link=0 master=0 ref=5 state=start present flags=up broadcast run multicast if=modem family=00 type=1 index=4 mtu=1500 link=0 master=0 ref=2 state=present flags=broadcast noarp if=internal family=00 type=1 index=10 mtu=1500 link=0 master=0 ref=130 state=start present flags=up broadcast run multicast if=ppp0 family=00 type=512 index=27 mtu=1492 link=3 master=0 ref=60 state=start present flags=up p2p run noarp multicastHere, " if=" denotes the interface' s name. Then,
gate # diag netlink interface list ppp0 if=ppp0 family=00 type=512 index=27 mtu=1492 link=3 master=0 ref=59 state=start present flags=up p2p run noarp multicast Qdisc=pfifo_fast stat: rxp=171590 txp=199234 rxb=75128128 txb=30937297 rxe=0 txe=0 rxd=0 txd=0 mc=0 collision=0 re: rxl=0 rxo=0 rxc=0 rxf=0 rxfi=0 rxm=0 te: txa=0 txc=0 txfi=0 txh=0 txw=0 misc rxc=0 txc=0 stop=0 input_type=0 state=6 arp_entry=1 refcnt=59 gate # diag netlink interface clear ppp0 gate # diag netlink interface list ppp0 if=ppp0 family=00 type=512 index=27 mtu=1492 link=3 master=0 ref=58 state=start present flags=up p2p run noarp multicast Qdisc=pfifo_fast stat: rxp=13 txp=17 rxb=1534 txb=3148 rxe=0 txe=0 rxd=0 txd=0 mc=0 collision=0 re: rxl=0 rxo=0 rxc=0 rxf=0 rxfi=0 rxm=0 te: txa=0 txc=0 txfi=0 txh=0 txw=0 misc rxc=0 txc=0 stop=0 input_type=0 state=6 arp_entry=1 refcnt=58That is, you qualify the " list" command to read out the counters (at least, some of them). Then I cleared the counters and repeated the read-out.
I need to clear the rx_fifo counters and with this command isn't possible.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1748 | |
1114 | |
765 | |
447 | |
241 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.