cpu steal %

Status
Not open for further replies.

whut

Member
Dec 23, 2022
228
22
18
Greetings,

I am messing around with some vital stats of servers for an observability GUI and would like some feedback on running this set of commands:

Code:
top -bn1 |  grep '%Cpu' ; top -bn1 |  grep '%Cpu' | awk -F 'st' '{print $1}' | awk '{print $NF}'

What I am looking for is for the 'st' item in the first line of output to match or nearly match the output of the 2nd line. (it is possible, but not probable, for them to not match exactly)

st should exists on a virtual machine (VPS) but might not exist on bare metal/non-vm. So, in particular, as action request is: can I get some feedback on the output on that type of server? Multiple replies on any types of servers would be great.

1685581415018.png

cheers!
 
Last edited:

whut

Member
Dec 23, 2022
228
22
18
I ran the command on more VPS, bare metal servers and raspberry pis and each provided the st value so I am good to go. Now to work on colourful gui. o_O
 
Status
Not open for further replies.