
• --test option
— Performs validation of the modified configuration data. This option is available only if the server
supports
:validate:1.1
capability (see RFC 6241 section 8.6).
— set: Does not perform validation test.
— test-only: Does not apply the modified data, only perform the validation test.
— test-then-set: Performs a validation test before attempting to apply modified configuration data. This is the default
value.
• --config file
— Specify path to a file containing edit configuration data. The content of the file is placed into the
config
element
of the edit-config operation. Therefore, it does not have to be a well-formed XML document with only a single
root element. If neither --config nor --url is specified, user is prompted to write edit configuration data manually.
For examples, see the EDIT-CONFIG section of this document.
• --url URI
— Specifies remote location of the file containing the configuration data hierarchy to be modified, encoded in XML
under the element
config
in the
urn:ietf:params:xml:ns:netconf:base:1.0
namespace. Note, that this
differs from file parameter, where the
config
element is not expected.
• --target
— Target datastore to modify. For description of possible values, refer to
url configuration datastore cannot be modified.
8. get: Performs NETCONF
get
operation. Receives both the status as well as configuration data from the current running
datastore. For more details see RFC 6241 section 7.7. The command format is as follows:
get
[--help] [--filter-subtree[=<file>] | --filter-xpath <XPath>] [--defaults report-all|report-
all-tagged|trim|explicit] [--out <file>]
• --defaults mode
— Use with the
-defaults
capability with specified retrieval mode. For more details see RFC 6243 section 3 or
WITH-DEFAULTS section of this manual.
• --filter [file]
— Specifies if the request will contain subtree filter (RFC 6241 section 6). The option is able to accept path to the
file containing the filter specification. If the path is not specified, user is prompted to write the filter specification
manually.
9. get-config Performs NETCONF
get-config
operation. Retrieves only configuration data from the specified
target_datastore. For details, refer to RFC 6241 section 7.1.
get-config [--help] --source running|startup|candidate [--filter-subtree[=<file>] | --filter-
xpath <XPath>]
[--defaults report-all|report-all-tagged|trim|explicit] [--out <file>]
10. --defaults mode
• Use: with the
-defaults
capability with specified retrieval mode. For more details see RFC 6243 section 3 or WITH-
DEFAULTS section of this manual.
11. --filter [file]
• Specifies if the request will contain subtree filter (RFC 6241 section 6). The option is able to accept path to the file
containing the filter specification. If the path is not specified, user is prompted to write the filter specification manually.
12. --target
NXP Semiconductors
NETCONF/YANG
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
79 / 199