NetApp...mirror(3pm)

πŸ“¦
version 500.002 Β· 2 versions
  • 500.002 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 500.002 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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_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. 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