Press "Enter" to skip to content

Real-time Rubrik node stats

Joshua Stenhouse 0

It’s been a busy month in the Stenhouse household welcoming our new addition Coco Stenhouse to the world. This doesn’t mean that I haven’t been writing any PowerShell! Just that I haven’t had much time to write up what I’ve been doing.

I was recently working with a large healthcare provider with over 60,000 employees helping them to modernize their backup platform with Rubrik. Part of my job is helping people get the data they need to operationalize Rubrik and fit it into their existing practices. From this came the request to see real-time CPU and network stats from a cmdline, as that is what the team did with the previous solution when the network team came calling. Without this they couldn’t progress with Rubrik. My response? Hold my beer (it was 11am so it was a coffee, but I said it anyway).

There is no Rubrik cmdline per-se, that’s for legacy backup, but we do have a full REST API, PowerShell module and Python SDK. The major benefit of being a true REST API first solution means you can get any data you need. After an hour of tinkering with the REST API here’s output from the PowerShell script I came back with:

Problem solved! The script discovers all the nodes in your Rubrik cluster, automatically refreshes on-screen, and the stats are shown for both the cluster and nodes. The request was for current load, but I also added the average stats over the last hour. You can download it from here:

PowerShell 5.1: RubrikNodeIOStatsv1.zip

PowerShell 6+: RubrikNodeIOStatsv1PS6.zip

The customer was happy with the output and the rest of the Rubrik testing was successful. On that note, if you are reading this and currently testing/using Rubrik let me know if there is anything else you need via the Drift chatbot and I’ll do my best to help. Happy scripting,

Leave a Reply

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

Discover more from Virtually Sober

Subscribe now to keep reading and get access to the full archive.

Continue reading