Sponsored Content
Top Forums Shell Programming and Scripting Calculate disk usage in different servers Post 302191758 by bperl on Sunday 4th of May 2008 06:40:25 PM
Old 05-04-2008
Calculate disk usage in different servers

Hello,
I'm writing a script to monitor different filesystems in multiple servers. And depending on the % free, my script will send an Alert email if % free is less than threshold.
I want to keep a input_feed_file which would have "server,filesystem".
If I run a script a host 'a', then I can find the file systems usage on that server. But I'm intrested to watch few more filesystems that are in host 'b'.

How do I find the disk usage from my script, of these filesystems which aren't on one single server.
I'm not inclined to use any monitoring tools, so I'm trying to accomplish this in one single Korn shell script.
-------------------------------------------
Example of Input file:
host_a,/export/appl/filesystem_a/
host_a,/export/appl/filesystem_b/
host_b,/export/appl/filesystem_y/
.
.
.
--------------------------------------------

Thanks in advance.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to calculate Memory and CPU Usage on AIX

I have written a script that will calculate CPU usage and Memory usage of a particular process on AIX Unix. I know the PID and I am using the command -- # for CPU Usage MSG_CPU_USG=`ps uax | grep ${PID} | awk {'print $3'}` #for Memory Usage MSG_MEM_USG=`ps uax | grep ${PID} | awk {'print... (0 Replies)
Discussion started by: asutoshch
0 Replies

2. UNIX for Dummies Questions & Answers

Need to calculate sftp time beteen two servers.

Hi, I need to calculate time taken by a 100kb file for sftp between two servers. I am new to unix can some body please tell me how do this. Thanks in advance... Vivek (2 Replies)
Discussion started by: koulvivek
2 Replies

3. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

4. Shell Programming and Scripting

calculate usage from file

Hello folks, i have a file courierimapuiddb that have contents like 1 1280206508 4 1 1280206466.V805I169cM853838.xxx 2 1280207962.V805I16d5M343672.xxx 3 1280208055.V805I16d6M20816.xxx 1280206508 above means total size and its decreasing when file added in directory. when total... (8 Replies)
Discussion started by: learnbash
8 Replies

5. Shell Programming and Scripting

Grep string from logs of last 1 hour on files of 2 different servers and calculate count

Hi, I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files. File structure is same on both servers and for reference as follows: 27-Aug-2010... (4 Replies)
Discussion started by: poweroflinux
4 Replies

6. Shell Programming and Scripting

calculate swap space usage in Solaris and converts it in Percentage

Hi Folks, I am looking for a way to write a script to calculate swap usage in Solaris so that the current usage will be shown in Percentage value. Thanks!! Based on 'swap -s' command # swap -s total: 1378936k bytes allocated + 1236880k reserved = 2615816k used, 2725104k available (2 Replies)
Discussion started by: jaapar
2 Replies

7. Linux

How to Calculate Disk Queue length and Disk Busy Time

Hi, Am doing an enhancements related to monitoring a Linux disk I/O statistics. The /proc/diskstats file is used to get the each disk I/O statistics. But, It returns the raw value. How to calculate the Disk Queue Length and Disk Busy time from the raw values. Guide me. (1 Reply)
Discussion started by: maruthu
1 Replies

8. Linux

How to calculate total CPU usage from SAR report?

Hi, I want to calculate the total cpu usage from the sar report. Say for example, Linux 2.6.24-21-generic (blade10) 09/10/2012 04:54:36 PM CPU %user %nice %system %iowait %steal %idle 04:54:37 PM all 0.00 0.00 0.00 0.00 ... (1 Reply)
Discussion started by: rohitmd
1 Replies

9. UNIX for Beginners Questions & Answers

Disk usage monitoring and record the disk used in last 24 hour

HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you. ================= #!/bin/bash TODAY="at $(date... (0 Replies)
Discussion started by: Mi4304
0 Replies

10. Solaris

How to calculate total number of cores on my servers ?

Hi, I want to get total number of cores on my all non-global zones on Solaris 10. I got two methods and both are giving different results. Below link is a script, which tells me that total cores are 8 Mandalika's scratchpad: Oracle Solaris: Show Me the CPU, vCPU, Core Counts and the... (4 Replies)
Discussion started by: ron323232
4 Replies
pwrkap_aggregate(8)						   User Manuals 					       pwrkap_aggregate(8)

NAME
pwrkap_aggregate - Present a large number of pwrkap servers as if they were one SYNOPSIS
pwrkap_aggregate config_file DESCRIPTION
pwrkap_aggregate is a daemon that connects to a multitude of pwrkap servers and power control domains, and presents them as if they were one server with a smaller number of domains. By aggregating pwrkap server instances, it is possible to monitor many thousands of servers without overworking the command console. It is also possible to give identical class designations to a group of pwrkap servers and manage them as an aggregate. OPTIONS
config_file Text file mapping pwrkap servers to aggregated domains. See pwrkap_aggregate(5) for information about the config file format. AUTHOR
Darrick J. Wong <djwong at us dot ibm dot com> SEE ALSO
pwrkap_gtk(1), pwrkap_cli(1), pwrkap_aggregate(5), pwrkap_main(8) Linux January 2009 pwrkap_aggregate(8)
All times are GMT -4. The time now is 05:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy