Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2009 18:05:59 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Michal <ml@infosec.pl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: disk usage statistics
Message-ID:  <20090410180559.71f554ec.wmoran@potentialtech.com>
In-Reply-To: <49DFAEA8.6060306@infosec.pl>
References:  <49DFAEA8.6060306@infosec.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Michal <ml@infosec.pl> wrote:
> 
> Could you suggest me how can I get my disk usage statistics in terms of
> percentage of the possible disk activity (like in gstat) or megabytes
> per second (like in iostat), please?
> 
> I need something that gives actual usage statistics, not any averages.
> And something that prints what I want and quits (not like gstat in
> default mode). It have to be available for unprivileged user and I don't
> want to use any temporally files in the process.
> 
> The closest I can get is (last column of):
> iostat -c 2 -d ad0 | tail -n 1
> 
> Problem is that it takes two seconds, which is not acceptable for me
> because I want it's output to be printed in status bar beside date and 
> time. I'm using wmii window manager.
> 
> Any suggestions and hints are very welcome.

snmp?  There's a command line client for net-snmp, and there are a
variety of disk activity MIBs.

-- 
Bill Moran
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090410180559.71f554ec.wmoran>