On 20-Mar-01 [EMAIL PROTECTED] wrote:
> Is there an easy way (from script ideally) to get the following
> stats:
>
> free physical mem (avail ram)
> free swap
> total avail mem
>
> any two of the three would be great. If such a beast doesn't
> exist, what are the easiest calls to use to get at them so I could
> write some programs that would output this info. -sc
I think you can get some of these from sysctl.. Unfortunatly I don't know the MIB's
to use :)
Try browsing sysctl -a
You could also try calling vmstat, and/or iostat.
---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message