Document netdatacli dumpconfig option (#14963)
* Document netdatacli dumpconfig Added in https://github.com/netdata/netdata/pull/14906 * Update README.md Add dumpconfig option to the readme * Update system/netdata.conf add :
Chris Akritidis committed
Apr 25, 2023 at 08:49 UTC
273a4299ad1428a1f8f5a1598a903e6e8bef14d2
2 files changed
+7
-10
cli/README.md
+2
-9
@@ -1,12 +1,3 @@
1
-<!--
2
-title: "Netdata Agent CLI"
3
-description: "The Netdata Agent includes a command-line experience for reloading health configuration, reopening log files, halting the daemon, and more."
4
-custom_edit_url: "https://github.com/netdata/netdata/edit/master/cli/README.md"
5
-sidebar_label: "Agent CLI"
6
-learn_status: "Published"
7
-learn_rel_path: "Operations"
8
--->
9
-
1
# Netdata Agent CLI
2
3
The `netdatacli` executable provides a simple way to control the Netdata agent's operation.
@@ -38,6 +29,8 @@ ping
29
Return with 'pong' if agent is alive.
30
aclk-state [json]
31
Returns current state of ACLK and Cloud connection. (optionally in json)
32
+dumpconfig
33
+ Returns the current netdata.conf on stdout.
34
```
35
36
See also the Netdata daemon [command line options](https://github.com/netdata/netdata/blob/master/daemon/README.md#command-line-options).
system/netdata.conf
+5
-1
@@ -1,6 +1,10 @@
1
# netdata configuration
2
#
3
-# You can download the latest version of this file, using:
3
+# You can get the latest version of this file, using:
4
+#
5
+# netdatacli dumpconfig > /etc/netdata/netdata.conf
6
+#
7
+# You can also download it using:
8
#
9
# wget -O /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
10
# or