darwin client: Expected string (Capacity and Mounted) not found in df output header
Hi,
Darwin clients (Mac OSX 10.3.9) report errors for df output: "Expected string (Capacity and Mounted) not found in df output header"
$ uname -a Darwin zelda.unil.ch 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc
df option -T is not supported under 10.3.x: use -t instead.
----extract of client data----- client zelda.darwin darwin [date] Thu Apr 13 17:08:42 CEST 2006 [uname] Darwin zelda.unil.ch 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc [uptime] 17:08 up 15 days, 6:28, 2 users, load averages: 0.19 0.17 0.14 [who] admin console Mar 29 10:41 bb ttyp1 Apr 13 17:08 (iris.unil.ch) [df] [meminfo] Mach Virtual Memory Statistics: (page size of 4096 bytes) Pages free: 168406. Pages active: 43999. Pages inactive: 24801. Pages wired down: 24938. "Translation faults": 613667922. Pages copy-on-write: 99055444. Pages zero filled: 125346054. Pages reactivated: 26786. Pageins: 2968388. Pageouts: 25192. Object cache: 15975479 hits of 19124352 lookups (83% hit rate)
--------hobbitclient-darwin.sh---- #!/bin/sh
#----------------------------------------------------------------------------#
Darwin (Mac OS X) client for Hobbit
Copyright (C) 2005 Henrik Storner <henrik at hswn.dk>
This program is released under the GNU General Public License (GPL),
version 2. See the file "COPYING" for details.
#----------------------------------------------------------------------------#
$Id: hobbitclient-darwin.sh,v 1.9 2006/02/17 13:07:50 henrik Exp $
echo "[date]" date echo "[uname]" uname -a echo "[uptime]" uptime echo "[who]" who echo "[df]"
The sed stuff is to make sure lines are not split into two.
df -H -T nonfs,nullfs,cd9660,procfs,volfs,devfs,fdesc | sed -e '/^[^ ][^ ]*$/{ N s/[ ]*\n[ ]*/ / }' echo "[meminfo]" vm_stat echo "[ifconfig]" ifconfig -a echo "[route]" netstat -r echo "[netstat]" netstat -s echo "[ps]" ps -axw echo "[top]" top -l 1 -n 20
logfiles
$BBHOME/bin/logfetch $BBTMP/logfetch.cfg $BBTMP/logfetch.status
exit
I also noticed that the "memory" column does not show any data. Normal?
Domininique University of Lausanne
On Thu, Apr 13, 2006 at 05:35:48PM +0200, Dominique Frise wrote:
Darwin clients (Mac OSX 10.3.9) report errors for df output: "Expected string (Capacity and Mounted) not found in df output header"
[snip]
df option -T is not supported under 10.3.x: use -t instead.
That's because the [df] section is empty. Judging by the output, it would seem that the -T option is not supported in your OS X version. Could you try changing the script to use "-t" instead ?
I'll take a look at your vm_stat output to see what goes wrong.
Henrik
Henrik Stoerner wrote:
On Thu, Apr 13, 2006 at 05:35:48PM +0200, Dominique Frise wrote:
I also noticed that the "memory" column does not show any data. Normal?
Bug. Fixed now.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Yes it's now OK with the latest snapshot of 18 april :-) df -t works for Mac OSX clients 10.3.x. (df -T is OK for 10.4.x)
Thanks,
Dominique
Henrik Stoerner wrote:
On Thu, Apr 13, 2006 at 05:35:48PM +0200, Dominique Frise wrote:
I also noticed that the "memory" column does not show any data. Normal?
Bug. Fixed now.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
With snapshot of 20 april, the memory columns shows:
Fri Apr 21 11:34:53 CEST 2006 - Memory OK
Memory Used Total Percentage
green Physical 412M 1024M 40%
Which is correct but the graph (% Used) is empty :-(
Dominique
participants (2)
-
Dominique.Frise@unil.ch
-
henrik@hswn.dk