Using a Command Line to Create an Incident

Using a Command Line to Create an Incident
jorm76's picture

This is a command line that allow you to create a Helpdesk (HD) incident from a remote location. It uses the Web service that's packaged with the Helpdesk to do the heavy lifting. What's cool about this solution is you can submit an incident without even launching the Helpdesk console on your computer.

This is a command line, so use Internet Explorer or another application/program installed on your computer to run it.

The Web service can either take command line parameters (type "CreateWorkitem or Edit Workitem" to see them) or by using specific commands required for a 3rd party application.

The next line contains the parameters to send a command to the Altiris HD Web service. To create one new incident from IE you use this syntax:

http://MYSERVERHD/AeXHD/WebService.asmx/ProcessWorkItem?workitem_title=This+computer+is+break+fix+are+lost+data&workitem_category_tree_value= Break-fix%5cComputer&workitem_comment=Is+urgency+repair+and+probability+restore+data

Here's what the results look like in IE, after you've executed the execute command line:

The next line contains the parameters to send a command to Altiris HD Web service. This command edits an existing incident using IE.

http://MYSERVERHD/AeXHD/WebService.asmx/EditWorkItem?id=1345&workitem_priority_lookup_id=300&workitem_urgency_lookup_id=300&workitem_status_lookup_id=400&workitem_comment=the+computer+has+repaired+and+restore+information+of+the+user

It's important that the user or worker has permissions in Helpdesk to execute commands as background services (webservices) in Altiris Server.

This sample field is included for reference.

The values of lookups is from the worker administrator Console HD, Admin > Lookups then select lookup and click view.

Additionally, you can use http://MYSERVERHD/AeXHD/WebService.asmx to send in the your page on the Web Services.

4
Average: 4 (31 votes)

Interesting info, in

Interesting info, in certain cases can be useful use a procedure without launching the Helpdesk console on the computer.

This is great information!

This is great information! Unfortunately, I cannot Edit incidents using the EditWorkItem method. Both our production server and test server (w/ ADSK 1.4) do not show this in the available method list. When I run the command above I get a 'page not found' 404 error.

I was able to create an incident successfully, just as described above.

Am I missing a helpdesk add-on for editing? We are currently on Helpdesk v6 SP3.

I am working to do this with the ASDK, but your one-liner URL is a HECK of a lot easier.

Thanks!

*Correction*

*Correction*

I am receiving the following error while running: http://SERVERNAME/AeXHD/WebService.asmx/EditWorkItem?

HTTP 500 - Internal server error
Internet Explorer

Thanks

Its great to see the flexibility offered by Altiris, personally I'd been using vb scripts to edit incidents when I don't want to open the console, but command lines offer a great alternative as well. Thanks for taking the time to share!

Syndicate content