Hello Powershell Guys ,
Could someone can tell me how to get the available memory from a server core via powershell (except get-computerinfo ).
Or does someone have an awesome script that can make PS generate a real time system status report, just like the “top” in Linux , which list the amount of process , in used memory , available memory ,and CPU info … see bellow
[root@www ~]# top top - 20:19:39 up 118 days, 3:22, 2 users, load average: 0.15, 0.05, 0.06 Tasks: 76 total, 3 running, 73 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.7 us, 2.3 sy, 0.0 ni, 97.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 1882892 total, 70376 free, 219832 used, 1592684 buff/cache KiB Swap: 0 total, 0 free, 0 used. 1442044 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5932 root 20 0 636896 82880 3080 S 1.7 4.4 128:48.65 YDService 2284 root 20 0 612324 13812 2392 S 0.7 0.7 28:12.29 barad_agent 942 root 20 0 575900 16008 2936 S 0.3 0.9 20:24.80 tuned 3383 root 20 0 741708 29008 7356 S 0.3 1.5 120:29.92 dockerd-current 17109 root 20 0 159744 2084 1492 R 0.3 0.1 0:00.05 top 1 root 20 0 128048 5364 2868 S 0.0 0.3 49:14.15 systemd
I found this from google, but it is not what i want
`While(1) {ps | sort -des cpu | select -f 15 | ft -a; sleep 1; cls}`