FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
Clear commands.
Declaration: vlib_cli_clear_command (src/vlib/cli.c line 65)
Clear error counters.
Declaration: cli_clear_error_counters (src/vlib/error.c line 319)
Implementation: clear_error_counters.
clear logging.
Declaration: cli_clear_log (src/vlib/log.c line 358)
Implementation: clear_log.
Clear node counters.
Declaration: cli_clear_node_counters (src/vlib/error.c line 327)
Implementation: clear_error_counters.
Clear packet processing runtime statistics.
Declaration: clear_node_runtime_command (src/vlib/node_cli.c line 536)
Implementation: clear_node_runtime.
Clear trace buffer and free memory.
Declaration: clear_trace_cli (src/vlib/trace.c line 550)
Implementation: cli_clear_trace_buffer.
elog trace [api][cli][barrier][dispatch]
[circuit-node <name> e.g. ethernet-input][disable].
Control event logging of api, cli, and thread barrier events With no arguments, displays the current trace status. Name the event groups you wish to trace or stop tracing.
elog trace api cli barrier
elog trace api cli barrier disable
elog trace dispatch
elog trace circuit-node ethernet-input
elog trace
vpp# elog trace [api][cli][barrier][disable]
Declaration: elog_trace_command (src/vlib/cli.c line 1657)
Implementation: elog_trace_command_fn.
Clear the event log.
Declaration: elog_clear_cli (src/vlib/main.c line 704)
Implementation: vlib_cli_elog_clear.
event-logger resize <nnn>.
Declaration: elog_resize_cli (src/vlib/main.c line 838)
Implementation: elog_resize.
Restart the event-logger.
Declaration: elog_restart_cli (src/vlib/main.c line 808)
Implementation: elog_restart.
event-logger save <filename> (saves log in /tmp/<filename>).
Declaration: elog_save_cli (src/vlib/main.c line 768)
Implementation: elog_save_buffer.
Stop the event-logger.
Declaration: elog_stop_cli (src/vlib/main.c line 788)
Implementation: elog_stop.
memory-trace on|off [api-segment][stats-segment][main-heap]
Declaration: enable_disable_memory_trace_command (src/vlib/cli.c line 1065)
Implementation: enable_disable_memory_trace.
pcap dispatch trace [on|off] [max <nn>] [file <name>] [status] [buffer-trace <input-node-name> <nn>].
This command is used to start or stop pcap dispatch trace capture, or show the capture status.
This command has the following optional parameters:
vpp# pcap dispatch trace status
max is 100, for any interface to file /tmp/vpe.pcap
pcap dispatch capture is off...
Example of how to start a dispatch trace capture: vpp# pcap dispatch trace on max 35 file dispatchTrace.pcap
pcap dispatch capture on...
Example of how to start a dispatch trace capture with buffer tracing vpp# pcap dispatch trace on max 10000 file dispatchTrace.pcap buffer-trace dpdk-input 1000
pcap dispatch capture on...
Example of how to display the status of a tx packet capture in progress: vpp# pcap tx trace status
max is 35, dispatch trace to file /tmp/vppTest.pcap
pcap tx capture is on: 20 of 35 pkts...
Example of how to stop a tx packet capture: vpp# vppctl pcap dispatch trace off
captured 21 pkts...
saved to /tmp/dispatchTrace.pcap...
Declaration: pcap_dispatch_trace_command (src/vlib/main.c line 2420)
Implementation: dispatch_trace_command_fn.
restart process.
Declaration: restart_cmd (src/vlib/cli.c line 1164)
Implementation: restart_cmd_fn.
Set commands.
Declaration: vlib_cli_set_command (src/vlib/cli.c line 73)
set logging class <class> [rate-limit <int>] [level <level>] [syslog-level <level>].
Declaration: cli_set_log (src/vlib/log.c line 492)
Implementation: set_log_class.
set logging size <int>.
Declaration: cli_set_log_size (src/vlib/log.c line 562)
Implementation: set_log_size.
set logging unthrottle-time <int>.
Declaration: cli_set_log_params (src/vlib/log.c line 526)
Implementation: set_log_unth_time.
set node function <node-name> <variant-name>.
Declaration: set_node_fn_command (src/vlib/node_cli.c line 749)
Implementation: set_node_fn.
Show commands.
Declaration: vlib_cli_show_command (src/vlib/cli.c line 57)
Show packet buffer allocation.
Declaration: show_buffers_command (src/vlib/buffer.c line 645)
Implementation: show_buffers.
show cli [mp-safe][not-mp-safe][hit][clear-hit].
Displays debug cli command information
vpp# show cli [mp-safe][not-mp-safe][hit][clear-hit]
"show cli" displays the entire debug cli:
abf attach abf policy adjacency counters api trace app ns bfd key del ... and so on ...
"show cli mp-safe" displays mp-safe debug CLI commands:
abf policy binary-api create vhost-user exec ip container ip mroute ip probe-neighbor ip route ip scan-neighbor ip table ip6 table
"show cli not-mp-safe" displays debug CLI commands which cause worker thread barrier synchronization
"show cli hit" displays commands which have been executed. Qualify as desired with "mp-safe" or "not-mp-safe".
"show cli clear-hit" clears the per-command hit counters.
Declaration: show_cli_command (src/vlib/cli.c line 1873)
Implementation: show_cli_command_fn.
show clock.
Declaration: f_command (src/vlib/threads.c line 1949)
Implementation: show_clock_command_fn.
Show cpu information.
Displays various information about the CPU.
vpp# show cpu
Model name: Intel(R) Xeon(R) CPU E5-2667 v4 @ 3.20GHz
Microarchitecture: Broadwell (Broadwell-EP/EX)
Flags: sse3 ssse3 sse41 sse42 avx avx2 aes
Base Frequency: 3.20 GHz
Declaration: show_cpu_command (src/vlib/cli.c line 974)
Implementation: show_cpu.
Show error counts.
Declaration: vlib_cli_show_errors (src/vlib/error.c line 285)
Implementation: show_errors.
Show event logger info.
Declaration: elog_show_cli (src/vlib/main.c line 897)
Implementation: elog_show_buffer.
show frame-queue trace.
Declaration: cmd_show_frame_queue_trace (src/vlib/threads_cli.c line 366)
Implementation: show_frame_queue_trace.
show frame-queue histogram.
Declaration: cmd_show_frame_queue_histogram (src/vlib/threads_cli.c line 374)
Implementation: show_frame_queue_histogram.
show logging.
Declaration: cli_show_log (src/vlib/log.c line 279)
Implementation: show_log.
show logging configuration.
Declaration: cli_show_log_config (src/vlib/log.c line 327)
Implementation: show_log_config.
show memory [api-segment][stats-segment][verbose].
Declaration: show_memory_usage_command (src/vlib/cli.c line 941)
Implementation: show_memory_usage.
show node [index] <node-name | node-index>.
Declaration: show_node_command (src/vlib/node_cli.c line 679)
Implementation: show_node.
Show node counters.
Declaration: cli_show_node_counters (src/vlib/error.c line 293)
Implementation: show_errors.
show physmem [verbose | detail | map].
Declaration: show_physmem_command (src/vlib/physmem.c line 165)
Implementation: show_physmem.
show client[s] registered with the punt infra.
Declaration: punt_client_show_command (src/vlib/punt.c line 532)
Implementation: punt_client_show.
show the punt DB.
Declaration: punt_db_show_command (src/vlib/punt.c line 598)
Implementation: punt_db_show.
show all punt reasons.
Declaration: punt_reason_show_command (src/vlib/punt.c line 555)
Implementation: punt_reason_show.
show the punt stats.
Declaration: punt_stats_show_command (src/vlib/punt.c line 625)
Implementation: punt_stats_show.
Show packet processing runtime.
Declaration: show_node_runtime_command (src/vlib/node_cli.c line 483)
Implementation: show_node_runtime.
Show threads.
Declaration: show_threads_command (src/vlib/threads_cli.c line 88)
Implementation: show_threads_fn.
Show trace buffer [max COUNT].
Declaration: show_trace_cli (src/vlib/trace.c line 347)
Implementation: cli_show_trace_buffer.
Show node dispatch frame statistics.
Declaration: show_frame_stats_cli (src/vlib/main.c line 263)
Implementation: show_frame_stats.
Show packet processing node graph.
Declaration: show_node_graph_command (src/vlib/node_cli.c line 87)
Implementation: show_node_graph.
Dump packet processing node graph as a graphviz dotfile.
Declaration: show_node_graphviz_command (src/vlib/node_cli.c line 162)
Implementation: show_node_graphviz.
suspend debug CLI for 30ms.
Declaration: suspend_command (src/vlib/cli.c line 1675)
Implementation: suspend_command_fn.
Test commands.
Declaration: vlib_cli_test_command (src/vlib/cli.c line 81)
test frame-queue nelts (4,8,16,32).
Declaration: cmd_test_frame_queue_nelts (src/vlib/threads_cli.c line 449)
Implementation: test_frame_queue_nelts.
test frame-queue threshold N (0=no limit).
Declaration: cmd_test_frame_queue_threshold (src/vlib/threads_cli.c line 528)
Implementation: test_frame_queue_threshold.
<on/off/now> validate heap on future allocs/frees or right now.
Declaration: cmd_test_heap_validate (src/vlib/cli.c line 1131)
Implementation: test_heap_validate.
test log <level> <class> <subclass> <message>.
Declaration: cli_test_log (src/vlib/log.c line 641)
Implementation: test_log_class_subclass.
Sleep for 10 seconds.
Declaration: ping_command (src/vlib/cli.c line 1196)
Implementation: sleep_ten_seconds.
Packet tracer commands.
Declaration: trace_cli_command (src/vlib/trace.c line 172)
Trace given number of packets.
Declaration: add_trace_cli (src/vlib/trace.c line 436)
Implementation: cli_add_trace_buffer.
filter trace output - include NODE COUNT | exclude NODE COUNT | none.
Declaration: filter_trace_cli (src/vlib/trace.c line 533)
Implementation: cli_filter_trace.
trace frame-queue (on|off).
Declaration: cmd_trace_frame_queue (src/vlib/threads_cli.c line 184)
Implementation: trace_frame_queue.