Skip to main content

Get-LXCAConfigPattern

This cmdlet returns information about one or more server patterns from the Lenovo XClarity Administrator server.

Note
You cannot pipe objects to this cmdlet.

Syntax

Get-LXCAConfigPattern [-Connection LXCAConnection]
[-PatternID String[]]
[IncludeSettings]
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-PatternID String[]
Specifies one or more server pattern IDs. If a pattern ID is not specified, all server patterns are returned.
-IncludeSettings
If specified, the cmdlets returns the detailed definition (settings) of the server pattern.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdlet returns one or more ConfigPattern objects.

Examples

  • The following example retrieves information about all server patterns defined on XClarity Administrator.
    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    $patterns = Get-LXCAConfigPattern

    Disconnect-LXCA
  • The following example retrieves information for a specified server pattern, including information about referenced category patterns.
    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    $patterns = Get-LXCAConfigPattern PatternId 33 IncludeSettings
    $pattern.Settings

    Disconnect-LXCA