Splunk Search

Lookup and powershell command

jip31
Motivator

hi

i want to use the powershell code below in order to know if the computer ping or not
PS C:> Test-Connection -ComputerName
in the lookup folder, i have a CSV file with the name of the computer i want to check
my question is how to adapt the powershell script in order to read the computer name in the CSV file and to check the ping?
thanks a lot
regards

Tags (1)
0 Karma

xpac
SplunkTrust
SplunkTrust

So, you want to run this on a certain host, that is not a Splunk instance, or only has a UF?
You wan't a script that regularly pings some IPs from a CSV file?

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...