From owner-freebsd-questions@FreeBSD.ORG Mon Aug 28 08:43:13 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1606D16A50E for ; Mon, 28 Aug 2006 08:43:13 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA58D43EE1 for ; Mon, 28 Aug 2006 08:34:10 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id k7S8XD95054946 for ; Mon, 28 Aug 2006 09:33:14 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk k7S8XD95054946 Message-ID: <44F2AA42.4050209@infracaninophile.co.uk> Date: Mon, 28 Aug 2006 09:33:06 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20060826223927.I82634@hub.org> <20060828081109.GA99053@server.idefix.loc> In-Reply-To: <20060828081109.GA99053@server.idefix.loc> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigE483FD88D8054427C094ED48" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 28 Aug 2006 09:33:34 +0100 (BST) X-Virus-Scanned: ClamAV 0.88.4/1741/Mon Aug 28 07:48:37 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING,NO_RELAYS autolearn=ham version=3.1.4 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: BSDstats: Just added - Vendor Stats X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 08:43:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE483FD88D8054427C094ED48 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Matthias Fechner wrote: > * Marc G. Fournier [26-08-06 22:43]: >> Figuring that for the purposes of these stats, "driver stats" might be= too=20 >> fine, I've just added a page breaking down hardware use by Vendor,=20 >> eliminating the driver ... (ie. 161 3com devices in use, etc) ... ther= e is=20 >> a bug in the stats query used for this one, where I'm showing some 'bl= ank=20 >> lines' for devices ... not sure if its a missing device in pci_dev.txt= or=20 >> not, will investigate further ... >=20 > is it possible to see what the program transmit? > I can only see that it transfers anything but not what. You can run: sh -x /usr/local/etc/periodic/300.bsdstats to get a trace of what happens while the script is running. It's not exactly the clearest, but amongst that output you can see the calls to /usr/bin/fetch that upload the information -- this sort of thing: + /usr/bin/fetch -qo /dev/null http://bsdstats.org/scripts/report_devices= =2Ephp?key=3DXXXXXXXXXXXXXXXXXXXXXXXXX&dev[]=3Dagp0:30991106:060000&dev[]= =3Dpcib1:b0991106:060400&dev[]=3Dpcm0:011113f6:040100&dev[]=3Dde0:0009101= 1:020000&dev[]=3Dsym0:00201000:010000&dev[]=3Dsym1:00201000:010000&dev[]=3D= isab0:30741106:060100&dev[]=3Datapci0:05711106:01018a&dev[]=3Duhci0:30381= 106:0c0300&dev[]=3Duhci1:30381106:0c0300&dev[]=3Duhci2:30381106:0c0300&de= v[]=3Dnvidia0:032210de:030000 Or you can change the 'do_fetch' subroutine to just echo what it would send: happy-idiot-talk:~:% diff -u /usr/local/etc/periodic/monthly/300.statisti= cs /tmp/300.statistics=20 --- /usr/local/etc/periodic/monthly/300.statistics Mon Aug 28 09:27:= 25 2006 +++ /tmp/300.statistics Mon Aug 28 09:29:53 2006 @@ -93,7 +93,7 @@ } =20 do_fetch () { - /usr/bin/fetch -qo /dev/null "http://$checkin_server/scripts/$1" + echo /usr/bin/fetch -qo /dev/null "http://$checkin_server/scripts/$1= " } =20 =20 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigE483FD88D8054427C094ED48 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE8qpJ8Mjk52CukIwRCPT5AJ9lUrIPdiA0uHdtRCC4d5a56TAS8gCePOQM rYvj15KS4jqKaYRrIXS+hho= =l/ds -----END PGP SIGNATURE----- --------------enigE483FD88D8054427C094ED48--