Need simpler way to find all my disk space utilization using df -h


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need simpler way to find all my disk space utilization using df -h
# 1  
Old 03-09-2014
Need simpler way to find all my disk space utilization using df -h

Hi All,

I am using SSH Tectia terminal to get the disk space utilization of a particular folder /opt/logs in all the servers one by one using the command df -h and looking through the list of folders manually to get /opt/logs folder disk space used percentage .

The problem here is , it takes lot of time to query one by one by logging in all the servers one by one using user name and password and then entering df -h for all the servers.

Can anyone give me some script as i am very newbie , which will fetch all the results by loging in to any one of the servers.

Examples of servers I used are dlp91web,dlp92web,dlp93web,...,dlp118web

Username and password that i use is :
username : axyz123 , password : 12345

Steps that i do for 1 server, screenshots attached below

step 1 : Need simpler way to find all my disk space utilization using df -h-1jpg

step 2 : Need simpler way to find all my disk space utilization using df -h-2jpg

step 3: Need simpler way to find all my disk space utilization using df -h-3jpg


Thanks in Advance
# 2  
Old 03-09-2014
You can setup passwordless authentication (private/public keys) and then write a simple script to iterate each host and run "df" on each one.

Another option would be a monitoring tool like Nagios or Munin but these would a bit overkill just for checking disk space.
# 3  
Old 03-09-2014
Can you please check if you are able to do this:

1. Log in to a server

2. ssh <other_server_name> from the above logged in server?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies

2. Solaris

Unable to find utilized disk space on zone server.

Hi, I am unable to find remaining space on solaris 10. below is output. I am facing this issue on zone server. bash-3.00# df -h / Filesystem size used avail capacity Mounted on / 59G 59G 0K 100% / bash-3.00# pwd / bash-3.00# du -sh * 1K File_Stores 19K TT_DB 9K app 1K bin... (4 Replies)
Discussion started by: manoj.solaris
4 Replies

3. Shell Programming and Scripting

Find folders with timestamp and disk space used

Hi, I want write a script that finds a set of folders written between a certain time and then find the disk space used by those folders. Can someone please help. Thanks, Sparcman:( (1 Reply)
Discussion started by: sparcman
1 Replies

4. Shell Programming and Scripting

Perl Script to find the disk usage and to delete the files which is consuming more space

Hi All, I have written a script to check the file system usage and to delete the files which is consuming more space.Please check whether the script is corrcet #Script Starts here #!/usr/local/bin/perl #Program to find the disk space and to delete the older files #Checks the type of OS... (8 Replies)
Discussion started by: arunkarthick
8 Replies

5. Red Hat

Disk Utilization

Hi, Can anybody explain why my newly created 120G FS shows 100% utilization when only 113G of disk space has been used? ...... # df -h . Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg01-lvol0 119G 113G 0 100% /u02 #du -h /u02 16K ... (3 Replies)
Discussion started by: Duffs22
3 Replies

6. Red Hat

Help to Find out Available disk space

I need to find available disk space for /home. $ df /home Filesystem 1K-blocks Used Available Use% Mounted on /dev/mahhh/VolGroup11-LogVol00 32281452 45028 26034172 15% / $df /home |tail -1| awk '{print $4}' 15% The above result shows the... (5 Replies)
Discussion started by: Anu_1
5 Replies

7. Shell Programming and Scripting

disk space utilization script

Hi, I wrote the following script for monitoring disk space and inform the concerned team accordingly. But script gives me below error syntax error at line 70 : `<' unmatched #!/bin/ksh . /home/scr/.profile . /home/scr/.infa_env # Get the list of Integration Services ... (6 Replies)
Discussion started by: svajhala
6 Replies

8. UNIX for Dummies Questions & Answers

How to find the disk space allocated.

Hello, I need to find the total allocated disk space for the home directory. How can i find that in unix?(in GB). Thanks. (4 Replies)
Discussion started by: kailash19
4 Replies

9. UNIX for Dummies Questions & Answers

Space Utilization

Hi All, I have executed the "df -h" command to identify the space utilization and I noticed that i have utilized more than 60% of the alloted resources. Is there any command to check what are the files occupying/eating the 60% of the resources (for my id)?? If i know the files and their location... (2 Replies)
Discussion started by: Meem
2 Replies

10. Solaris

command to find free disk space on solaris

In linux df is the command to find free space what is the equivalent command in the Solaris (2 Replies)
Discussion started by: harishankar
2 Replies
Login or Register to Ask a Question