Files
inquiry_robot/deploy/_remote_agent_diag.ps1
T

12 lines
556 B
PowerShell

Write-Output "=== now listen ==="
netstat -ano | findstr ":8910"
Write-Output "=== curl ==="
cmd /c "curl.exe -s http://127.0.0.1:8910/health"
Write-Output ""
Write-Output "=== err log tail ==="
Get-Content "C:\ytd-test\logs\agent-http.err.log" -Tail 40 -ErrorAction SilentlyContinue
Write-Output "=== out log tail ==="
Get-Content "C:\ytd-test\logs\agent-http.out.log" -Tail 20 -ErrorAction SilentlyContinue
Write-Output "=== python procs ==="
Get-CimInstance Win32_Process -Filter "Name='python.exe'" | Select-Object ProcessId, CommandLine | Format-List