# Check Status of Geutebruck API Services $ErrorActionPreference = "SilentlyContinue" Write-Host "========================================" -ForegroundColor Cyan Write-Host "Geutebruck API Services Status" -ForegroundColor Cyan Write-Host "========================================" -ForegroundColor Cyan Write-Host "" # Check GeViServer $geviServer = Get-Process -Name "GeViServer" if ($geviServer) { Write-Host "[OK] GeViServer: RUNNING (PID: $($geviServer.Id))" -ForegroundColor Green Write-Host " Ports: 7700-7703" -ForegroundColor Gray } else { Write-Host "[--] GeViServer: STOPPED" -ForegroundColor Red } Write-Host "" # Check C# GeViServer Bridge $geviServerBridge = Get-Process -Name "GeViServerBridge" if ($geviServerBridge) { Write-Host "[OK] C# Bridge: RUNNING (PID: $($geviServerBridge.Id))" -ForegroundColor Green Write-Host " Port: 7710 (GeViServer 32-bit adapter)" -ForegroundColor Gray } else { Write-Host "[--] C# Bridge: STOPPED" -ForegroundColor Red } Write-Host "" # Check SDK Bridge $sdkBridge = Get-Process -Name "GeViScopeBridge" if ($sdkBridge) { Write-Host "[OK] SDK Bridge: RUNNING (PID: $($sdkBridge.Id))" -ForegroundColor Green Write-Host " Port: 50051 (gRPC)" -ForegroundColor Gray } else { Write-Host "[--] SDK Bridge: STOPPED" -ForegroundColor Red } Write-Host "" # Check Python API $uvicorn = Get-Process -Name "uvicorn" if ($uvicorn) { Write-Host "[OK] Python API: RUNNING (PID: $($uvicorn.Id))" -ForegroundColor Green Write-Host " Swagger UI: http://localhost:8000/docs" -ForegroundColor Gray Write-Host " API: http://localhost:8000/api/v1" -ForegroundColor Gray } else { Write-Host "[--] Python API: STOPPED" -ForegroundColor Red } Write-Host "" Write-Host "========================================" -ForegroundColor Cyan # Test C# Bridge endpoint if ($geviServerBridge) { Write-Host "" Write-Host "Testing C# Bridge health..." -ForegroundColor Yellow try { $response = Invoke-WebRequest -Uri "http://localhost:7710/status" -Method GET -TimeoutSec 5 -UseBasicParsing if ($response.StatusCode -eq 200) { Write-Host "[OK] C# Bridge is responding" -ForegroundColor Green } } catch { Write-Host "[--] C# Bridge is not responding: $($_.Exception.Message)" -ForegroundColor Red } } # Test API endpoint if ($uvicorn) { Write-Host "" Write-Host "Testing Python API health..." -ForegroundColor Yellow try { $response = Invoke-WebRequest -Uri "http://localhost:8000/health" -Method GET -TimeoutSec 5 -UseBasicParsing if ($response.StatusCode -eq 200) { Write-Host "[OK] Python API is responding" -ForegroundColor Green } } catch { Write-Host "[--] Python API is not responding: $($_.Exception.Message)" -ForegroundColor Red } # Test GeViServer API endpoint Write-Host "" Write-Host "Testing GeViServer API..." -ForegroundColor Yellow try { $response = Invoke-WebRequest -Uri "http://localhost:8000/api/v1/geviserver/status" -Method GET -TimeoutSec 5 -UseBasicParsing if ($response.StatusCode -eq 200) { Write-Host "[OK] GeViServer API is responding" -ForegroundColor Green } } catch { Write-Host "[--] GeViServer API is not responding: $($_.Exception.Message)" -ForegroundColor Red } }