Jump to content

Multiping


Go to solution Solved by Oreg0410,

Recommended Posts

hallo liebe Mitstreiter,

ich suche ein Tool in welches ich z.B. 100 IP Adressen einlesen kann um zu überprüfen ob diese Adressen am Leben sind oder nicht.

Früher gab es ja Multiping, aber das ist wohl nichtmehr verfügbar.

 

Hat jemand eine Idee welches Programm das leisten kann?

 

Gruß

Oreg

Link to post

Nur PowerShell ist Wahres:

 

workflow Check-PingStatus
{
    Param(
        [System.Collections.ArrayList]
        $IPs
    )
    
    parallel { 
        foreach -parallel ($IP in $IPs) {
            try{
                Test-Connection -ComputerName $IP -Count 1 -ErrorAction Stop
            } catch{
                # .. of the day
            }
        }
    }
    return $results
}

[string]$IPNet = "172.31.1.0"
[int]$Start = 1
[int]$Stop = 10

$IPNet = -join ($IPNet.Split(".")[0], ".", $IPNet.Split(".")[1], ".", $IPNet.Split(".")[2])
$IPs = [System.Collections.ArrayList]@()
$Start..$Stop |
    ForEach-Object {
        $IPs.Add([string]$("{0}.{1}" -f $IPNet, $_)) |
            Out-Null
    }

$PingStatus = Check-PingStatus -IPs $IPs

$PingStatus |
    Sort-Object Destination

 

  • Like 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...