Categories: Uncategorized

NetApp VFM Email Alerts

I spent a few hours doddling around with how to do email alerting with the provided VFM scripts. I finally ended up rewriting things just a little, but below is the basics of how to configure VFM to use email alerting.

A quick note, this most likely applies for the Brocade StorageX product as NetApp rebrands StorageX to work with NetApp filers.

This is going to be fairly short and sweet, not a lot of tricks to doing this.

  1. Browse to C:Program FilesNetAppVFMExamplesScriptsReplication (or your install location)
  2. Copy PreEmail.bat and PostEmail.bat to C:scripts
  3. Open PreEmail.bat and modify the line:
    %MailUtil% %MailFile% -to %4 -subject “StorageX replication commencing for link ‘%1′” -q
    to
    blat %MailFile% -t {your to email address} -s “Replication commensing for ‘%2′” -f {from email} -server {smtp server} -port 25
  4. Open PostEmail.bat and modify the line:
    %MailTool% %MailFile% -to %9 -subject “StorageX replication ended for link ‘%SXLink%'” -q
    to
    blat %MailFile% -t {your to email address} -s “Replication ended for ‘%SXLink%'” -f {from email} -server {smtp server} -port 25
  5. Then go to the VFM console
  6. Edit the properties of your replication job
  7. click Replication Scripting
  8. Add the two files
  9. and you’re done
TomLasswell

Share
Published by
TomLasswell
Tags: netapp

Recent Posts

Autotask: PowerShell: Enable Client Portal for all users

This is a quick one, it's been forever since I've posted here. After moving back…

2 years ago

PowerShell :: Get Exchange Mailboxes Over XXGB

Simple command turned crazy. I ended up coming up with this due to the fact…

4 years ago

PowerShell: ConnectWise Documents API, Uploading a document or attachment to a ticket

Phew, this one took a minute to figure out. ConnectWise has a form based documents…

6 years ago

PowerShell: ConnectWise REST API Query Contacts by Email Address

I've found myself at a new job, recreating many of the processes that I spent…

6 years ago

First post in a long time — changing hosting providers

Wow, it's been a while since I've done a real post on this site. I've…

7 years ago

Powershell: AutoTask – Get Picklist Values

When using AutoTask's API it's required to lookup a various amount of picklist values that…

10 years ago