Get-LXCAJob

This cmdlet retrieves information about one or more jobs from the Lenovo XClarity Administrator server.

Note:
  • This cmdlet will be deprecated at a future date. Use Get-LXCATask instead.

  • You cannot pipe objects to this cmdlet.

Syntax

Get-LXCAJob [-Connection LXCAConnection] 
            [CommonParameter]

Get-LXCAJob [-Connection LXCAConnection] 
             [-JobID String[]]
            [CommonParameter]

Get-LXCAJob [-Connection LXCAConnection]
            [-Uuid String[]]
            [-Category String[]]
            [-State String[]]
            [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.
-JobID String[]
Specifies one or more job IDs.
-Uuid String[]
Specifies one or more device UUIDs of the components to which the job belongs.
-Category String[]
Specifies the category to which the job belongs. You can specify one or more of the following values, separated by a comma.
  • Backup

  • Configuration

  • Custom

  • Firmware

  • Health

  • Inventory

  • Management

  • OsDeployment

  • OsDriverUpdates

  • OsImport

  • OsProfileExport

  • Power

  • RemoteAccess

  • SelfMaintenance

  • Service

  • SwitchConfiguration

  • SystemID

  • Unknown

-State String[]
Specifies the current state of the job. You can specify one or more of the following values, separated by a comma.
  • Aborted

  • Blocked

  • Cancelled

  • CancelledWithError

  • CancelledWithWarning

  • Cancelling

  • Complete

  • CompleteWithError

  • CompleteWithWarning

  • Expired

  • Initializing

  • Interrupted

  • InterruptedWithError

  • InterruptedWithWarning

  • Investigating

  • Pending

  • Resolved

  • Running

  • RunningWithError

  • RunningWithWarning

  • Skipped

  • Stopped

  • StoppedWithError

  • StoppedWithWarning

  • Unknown

  • Uploading

  • Validating

  • Waiting

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.Job array that contains information about all the jobs in XClarity Administrator, all jobs with specified UIDs, jobs that are filtered by target UUID, State and Category.

Note: The Lenovo.SysMgmt.LXCA.Integration.Data.Job type is deprecated.

Examples

The following example retrieves all jobs that are currently running.

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

$jobs = Get-LXCAJob -State Running,RunningWithError,RunningWithWarning

Disconnect-LXCA

Related links