Brocade SAN switch automated troubleshooting script

What does this Brocade SAN switch automated troubleshooting script do?

  1. Ping the SAN switch IPs and check the connectivity
  2. Perform basic health check by running switchstatusshow command
  3. Check for CRC and EncOut errors by running porterrshow command
  4. If there are CRC and EncOut errors it clears the port statistics and wait for 20 minutes to monitor the incremental errors on the switch ports using portstatsclear and portshow commands
  5. Check and compare Lr_in & Ols_Out and Lr_out and Ols_in values to detect faulty cable and SFP issue
  6. Generate supportsave files which is required to do further analysis or troubleshooting by switch vendor and FTP the files
  7. Capture all the above output to file and generate email alert to further engage an engineer to continue troubleshooting or log a case with switch vendor

I hope this would help us in proactively monitoring SAN switches and iron out false positives without human intervention.

To download the script please click here and select ‘Brocade Troubleshooting’ from the right pane under Topics.

***********************************************************************

I believe this could be last blog post of the year 2016…

Belated Merry Christmas and Wish you Happy and Prosperous New Year 2017 in advance to all my followers, readers and visitors!!

***********************************************************************

How to hide your important files from people without making Hidden folders
1. Go to Desktop and create a new folder
2. Name the folder Internet Explorer
3. Change the folder icon to Internet Explorer
4. Keep it in a corner of the desktop

Now, no one will open internet explorer 😀

Source: http://www.coolcoder.in/2014/02/10-awesome-programming-jokes-of-all-time.html

 

Advertisements

IBM Storwize V7000 Snapshots Report

There was a requirement came to me to capture the snapshots details on an IBM Storwize V7000 storage. so, I wrote a simple PERL script to generate HTML report and send it to the stake holders and storage team via email. I’ve used the command ‘lsfcmap’ to list the snapshot details. Using PERL I’ve captured required output in desired order and format to suit our requirements.

Please find below report generated and sent over an email (split into two images for better readability)

SS1SS2

Script Caveats:

  1. Can run the script via scheduler or On-Demand
  2. Sorted based on descending order to list the oldest snapshots on top of the list
  3. Old reports are archived for future reference or troubleshooting purposes

Please let me know if you need the script to replicate for your V7K’s.

Fujitsu Eternus Storage Capacity Report Script

As mentioned in my previous post, here is the Fujitsu Eternus Storage Capacity Report script output.

We have used the below commands to get capacity information from Fujitsu arrays.

show disks

show raid-groups

show flexible-tier-pools

Using Perl, we have parsed the output to a HTML file which is being sent as a daily capacity utilization report. Please find the below report for reference.

Fujitsu

EMC VMAX Storage Automated Capacity Report

EMC VMAX3

Storage capacity reporting has become a tedious task these days unless we don’t have tools in place. These tools are not as cheap we can think of. There are additional layers added to it to hype and increase its value in market. But if customer ask a storage admin to run the report manually then its a nightmare for the admins.

We always want to go by the easy way which means GUI / EMC Unisphere but for reporting this doesn’t helps to customize and fulfill the customer requirements . EMC SYMCLI / Solutions Enabler can be used effectively here to address this issue. We can use SYMCLI to automate these manual reports. By means of automation, we can ensure quality, timely and error-free reports are generated which can be scheduled via CRON or Tasks Scheduler to send it directly to the stakeholders. SYMCLI built-in supports XML formatted output of the commands which would become easier to parse the information using XML supported programming language.

I’ve developed PERL scripts to generate Storage Pool capacity and Disk capacity report for multiple VMAX storage arrays which are managed from the SYMCLI / Solutions Enabler server. Following are the benefits of using this script.
1. Generates Pool capacity report for all storage arrays which has columns – SYM ID,MODEL,TOTAL USABLE POOL CAPACITY TB,TOTAL USED POOL CAPACITY TB,TOTAL FREE POOL CAPACITY TB, TOTAL POOL UTILIZATION %, TOTAL POOL SUBSCRIBED %
2. Generates Disk capacity report for all storage arrays which has columns – SYM ID,MODEL,TOTAL EFD,TOTAL FC_SAS,TOTAL SATA_NLSAS,FORMATTED EFD CAPACITY GB,FORMATTED FC_SAS CAPACITY GB,FORMATTED SATA_NLSAS CAPACITY GB, TOTAL FORMATTED CAPACITY GB, UNFORMATTED EFD CAPACITY GB,UNFORMATTED FC_SAS CAPACITY GB,UNFORMATTED SATA_NLSAS CAPACITY GB,TOTAL UNCONFIGURED CAPACITY GB,TOTAL UNFORMATTED CAPACITY GB

Output generated from the scripts will be in the form of CSV format. This is information can be plugged into desired format and generate reports with Pivots, charts etc…

Please find below  sample output for reference.

Pool Capacity Report:

2016-02-17 21_21_57-Book1 - Excel

Disk Capacity Report:

2016-02-17 21_22_41-Book1 - Excel

P.S: I’ve removed VMAX serial number for various factors 🙂

If interested, please reach out to me to get these PERL scripts.

Image Courtesy: http://www.storagereview.com and http://www.emc.com

VNX File – Script to check CAVA servers / services availability

CAVA  – Celerra Antivirus Agent is one of the critical services in VNX-File sharing services. This would help to scan all files before read / writes from and to the CIFS shares. CAVA integrate with AV software and enables file scanning. According to best practices we need to have minimum 2 CAVA servers for each VNX-File.

I’ve made a simple Perl script which would generate email alerts in case of CAVA services are down / not available to VNX-File.

Please click the below link to download Perl script

VNX-CAVA

Note / Steps:

  • Ensure script host can reach VNX and CAVA servers
  • Please change IP address, username, password, sender email address, receiver email address and SMTP IP / or fully qualified domain name.
  • Ensure Perl and necessary modules are available to run the script
  • Subscribe to my blog if you like this 😛