I have created a python script on my local machine, i want to run this local script on multiple remote machines (Linux and Windows servers) and redirect the output to local machine.
For Example:
have to run the below local scripts to remote machines and redirect the output to local
Note: The python may not be available on some of the servers in that case will it work or not.
For Example:
have to run the below local scripts to remote machines and redirect the output to local
Note: The python may not be available on some of the servers in that case will it work or not.
import psutil total_mem = psutil.virtual_memory().total used_mem = psutil.virtual_memory().used used_percent = psutil.virtual_memory().percent print("Total Mem:{}" .format(int(total_mem / 1000 ** 3))) print("Used Mem:{}" .format(int(used_mem / 1000 ** 3)))