manage_incident

Assigns an incident to an enterprise manager user. If the incident is already assigned, it will be reassigned to the specified user. If the incident is assigned to the current user, then it is automatically acknowledged.You can optionally add a comment to the incident.

Format

emcli manage_incident
      -incident_id
      -assign_to
      [-comment]       

Options

  • incident_id

    ID of the incident to be updated.

  • assign_to

    Enterprise Manager user to whom the incident is to be assigned. .

  • comment

    Optional comment to be added to the incident.

Examples

This example assigns Incident 2 to the user with the ID JOHN, and includes the comment "This needs to be watched more closely":

emcli manage_incident 
      -incident_id=2 
      -assign_to=JOHN 
      -comment="This needs to be watched more closely"