I'm running a script in a client. My script should check the memory and CPU status of the server. without using winAPI functions, how can I get above details?
Thanks & Regards,
Quote: Donít hesitate to initiate!
Crude, but you could launch a Telnet window, connect to the machine, and get the information that way. I'd rather perform my own vasectomy with a spork than do that, but that would work.
You could also use Windows' Performance Monitor to get information, I guess.
A concerned Borland customer, a fly in the ointment, a wrench in the works.
Without useing winApi Functions ... I think that is a tall order! I am not sure what that means .. but if it's ok to download a windows executable this will work:
Do a memory analysis with the tool pslist
from www.sysinternals.com. You have to put this executable where you run your Silk test (you do not have to put it on the App Server)
It will allow you to do a sys_execute and capture the output to a file (i.e machine = Aserver):
string cmd = "pslist \\Aserver > c:\temp\pslist.log"
Crack open your file:
In Silk and .. you have the idea.
Smoke me a kipper, I'll be back for breakfast!
Sr. QA Engineer
Thanks for your replies.
Server is on Windows machine. I'll try pslist and tell u..