This cmdlet retrieves information about service tickets.
Get-LXCAServiceTickets [-Connection LXCAConnection]
[-Uuids String[]>]
[-TicketState String]
[CommonParameters]
If not specified, information about all service tickets for all groups and devices are returned.
Active
Answered
Cancelled
Canceled
Closed
Created
Error
Initialized
NewState
Processing
Rejected
Resolved
Submitted
Unknown
Waiting
If not specified, information about all service tickets for all groups and devices are returned.
This cmdlet returns an array of Lenovo.SysMgmt.LXCA.Integration.Data.SwitchConfigData objects (Lenovo.SysMgmt.LXCA.Integration.Data.ServiceTicket[]).
The following example returns all service tickets that are associated with two specific devices.
$cred = Get-Credential
Connect-LXCA -Host "192.0.2.0" -Credential $Cred -SkipCertificateCheck
# $result contains all service tickets for the specified devices.
$uuids = @("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB")
$result = Get-LXCAServiceTickets -Uuids $uuids
$result
Disconnect-LXCA
The following example retrieves returns service tickets that are in the "processing" state for all devices in a specific group.
$cred = Get-Credential
Connect-LXCA -Host "192.0.2.0" -Credential $Cred –SkipCertificateCheck
# $result contains all service ticket that are in the "processing" state for devices in the
# specified group.
$group = CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
$result = Get-LXCAServiceTickets -Uuids $group -TicketState processing
$result
Disconnect-LXCA