Skip to content

Commit

Permalink
Merge pull request wildfly#18159 from ehsavoie/WFCORE-6960
Browse files Browse the repository at this point in the history
[WFLY-19692]: Documentation for WFCORE-6960 read-config-as-xml-file
  • Loading branch information
bstansberry authored Sep 4, 2024
2 parents 640dba9 + 03c6781 commit 3105e55
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions docs/src/main/asciidoc/_admin-guide/CLI_Recipes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,31 @@ Assume you have a host that is called "primary"

[source,options="nowrap"]
----
[domain@localhost:9990 /] /host=primary:read-config-as-xml
[domain@localhost:9990 /] attachment display --operation=/host=primary:read-config-as-xml-file
----

If you want to get the configuration of the server "main-one" hosted on "primary":

[source,options="nowrap"]
----
[domain@localhost:9990 /] attachment display --operation=/host=primary/server=main-one:read-config-as-xml-file
----

Just for the domain or standalone

[source,options="nowrap"]
----
[domain@localhost:9990 /] :read-config-as-xml
[domain@localhost:9990 /] attachment display --operation=:read-config-as-xml-file
----

If you want to save the file you can use:
----
[standalone@localhost:9990 /] attachment save --operation=:read-config-as-xml-file --file=/home/wildfly/tmp/standalone-runtime.xml
----

Please note that the operation "read-config-as-xml" that used to return the XML as a String has been deprecated.


[[take-a-snapshot-of-what-the-current-domain-is]]
=== Take a snapshot of what the current domain is

Expand All @@ -215,6 +230,7 @@ Just for the domain or standalone
}
----


[[take-the-latest-snapshot-of-the-host.xml-for-a-particular-host]]
=== Take the latest snapshot of the host.xml for a particular host

Expand Down

0 comments on commit 3105e55

Please sign in to comment.