# 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 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 API endpoint if ($uvicorn) { Write-Host "" Write-Host "Testing 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] API is responding" -ForegroundColor Green } } catch { Write-Host "[--] API is not responding: $($_.Exception.Message)" -ForegroundColor Red } }