Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The DiskBytesRead property contains the total number of bytes read by all IDE and SCSI controllers for this virtual machine.
This property is read-only.
Syntax
HRESULT get_DiskBytesRead(
[out] VARIANT *bytesRead
);
VB |
---|
|
Property value
The total number of bytes read by all IDE and SCSI controllers for this virtual machine. The number is returned as a Decimal value.
This property value is read-only.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
bytesRead is NULL. |
|
The virtual machine is not running. |
|
An unexpected error occurred. |
Remarks
Note that disk I/O statistics are reset to zero when a virtual machine is powered up, reset, or restored from saved state.
Examples
The following example prints the DiskBytesRead property information for each virtual machine.
Set objVS = CreateObject("VirtualServer.Application")
set colVMs = objVS.VirtualMachines
For Each objVM in colVMS
Set colAccountants = objVM.Accountant
Wscript.Echo "Virtual machine: " & objVM.Name
Wscript.Echo "Disk bytes read: " & colAccountants.DiskBytesRead
Wscript.Echo
Next
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|