- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 02:55 AM
I have an executable file at any location or at MID server location. I want to run that file using servicenow and want to retrieve the complete data from that particular executable into servicenow . Can anybody help in this.
Thanks
Himani Goyal
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 03:54 AM
Hi Himani,
Here is an example on how to execute a command on mid server via ecc queue.
1) go to left navigation and type ecc queu
2) create a new record with Queue as output, Topic=Command, Agent=mid.server.<nameOfMidServer>,
Name = ping gmail.com
3) submit the record
4) you will receive an input for this with the ping results
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 04:56 AM
Hi Himani,
So the logic still remains the same i.e. creating ecc queue record etc just the command would change.
you should know the exact path where the .exe file is placed to execute that
Command:
C:\Users\Admin>filename.exe
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2018 03:54 AM
Hi Himani,
Here is an example on how to execute a command on mid server via ecc queue.
1) go to left navigation and type ecc queu
2) create a new record with Queue as output, Topic=Command, Agent=mid.server.<nameOfMidServer>,
Name = ping gmail.com
3) submit the record
4) you will receive an input for this with the ping results
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 02:30 AM
Hi Ankur,
I am trying to do the same, I need to use the result of this ecc command in a script.
I need to ping the server name and use the IP address from the result to populate a table. This apprach of using ecc command is working fine to run the ping command with server name and input queue is coming up with IP address. So need help in how can I use this result? Should a sensor be written or I can directly write a script include....either way I need some direction.
Could you please help
Regards,
Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 03:06 AM
Hi Rakesh,
So you are sending the command properly and receiving input in ecc queue as well. So what is your doubt?
Once you get the result you can update any table with the ip address etc
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2018 01:35 AM
Hi Ankur,
My doubt is, generally, we should have a sensor to process then ecc queue result. if that is the only way then how should I get this triggered. Or is there any other way to process this result and populate the table?