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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...