The dpmhv-ShowSCVMMHardwareProfiles command displays a list of hardware profiles, defined by Microsoft System Center Virtual Machine Manager (SCVMM), that are available for a VM when creating a VM using an SCVMM template.
This command has the following format:
dpmhv-showSCVMMHardwareProfiles -scvmmHost scvmmHostname [-retval] [-silent] [-detail]
(Optional) Specifies the host name of the Microsoft System Center Virtual Machine Manager (SCVMM) library server. This parameter is valid when you use SCVMM integration to provision VMs.
Returns a value for further processing.
Specifies not to direct the output to the screen.
(Optional) Displays the details of the list of directories.
The dpmhv-ShowSCVMMHardwareProfiles command returns an array of objects which represents a hardware profile defined under specified library server.
The following properties are returned in regular mode:
The following properties are returned in detail mode:
Example: Show all SCVMM Hardware Profiles
This example displays the hardware profiles on the SCVMM library server SCVMMLibSrv.
dpmhv-showSCVMMHardwareProfiles -scvmmHost SCVMMLibSrv
Example: Show Hardware Profiles for more than one CPU
This example displays all hardware profiles defined for more than one CPU core.
profs = dpmhv-showSCVMMHardwareProfiles -scvmmHost SCVMM -retval -silent
for each(prof in profs)
{
if(prof.CPUCount > 1)
? prof.Name, "has more than 1 CPU cores"
}
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |