From owner-freebsd-isp Thu Apr 3 00:31:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA06342 for isp-outgoing; Thu, 3 Apr 1997 00:31:22 -0800 (PST) Received: from florence.pavilion.net (florence.pavilion.net [194.242.128.25]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA06335 for ; Thu, 3 Apr 1997 00:31:17 -0800 (PST) Received: (from joe@localhost) by florence.pavilion.net (8.8.5/8.8.5) id JAA29347; Thu, 3 Apr 1997 09:30:44 +0100 (BST) Message-ID: <19970403093044.18528@pavilion.net> Date: Thu, 3 Apr 1997 09:30:44 +0100 From: Josef Karthauser To: freebsd-isp@freebsd.org Subject: Re: How can I measure Mb downloaded? References: <3.0.1.32.19970403173015.006f5aec@mail.island.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.64 In-Reply-To: <3.0.1.32.19970403173015.006f5aec@mail.island.net.au>; from Hugh Blandford on Thu, Apr 03, 1997 at 05:30:15PM +1000 Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, Apr 03, 1997 at 05:30:15PM +1000, Hugh Blandford wrote: > Hi, > > I am trying to find a piece of software/utility that will tell me how many > Mbytes have been sent to and from an IP address or device. I would like to > log the traffic. I have a P50 for my router and it is not really upto the > task. I am aware of the end of day routine that gives how many packets > have come in and out of the interface, but I have no idea how you can get > from the number of packets to the number of bits or megabytes etc. > > Regards, > > Hugh. > You should be able to do it with snmp (simple network management protocol.) There's a package called ucd-snmp that contains a program called 'snmpget'. This allows you to query the values of internal variables in the Pipe50. The Ascend MIB files are available at: ftp://ftp.ascend.com/pub/Software-Releases/SNMP/ along with the documentation of the variables. I'm doing a similar thing to what you need on my Cisco routers, and I'm using SNMP to query my Ascend Max4000s to give me a running status about the number of ports being used at one time. I'll send you the max script if you want, it's written in perl. Joe -- Josef Karthauser Technical Manager Email: joe@pavilion.net Pavilion Internet plc. [Tel: +44 1273 607072 Fax: +44 1273 607073]