show trace
Syntax
show trace
<application app-name>
<live>
<node node-name>
<pid pid-value>
<terse>
<time time-elapsed>
Description
Show the trace data from all nodes that is collected on the primary Routing Engine in /var/log/traces. All applications are traced at the info level for informational messages. You can refine the traces to show by specifying trace time elapsed, application, process ID, and node.
The options provide you with a way to target the traces you want to see. The ouput will prompt you to use the options, like so:
[WARNING] Number of contributing trace folders is 2880 . [WARNING] This might cause some logs not to be displayed. [WARNING] Please filter your search using the available knobs (including time)
Options
none | Display all traces. |
application app-name |
(Optional) Display traces for the specified application name. |
live |
(Optional) Enable a mode in which the command remains active and new traces are displayed as they come in. |
node node-name |
(Optional) Display traces for the specified node name. |
pid pid-value |
(Optional) Display traces for the specified process ID. |
terse |
(Optional) Display briefer output for traces. |
time time-elapsed |
(Optional) Display traces for the specified elapsed time.
|
Required Privilege Level
view
Output Fields
Table 1 lists
the output fields for the show trace
command. Output fields
are listed in the approximate order in which they appear.
Field Name |
Field Description |
---|---|
timestamp |
Timestamp field in the following format: YYYY-MM-DD HH:MM:SS.123456789. |
node |
Node where trace message originated. |
system-process |
System process where trace message originated. |
tracepoint |
Tracepoint value of the trace message. |
trace-level |
Trace level of the trace message. |
application |
Application where trace message originated. |
message-type |
Message type of the trace message. |
Function |
Function name where the trace message was generated. |
Message |
Message associated with the tracepoint. |
Sample Output
show trace
root@evovbracklaq_RE0> show trace [WARNING] Number of contributing trace folders is 2880 . [WARNING] This might cause some logs not to be displayed. [WARNING] Please filter your search using the available knobs (including time) 2019-09-26 08:46:29.658883645 re0:aft-sysinfo:14325 libevoinfra_INFO_APP Function = "evoapp_init_commons", node_type = "RE", node_slot = 0, node_name = "re0", app_name = "aft-sysinfo", app_id = 0 2019-09-26 08:46:29.659055906 re0:aft-sysinfo:14325 libevoinfra_INFO_STR Function = "evoapp_init_commons", Message = "Running : /usr/sbin/aft-sysinfo -p /var/pfe --app-name aft-sysinfo " 2019-09-26 08:46:29.659076131 re0:aft-sysinfo:14325 libevoinfra_INFO_2STR Function = "evoapp_init_commons", Message1 = "Object subscription mode", Message2 = "Object Select" 2019-09-26 08:46:29.659755689 re0:aft-sysinfo:14325 libevoinfra_INFO_2STR Function = "evoapp_load_dsl", Message1 = "App Lua config not set, using app file", Message2 = "/usr/conf/evoapp/aft-sysinfo.lua" 2019-09-26 08:46:30.291258500 re0:aft-sysinfo:14325 lltp_info message = "Setting up ZooClient for app aft-sysinfo" 2019-09-26 08:46:30.291305775 re0:aft-sysinfo:14325 lltp_info message = "Connecting to Zookeeper : attempt 1" 2019-09-26 08:46:30.291422845 re0:aft-sysinfo:14325 lltp_info message = "Zookeeper address 127.0.0.1:2181" 2019-09-26 08:46:30.291441778 re0:aft-sysinfo:14325 lltp_info message = "Connecting to Zookeeper: path 127.0.0.1:2181" 2019-09-26 08:46:30.308878435 re0:aft-sysinfo:14325 lltp_info message = "Wait for Zookeeper connection to get established" 2019-09-26 08:46:30.314930581 re0:aft-sysinfo:14325 lltp_info message = "zookeeperWatcher: event type ZOO_SESSION_EVENT state ZOO_CONNECTED_STATE path " 2019-09-26 08:46:30.314958284 re0:aft-sysinfo:14325 lltp_info message = "Saving client id 10000015c6f0068 to aft-sysinfo" 2019-09-26 08:46:30.315649988 re0:aft-sysinfo:14325 lltp_info message = "Async getConfig completed path /zookeeper/config rc 0" 2019-09-26 08:46:31.309018911 re0:aft-sysinfo:14325 libevoinfra_INFO_STR Function = "evoapp_zoo_init", Message = "Connected to Zookeeper" 2019-09-26 08:46:31.312922419 re0:aft-sysinfo:14325 lltp_info message = "Get Xapp static config for aft-sysinfo" 2019-09-26 08:46:31.314689699 re0:aft-sysinfo:14325 libevoinfra_INFO_EVOAPP Function = "evoapp_zoo_init", Message = "App managed by SysMan", app_name = "aft-sysinfo", node_name = "re0", app_version = 0, shared_app_version = 0, node_attr_match = "" 2019-09-26 08:46:31.321618770 re0:aft-sysinfo:14325 lltp_info message = "Create node local production set: Path /system/nodes/re0/apps/aft-sysinfo/infra/restart Version " 2019-09-26 08:46:31.321623149 re0:aft-sysinfo:14325 libevoinfra_INFO_EVOAPP Function = "evoapp_zoo_init", Message = "Generated app local version", app_name = "aft-sysinfo", node_name = "re0", app_version = 3698991357035064051, shared_app_version = 0, node_attr_match = "" 2019-09-26 08:46:31.324009193 re0:aft-sysinfo:14325 lltp_info message = "Create shared production set: Path /system/apps/aft-sysinfo/restart Version 12377670930056552194" . . .
show trace application live
user@host> show trace application cmdd live 2019-09-27 10:57:13.999923130 re0:cmdd:7955 lltp_info message = "DdxClientConn::DdxClientConn: name = cmdd, owner = 0x7f097a7d5c00, this = 0x7f097abd4600, stream = 0x7f097a797b80" 2019-09-27 10:57:13.999926928 re0:cmdd:7955 lltp_info message = "DdxClientConn::start: name = cmdd, owner = 0x7f097a7d5c00, this = 0x7f097abd4600, stream = 0x7f097a797b80"
Release Information
Command introduced in Junos OS Evolved Release 18.3R1.