sar substitute for Linux?
Kevin Buettner
plug-discuss@lists.PLUG.phoenix.az.us
Thu, 19 Apr 2001 11:38:12 -0700
On Apr 19, 9:30am, Simper, Brian D wrote:
> I am trying to configure Tivoli to function on some Linux servers at work.
> I am trying to get certain bits of information from the system that do not
> seem readily available. First, there is no native sar command, which, as
> you probably know, is commonly used on other UNIX flavors to obtain File
> Table Space.
>
> Also, is there a command to obtain Processor Status information? Short of
> upgrading the kernel and installing packages external to RedHat 6.2, do you
> know of any work-arounds?
>
> File Table Space:
> HPUX: sar -v 1 1 | tail -1 | awk '{print $8}'
>
> Processor Status:
> BSDi: /usr/local/bin/cpustat
> Solaris: /usr/sbin/psrinfo | grep -c "off-line"
sar does exist on my Red Hat 7.0 box.
sysctl exists in both Red Hat 6.2 and 7.X
If all else fails, you can just query /proc.
Kevin