For loop for to find linux version on 30 servers at a time

Hi Guys,

Hope all are doing good.

I have 30 linux servers and I need to find kernal version/disk usage of /var/sp on 30 servers at a time.

and some times I want restart the all services at a time.

How to do for the same by using for loop.

Please share me the your valuable suggestions