NetApp::Snapmirror -- OO class for snapmirror relationships
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;
This class encapsulates a single snapmirror relationship, and provides methods for querying information about it, as well as methods for managing it.
Returns the NetApp::Filer object for the filer on which this snapmirror relationship is defined.
Returns a NetApp::Snapmirror::Source object representing the source filer/volume for this snapmirror relationship.
Returns a NetApp::Snapmirror::Destination object representing the source filer/volume for this snapmirror relationship.
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":
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.
To install NetApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NetApp
CPAN shell
perl -MCPAN -e shell install NetApp
For more information on module installation, please visit the detailed CPAN module installation guide.