Posts

Showing posts from August, 2025

Health

 # === CONFIG === $puttyPath  = "C:\Program Files\PuTTY\putty.exe"  # Path to PuTTY $jumpUser   = "vk"                                # Your username on jumpserver $jumpServer = "ipagbld"                           # Jumpserver hostname # === INPUT: Group + optional SubGroup === $groupName = Read-Host "Enter group name (e.g. web, db, app)" $subGroupName = Read-Host "Enter sub group name (or press Enter for all in group)" # === Load matching hosts === $hosts = Import-Csv "hosts.csv" | Where-Object { $_.Group -eq $groupName } if ($subGroupName) {     $hosts = $hosts | Where-Object { $_.SubGroup -eq $subGroupName } } if (-not $hosts) {     Write-Host "No hosts found for selection." -ForegroundColor Red     exit } # === Preview mode === Write-Host "About to connect to:" -ForegroundColor Cya...