NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Help Needed with SnapMirror Fields/Metrics Collection #3371

RYAD_MED
1,268 Views

Hello everyone,

I am trying to collect SnapMirror fields using the endpoint api/private/cli/snapmirror . According to the documentation, I should receive the following fields ( and others...) :

  • destination_path => destination_location
  • relationship_id => relationship_id
  • cg_item_mappings => cg_item_mappings
  • destination_volume => destination_volume
  • destination_volume_node => destination_node
  • destination_vserver => destination_vserver
  • healthy => healthy
  • last_transfer_type => last_transfer_type
  • policy_type => policy_type
  • relationship_group_type => group_type
  • relationship_type => relationship_type
  • schedule => schedule
  • source_path => source_location
  • source_volume => source_volume
  • source_vserver => source_vserver
  • status => relationship_status
  • unhealthy_reason => unhealthy_reason
  • break_failed_count => break_failed_count
  • break_successful_count => break_successful_count
  • lag_time(duration) => lag_time
  • last_transfer_duration(duration) => last_transfer_duration
  • last_transfer_end_timestamp(timestamp) => last_transfer_end_timestamp
  • last_transfer_size => last_transfer_size
  • newest_snapshot_timestamp(timestamp) => newest_snapshot_timestamp
  • resync_failed_count => resync_failed_count
  • resync_successful_count => resync_successful_count
  • total_transfer_bytes => total_transfer_bytes
  • total_transfer_time_secs => total_transfer_time_secs
  • update_failed_count => update_failed_count
  • update_successful_count => update_successful_count

However, the response I am receiving contains only the following fields:

"records": [
    {
        "source_path": "#:#####",
        "source_vserver": "#",
        "source_volume": "#",
        "destination_path": "#:#",
        "destination_vserver": "#",
        "destination_volume": "#"
    }
]
 

Does anyone have any insights on what might be going wrong? BTW I did not have any issues with aggregation and the nic_common endpoint/fields before.

Thanks in advance for your help!

PS : The polar in question is the REST API, and the version of my harvest in the cluster is 9.12.1.

Best,

1 REPLY 1

Ashun
1,150 Views

Check out this link, it might help

Retrieve information for SnapMirror relationships



I have a simulated environment (for my own research), but the version is 9.7.

Similar to 9.12, with minor differences in some fields, this is the output

 

 

/api/snapmirror/relationships

{
    "records": [
        {
            "uuid": "788ff3aa-9c3a-11ef-b2b6-000c299c82f1",
            "_links": {
                "self": {
                    "href": "/api/snapmirror/relationships/788ff3aa-9c3a-11ef-b2b6-000c299c82f1/"
                }
            }
        }
    ],
    "num_records": 1,
    "_links": {
        "self": {
            "href": "/api/snapmirror/relationships"
        }
    }
}


api/snapmirror/relationships/788ff3aa-9c3a-11ef-b2b6-000c299c82f1
{
    "uuid": "788ff3aa-9c3a-11ef-b2b6-000c299c82f1",
    "source": {
        "path": "svm_cifs:testvol",
        "svm": {
            "uuid": "b0ea4d41-9823-11ef-aad3-d039ea06e608",
            "name": "svm_cifs",
            "_links": {
                "self": {
                    "href": "/api/svm/peers/f2a8656c-9c33-11ef-b2b6-000c299c82f1"
                }
            }
        },
        "cluster": {
            "name": "FAS2720",
            "uuid": "5f0a5aa5-8d16-11ef-bb58-d039ea06e608",
            "_link": {
                "self": {
                    "href": "/api/cluster/peers/5f0a5aa5-8d16-11ef-bb58-d039ea06e608"
                }
            }
        }
    },
    "destination": {
        "path": "svmnas:vol_DP",
        "svm": {
            "uuid": "4534aef5-9c2f-11ef-b2b6-000c299c82f1",
            "name": "svmnas",
            "_links": {
                "self": {
                    "href": "/api/svm/svms/4534aef5-9c2f-11ef-b2b6-000c299c82f1"
                }
            }
        }
    },
    "policy": {
        "uuid": "cc20290b-9c2a-11ef-b2b6-000c299c82f1",
        "name": "MirrorAndVault",
        "type": "async",
        "_links": {
            "self": {
                "href": "/api/snapmirror/policies/cc20290b-9c2a-11ef-b2b6-000c299c82f1"
            }
        }
    },
    "restore": false,
    "state": "snapmirrored",
    "healthy": true,
    "exported_snapshot": "snapmirror.4534aef5-9c2f-11ef-b2b6-000c299c82f1_2147536221.2024-11-06_122739",
    "lag_time": "PT9H52M12S",
    "_links": {
        "self": {
            "href": "/api/snapmirror/relationships/788ff3aa-9c3a-11ef-b2b6-000c299c82f1/"
        }
    }
}

api/snapmirror/relationships/788ff3aa-9c3a-11ef-b2b6-000c299c82f1/transfers
{
    "records": [],
    "num_records": 0,
    "_links": {
        "self": {
            "href": "/api/snapmirror/relationships/788ff3aa-9c3a-11ef-b2b6-000c299c82f1/transfers"
        }
    }
}

 

Public