I am trying to filter out dead DNS entries on the bigfix console by pinging each server using their DNS name or IP and display the ping output on bigfix console property as if ping is successful YES if not than NO. not sure how to process further with the resolution.
need help with relevance which can resolves my issue.
To clarify - the analysis mentioned above can be part of the same task which does the ping, no need to make a true analysis…
I do something similar for checking connectivity to AV server, was written before builint Powershell action, this is all one task action:
delete __appendfile
appendfile Test-NetConnection -computername 10.15.101.160 -port 8190 -informationlevel quiet | out-file "C:\Windows\Temp\avpoke.txt"
delete "C:\Windows\Temp\avpoke.txt"
delete pstest.ps1
copy __appendfile pstest.ps1
waithidden { pathname of file ((it as string) of value "Path" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" of native registry) } -noprofile -ExecutionPolicy Bypass -file "pstest.ps1"
if {exists lines whose (it as trimmed string as lowercase = "true" ) of files "C:\Windows\Temp\avpoke.txt"}
setting "_sophosrelayavailable"="1" on "{parameter "action issue date" of action}" for client
else
// if powershell is good - it should set broke = 0 (false)
setting "_sophosrelayavailable"="0" on "{parameter "action issue date" of action}" for client
endif