Tintri Automation Toolkit – Part 2 – VM Protection and Reporting

After Part 1 – The Basics in this series, I will show in Part 2 how you can set up Tintri’s VM Protection through Replication. And to conclude this post I will show some Reporting that you can do with the Tintri Automation Toolkit.

PS-PCL-Tintri

VM Protection with per-VM replication

One of the great features of Tintri VMstore is per-VM replication and the ease of setting up such replication for a VM between multiple VMstores.

The concept is quite simple:

  • Schedule snapshots of the VM
  • Specify where to replicate the VM

Instead of doing this through the VMstore Dashboard, we can now do this with the Tintri module Cmdlets. This means that can you now set up Replication as part of your automated VM deployment process.

The following script sets up replication for a specific VM.

 

The Snapshot schedule that is created will take a snapshot every hour and retains the last snapshots.

The replication path (a combination of the source IP address/port and the destination IP address/port) is selected based on the path name, which is user defined as the VMstore administrator creates the path.

When the above script is executed replication for the VM becomes active. We can easily check this through a PowerShell script.

The output

tintri-replica-running

We can of course also check that the replication setup is functioning via the Dashboard.

tintri-replica-dashboard

The snapshotting uses the schedule we provided.

tintri-snapshot-schedule

On the source VMstore we see that the Replica is created.

tintri-replica-source

On the destination VMstore we see the snapshots of the VM.

tintri-replica-destination

Reporting with the Tintri Automation Toolkit

Part of an administrator’s job, is to produce regular status reports on the environments he or she manages. The Tintri Automation Toolkit comes loaded with a number of Cmdlets that allow for retrieving status information through PowerShell scripts.

Just a few examples below.

This script provides the status of both controllers on a VMstore (which has redundant controllers) and their components.

The script produces the following output

tintri-report-controller

The following script provides location and type of the disks in a VMstore.

tintri-report-diskstate

With the Get-TintriDashboard cmdlet you have access to the same information that is displayed in the Dashboard web interface.

tintri-report-dashboard

And my favorite, access to all kinds of performance figures through the Get-TintriDatastoreStat and Get-TintriVMStat Cmdlets.

The following script, for example, extracts the latency counters for a specific VM, and then uses the Export-Xlsx function to produce a spreadsheet with a chart included.

The resulting spreadsheet looks something like this

tintri-report-performance

Note that a VMstore keeps 7 days of statistical data, each sample for a 10 minute interval. These are the same exact graphs available from the VMstore UI.

The chart was produced with the Export-Xlsx function.

Conclusion

In conclusion, this 1st version of the Tintri Automation Toolkit brings an extensive set of Cmdlets to manage your Tintri VMstore(s). If you want to automate your VMstore actions, I will definitely advise to give the Tintri Automation Toolkit a try.

Thanks to all the good people at Tintri who gave me the opportunity and access to their lab to explore the Tintri Automation module.

Enjoy !

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.