CA Service Management

Expand all | Collapse all

Running a script in server from service catalog.

  • 1.  Running a script in server from service catalog.

    Posted 12-14-2015 09:51 AM

    Hi All,

     

    This is a new requirement that has come up. We have to invoke a script (Powershell script, Perl, PHP etc) residing in server side from UI (Service Catalog 12.8.04).

    For now using the script we plan to send email and possibly return some info / html back, the content and related info (to, cc, bcc etc) are sent from UI (we do not want to use "mailto" link and open email client since length of the content of email is limited.

     

    Is there a way I can do this ? I feel this (invoking of server side script) will have already achieved by any/some of you and wanted to take as much inputs as possible.



  • 2.  Re: Running a script in server from service catalog.

    Broadcom Employee
    Posted 12-15-2015 08:28 AM

    Lindsay has the heart of the matter, there. Once you've got an event and rule sorted out, you could create an action with type "Command line", assuming that actions of "Email" or "Request email" type aren't already doing what you're after without recourse to manually calling them from the command line on the server.



  • 3.  Re: Running a script in server from service catalog.

    Posted 12-14-2015 04:28 PM

    What will be the event (the trigger) for when you want to run the script?



  • 4.  Re: Running a script in server from service catalog.

    Posted 12-17-2015 04:11 PM

    We wanted click of a button to be the trigger.

     

    - Particularly concerning to sending email , the user will have choice of either printing the form (which we have already done it) or send email on click of a button (we are writing HTML with css class into "Label" to create button.



  • 5.  Re: Running a script in server from service catalog.

    Posted 12-18-2015 11:39 AM

    When you look at a Catalog Request there is an Email button. Will this not satisfy your requirements?



  • 6.  Re: Running a script in server from service catalog.

    Posted 12-18-2015 01:44 PM

    The "Email" option that we have in Catalog request is for the whole request. Some of our services/requests have many service options bundled together.

    We wanted to enable user to send information of which ever service option he/she wants and the content should be pre-populate with all the information (like values entered in each input field in that form) of that particular service option.