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:
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.
cheers!
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.
cheers!
Last edited: