I am trying to get someones MRTG script that was evidently written for a
Linux system of some sort working on 6.1
Here's his script:
#!/bin/sh
TYPE=$1
PARAM=$2
if [ $TYPE = load ]; then
INDATA=`cat /proc/loadavg | cut -d ' ' -f2 | sed 's/\.//g' | sed
's/^0//g'`
OUTDATA=`cat
if [ $TYPE = load ]; then
INDATA=`cat /proc/loadavg | cut -d ' ' -f2 | sed 's/\.//g' | sed
's/^0//g'`
OUTDATA=`cat /proc/loadavg | cut -d ' ' -f3 | sed 's/\.//g' | sed
's/^0//g'`
fi
uptime | sed 's/.*load averages: //g' | cut -d, -f2 | sed 's/.*\.//g'
uptime | sed 's/.*load averages:
Hi all,
Is there a command line utility that I can use to get info on installed
ram, CPU etc?
Cheers,
-Morten
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL
top
LK
- Original Message -
From: "Morten" [EMAIL PROTECTED]
Cc:
Sent: Thursday, July 03, 2003 7:00 PM
Subject: system info
Hi all,
Is there a command line utility that I can use to get info on installed
ram, CPU etc?
Hi,
Well, yeah, sort of. But it doesn't tell me cpu speed...
Cheers,
-Morten
Luke Kearney wrote:
top
LK
- Original Message -
From: Morten [EMAIL PROTECTED]
Cc:
Sent: Thursday, July 03, 2003 7:00 PM
Subject: system info
Hi all,
Is there a command line utility that I can
Le Thu, Jul 03, 2003 at 12:11:29PM +0200, Morten ecrivait:
Hi,
Well, yeah, sort of. But it doesn't tell me cpu speed...
less /var/run/dmesg.boot
Regards.
--
[EMAIL PROTECTED]
Claranet France
--
___
[EMAIL PROTECTED] mailing list
On Thu, Jul 03, 2003 at 12:00:13PM +0200, Morten wrote:
Is there a command line utility that I can use to get info on installed
ram, CPU etc?
less(1), as in
% less /var/run/dmesg.boot
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The
Hi,
/var/run/dmesg.boot is the file you need. Just go through the bootup
messages in teh file. You will get all the details of your server.
Regards
SSR
From: Morten [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: system info
Date: Thu, 03 Jul 2003 12:00:13 +0200
Hi