PowerCLI Reference

vSphere Auto Deploy Reference

Get-VMHostAttributes

Synopsis

Gets the identifying attributes of a host.

Syntax

Get-VMHostAttributes [-VMHost] <VMHost> [<CommonParameters>]

Related Commands

Get-VMHost

Detailed Description

Gets the identifying attributes of a host. These are the attributes that the rules will match against.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostVMHostHost to get the attributes for. Use Get-VMHost to retrieve the host object associated with a host name.truetrue (ByValue)

Return Type

Notes

Examples

-------------- Example 1 --------------

C:\PS> Get-VMHostAttributes myhost

"ipv4" "192.168.1.1"

"vendor" "VMware"

Retrieves the identifying attributes for the host named myhost.

-------------- Example 2 --------------

C:\PS> Get-VMhost "myhost" | Get-VMHostAttributes

"ipv4" "192.168.1.1"

"vendor" "VMware"

Retrieves the identifying attributes for the host named myhost.


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.