Skip to main content

Get-LXCALicenseWarningPeriod

This cmdlet retrieves 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

Get-LXCALicenseWarningPeriod  [-Connection LXCAConnection] 
[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.
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.LicenseWarningPeriod object, that contains information about the license warning period on the XClarity Administrator server.

Examples

The following example retrieves the license warning period on the XClarity Administrator server.

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

$warning = Get-LXCALicenseWarningPeriod

# Show all information about the request:
$warning

# Show warning period value.
$warning.WarningPeriod

Disconnect-LXCA