Juniper Netconf icon

Juniper Netconf

Interact with Juniper devices via NETCONF

Check Uncommitted Changes

AI-generated

Summary

Check for uncommitted configuration changes on a Juniper device via NETCONF by connecting over SSH to the specified host and port, and retrieving the difference between the candidate and running configurations.

Inputs

  • Host (required) — The hostname or IP address of the Juniper device to connect to.
  • Port (required) — The NETCONF over SSH port to use for connection, default is 830.
  • Include Raw XML — Whether to include the raw returned XML data in the output for debugging purposes.
  • Compare Format — Format to display configuration differences; options are XML, JSON, or plain text.
  • Show Diff Details — Whether to show detailed configuration differences when uncommitted changes exist.

Output shape

a single JSON object with at least 'hasUncommittedChanges' (boolean), a summary message, and optionally detailed diffs or raw XML data depending on user selection.

If uncommitted changes exist, the output includes a summary and optionally detailed diffs as parsed JSON. If no changes exist, summary indicates no uncommitted changes. Raw XML can be included if requested. Errors from the RPC request cause operation failure unless continue on fail is enabled.

Examples

Example 1: Detect if there are pending configuration changes on a Juniper device and optionally see the detailed diff in JSON format.

Set Host to the device IP, leave port at default 830, set 'Compare Format' to JSON, enable 'Show Diff Details' and optionally 'Include Raw XML' for debugging.

Discussion