Files
inquiry_robot/deploy/_remote_probe_data_plane.ps1
T

23 lines
929 B
PowerShell

$ErrorActionPreference = "Continue"
Write-Output "=== reach 10.206.0.14 ports ==="
foreach ($p in 3306,5432,6379,9000) {
$r = Test-NetConnection -ComputerName 10.206.0.14 -Port $p -WarningAction SilentlyContinue
"$p tcp=$($r.TcpTestSucceeded)"
}
Write-Output "=== local minio 9000 ==="
$r2 = Test-NetConnection -ComputerName 127.0.0.1 -Port 9000 -WarningAction SilentlyContinue
"local9000=$($r2.TcpTestSucceeded)"
Get-Service | Where-Object { $_.Name -match 'minio|MinIO|mysql|postgres|redis' } | Format-Table Name, Status
Get-ScheduledTask | Where-Object { $_.TaskName -match 'MinIO|Redis|Postgres|MySQL' } | Select-Object TaskName, State
Write-Output "=== search env snippets (paths only) ==="
@(
'C:\yutongda',
'E:\wwwroot'
) | ForEach-Object {
if (Test-Path $_) {
Get-ChildItem $_ -Recurse -Filter ".env" -ErrorAction SilentlyContinue -Depth 4 |
Select-Object -First 20 FullName
}
}
Write-Output "DONE"