Skip to main content

Join-LXCAUpdateCompliancePolicy

This cmdlet assigns a firmware-compliance policy to a specified device.

Note
You cannot pipe objects to this cmdlet.

Syntax

Join-LXCAUpdateCompliancePolicy [-Connection LXCAConnection]
-Policy CompliancePolicy
-SystemUuid String
-SystemType SystemType
[CommonParameter]

Join-LXCAUpdateCompliancePolicy [-Connection LXCAConnection]
-PolicyName String
-SystemUuid String
-SystemType SystemType
[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.
-Policy CompliancePolicy
Specifies an firmware-compliance policy object.
-PolicyName String
Specifies the name of firmware-compliance policy.
-SystemUuid String
Specifies the UUID of the target device.
-SystemType SystemType
Specifies the type of the target device that is specified using the -SystemUuid parameter. You can specify one of the following system types:
  • CMM. The specified device is a CMM.

  • ComputeNode. The specified device is a Flex System compute node.

  • EdgeServer. The specified device is an edge server.

  • IOSwitch. The specified device is a Flex System switch.

  • RackServer. The specified device is a rack or tower server.

  • RackSwitch. The specified device is a RackSwitch switch.

  • Storage. The specified device is a storage device.

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 a SystemCompliance object for the target device.

Examples

The following example retrieves a firmware-compliance policy and assigns it to a specific server in a Flex System chassis.

$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$policy= Get-LXCAUpdateCompliancePolicy
$complianceResult = Join-LXCAUpdateCompliancePolicy -Policy $policy[0] -SystemType ComputeNode`
-SystemUuid AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

Disconnect-LXCA