# SUN 09-10-2013
# monitoring RRO
# 1. you must create IP-list RROv№.txt and save in folder C:\RRO_LAN\
# 2. modify market number in this script and run in PowerShell console
cls
$names = Get-Content "C:\RRO_LAN\RROv8.txt" # RROv№ - market number
foreach ($name in $names) {
if ( Test-Connection -ComputerName $name -Count 1 -ErrorAction SilentlyContinue ) {
Write-Host "$name is up" -ForegroundColor green
}
else {
Write-Host "$name is down" -ForegroundColor Red
}
}
Удачи!!!