To determine the File Sytem Usage on Multiple UNIX server

Hello All :slight_smile:

I want to write a shell script to find the file system usage on multiple UNIX servers.

Commands:

df -g fsJCAPS

Below script works fine and it displays results on terminal/console. I want to store /redirect output on to local server from where I'm running the script.

I want to store the output as below and send an email notification.

SERVER: SERVER
============================================================================
Filesystem                      Total(in GB)   Free(in GB)  %Used     Mounted     
============================================================================
/dev/lvJCAPS                   50.00           9.31       82%     /fsJCAPS  

Many Thanks
Nawaz

Does it have to be telnet? With ssh and passwordless setup that would become much faster and easier...

Thanks for the response. Actaully I dont have much idea on SSH.

I want to go with telnet.

If you feel it is easy to write scripts with ssh ,please let me this procedure as well. :-):slight_smile:

---------- Post updated 04-09-14 at 05:44 AM ---------- Previous update was 04-08-14 at 07:26 AM ----------

Could you please update me on this please.

If you search these forums, there's plenty of examples of exactly this, disk usage on several servers using ssh.