Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional checks #1

Open
homedimon opened this issue Dec 15, 2017 · 0 comments
Open

Add additional checks #1

homedimon opened this issue Dec 15, 2017 · 0 comments

Comments

@homedimon
Copy link

Please add for check status service on EDGE servers

foreach ($pool in $AllEdgePools)
{
    $AllLyncServers += Get-CsComputer -Pool $pool | Select-Object -ExpandProperty Fqdn
}

and

Write-Host "`nChecking $pool Central Management Database `n" -ForegroundColor Yellow
$test = Test-CsDatabase -CentralManagementDatabase
Write-Host "`nServer`t`t`t`t`t`t`t`tDatabse`t`tStatus Report" -ForegroundColor yellow
foreach ($DataBAse in $test) {
    Write-Host $DataBAse.SqlServerFqdn `t`t -NoNewLine
    Write-Host $DataBAse.DatabaseName `t`t`t -ForegroundColor Green -NoNewLine
    if ($DataBAse.Succeed -eq "True") {
        Write-Host $DataBAse.Succeed -ForegroundColor Green 
    }else {
        Write-Host $DataBAse.Succeed -ForegroundColor red
    }
}

foreach ($sql in $AllSQLServers) {

    Write-Host "`nChecking Configured Databases on server $sql `n" -ForegroundColor Yellow
    $test = Test-CsDatabase -SqlServerFqdn $sql -ConfiguredDatabases
    Write-Host "`nServer`t`t`t`t`t`t`t`tDatabse`t`tStatus Report" -ForegroundColor yellow
    foreach ($DataBAse in $test) {
        #Write-Host "`nServer`t`t`t`tDatabse`t`tStatus Report" -ForegroundColor yellow
        Write-Host $DataBAse.SqlServerFqdn `t`t -NoNewLine
        Write-Host $DataBAse.DatabaseName `t`t`t -ForegroundColor Green -NoNewLine
        if ($DataBAse.Succeed -eq "True") {
    		Write-Host $DataBAse.Succeed -ForegroundColor Green 
        }else {
            Write-Host $DataBAse.Succeed -ForegroundColor red
        }
    }
}

For small check databse status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant