By just one click, I can tell the specific server contains Java process or not.
here is source file(BTW, you should input Gawk into the PsTools as well):
set PS_TOOLS_HOME=D:\\PsTools
set JVM_IP1=192.168.1.1
%PS_TOOLS_HOME%\pslist \\%JVM_IP1% -u "domain\username" -p "pwd" -e java | %PS_TOOLS_HOME%\gawk "{if($1 !~ /java/) {} else {print $0, \"\nGot you Java! :-)\"}}"
echo %JVM_IP1% Health check finished
No comments:
Post a Comment