blob: c791992f779d97be9d9cc662283aca1d23003417 [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _cmdreference:
2
John DeNisco06dcd452018-07-26 12:45:10 -04003
Scott Keeler70f28fc2018-10-23 15:16:46 -04004Useful Debug CLI
5==================
6
7This is a reference guide for the vpp debug commands that are referenced within these documents. This is **NOT** a complete list. For a complete list refer to the Debug CLI section of the
John DeNisco06dcd452018-07-26 12:45:10 -04008`Source Code Documents <https://docs.fd.io/vpp/18.07/clicmd.html>`_.
9
Scott Keeler6c892302018-10-26 09:12:15 -040010The debug CLI can be executed from a su (superuser) shell using the vppctl command.
John DeNisco06dcd452018-07-26 12:45:10 -040011
12.. code-block:: console
13
14 # sudo bash
15 # vppctl show interface
jdenisco390036e2018-10-31 14:24:31 -040016
Scott Keeler70f28fc2018-10-23 15:16:46 -040017 Name Idx State Counter Count
John DeNisco06dcd452018-07-26 12:45:10 -040018 TenGigabitEthernet86/0/0 1 up rx packets 6569213
19 rx bytes 9928352943
20 tx packets 50384
21 tx bytes 3329279
Scott Keeler70f28fc2018-10-23 15:16:46 -040022 TenGigabitEthernet86/0/1 2 down
John DeNisco06dcd452018-07-26 12:45:10 -040023 VirtualEthernet0/0/0 3 up rx packets 50384
24 rx bytes 3329279
25 tx packets 6569213
26 tx bytes 9928352943
27 drops 1498
Scott Keeler70f28fc2018-10-23 15:16:46 -040028 local0 0 down
John DeNisco06dcd452018-07-26 12:45:10 -040029
Paul Vinciguerra7fa3dd22019-10-27 17:28:10 -040030Commands can also be executed from the vppctl shell.
John DeNisco06dcd452018-07-26 12:45:10 -040031
32.. code-block:: console
33
34 # vppctl
Scott Keeler6c892302018-10-26 09:12:15 -040035
Scott Keeler70f28fc2018-10-23 15:16:46 -040036 vpp# show interface
37 Name Idx State Counter Count
John DeNisco06dcd452018-07-26 12:45:10 -040038 TenGigabitEthernet86/0/0 1 up rx packets 6569213
39 rx bytes 9928352943
40 tx packets 50384
41 tx bytes 3329279
Scott Keeler70f28fc2018-10-23 15:16:46 -040042 TenGigabitEthernet86/0/1 2 down
John DeNisco06dcd452018-07-26 12:45:10 -040043 VirtualEthernet0/0/0 3 up rx packets 50384
44 rx bytes 3329279
45 tx packets 6569213
46 tx bytes 9928352943
47 drops 1498
Scott Keeler70f28fc2018-10-23 15:16:46 -040048 local0 0 down
John DeNisco06dcd452018-07-26 12:45:10 -040049
50.. toctree::
Scott Keeler70f28fc2018-10-23 15:16:46 -040051 :maxdepth: 3
John DeNisco06dcd452018-07-26 12:45:10 -040052
53 interface/index.rst
Scott Keeler70f28fc2018-10-23 15:16:46 -040054 ip/index.rst
55 show/index.rst
56 trace/index.rst
jdenisco390036e2018-10-31 14:24:31 -040057 vhost/index.rst