Skip to main content

Add-LXCAJobNote

This cmdlet creates a note and change the state of a specific job (task).

Note
You cannot pipe objects to this cmdlet.

Syntax

Add-LXCAJobNote [-Connection LXCAConnection] 
-JobUID String
-NewState String
-Text 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.
-JobUID String
Specifies the UID of the job.

If the job does not exist, the 404 - Not Found exception is thrown.

-NewState String
Specifies the new state of the job. You can specify one of the following values.
  • Aborted

  • Investigating

  • Resolved

  • NoChange

-Text String
Specifies the note text.
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 does not return data.

Examples

The following example add a net to a specific job, keeping the actual job state as is.

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

$jobUID = 123444
Add-LXCAJobNote -JobUID $jobUID -NewState NoChange -Text "No Change. Waiting for answer."

Disconnect-LXCA