Test ControlUp Agent port

Version: 2.5.7
Creator Name: Landon Winburn
Date Created: 2020-07-14
Date Modified: 2020-07-28
Scripting language: PS
Download Count: 14

Test connectivity from the ControlUp console machine to the ControlUp Agent port (40705 by default) of the destination machine
Tags: tcp, port, telnet

The Script

if ($args[2] -eq "False") {
$WarningPreference = 'SilentlyContinue'
Test-netconnection -computername $args[0] -port $args[1] | Select-Object PingSucceeded,TcpTestSucceeded
}

if ($args[2] -eq "True") {
Test-netconnection -computername $args[0] -port $args[1]
}