To determine the File Sytem Usage on Multiple UNIX server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting To determine the File Sytem Usage on Multiple UNIX server
# 1  
Old 04-08-2014
To determine the File Sytem Usage on Multiple UNIX server

Hello All Smilie

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

Commands:
Code:
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.
Code:
SERVER: SERVER
============================================================================
Filesystem                      Total(in GB)   Free(in GB)  %Used     Mounted     
============================================================================
/dev/lvJCAPS                   50.00           9.31       82%     /fsJCAPS  

Many Thanks
Nawaz

Last edited by Mohammad Nawaz; 04-10-2014 at 12:00 PM.. Reason: code tags
# 2  
Old 04-08-2014
Does it have to be telnet? With ssh and passwordless setup that would become much faster and easier...
# 3  
Old 04-09-2014
To Determine file sytem space

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. :-)Smilie

---------- 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.
# 4  
Old 04-09-2014
If you search these fora, there's plenty of examples of exactly this, disk usage on several servers using ssh.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

2. UNIX for Dummies Questions & Answers

Cpu usage of UNIX server

I want to know the total cpu usage(in %ge)of unix server like windows (NOTE :-not each process cpu usage) Its urgent...plzzzz help me.... (1 Reply)
Discussion started by: rohit kataria
1 Replies

3. Shell Programming and Scripting

Connecting to multiple unix server from unix server using shell script

Hi Gurus, I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
Discussion started by: sexyTrojan
5 Replies

4. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

5. UNIX for Dummies Questions & Answers

How check the overall CPU usage of the unix server

Hi All, Can anyone help me.. I want to know the command to check the overall CPU usage of the server. Note: I don't want the CPU usge of each and every process. I just want to know thw aggregate CPU utilization of the server. (2 Replies)
Discussion started by: Selva_Kumar
2 Replies

6. UNIX for Dummies Questions & Answers

how to determine the disk space usage

how can we determine the disk space used by a certain directory? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

7. HP-UX

How to determine cpu&memory percentage usage per user

Using HP-UX v11 Need to monitor cpu and memory usage, total for system and separately for each user in command-line mode. Found out next ways to monitor total cpu usage under hp-ux: 1) vmstat, also shows free memory 2) sar -M ps -eo user,pcpu - does not work, means 'user-defined format'... (4 Replies)
Discussion started by: hp-ux-user
4 Replies

8. Programming

sco unix 5.0.5 call sytem() function question!please help me!

i want to know the return value of calling system function in the sco unix 5.0.5.what is the meaning of the return value? ............ int ret; char cmd; strcpy(cmd,"compress -F -c file >file.Z"); ret = system(cmd); ............. i want to know how to judge whether the file's compress is... (4 Replies)
Discussion started by: hit
4 Replies

9. UNIX for Dummies Questions & Answers

UNIX Sytem 5, release 3

Will UNIX Sytem 5, release 3 run on a Pentium (clock speed 100-200 MHz)? thanks (5 Replies)
Discussion started by: samklyle
5 Replies
Login or Register to Ask a Question