Tag: Netapp

Script to check and alert VSCAN services for NetApp

In my previous blog, I’ve shared a script to check CAVA services. That post inspired me to work on NetApp’s Vscan alerting script!!

Vscan command in NetApp 7Mode 8.1.x has very less options or switches to check whether AV server and its storage services are running or not. We only get console messages that service is available or not.

Since, most of of filers are enabled with mandatory scan (on). AV server and services are critical for CIFS shares to be available to end users. Otherwise CIFS shares would be inaccessible and causes a business outage!

VSCAN work on NetApp proprietary RPC protocol and uses TCP ports 139 and 445. These two ports help us to monitor VSCAN services availability to NetApp filers. I’ve made a simple batch and Perl script to check the status and alert to storage / security admin about the AV server and  services status.

Batch script contains a simple command as mentioned below. This script is placed in AV server and polled at 2 hour interval scheduled using task scheduler

netstat -an | find <IP Address of Netapp Filers>

About output would list the TCP connections of port 139 and 445 established between AV servers and NetApp filers. Output is saved to a file to parse it using Perl script and do a simple validation whether RPC connections are established or not.

Click below to download Perl script for reference.


Attached script would run from script host or one of the AV server which can access the netstat output. Perl script runs every two hours as a scheduled job.

Logic / Validation:

Each AV server need to have atleast 1 RPC port connection established with NetApp [Atleast in our setup*]. Based on this logic, we’ll come to know if AV services are available to NetApp or not. We have two controllers in our setup which means we need to have 2 RPC connections. If number of connections are less than 2 then an email alert sent to recipients which contains AV server name for easier troubleshooting.

Note: We need to have Perl & libraries, SMTP access to send email alerts and little knowledge on netstat to customize script according your setup requirements.

How to generate custom reports from NetApp DFM [Data Fabric Manager]?

1. Login to NetApp DFM

2. Click on “Reports” dropdown menu and select “Custom”

screen1 3. Give a name, Web Display name and a brief description

Screen24. Select fields required for the reporting. I’ve selected below shown fields which are generally required. Ensure to format the fields with required units and decimal placed required etc.. Finally click on the save button to save the report.

Screen35. After successfully completing the above tasks. We can find the new custom report listed in the below table. Follow Step 2 to reach here. Click on the Web-Display Name hyperlink to run the custom report.

Screen46. Sample output of the report shown below for the volumes configured in the NetApp systems.

Screen77. To export the report to CSV format click on the highlighted file symbol on the below screenshot. Also you can add this custom report to favorites by clicking on green “+” icon.


I hope this would help to create a custom report according to our requirements.

P.S: Painted black on screenshot to maintain confidentiality. Please excuse if they are not legible.

NetApp commands for beginners

Here is the link having list of basic commands to start with our beloved NetApp.


I hope it will be useful for beginners. Explore, enjoy but think before you hit enter before running a command!Thank you MM.

Wish you happy Thanksgiving in advance!

Run multiple commands at one go in Netapp

To run multiple commands in Netapp use semicolon between each commands.
Usage example:
“df -ag;df -vg; vol status -f;”

Using this cheat we can run multiple commands at one go and saves time…