Generate a Support Bundle
The Support Bundle feature allows you to generate a compressed TAR file containing relevant
data (logs, configs, and metric data) for troubleshooting or analysis. You can send these
files to the Juniper support team to help diagnose issues with the collector. Use the
flowcoll command with the --support-bundle or
-s flag to generate the TAR file. When the command runs successfully, it
produces a compressed TAR file named similarly to
ef_support_bundle-20230831T164759.tar.gz.
If you are using config file encryption, ensure the same configuration is used to generate a support bundle.
Basic Example:
/usr/share/juniper/bin/flowcoll -s
Command Line Options
Table 1 describes the available CLI options used to generate a support bundle. If an option is not specified, its specified default value is used.
| Option | Shorthand | Default Value | Description |
|---|---|---|---|
|
|
-s |
false |
Enables support bundle mode. |
|
|
-sc |
/etc/juniper/flowcoll |
The path to the collector's configuration directory. |
|
|
-sl |
/var/log/juniper/flowcoll |
The path to the collector's log directory. |
|
|
-si |
1000 |
The interval, in ms, that metrics are collected. |
|
|
-st |
1 |
The number of times metrics is collected. |
|
|
-so |
<working directory> |
The path where the output file is written. |
-si) and times (st).Generate a Support Bundle by Endpoint
| Type of Endpoint | Description |
|---|---|
| HTTP Method | POST |
| URL | /support-bundle |
| Request Body | All fields in the request body are optional. The defaults are used if not
specified.
|
| Query Parameters |
-si) and times (st). |
| Authentication | Supports Basic Authentication only if the collector is specifically configured for it. |
Examples
Basic Example: Using the defaults, this example demonstrates a basic example without any query parameters or request body.
curl -X POST http://localhost:8080/support-bundle -H "Content-Type:
application/json" -d '{}' -O -J --insecure
Advanced Example: This example demonstrates an advanced curl request with a filled request body and query parameters.
curl -X POST -H "Content-Type: application/json" -d
'{"logDirPath":"/var/log/juniper/flowcoll/","configDirPath":"/etc/juniper/"}' -O -J
"http://localhost:8080/support-bundle?interval=2000×=2"
Responses
| Code | Reason | Description |
|---|---|---|
| 200 | OK |
A successful response returns the support bundle file for download. The file is named
|
| 400 | Bad Request |
Query parameters are invalid. |
| 500 | Internal Server Error |
An internal server error occurred while processing the request. |