Set-LXCALicenseWarningPeriod
This cmdlet modifies the license warning period, which determines the number of days before a license expires when Lenovo XClarity Administrator triggers a warning.
Note
You cannot pipe objects to this cmdlet.
Syntax
Set-LXCALicenseWarningPeriod [-Connection LXCAConnection]
-WarningPeriod int
[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.
- -WarningPeriod int
- Specifies the value for the warning period to set on the XClarity Administrator server. The value can be from 1 - 270.
- 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 Lenovo.SysMgmt.LXCA.Integration.Data.RequestResult object, that contains information about the operation result on the XClarity Administrator server.
Examples
The following example sets the license warning period on the XClarity Administrator server.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$result = Set-LXCALicenseWarningPeriod -WarningPeriod 149
# Show all information about the request:
$result
Disconnect-LXCA
Related links
Give documentation feedback