#!/bin/bash
#
#top 10
#Big_USERS - find big disk space users in various directories
##############################################################
#Parameters for Script
#
CHECK_DIRECTORIES=" $HOME" #directories to check
#
##############################################################
#
########### Main Script #####################################
#
DATE=$(date ‘+%m%d%y‘) #Date for report file
#
exec > disk_space_$DATE.rpt #Make report file Std Output
#
echo "Top Ten Disk Space Usage" #Report header for whole report
echo "for $CHECK_DIRECTORIES Directories"
#
for DIR_CHECK in $CHECK_DIRECTORIES #loop to du directories
do
echo ""
echo "The $DIR_CHECK Directories:" #title header for each directories
#
#Create a listing of top ten disk space users
du -S $DIR_CHECK 2>/dev/null | #‘S‘: make a total than ‘s‘.
sort -rn | #rank with figure(n) and big is top(r).
sed ‘{11,$D;=}‘ |
sed ‘N;s/\n/ /‘ |
gawk ‘{printf $1 ":" "\t" $2 "\t" $3 "\n"}‘ #‘\t‘ is table-make mark which equal a tab(there).
#
done
#
7>>monitor-disk
时间: 2024-12-15 07:08:59
7>>monitor-disk的相关文章
Monitor Network and File I/O
监控网络和文件输入输出Monitor Network and File I/O 工具提供了几个分析模板,用于监视应用程序的网络和文件I/O活动.Instruments provides several profiling templates that monitor your app's network and file I/O activity. 使用活动监视器跟踪整个网络和磁盘使用Use Activity Monitor to Track Overall Network and Disk U
Disk IO Performance
1,Physical Disk vs. Logical Disk Windows可以在一个Physical Disk上划出若干个逻辑分区,每一个逻辑分区是一个Logical Disk.对于分配在同一个Physical Disk上的Logical Disks,其读写操作共享Physical Disk的IO带宽.Windows给每一个Logical Disk分配一个盘符,App通过盘符来读写数据. 关于Disk Performance,有两组counter:Logical Disk 和 Physic
django实现Linux运维管理平台
老早之前就想做一个运维管理平台的项目了,但是一直没沉下来去做,上半年的时候毕设选择了这个课题,想着逼自己一把,不管做出来的怎么样,先把它搞起来..... django的工作原理: 文字说明: (1)Web服务器收到用户的http请求. (2) Django通过URL控制器来判断对应的视图(View)函数从而对http请求做处理. (3)视图函数调用相应的模型来存取数据.调用相应的模板把数据展示出来. (4)视图函数最终返回一个http的响应给Web服务器. (5)Web服务器把接收到的响应数据发
磁盘性能监控
对磁盘 I/O 活动的监控可通过如下几个性能计数器来度量: Counter Name Description Avg. Disk sec/Read Shows the average time, in seconds, of a read of data from the disk. Avg. Disk sec/Write Shows the average time, in seconds, of a write of data to the disk. Disk Transfers/s
zabbix自动发现硬盘并监控其IO
在使用zabbix监控Linux主机的时候,我们希望zabbix能够自动发现Linux主机上有多少块硬盘,而不是我们手动去添加. 实验目的: 让zabbix能够自动发现Linux服务器的磁盘,并能够监控磁盘IO且绘出图形 实验设备: zabbix-server: 172.17.5.230 zabbix-client: 182.17.5.219 实验环境: linux centos 6.6 zabbix-2.4.6 实验步骤 1. 在zabbix客户端的安装目录,如/usr/local/zabb
ios性能测试Instruments
Instruments 用户指南 Instruments用户指南介绍 Instruments 是应用程序用来动态跟踪和分析 Mac OS X 和 iOS 代码的实用工具.这是一个灵活而强大的工具,它让你可以跟踪一个或多个进程,并检查收集的数据.这样,Instruments 可以帮你更好的理解应用程序和操作系统的行为. 使用 Instruments 应用,你可以使用特殊的工具(即 instruments 工具)来跟踪同一进程不同方面的行为.你也可以使用该应用来记录一系列用户界面的动作并响应它们,同
[转载]系统运维秘诀大分享专题
系统运维秘诀大分享专题 本专题整合收录了有关系统运维/系统管理员工作和个人成长方面的各种心得分享.经验总结.以及必须牢记的一些准则,适合所有在运维领域有追求的技术人阅读.有些分享的层次比较深,有些则是运维的基础课,但通过翻看他人的心得,相信你总能有所收获. 1 Dormando的系统运维秘诀三部曲... 4 1.1 技术篇... 4 1.1.1 为变化而设计.... 4 1.1.2 使用自动的,可重复的构建过程.... 4 1.1.3 使用冗余.... 4 1.1.4 使用备份.... 5 1.
Oracle Cluster Health Monitor(CHM)简介
Oracle Cluster Health Monitor(CHM)简介 概述 Cluster Health Monitor(以下简称CHM)是一个Oracle提供的工具,用来自动收集操作系统的资源(CPU.内存.SWAP.进程.I/O以及网络等)的使用情况.CHM会每秒收集一次数据. 这些系统资源数据对于诊断集群系统的节点重启.Hang.实例驱逐(Eviction).性能问题等是非常有帮助的.另外,用户可以使用CHM来及早发现一些系统负载高.内存异常等问题,从而避免产生更严重的问题. CHM会
Performance Monitor Usage2:Peformance Counter
Performance Counter 是量化系统状态或活动的一个数值,对于不同的监控目的,需要设置不同的Performance Counter. Performance counters are measurements of system state or activity. They can be included in the operating system or can be part of individual applications. Windows Performance
linux 监控CPU memory disk process 脚本
#!/bin/bash # #This is a monitor system CPU Memory process disk IO disk zone statistixs scripts. # # ##CPU usage rate /bin/date>> /mnt/system_info.log echo -e "\n" >> /mnt/system_info.log ##CPU usage rate echo -e "\033[31mCPU us