Scripts

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster health status in email

Vanguard

Cluster health status in email

Hi,

 

Is any script availble to get health status of cluster in mail. Like

1. cluster CPU % utilization

2. Memory % utilization

3. Storage Container & Storage pool utilization

4. recent alerts say past 7 days

5. Compression & dedup stats

6. Inventory

 

 

Thanks
Vivek
6 REPLIES
Nutanix Employee

Re: Cluster health status in email

@vivekds

 

Currently we do have script ready to gather the utilization for CPU & Memory.

 

Will try to modify the same as per you requirements .

 

https://github.com/sandeepmp/nutanix/blob/master/Cluster-Report-NTNX.Ps1

Vanguard

Re: Cluster health status in email

Sorry for delyed response. Attached script doesn't give any output nor logs are created. Following syntax was used to run it in power shell

 

Cluster-Report-NTNX -Server '10.10.10.10' -UserName 'Username' -Password 'Password' -Metric 'Hypervisor CPU Usage (%)' -Startdate '11/01/2017 10:00' -Enddate '12/0/2017 11:00' -Interval 60 -OutFile 'C:\Script\CPU_usage.csv'

Thanks
Vivek
Nutanix Employee

Re: Cluster health status in email

@vivekds

 

Did you updated AOS recently?

 

If AOS is updated, have you updated the powershell cmdlets?

 

Please share the AOS & installed CMDlets version.

Vanguard

Re: Cluster health status in email

Current AOS & cmdlet version is 5.1.2

Thanks
Vivek
Nutanix Employee

Re: Cluster health status in email

@vivekds

 

Can you share the output of below cmd.

 

Get-NutanixCmdletsInfo

Vanguard

Re: Cluster health status in email

PS C:\Program Files (x86)\Nutanix Inc\NutanixCmdlets\bin> Get-NutanixCmdletsInfo


Key Value
--- -----
version 5.1.2
BuildVersion 2.1.1-release5.1.2-dev-07262017
RestAPIVersion v1


PS C:\Program Files (x86)\Nutanix Inc\NutanixCmdlets\bin>

Thanks
Vivek