Get-LXCAServiceTickets
This cmdlet retrieves information about service tickets.
Note
You cannot pipe objects to this cmdlet.
Syntax
Get-LXCAServiceTickets [-Connection LXCAConnection]
[-Uuids String[]>]
[-TicketState String]
[CommonParameters]
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.
- -Uuids String[]
- Returns information about service tickets that are associated with one or more specific groups and devices, specified by UUID.
If not specified, information about all service tickets for all groups and devices are returned.
- -TicketState String
- Returns information about service tickets that are in a specific state. You can specify one of the following values.
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.
- 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 an array of Lenovo.SysMgmt.LXCA.Integration.Data.SwitchConfigData objects (Lenovo.SysMgmt.LXCA.Integration.Data.ServiceTicket[]).
Examples
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-LXCAThe 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
Related links
Give documentation feedback