Re: disk usage statistics

2009-04-11 Thread Michal

Wojciech Puchar 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?


systat

then type
:vmstat



I need something not interactive, command that prints what it knows and 
quits. I want to use it's output in a script.


Michal.
--
But all endings are also beginnings. We just don't know it at the 
time. -Mitch Albom

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


disk usage statistics

2009-04-10 Thread Michal

Hello.

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.
Michal
--
Never interrupt your enemy when he is making a mistake. -Napoleon 
Bonaparte

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: disk usage statistics

2009-04-10 Thread Wojciech Puchar

Hello.

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?


systat

then type
:vmstat

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: disk usage statistics

2009-04-10 Thread Bill Moran
Michal m...@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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org