Click or drag to resize

Inventory.Write Method

Retrieve inventory from the given root

Namespace:  VMInfoFace.Interface
Assembly:  VMInfoFace.Interface (in VMInfoFace.Interface.dll) Version: 21.5.28.1 (21.5.28.1171)
Syntax
private void Write(
	bool pSummary
)

Parameters

pSummary
Type: System.Boolean
Read summary (performance)
Remarks

Which objects is read?

Primary reads virtual machines see Machines and data centres see Datacenters and folders see Folders

Note: data centres and folders is objects to has a relationship to virtual machine

Virtual Machine

Folder Reads "parent.Value". Writes to FolderID
Graphics Card If has property config.hardware.device[x].deviceInfo.summary contains text "NVIDIA" then the virtual machine has a dedicated graphics card. Writes to GraphicsCard value true or false.
Host Name Reads "guest.hostName". Writes to HostName.
IP and IPs

IP: Reads "guest.ipAddress". Writes to IP.

IPs: Reads all "guest.net[0].ipConfig.ipAddress". Writes to IPs.

Network Name Reads "guest.net[0].network value (only name, without number example: 123 NetX). Writes to NetworkName.
Network Bandwidth Reads from object NetworkConfiguration with method GetBandwidth(String) bandwidth value. Method parameter value is NetworkName. Writes to NetworkBandwidth.
Screen Info Reads "guest.screen" properties "width" and "height". Writes to Screen and his properties.
Disks Reads all "layout.disk[]" property "diskFile". Writes to Disks.
Storage Reads all "layoutEx.file[]" of type "diskDescriptor" (disk descriptor (vmdk) file) and of type "diskExtent" (disk extent (-flat/-delta/-s/-rdm/-rdmp.vmdk) file). Writes to Disks.
OS

Reads "guest" property "guestFullName". Writes to OS

OS (configure), CPU, RAM, HD, Network Adapter

Reads "summary.config" properties "guestFullName", "numCpu", "memorySizeMB", "numEthernetCards". Writes to OSConfig, CPU, RAM, HD, NetworkAdapter.

Reads "summary.storage" property "committed". Writes to HD.
Datacenter Datacenter reads by virtual machine folder Example:
Datacenter name: DC Xenia
Object Type: Datacenter
Reference Value: datacenter-84
vmFolder.type: Folder
vmFolder.Value: group-v85

Folder name: vm
Object Type: Folder
Reference Value: group-v85

Machine XYSRV1
Path: Guest/vm/
Note: check folder is a data center (example: folder "vm" is a data center)

Datacenter

VM Folder Reads "vmFolder.value". Writes to VMFolderID.

Folder

Parent Folder Reads "parent". Writes to ParentFolderID.
See Also