Question

Powershell CMdlets script

  • 18 June 2020
  • 5 replies
  • 4568 views

Hello Team,

Do we have script which we can run to get the cluster details from Prism Central.

Like Total CPU and usage CPU ,Total Memory and usage memory and same for storage, and also want to schedule that report in email.

Please help me with script to get the details


This topic has been closed for comments

5 replies

Userlevel 6
Badge +5

Hey @dhiru2889 can you take a look at this document https://portal.nutanix.com/page/documents/details/?targetId=API-Ref-AOS-v510%3Aps-ps-cmdlets-r.html which mentiones how to use POWERSHELL CMDLETS to get the cluster details and various other things. :relaxed:

 

Userlevel 6
Badge +5

Hey, @dhiru2889 I researched more about this and I am afraid there is no such way or script to do specifically what you ask. 

This document lists the entities which can be managed by Powershell CMDlets:
https://portal.nutanix.com/page/documents/details/?targetId=API-Ref-AOS-v55%3APowerShell-Cmdlets-Reference

The below lists the operations permitted for a cluster using Powershell CMDlets:
https://portal.nutanix.com/page/documents/details/?targetId=API-Ref-AOS-v55%3Aps-ps-Cluster-auto-r.html 

 

 

Userlevel 6
Badge +5

hey, @dhiru2889 did you go through the attached doc links in the above reply?

I hope I was able to clear your doubt. Let me know if you need anything else.:relaxed:

 

 

Hello Anish,

NO its was not helpful for me because its not giving the report what i am looking for and its one line command which is not showing that cluster report .

Second i was looking for the script which will automate and send the report daily basis in mail body.

Hello Anish Walia20 : Thanks for the reply ,i have checked the same link but using that its not showing the cluster report .its only showing the cluster status like what is version and all .