---
name: "NetApp::Snapmirror"
section: "3pm"
platform: "linux"
package: "libnetapp-perl"
version: "500.002-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/NetApp::Snapmirror"
---

# NetApp::Snapmirror(3pm)

## NAME

NetApp::Snapmirror -- OO class for snapmirror relationships

## SYNOPSIS

```
    use NetApp::Filer;
    use NetApp::Snapmirror;
    my $filer   = NetApp::Filer->new( .... );
    my @snapmirrors     = $filer->get_snapmirrors;
    my $volume  = $filer->get_volume( .... );
    my @snapmirrors     = $volume->get_snapmirrors;
```

## DESCRIPTION

This class encapsulates a single snapmirror relationship, and provides methods for querying information about it, as well as methods for managing it.

## METHODS

### get\_filer

Returns the NetApp::Filer object for the filer on which this snapmirror relationship is defined.

### get\_source

Returns a NetApp::Snapmirror::Source object representing the source filer/volume for this snapmirror relationship.

### get\_destination

Returns a NetApp::Snapmirror::Destination object representing the source filer/volume for this snapmirror relationship.

### Miscellaneous get\_\* methods

All of the following get methods return strings which match the values found for each of the obvious keywords in the output of "snapmirror status -l":

- get\_status

  - get\_progress

  - get\_state

  - get\_lag

  - get\_mirror\_timestamp

  - get\_base\_snapshot

  - get\_current\_transfer\_type

  - get\_current\_transfer\_error

  - get\_contents

  - get\_last\_transfer\_type

  - get\_last\_transfer\_size

  - get\_last\_transfer\_duration

  - get\_last\_transfer\_from

  NOTE: In a future release, when snapshots are supported as a proper object, the return value of get\_snapshot will almost certainly return such an object.
