Advanced Port Tests allow you to send a text string to a TCP port, and then check the response against an expected string (the return string does not have to be a perfect match, only a substring match).
Creating an Advanced Port Test
Field |
Description |
Send String |
The string to be sent to the remote TCP port. |
Expect String |
The string against which the remote port's response is checked. The Action Profile is activated when the response is a substring match for the Expect String. |
Port |
The TCP port on this device to which the DGE will send the Send String. |
Traverse connects to the target port specified, transmits the send string if one is specified and then performs a case-insensitive sub-string match for the expect string if one is specified. As an example, to monitor if the sshd TCP port is alive and responding:
If you just want to test connectivity to a TCP port, leave the expect string blank.
To note that it is also possible to send a multi-line string when setting up the above test by separating each line with \r\n (carriage return + line feed).
Determining if the TCP Port is Operating/Enabled
This can be accomplished by creating an advanced port test and not specifying any send/expect strings. For example, if you wish to monitor port 7000 on device my_device, navigate to Administration > Devices > Tests > Create New Advanced Tests and provide the following parameters:
Now Traverse will test to make sure that my_device
is accepting incoming connections on port 7000 at the specified interval.