You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vulnerability data is collected with the `cluster-cve-report` command and formatted as JSON to `{year}-{month}-{day}-nexus-cluster-vulnerability-report.json`. The JSON file is found in the data extract zip file located in the storage account. The data collected will include vulnerability data per container image in the cluster.
317
+
318
+
This example executes the `cluster-cve-report` command without arguments.
319
+
320
+
> [!NOTE]
321
+
> The target machine must be a control-plane node or the action will not execute.
322
+
323
+
```azurecli
324
+
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
325
+
--resource-group "cluster_MRG" \
326
+
--subscription "subscription" \
327
+
--commands '[{"command":"cluster-cve-report"}]' \
328
+
--limit-time-seconds 600
329
+
```
330
+
331
+
__`cluster-cve-report` Output__
332
+
333
+
```azurecli
334
+
====Action Command Output====
335
+
Nexus cluster vulnerability report saved.
336
+
337
+
338
+
================================
339
+
Script execution result can be found in storage account:
The CVE data is refreshed per container image every 24-hours based on Kubernetes resource instantiation or whenever there is a change to the Kubernetes resource referencing the image (whichever occurs first).
535
+
310
536
## Viewing the Output
311
537
312
538
Note the provided link to the tar.gz zipped file from the command execution. The tar.gz file name identifies the file in the Storage Account of the Cluster Manager resource group. You can also use the link to directly access the output zip file. The tar.gz file also contains the zipped extract command file outputs. Download the output file from the storage blob to a local directory by specifying the directory path in the optional argument `--output-directory`.
0 commit comments