mirror of
https://github.com/netbirdio/docs.git
synced 2026-10-14 09:39:03 +02:00
Update debug cli (#213)
This commit is contained in:
@@ -464,7 +464,7 @@ The file is only accessible as root/Administrator.
|
|||||||
#### Usage
|
#### Usage
|
||||||
To create a debug bundle:
|
To create a debug bundle:
|
||||||
```shell
|
```shell
|
||||||
netbird debug bundle -A
|
netbird debug bundle [-A] [-S]
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Examples
|
#### Examples
|
||||||
@@ -482,6 +482,7 @@ This will output:
|
|||||||
```shell
|
```shell
|
||||||
-h, --help help for bundle
|
-h, --help help for bundle
|
||||||
-A, --anonymize anonymize IP addresses and non-netbird.io domains in the debug output
|
-A, --anonymize anonymize IP addresses and non-netbird.io domains in the debug output
|
||||||
|
-S, --system-info Adds system information to the debug bundle
|
||||||
```
|
```
|
||||||
|
|
||||||
### debug for
|
### debug for
|
||||||
@@ -491,31 +492,34 @@ This is useful for capturing detailed logs over a period where issues are occurr
|
|||||||
#### Usage
|
#### Usage
|
||||||
To run debugging for a specific time period:
|
To run debugging for a specific time period:
|
||||||
```shell
|
```shell
|
||||||
netbird debug for <time> -A
|
netbird debug for <time> [-A] [-S]
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Examples
|
#### Examples
|
||||||
Run debugging for 5 minutes and generate a debug bundle:
|
Run debugging for 5 minutes and generate an anonymized debug bundle:
|
||||||
```shell
|
```shell
|
||||||
netbird debug for 5m
|
netbird debug for 5m
|
||||||
```
|
```
|
||||||
|
|
||||||
This will output:
|
This will output something similar to:
|
||||||
```
|
```
|
||||||
Netbird down
|
Netbird up
|
||||||
Log level set to trace.
|
Log level set to trace.
|
||||||
|
Netbird down
|
||||||
Netbird up
|
Netbird up
|
||||||
Remaining time: 00:00:01
|
Remaining time: 00:00:01
|
||||||
Duration completed
|
Duration completed
|
||||||
Netbird down
|
|
||||||
Creating debug bundle...
|
Creating debug bundle...
|
||||||
/tmp/netbird.debug.2180993458.zip
|
Netbird down
|
||||||
|
Log level restored to INFO
|
||||||
|
/tmp/netbird.debug.3162242909.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Flags
|
#### Flags
|
||||||
```shell
|
```shell
|
||||||
-h, --help help for for
|
-h, --help help for for
|
||||||
-A, --anonymize anonymize IP addresses and non-netbird.io domains in the debug output
|
-A, --anonymize anonymize IP addresses and non-netbird.io domains in the debug output
|
||||||
|
-S, --system-info Adds system information to the debug bundle
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user