I am looking for a way to ge remote systems CPU and memory information using java. Although it can be done using windows command which can be put in java program. Here are the commands.
wmic /node:HOSTNAME cpu get loadpercentage
This will give you the CPU load for a remote system.
wmic /node:HOSTNAME OS get FreePhysicalMemory
This will give you free memory for a remote system.
But, with these, I have to depend on the windows command when using these in java using Runtime.getRuntime().exec
.
Is there any java native library present which can do this work ?
Thanks