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.

Software Development Kit (SDK) and API Discussions

cDOT Create new snapmirror relation using snapmirror-create API

nitish
3,661 Views

Hi,

 

I am trying to create a perl script to create new snapmirror relations in clustered ONTAP 8.1.2

Below is the XML code i have built using "Zedi" tool.

I get an error while running this code:

results errno='13115' status='failed' reason='Element "source-cluster" within "snapmirror-create" has been excluded by another element.'/>

 

 

  <snapmirror-create>

    <destination-cluster>godzilla-mgmt</destination-cluster>

    <destination-location>godzilla-mgmt://godzilla/voltron_voltron_0046r</destination-location>

    <destination-volume>voltron_voltron_0046r</destination-volume>

    <destination-vserver>godzilla</destination-vserver>

   

    <relationship-type>data_protection</relationship-type>

   

   

    <source-cluster>voltron-mgmt</source-cluster>

    <source-location>voltron-mgmt://voltron/voltron_0046</source-location>

    <source-volume>voltron_0046</source-volume>

    <source-vserver>voltron</source-vserver>

    <tries>8</tries>

    <vserver>g</vserver>

  </snapmirror-create>

 

Please guide what am i doing wrong above.

1 ACCEPTED SOLUTION

zulanch
3,661 Views

The documentation for source-location states:

When specifying a source endpoint, you must use either the source location, or the source cluster, source Vserver, and source volume.

It's not worded very clearly, but you should either specify source-location (in the form of [cluster:]//vserver/volume), or specify source-cluster, source-vserver, and source-volume. Don't specify both groups.

The same is true for the destination-location element.

-Ben

View solution in original post

1 REPLY 1

zulanch
3,662 Views

The documentation for source-location states:

When specifying a source endpoint, you must use either the source location, or the source cluster, source Vserver, and source volume.

It's not worded very clearly, but you should either specify source-location (in the form of [cluster:]//vserver/volume), or specify source-cluster, source-vserver, and source-volume. Don't specify both groups.

The same is true for the destination-location element.

-Ben

Public