I need to write a script to find total memory and total swap of several linux server (2000+). I have one trusted server from where I can login to all these 2000 servers without a password.
When I run this script, it should give output like this:
Server total memory swap redhat1 redhat2 redhat3 ... redhat2000
How can I achieve this?