Get-XenHostCrashdumpProperty
Gets a property of a HostCrashdump object.
Syntax
Get-XenHostCrashdumpProperty [-HostCrashdump] <Host_crashdump>
-XenProperty {Uuid | Host | Timestamp | Size | OtherConfig} [-BestEffort]
[-SessionOpaqueRef <string>] [<CommonParameters>]
Get-XenHostCrashdumpProperty [-Ref] <XenRef[Host_crashdump]>
-XenProperty {Uuid | Host | Timestamp | Size | OtherConfig} [-BestEffort]
[-SessionOpaqueRef <string>] [<CommonParameters>]
Description
Gets a specified property of a HostCrashdump object. Use the -XenProperty parameter to select which property to retrieve.
Uuid: Get the uuid field of the given host\_crashdump.
Host: Get the host field of the given host\_crashdump.
Timestamp: Get the timestamp field of the given host\_crashdump.
Size: Get the size field of the given host\_crashdump.
OtherConfig: Get the other\_config field of the given host\_crashdump.
Parameters
-BestEffort
If set, the cmdlet continues processing further objects instead of throwing a terminating error when an operation fails for one object.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-HostCrashdump
The HostCrashdump object to operate on.
| Attribute | Value |
|---|---|
| Type | Host_crashdump |
| Required | True |
| Position | 0 |
| Accepts pipeline input | True (ByValue) |
-Ref
The HostCrashdump object to operate on, specified by its opaque reference.
| Attribute | Value |
|---|---|
| Type | XenRef[Host_crashdump] |
| Required | True |
| Position | 0 |
| Accepts pipeline input | True (ByPropertyName) |
| Aliases | opaque_ref |
-SessionOpaqueRef
The session object on which to run the cmdlet. This overrides the default session and lets you target a specific open XenServer connection.
| Attribute | Value |
|---|---|
| Type | string |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-XenProperty
Selects which property to use.
| Attribute | Value |
|---|---|
| Type | XenHostCrashdumpProperty |
| Required | True |
| Position | Named |
| Accepts pipeline input | False |
| Accepted values | Uuid, Host, Timestamp, Size, OtherConfig |
Inputs
-
Host_crashdump -
XenRef[Host_crashdump]
Outputs
-
System.Object
Examples
Example 1: Get the Host property
PS> Get-XenHostCrashdump -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff | Get-XenHostCrashdumpProperty -XenProperty Host
Gets the Host property of a HostCrashdump.
Example 2: Get the Timestamp property
PS> Get-XenHostCrashdump -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff | Get-XenHostCrashdumpProperty -XenProperty Timestamp
Gets the Timestamp property of a HostCrashdump.
Example 3: Get the Size property
PS> Get-XenHostCrashdump -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff | Get-XenHostCrashdumpProperty -XenProperty Size
Gets the Size property of a HostCrashdump.
Related links
-
Class: HostCrashdump
-
Using the XenServer PowerShell module