Get-XenObserver

Last published : Nov 12, 2026
Gets the Observer objects in the pool.

Syntax

Get-XenObserver [[-Ref] <XenRef[Observer]>] [-BestEffort] [-SessionOpaqueRef <string>]
    [<CommonParameters>]
Get-XenObserver [-Uuid] <guid> [-BestEffort] [-SessionOpaqueRef <string>]
    [<CommonParameters>]
Get-XenObserver [-Name] <string> [-BestEffort] [-SessionOpaqueRef <string>]
    [<CommonParameters>]

Description

Retrieves the Observer objects in the pool. With no parameters the cmdlet returns the whole collection; use -Name, -Uuid or -Ref to select one.
Observer: Describes an observer which will control observability activity in the Toolstack.

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

-Name

The name of the Observer to operate on.
Attribute Value
Type string
Required True
Position 0
Accepts pipeline input True (ByPropertyName)
Aliases name_label

-Ref

The Observer object to operate on, specified by its opaque reference.
Attribute Value
Type XenRef[Observer]
Required False
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

-Uuid

The UUID of the Observer to operate on.
Attribute Value
Type guid
Required True
Position 0
Accepts pipeline input True (ByPropertyName)

Inputs

  • XenRef[Observer]
  • guid
  • string

Outputs

  • Observer[]

Examples

Example 1: List every Observer

PS> Get-XenObserver
Retrieves every Observer object in the pool. With no parameters the cmdlet fetches the whole collection.

Example 2: Retrieve one Observer by name

PS> Get-XenObserver -Name "Demo Observer"
Retrieves a single Observer. -Name matches on name\_label, which is not unique, so every match is operated on.

Example 3: Retrieve one Observer by uuid

PS> Get-XenObserver -Uuid 1871ac51-ce6b-efc3-7fd0-28bc65aa39ff
Retrieves a single Observer. -Uuid is the way to be sure of exactly one object.