---
title: "Compare a file across two nodes"
description: "See exactly what differs in the same file on two nodes."
product: "Guardian"
edition: "Classic"
type: "workflow"
url: "https://docs.cloudhouse.com/guardian/classic/inventory/monitored/configuration-differencing/file-diff-two-nodes/"
---
# Compare a file across two nodes

See exactly what differs in the same file on two nodes. For more information on the dependencies for this feature, see [Dependencies](https://docs.cloudhouse.com/guardian/classic/inventory/monitored/configuration-differencing/file-differencing/index.md#dependencies). File differencing is especially usually for tracking changes over time and ensuring data consistency. For more information, see [File Differencing](https://docs.cloudhouse.com/guardian/classic/inventory/monitored/configuration-differencing/file-differencing/index.md).

Applies to: `Guardian Classic`

This topic describes how you can compare two nodes that have the same file to track data consistency across nodes and take action in case of problematic discrepancies or issues.

To compare two nodes that have the same file, complete the following:

1. In the Guardian web application, navigate to the **Monitored** tab. By default, all currently monitored nodes are displayed within the 'All Nodes' node group.

    ![Monitored tab for file diff](https://docs.cloudhouse.com/guardian/classic/assets/images/guardian/inventory/monitored/monitored-tab-for-file-diff.png)

    !!! note

        If you want to display the list of monitored nodes contained within a different node group, select a node group from the **Node Groups** drop-down menu.
        ![](https://docs.cloudhouse.com/guardian/classic/assets/images/guardian/inventory/monitored/node-groups-for-file-diff.png)

2. Select the checkboxes of the two nodes you want to compare from the list of monitored nodes.

    ![Diff 2 nodes](https://docs.cloudhouse.com/guardian/classic/assets/images/guardian/inventory/monitored/diff-2-nodes.png)

3. Click **Diff 2 Nodes**. The difference report for the selected nodes is displayed. Here, you can access and compare the complete set of configuration data present on each node. For more information on this page, see [Node Differencing](https://docs.cloudhouse.com/guardian/classic/inventory/monitored/configuration-differencing/node-differencing/index.md).

    ![Click diff 2 nodes](https://docs.cloudhouse.com/guardian/classic/assets/images/guardian/inventory/monitored/click-diff-2-nodes.png)

4. Select the **Files** category in the difference report to display the files in common between the two nodes. Each configuration item is represented by a square. When a configuration item is present on both nodes, but with different attributes, the configuration item is shown in yellow.

    ![Diff report two nodes one file](https://docs.cloudhouse.com/guardian/classic/assets/images/guardian/inventory/monitored/diff-report-two-nodes-one-file.png)

5. Click **View File Diff** next to the file you want to see the detected differences for.

    ![View file diff two nodes](https://docs.cloudhouse.com/guardian/classic/assets/images/guardian/inventory/monitored/view-file-diff-two-nodes.png)

The **File Difference** page is displayed with a side-by-side comparison of the differences detected during the scan. Here, you can see exactly where the file differences are present within the two nodes. You can then analyse differences and take action, if required.

![File difference overview](https://docs.cloudhouse.com/guardian/classic/assets/images/guardian/inventory/monitored/file-difference-overview.png)
