Need help with ping fixlet

(imported topic written by SystemAdmin)

I am new to BigFix, and need some help. I am trying to create a new fixlet, which will ping a website, like google.com, and report back true if it was successful, or false if it was not. Any ideas are greatly appreciated!

(imported comment written by SystemAdmin)

At a high level you will create a Fixlet that will ping the website and log the results to a local file.

You could then add a “continue if” statement that will check to see if the results file exists and if you have then parse it to see if the expected results are in it.

If the “continue if” fails, the Fixlet will fail.

for example:

wait ping www.google.com 1> c:\temp.log 2>&1

continue if {exists file “c:\temp.log” AND exists line whose (it contains "some_string) of file “c:\temp.log”)

Warning: This is off the cuff. I didn’t test it…

(imported comment written by sinucus)

I don’t have time to help write the fixlet, but one way to go about it would be to have a computer ping and pipe to appendfile, i.e. waithidden cmd.exe /c ping %parameter% > _appendfile

then search that file for the response and report on true

exists line whose (contains "0% success) of __appendfile or

exists line whose (contains "100% success) of __appendfile

Hope this helps.