...hopefully some useful VMware related stuff
NetApp change Snapmirror replication throttling script
Wrote this script to get round an issue at a customers site with the Snapmirror replication taking too much of the bandwidth across a LES link. Because I wanted to enable and disable as well as report on the status of replication throttling I put all variants into the one script.
There are 4 main switches to the script: ON, OFF, STATUS, HELP and STATUS EMAIL. The script should be preconfigured with incoming and outgoing throttle speeds in KB/s and an email recipient and SMTP server to allow for emailing the status report. The list of filers is taken from a CSV file containing the filer names under a heading of name.
If no switch is entered or HELP, the following descriptions and help menu is displayed:
If ON is used, this will turn throttling on (replication.throttle.enable on) for each filer in the list and also configure the throttling values, (replication.throttle.incoming.max_kbs) and (replication.throttle.outgoing.max_kbs):
Using the OFF switch, disables replication throttling (replication.throttle.enable off) and does not change tranfer rates:
Using the STATUS switch or STATUS EMAIL will result in the current status of the filer replication being displayed for each filer and emailed if requested:
DOWNLOAD SCRIPT HERE