VLIB application library
clear
Clear commands
Declaration: vlib_cli_clear_command src/vlib/cli.c line 35
clear errors
Clear error counters
Declaration: cli_clear_error_counters src/vlib/error.c line 410
clear handoff counters
Clear the counters of the handoff queues
Declaration: clear_handoff_counters_command src/vlib/handoff_cli.c line 169
clear logging
clear logging
Declaration: cli_clear_log src/vlib/log.c line 674
clear node counters
Clear node counters
Declaration: cli_clear_node_counters src/vlib/error.c line 416
clear runtime
Clear packet processing runtime statistics
Declaration: clear_node_runtime_command src/vlib/node_cli.c line 827
clear trace
Clear trace buffer and free memory
Declaration: clear_trace_cli src/vlib/trace.c line 533
event-logger clear
Clear the event log
Declaration: elog_clear_cli src/vlib/main.c line 604
event-logger resize
Resize the event log
Declaration: elog_resize_cli src/vlib/main.c line 705
event-logger restart
Restart the event-logger
Declaration: elog_restart_cli src/vlib/main.c line 684
event-logger save
Save the event log in /tmp/<filename>
Declaration: elog_save_cli src/vlib/main.c line 649
event-logger stop
Stop the event-logger
Declaration: elog_stop_cli src/vlib/main.c line 667
event-logger trace
Control event logging of api, cli, and thread barrier events
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.
event-logger trace api cli barrier
event-logger trace api cli barrier disable
event-logger trace dispatch
event-logger trace circuit-node ethernet-input
event-logger trace [api][cli][dispatch][timers][barrier][disable]
Declaration: event_logger_trace_command src/vlib/cli.c line 1721
memory-trace
Trace memory allocations of a heap
Declaration: enable_disable_memory_trace_command src/vlib/cli.c line 1096
restart
restart process
Declaration: restart_cmd src/vlib/cli.c line 1227
save memory-trace
Save the memory traces of the traced heap as JSON to /tmp/<filename>
Save memory traces of the currently traced heap in JSON format to file. Only filename can be specified, path is fixed (/tmp/<filename>).
save memory-trace mem_trace.json
Declaration: save_memory_trace_command src/vlib/cli.c line 1197
set
Set commands
Declaration: vlib_cli_set_command src/vlib/cli.c line 41
set clock adjust
Run the clock faster, until it is ahead by that many seconds
Declaration: vlib_time_virtual_command src/vlib/time.c line 75
set handoff queue
Resize a handoff queue
Declaration: set_handoff_queue_command src/vlib/handoff_cli.c line 194
set logging class
Set the rate limit and the levels of a logging class
Declaration: cli_set_log src/vlib/log.c line 755
set logging size
Set the number of entries of the log
Declaration: cli_set_log_size src/vlib/log.c line 792
set logging timestamp
Set the format of the timestamps of the log
Declaration: cli_set_log_timestamp src/vlib/log.c line 583
set logging unthrottle-time
Set the time after which a rate limited class logs again
Declaration: cli_set_log_params src/vlib/log.c line 774
set node function
Set the function variant of a node
Declaration: set_node_fn_command src/vlib/node_cli.c line 1017
set trace filter function
Set the function which selects the packets to trace
Declaration: set_trace_filter_function_cli src/vlib/trace.c line 696
set trace timestamp-format
Set the format of the timestamps of the traces
Declaration: set_trace_timestamp_format_cli_cmd src/vlib/trace.c line 714
show
Show commands
Declaration: vlib_cli_show_command src/vlib/cli.c line 29
show buffers
Show packet buffer allocation
Declaration: show_buffers_command src/vlib/buffer.c line 666
show cli
Show the CLI commands
Displays debug cli command information
show cli [mp-safe][not-mp-safe][legacy][not-legacy][structured][summary][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 legacy" displays the commands which are not converted to
typed arguments, "show cli not-legacy" the ones which are.
"show cli structured" displays the commands which can emit structured
output (json, where).
"show cli summary" displays the total number of commands and how many of
them are legacy and mp-safe.
"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 1981
show cli schema
Dump all CLI commands and their arguments as JSON
Declaration: show_cli_schema src/vlib/cli_decl.c line 300
show clock
Show the clocks of the threads
Declaration: f_command src/vlib/threads.c line 1788
show cpu
Show cpu information
Displays various information about the CPU.
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 1030
show errors
Show error counts
Declaration: vlib_cli_show_errors src/vlib/error.c line 374
show event-logger
Show event logger info
Declaration: elog_show_cli src/vlib/main.c line 756
show files
Show files in use
Declaration: cli_show_files src/vlib/file.c line 321
show handoff
Show the handoff queues
Declaration: show_handoff_command src/vlib/handoff_cli.c line 131
show logging
Show the log
Declaration: cli_show_log src/vlib/log.c line 595
show logging configuration
show logging configuration
Declaration: cli_show_log_config src/vlib/log.c line 642
show memory
Show memory usage of the heaps
Declaration: show_memory_usage_command src/vlib/cli.c line 995
show node
Show a node
Declaration: show_node_command src/vlib/node_cli.c line 969
show node counters
Show node counters
Declaration: cli_show_node_counters src/vlib/error.c line 384
show physmem
Show the physical memory
Declaration: show_physmem_command src/vlib/physmem.c line 134
show pool-cache
Show the pool caches
Declaration: show_pool_cache_command src/vlib/pool_cache.c line 427
show punt client
Show the clients registered with the punt infra
Declaration: punt_client_show_command src/vlib/punt.c line 601
show punt db
show the punt DB
Declaration: punt_db_show_command src/vlib/punt.c line 659
show punt reasons
show all punt reasons
Declaration: punt_reason_show_command src/vlib/punt.c line 622
show punt stats
show the punt stats
Declaration: punt_stats_show_command src/vlib/punt.c line 682
show runtime
Show the runtime statistics of the nodes
Declaration: show_node_runtime_command src/vlib/node_cli.c line 767
show threads
Show threads
Declaration: show_threads_command src/vlib/threads_cli.c line 77
show trace
Show trace buffer
Declaration: show_trace_cli src/vlib/trace.c line 341
show trace filter function
show trace filter function
Declaration: show_trace_filter_function_cli src/vlib/trace.c line 620
show trace timestamp-format
show trace timestamp-format
Declaration: show_trace_timestamp_format_cli_cmd src/vlib/trace.c line 745
show vlib frame-allocation
Show node dispatch frame statistics
Declaration: show_frame_stats_cli src/vlib/main.c line 215
show vlib graph
Show packet processing node graph
Declaration: show_node_graph_command src/vlib/node_cli.c line 55
show vlib graphviz
Dump packet processing node graph as a graphviz dotfile
Dump dot files data to draw a graph of all the nodes. If the argument 'filter' is provided, only the active nodes (since the last "clear run" command) are selected and they are scaled and colored according to their utilization. You can choose to filter nodes that are called, nodes that receive vectors or both (default). The 'file' option allows to save data in a temp file.
show vlib graphviz
show vlib graphviz filter file tmpfile
show vlib graphviz filter calls file tmpfile
show vlib graphviz [filter][calls][vectors][file <filename>]
Declaration: show_node_graphviz_command src/vlib/node_cli.c line 282
suspend
suspend debug CLI for 30ms
Declaration: suspend_command src/vlib/cli.c line 1742
test
Test commands
Declaration: vlib_cli_test_command src/vlib/cli.c line 47
test cli complete
Print completion candidates for a (quoted) command line
Declaration: test_cli_complete src/vlib/cli_decl.c line 325
test log
Log a message
Declaration: cli_test_log src/vlib/log.c line 819
test sleep
Sleep for 10 seconds
Declaration: ping_command src/vlib/cli.c line 1256
trace
Packet tracer commands
Declaration: trace_cli_command src/vlib/trace.c line 172
trace add
Trace packets entering the graph at an input node
Declaration: add_trace_cli src/vlib/trace.c line 424
trace filter
Filter the traces which are kept
Declaration: filter_trace_cli src/vlib/trace.c line 512