From owner-freebsd-questions@FreeBSD.ORG Tue Aug 1 15:20:48 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 4B60616A4E1 for ; Tue, 1 Aug 2006 15:20:48 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B02343D7D for ; Tue, 1 Aug 2006 15:19:59 +0000 (GMT) (envelope-from freebsd@hub.org) Received: from localhost (mx1.hub.org [200.46.208.251]) by hub.org (Postfix) with ESMTP id BE4CD291B02; Tue, 1 Aug 2006 12:19:47 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 44636-07; Tue, 1 Aug 2006 12:19:47 -0300 (ADT) Received: from ganymede.hub.org (blk-224-179-167.eastlink.ca [24.224.179.167]) by hub.org (Postfix) with ESMTP id 13EFB291AFC; Tue, 1 Aug 2006 12:19:47 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id 27BE65C0B0; Tue, 1 Aug 2006 12:19:46 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 239034AB20; Tue, 1 Aug 2006 12:19:46 -0300 (ADT) Date: Tue, 1 Aug 2006 12:19:45 -0300 (ADT) From: User Freebsd To: Nikolas Britton In-Reply-To: Message-ID: <20060801120058.O27679@ganymede.hub.org> References: <20060728164526.E27679@ganymede.hub.org> <87slklj9hu.fsf@photon.homelinux.org> <20060729021007.F27679@ganymede.hub.org> <44CD41EC.6030605@freebsd.org> <20060730233839.I27679@ganymede.hub.org> <44CDAA98.3030702@freebsd.org> <44CDE02F.4090604@dial.pipex.com> <44CE7DD0.9070902@childeric.freeserve.co.uk> <871ws1v261.fsf@photon.homelinux.org> <20060731220830.B27679@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Xiao-Yong Jin , freebsd-questions@freebsd.org Subject: Re: Gotta start somewhere ... how many of us are really out there? 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: Tue, 01 Aug 2006 15:20:48 -0000 On Tue, 1 Aug 2006, Nikolas Britton wrote: > On 7/31/06, User Freebsd wrote: >> On Mon, 31 Jul 2006, Xiao-Yong Jin wrote: >> >> > Chris Whitehouse writes: >> > >> >> Alex Zbyslaw wrote: >> >>> Counting portsnap and cvsup accesses is non-intrusive - i.e. nothing >> >>> sent from local host - will count systems from any version of >> >>> FreeBSD, but will never count everything because sites with multiple >> >>> hosts may easily have local propagation mechanisms. But you will >> >>> get an order of magnitude. However, how do you deal with systems >> >>> with variable IPs? I don't know enough about the internals of >> >>> either portsnap or cvsup to know if there is some kind of unique id >> >>> associated with hosts. If not, then you'd wildly over count for >> >>> many home-based, variable IP systems. >> >> >> >> Maybe not so many, my non-static ip hasn't changed since I signed up 3 >> >> years ago despite turning off the modem for the odd day or >> >> two. Another network I look after also hasn't changed in a year. >> >> >> > But one can't rely on that. You'll definitely see more than one ip >> > associated with my laptop, if I move it around. >> > >> > A more reliable way that I can think of is generating a unique ID >> > number when a system finishes installation or upon the first boot. >> > However, it may involve some additional privacy problem. What do you >> > think? >> >> How does Solaris generate its 'hostid'? Is it a hardware/sparc thing, or >> software? >> > > Generating a unique anonymous key is easy, proving why we need it is not. > > Ok, here it is, " ifconfig | sha256 | md5 ". 16^32 unique anonymous > keys. Every host needs to have a NIC to send results so all ifconfig > outputs will be different. Now... What does this solve and why do we > need to add 32 extra bytes? 'k, so we'd be looking at something like: #!/bin/sh ID=`ifconfig | sha256 | md5` SYS=`uname -mr | sed 's/\ /+/g'` fetch http://www.hub.org/freebsd_stats.php?HOSTID=$ID\&SYSTEM=$SYS URL would be different, mind you, just using that to test / example ... Actually, using ifconfig wouldn't work ... it would give unique, but as soon as you add another IP (ie. alias), the ID would change ... you'd need to do something like: ifconfig | grep ether | sha256 | md5 since the 'ether' would never change ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664