9.5 DiskStat Object

Provides disk activity statistics such as:

9.5.1 BytesRead property

Returns the number of bytes read from disk.

Syntax

object.BytesRead

Type

Long.

Attributes

Read-only.

Example

This example returns the number of bytes read from disk.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.diskstat 
     print (statobj.bytesread) &' bytes are read from  disk'

9.5.2 BytesWritten property

Returns the number of bytes written to disk.

Syntax

object.BytesWritten

Type

Long.

Attributes

Read-only.

Example

This example returns the number of bytes written to disk.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.diskstat 
     print (statobj.byteswritten) &' bytes are written to disk'

9.5.3 DirSearches property

Returns the number of directory searches performed by the server.

Syntax

object.DirSearches

Type

Long.

Attributes

Read-only.

Example

This example returns the number of directory searches performed by the server.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.diskstat 
     print (statobj.Dirsearches) &" times the server performed a directory search"

9.5.4 FileReads property

Returns the number of files read from disk.

Syntax

object.FileReads

Type

Long.

Attributes

Read-only.

Example

This FileReads example returns the number of files read from disk.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.diskstat 
     print (statobj.filereads) &" files are read from disk"

9.5.5 FileWrites property

Returns the number of files written to disk.

Syntax

object.FileWrites

Type

Long.

Attributes

Read-only.

Example

This example returns the number of files written to disk.

set srv = CreateObject ("ucx:Server") 
set statobj = srv.diskstat 
     print (statobj.filewrites) &" files are written to disk"