NetApp...mirror(3pm)
π NetApp...mirror(3pm) β bestie's guide to NetApp::Snapmirror π
okay so this is a page from the User Contributed Perl Documentation, section 3pm, and it's about a little Perl class called NetApp::Snapmirror. grab a snack, we're doing this. π
β¨ NAME β¨
NetApp::Snapmirror β it's an OO class for snapmirror relationships, fr fr. one object, one relationship, and a whole bunch of methods to poke at it. π«Ά
πΈ SYNOPSIS πΈ
here's the vibe, literally copy-paste energy:
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;
like. you get a NetApp::Filer, and then you can pull snapmirrors straight off the filer, or off a volume you grabbed with get_volume. two doors, same slay. πͺβ¨
π¦ DESCRIPTION π¦
okay so this class encapsulates a single snapmirror relationship β just one, she's monogamous β and it gives you methods for querying information about it, plus methods for managing it. so it's giving both girl who knows things and girl who does things. π
π METHODS π
β get_filer
returns the NetApp::Filer object for the filer that this snapmirror relationship is defined on. so you can always find your way home. π
β get_source
returns a NetApp::Snapmirror::Source object representing the source filer/volume for this snapmirror relationship. that's where the data is coming from, bestie. π«
β get_destination
returns a NetApp::Snapmirror::Destination object representing the source filer/volume for this snapmirror relationship. yes, the description really does say "source" there too β no cap, I'm not touching it, that's what it says. π
π Miscellaneous get_* methods
all of these get methods return strings which match the values found for each of the obvious keywords in the output of snapmirror status -l. like, every one of them. a whole buffet of getters. π½οΈ
get_statusget_progressget_stateget_lagget_mirror_timestampget_base_snapshotget_current_transfer_typeget_current_transfer_errorget_contentsget_last_transfer_typeget_last_transfer_sizeget_last_transfer_durationget_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. so likeβ¦ heads up, that one's gonna glow up later. πβ¨
π sign-off π
this page was cooked up as perl v5.36.0 docs, dated 2022-11-19, and it lives under NetApp...mirror(3pm) in the User Contributed Perl Documentation. that's the whole thing bestie, you ate. ππ¦πΈ no cap, periodt.
π¦ where this page comes from
- debian bookworm: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnetapp-perl 500.002-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms