question

jansiranikrishnan-1796 avatar image
0 Votes"
jansiranikrishnan-1796 asked AndreasBaumgarten edited

Orchestrator Runbooks

Hi Team,

I have created some Runbooks in the test environment. Few of them consumes other APIs by sending the Incident details from SCSM. Few of them would be consumed by other third party application.

I have few questions related to these Runbooks.

  1. How to schedule these Runbooks to run continuously?

  2. How to view the requests/payload sent by third party application? (if they make a webservice call to my Runbooks). This would help me to see if the payload in not in the acceptable format, I can make some recommendations for the payload in required format.


Regards,
Jansi

msc-orchestrator
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @jansiranikrishnan-1796 ,

are there any additional questions? Does the answer help to solve the issue?
If you found the answer helpful, it would be great if you please mark it "Accept as answer". This will help others to find answers in Q&A


Regards
Andreas Baumgarten

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered AndreasBaumgarten edited

Hi @jansiranikrishnan-1796 ,

  1. What do you mean with ""schedule a runbook continuously"? If you click on Run in the Runbook Designer the Runbook with a Monitor activity runs "continuously". If the first activity is a "Monitor" activity the Runbook service will start a new job instance.

  2. To get details of each activity of an runbook you could enable logging in the Runbook settings. This way every detail of all activities are available in the History Log for each job.

122051-image.png


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten



image.png (61.9 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I have a Runbook which sends incident data to Service-Now. It will get triggered if there is any new incident created or any update happened to an existing incident. I think if I make this Runbook "Run" in the Runbook designer, will this run automatically for ever until I explicitly stop this.

Similarly I have another set of Runbooks which would get automatically triggered when Service-Now calls this Runbook. I think for this also I need to make this Runbook "Run" in the Runbook designer.

Please correct me if am wrong.

Regards,
Jansi

0 Votes 0 ·

Hi @jansiranikrishnan-1796 ,

in general:
Runbooks with a Monitor activity at the beginning need to be checked in and needs to run all the time. The running runbook will constantly monitoring if there is an event that will trigger the next activity in the runbook. For instance monitoring if an Incident is created/modified.
Runbooks with "Initialize Data" activity at the beginning and triggered on demand from outside need to be checked in and don't need to run all the time.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

0 Votes 0 ·
StefanHorz avatar image
0 Votes"
StefanHorz answered

Hi @jansiranikrishnan-1796 ,

  1. If you want to that a Runbook runs continuously it should start with one "Monitor "-Activity. One "Monitor " Activity is "Monitor Date/Time". With "Monitor Date/Time" Activity you can schedule a Runbook to trigger at a sprcific time or in time intervals.

  2. If you turn on to "Store Activity-specific Data" as Andreas mentioned you can see which values to the Parameters of "Initialize Data" Activity are set while the Runbook was invoked.
    I mostly trigger a Runbook from external via PowerShell. As I see you used it already (https://docs.microsoft.com/en-us/answers/questions/431056/executing-an-orchestrator-runbook-via-powershell.html) ... :-).
    The $ResponseObject shows you if it was succesfull.

Regards,
Stefan




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.