maybe this is a stupid question ... sorry for that
![;-)](./images/smilies/icon_wink.gif)
i have a Shell script running that execute the command :
cmd /c ipconfig |findstr IPv4
I "tune up the reply value" with this string :
[replace(replace('%SuggestedReply%','"',''),'IPv4 Address. . . . . . . . . . . : ','')]
the script contains this text :
statusUnknown = "ScriptRes:Unknown:"
statusOk = "ScriptRes:Ok:"
statusBad = "ScriptRes:Bad:"
var res = "Ok";
WScript.StdOut.Write(statusOk+res);
But when i do a "let's try"... here comes the stupid question .... It allways replys with Script started, invalid result received:
see here:
[14:18:21] Agent: computer is going to execute "Get ip address windows" script ...
[14:18:21] Script started, invalid result received:
----------
IPv4 Address. . . . . . . . . . . : 192.168.1.213
Hostmonitor reply field : Error: Invalid result (192.168.1.213)
What need i todo to remove this Error: Invalid result and only get the ip address
The script allways can end up with an OK
We just want to check the ip address .
Many thaks in advance
menno