Is it possible to write a script to create a change request externally?

wayneegli
Kilo Explorer

Are there examples or a way to write a script (say on a Linux server in python, or whatever language) and post/push a change request creation into ServiceNow? Perhaps using REST or something else?

I have an automated task to change a system, but I need a change request first before the automation script can execute and I want it to be fully automated.

9 REPLIES 9

This is my exact requirement roger (changes for RHEL patching).. Can you please elaborate on how you are doing?



Thanks,


Malaya


Mike Shaw
Kilo Explorer

Hi Roger,

 

Do you have anymore info on your process because this is exactly what I need to do also?

 

Thanks,

 

Mike

Hi Mike-

Our change board requires us to make a change request for every update/patch/hotfix we install.  At the time, we were submitting those requests per server.  This got to be quite tedious so we wrote a little Node app that submits the request for us.  

For Windows servers, I use PDQ Inventory/Deploy to manage the systems.  Inventory allows me to group servers in collections based on given criteria.  For example, if an IIS critical update comes out, I select my IIS collection and submit the change request for those CI's using a PowerShell script--all from within PDQ Inventory.

I'll be happy to give you more details and/or help you get started.

-Roger

Hi Roger,

Thanks for the reply but adding in another third-party piece of software(PDQ Inventory/Deploy) to the mix in out of the question.

Thanks,

Mike

Better late than never, right?  🙂

Using PDQ is just the way I went about it.  You absolutely do not need to use a 3rd party service.  I'm still happy to help if you have any other questions about how I did it.

 

 -Roger