How do I send a simple windows command to a server using Discovery probes?

Ray Vance
Tera Contributor

Hey everyone, I am relatively new to setting up probes and sensors for Discovery. I have been reviewing the OOB probes and as part of learning I have a very simple use case.

I want to create a very simple probe I can run whenever to connect to a Windows server and run a basic command like: "dir c:\" and return the results. I don' t want to use a PowerShell script if I can avoid it. How do I do it?

I tried something similar to running an "arp" command using the OOB probe "Windows - Network ARP Table". I can run that against a sample server with no issues. But when I try to run my customized one, I get the error:

<results error="Unable to find script(s) specified in parameters. Make sure the script(s) associated with probe are passed down properly." probe_time="0" result_code="82"><result error="Unable to find script(s) specified in parameters. Make sure the script(s) associated with probe are passed down properly."/>

Not sure what I am doing wrong.

Any help is appreciated. FYI - I have only been delving into the Discovery space recently, so please be patient.

 

 

2 REPLIES 2

Rahul Priyadars
Giga Sage
Giga Sage

Hope u followed steps given as per below URLs

https://docs.servicenow.com/bundle/sandiego-it-operations-management/page/product/discovery/task/modify-a-probe.html

Regards

RP

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Ray Vance,

Just a Suggestion.

As you mentioned you are exploring Discovery space recently I would even suggest to invest your time in understanding Patterns rather than Probes and Sensors.

As Service Now migrated to Patterns for discovery from long time and recommends the same.

Please mark Helpful / Accept Solution so that it helps others with similar questions.