GenerateWwpn method of the Msvm_VirtualSystemManagementService class

Generates a set of World Wide Port Names (WWPNs). The WWPNs are generated from within the pre-configured range defined by the MinimumWWPNAddress and MaximumWWPNAddress properties of the Msvm_VirtualSystemManagementServiceSettingData class. If the valid number of WWPNs that can be generated is less than the requested number, then the remaining entries in the GeneratedWwpn array will have the invalid entry of "0000000000000000" and the return value will indicate success (0).

Syntax

uint32 GenerateWwpn(
  [in]  uint32 NumberOfWwpns,
  [out] string GeneratedWwpn[]
);

Parameters

NumberOfWwpns [in]

The number of WWPNs to be generated.

GeneratedWwpn [out]

An array of strings, each of which will contain a generated WWPN. It will be formatted in string form as "01:23:45:67:89:ab:cd:ef".

Return value

This method returns one of the following values.

Completed with No Error (0)

Failed (32768)

Access Denied (32769)

Not Supported (32770)

Status is unknown (32771)

Timeout (32772)

Invalid parameter (32773)

System is in use (32774)

Invalid state for this operation (32775)

Incorrect data type (32776)

System is not available (32777)

Out of memory (32778)

Requirements

Requirement Value
Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

Msvm_VirtualSystemManagementService