Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA Application Server
  • AVEVA Application Server Tech Notes

TN AppSvr 111 How to monitor if an IP Address returns a valid "Ping" response

Last updated: February 20th, 2025

Description

  • Author: Joe Hefner
  • Published: February 20th, 2025

Details:

Description

This tech note walks through using the System.Net.NetworkInformation .Net function to determine whether an IP Address returns a ping response.

  • Author: Joseph Hefner
  • Published: 01/06/2015
  • Applies to: Application Server 3.1 or later

Instructions

Create an attribute to hold the current status of the ping and one that holds the IP Address that you wish to monitor. In the example below the attributes are called "PingStatus" and "Address" effectively:

Next create a script to monitor the ping and update the attribute with the current status of the ping. In the example below, I chose a periodic script that updates every one minute in order to make sure not to overwhelm the system.

The sample script from the screenshot above can be downloaded from below:

dim p1 as System.Net.NetworkInformation.Ping;
dim PR as System.Net.NetworkInformation.PingReply;

p1 = new System.Net.NetworkInformation.Ping();
PR = p1.Send(Me.Address);

' check when the ping is not success
if (not PR.Status.ToString().Equals("Success")) then
logmessage ("The ping is not successfull");
Me.PingStatus = false;
EndIf;

' check after the ping is success
If (PR.Status.ToString().Equals("Success")) then
logmessage ("The ping is successfull");
Me.PingStatus = true;
EndIf;

;

 

ping ip address
Give feedback about this article

Recommended articles

How to receive group emails

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand