WMI Tune up Reply

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Kris
Posts: 375
Joined: Wed May 12, 2010 3:22 am

WMI Tune up Reply

Post by Kris »

OK, I have a WMI test like this:

Code: Select all

select commandline from Win32_Process where caption='MyProgram.exe' and privatepagecount > 20000000
If the query returns result, it will be something like:

Code: Select all

MyProgram.exe SysID=1,WS=5,IP=192.168.0.1,Port=1000,TimeOut=60 
What I would like is to have the value of the 'Port' command line argument as Tuned Up Reply.

Is that even possible?

Thanks!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If result (command line) always have the same format you may use getnumber operator
["%SuggestedReply%" getnumber 7]

Regards
Alex
Post Reply