The CreatorCon Call for Content is officially open! Get started here.

I want to run an executable file shared at any location and retrieve the data from that executable.

himani14
Kilo Explorer

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

 

1 ACCEPTED SOLUTION

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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?