Getting the Cluster info through power shell from the cluster nodes.


<#You can pass multiple computer names or server names to the computer parameter name. But dont provide values in between ""#>
Invoke-Command `
-ComputerName SERVER1,SERVER2,SERVER3 `
-ScriptBlock{
Get-ClusterGroup|Format-Table -AutoSize
Get-ClusterResource|
Where-Object {($_.ResourceType -like "*SQL SERVER*") -or ($_.ResourceType -like "*Generic*")}|Format-Table -AutoSize
}|Format-Table -AutoSize

Comments

Popular posts from this blog

Always On FailOver Events

The transaction log for database is full due to 'OLDEST_PAGE'

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"