From b225b0626fb7f7024670a8484a88f7577f097cba Mon Sep 17 00:00:00 2001 From: Viktor Liu <17948409+lixmal@users.noreply.github.com> Date: Mon, 12 Aug 2024 13:06:49 +0200 Subject: [PATCH] Update troubleshooting debug cli (#214) --- src/pages/how-to/troubleshooting-client.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/how-to/troubleshooting-client.mdx b/src/pages/how-to/troubleshooting-client.mdx index 73c197e4..7b35c263 100644 --- a/src/pages/how-to/troubleshooting-client.mdx +++ b/src/pages/how-to/troubleshooting-client.mdx @@ -83,25 +83,25 @@ You can analyze the logs to identify the root cause of the problem. If you need A debug archive containing the recent logs and the status at the time of execution can be generated with the following command. Adding the `-A` flag will anonymize the logs, removing sensitive information such as public IP addresses and domain names. +Adding the `-S` flag will add system information like network routes and interfaces ```shell -netbird debug bundle -A +netbird debug bundle -AS ``` -This will output the path of the generated file, which can be accesses with administrative privileges. +This will output the path of the generated file, which can be accessed with administrative privileges. ### Debug for a specific time -To capture logs for a specific time, you can use the `debug for` command. This will generate a debug bundle after the specified time has elapsed. +To capture logs for a specific time period, you can use the `debug for` command. This will generate a debug bundle after the specified time has elapsed. ```shell -netbird debug for 5m -A +netbird debug for 5m -AS ``` -To capture any issues arising during a full `up`/`down` cycle, this will bring netbird `down`, set the log level to `trace`, and bring it back `up`. -After 5 minutes netbird will be brought down again and the debug bundle will be generated. +To capture any issues arising during the `up` and `down` processes, this will set the log level to `TRACE` and bring netbird `up` and `down` up to a few times. +After 5 minutes the netbird status will be restored to the previous state and the debug bundle will be generated. -Afterwards the netbird `up`/`down` state and the log level will be restored to the previous state. ## Enabling debug logs on agent