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 AppSvr106 Capturing hard drive space in Archestra script

Last updated: February 20th, 2025

Description

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

Details:

Description

When a computer has a platform deployed to it you can usually monitor the available disk space by simply looking at the DiskSpaceFree field for the platform in question. An alternative approach would be to use the System.IO .Net library to get a view into the available free disk space. The script below is an example of how this can be done:

  • Author: Joe Hefner
  • Published: 10/14/2014
  • Applies to: Application Server 3.1 and higher

Instructions

The sample script above can be copied from below if desired:

dim d as System.IO.DriveInfo;
dim alldrives[16] as System.IO.DriveInfo;

alldrives[] = System.IO.DriveInfo.GetDrives();

for each d in alldrives[]
LogMessage("Drive " + d.Name);
LogMessage(" File type: " + d.DriveType);
if d.IsReady == true then 
LOGMESSAGE(" is READY");
logmessage(" Volume label:" + d.VolumeLabel);
logmessage(" File System:" + d.DriveFormat);
logmessage(" Available Space:" + d.AvaIlableFreeSpace);
logmessage(" Total Available Space:" + d.TotalFreeSpace);
logmessage(" Total size of drive:" + d.TotalSize);
Endif;
NEXT;

Confirmation of Success

see message log in system management console

tn appsvr106 archestra script
Give feedback about this article

Recommended articles

TN - 1240 Creating a Watchlist Using an Import File

Read More

TN 1242 Aveva Historian Storage Locations and Best Practices

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