head 1.6; access; symbols; locks georg:1.6; strict; comment @# @; 1.6 date 2003.05.07.17.43.34; author georg; state Exp; branches; next 1.5; 1.5 date 2003.05.07.17.40.03; author georg; state Exp; branches; next 1.4; 1.4 date 2003.04.23.11.59.28; author georg; state Exp; branches; next 1.3; 1.3 date 2003.04.23.11.46.49; author georg; state Exp; branches; next 1.2; 1.2 date 2003.04.23.11.17.40; author georg; state Exp; branches; next 1.1; 1.1 date 2003.04.23.10.59.19; author georg; state Exp; branches; next ; desc @@ 1.6 log @*** empty log message *** @ text @#!/bin/sh # $Id: getmeta,v 1.5 2003/05/07 17:40:03 georg Exp georg $ hostname | awk '{printf "hostname: %s\n", $0}' ifconfig -au | awk '$1 ~ /0:$/ && $1 != "lo0:" {printf "netdevic: %s\n", substr($1,1,length($1)-1)}' ifconfig -au | awk '$1 == "inet" && $2 !~ /^127\./ {match ($0,/^[[:space:]]+/); printf "ifconfig: %s\n", substr($0,RLENGTH+1)}' netstat -rn | awk '$1 == "default" {printf "defroute: %s\n", $2}' awk 'BEGIN {printf "nameserv: "} $1 == "nameserver" {printf "%s ",$2} END {printf "\n"}' /etc/resolv.conf mount | awk '/on \/ / {print $1}' | awk -v FS=/ '{split ($3,a,/s[[:digit:]]+/); printf "rootdisk: %s\n", a[1]}' fgrep /cdrom /etc/fstab | awk -v FS=/ '{printf "cdromdev: %s\n", $3}' sysctl hw.ncpu | awk '{ printf "cpucount: %d\n", $2}' @ 1.5 log @*** empty log message *** @ text @d2 1 a2 1 # $Id: getmeta,v 1.4 2003/04/23 11:59:28 georg Exp georg $ d10 1 @ 1.4 log @. @ text @d2 2 a3 1 # $Id: getmeta,v 1.3 2003/04/23 11:46:49 georg Exp georg $ @ 1.3 log @*** empty log message *** @ text @d2 1 a2 1 # $Id: getmeta,v 1.2 2003/04/23 11:17:40 georg Exp georg $ d5 1 @ 1.2 log @netparams @ text @d2 1 a2 1 # $Id:$ d5 1 @ 1.1 log @Initial revision @ text @d1 2 d4 1 @