Files
inquiry_robot/deploy/_remote_final_check.ps1
T

17 lines
803 B
PowerShell

Write-Output "=== layout ==="
Test-Path "E:\wwwroot\ops\active-release.json"
Test-Path "C:\ytd-test"
Get-ChildItem "C:\" -Directory | Where-Object { $_.Name -like "ytd-test*" } | Select-Object Name
Get-Content "E:\wwwroot\ops\active-release.json"
Write-Output "=== agent cwd ==="
$p = (Get-NetTCPConnection -LocalPort 8910 -State Listen -EA SilentlyContinue | Select-Object -First 1).OwningProcess
if ($p) {
Get-CimInstance Win32_Process -Filter "ProcessId=$p" | Select-Object ProcessId, ExecutablePath, CommandLine | Format-List
}
Write-Output "=== ports ==="
foreach ($x in 8910,8080,8810,8180,8913) {
$c = Get-NetTCPConnection -LocalPort $x -State Listen -EA SilentlyContinue | Select-Object -First 1
if ($c) { "$x LISTEN pid=$($c.OwningProcess)" } else { "$x down" }
}
Write-Output "FINAL_OK"