Skip to main content

New-LXCOServerConfigPattern

This cmdlet creates a server-configuration pattern by learning the pattern of an existing server.

Note
You cannot pipe objects to this cmdlet.

Syntax

New-LXCOServerConfigPattern [-Connection LXCOConnection]
[-Type String
-DeviceUUID String
-Name String
[-Description String]
[CommonParameter]

Parameters

-Connection LXCOConnection
Specifies the connection to the Lenovo XClarity Orchestrator server. If no connection is specified, the result from the last Connect-LXCO cmdlet is used.
-Type String
Specifies the pattern type. This value is always learn.
-DeviceUUID String
Specifies server UUID for which you want to learn a pattern.
-Name String
Specifies the pattern name.
Tip
The following characters are not allowed: ! ~ ` # $ % ^ & ; ' < > { } ? | " \
-Description String
Specifies the pattern description.
Tip
The following characters are not allowed: ! ~ ` # $ ^ ; ' < > ? " \
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

Examples

The following example learn a configuration pattern from the specified device.
$cred = Get-Credential
Connect-LXCO -HostUri "192.0.2.0" -Credential $Cred –SkipCertificateCheck

$result = New-LXCOServerConfigPattern -DeviceUUID 40EA1D96BCB5B70137D0EDF9DD4B20F9 `
-Name "R365 pattern"
$result

#Disconnect from LXCO
Disconnect-LXCO