seo监测查看Lync前端服务器登录(负载平衡时检查是否成功)维护

  • 时间:
  • 浏览:12
  • 来源:seo优化_seo推广_网站seo-万源seo自学网

网站维护#Defined Connection String $connstring seo监测= “server=seo监测lync\rtclocal;database=rtcdyn;trusted_connection=true;” $connstring2 = “server=lync2\rtclocal;database=rtcdyn; trusted_connection=true;” #Define SQL Command $command = New-Object System.Data.SqlClient.SqlCommand $command.CommandText = “Select (cast (RE.ClientApp as varchar (100))) as ClientVersion, R.UserAtHost as UserName, Reg.Fqdn From rtcdyn.dbo.RegistrarEndpoint RE Inner Join rtc.dbo.Resource R on R.ResourceId = RE.OwnerId Inner Join rtcdyn.dbo.Registrar Reg on Reg.RegistrarId = RE.PrimaryRegistrarClusterId ` Order By ClientVersion, UserName ” #Make the connection to Server 1 $connection = New-Object System.Data.SqlClient.SqlConnection $connection.ConnectionString = $connstring $connection.Open() $command.Connection = $connection $sqladapter = New-Object System.Data.SqlClient.SqlDataAdapter $sqladapter.SelectCommand = $command $results = New-Object System.Data.Dataset $recordcount=$sqladapter.Fill($results) $connection.Close() $overallrecords = $overallrecords + $Results.Tables[0] #Make the connection to Server 2 $connection.ConnectionString = $connstring2 $connection.Open() $command.Connection = $connection $results = New-Object System.Data.Dataset $recordcount=$sqladapter.Fill($results) $connection.Close() $overallrecords = $overallrecords + $Results.Tables[0] #End Section 2 $overallrecords | Export-Csv “PoolDistribution.csv” Write-Host -ForegroundColor Green “Query complete”维护站技术服务

一seo监测部分内容来源于网络,一部分内容由万源seo原创未经允许不得转载:万源seo » 查看Lync前端服务器登录(负载平衡时检查是否成功)维护