Updated the manuals

This commit is contained in:
Markus Fleschutz
2024-08-15 09:51:46 +02:00
parent 654d1a18d0
commit e1ffab5509
633 changed files with 2120 additions and 973 deletions

View File

@ -58,9 +58,7 @@ param([int]$timeout = 600) # ms ping timeout
try {
Write-Progress "Sending pings to the local hosts..."
$names = @('accesspoint','AD','AP','amnesiac','archlinux','auriga','berlin','boston','brother','canon','castor','cisco','echodot','epson','epson2550','epson2815','fedora','fireball','firewall','fritz.box','fritz!repeater','gassensor','gateway','hippo','heizung','hodor','homemanager','io','iphone','jarvis','jenkins','LA','laptop','linux','jupiter','mars','mercury','miami','mobile','none','none-1','none-2','NY','octo','office','officepc','paris','PI','pixel-6a','PC','pluto','printer','proxy','R2D2','raspberry','rocket','rome','router','sentinel','server','shelly','shelly1','smartphone','smartwatch','soundbar','sunnyboy','surface','switch','tablet','tau','tigercat','tolino','TV','ubuntu','vega','venus','xrx','zeus') # sorted alphabetically
$names = @('accesspoint','AD','AP','amnesiac','archlinux','auriga','berlin','boston','brother','canon','castor','cisco','echodot','epson','epson2550','epson2815','fedora','fireball','firewall','fritz.box','fritz.repeater','gassensor','gateway','hippo','heizung','hodor','homemanager','io','iphone','jarvis','jenkins','LA','laptop','linux','jupiter','mars','mercury','miami','mobile','none','none-1','none-2','NY','octo','office','officepc','paris','PI','pixel-6a','PC','pluto','printer','proxy','R2D2','raspberry','rocket','rome','router','sentinel','server','shelly','shelly1','smartphone','smartwatch','soundbar','sunnyboy','surface','switch','tablet','tau','tigercat','tolino','TV','ubuntu','vega','venus','xrx','zeus') # sorted alphabetically
$queue = [System.Collections.Queue]::new()
foreach($name in $names) {
$ping = [System.Net.Networkinformation.Ping]::new()
@ -68,17 +66,15 @@ try {
}
[string]$up = ""
Write-Host "✅ Up: " -noNewline
while ($queue.Count -gt 0) { $obj = $queue.Dequeue()
try { if ($obj.Async.Wait($timeout)) {
if ($obj.Async.Result.Status -ne "TimedOut") { $up += "$($obj.Host) " }
if ($obj.Async.Result.Status -ne "TimedOut") { Write-Host "$($obj.Host) " -noNewline }
continue
}
} catch { continue }
$queue.Enqueue($obj)
}
Write-Progress -completed "Done."
Write-Host "✅ Up: $up"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@ -86,4 +82,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 using the comment-based help of ping-local-hosts.ps1 as of 05/19/2024 10:25:24)*
*(generated by convert-ps2md.ps1 using the comment-based help of ping-local-hosts.ps1 as of 08/15/2024 09:50:52)*