ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: Inet-Admins
Inet-Admins mailing list archive (inet-admins@info.east.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [inet-admins] Cisco & IPaccounting



On Thu, Oct 29, 1998 at 04:08:05PM +0300, Peter A. Savitch wrote:
> Hi Dmitriy Yermakov!
> > Hi,
> > 
> > http://www.ts.infn.it/computing/IPaccounting
> > 
> > IPaccounting home page
> > 
> > IPaccounting is a program developed for monitoring and accounting TCP/IP 
> > usage on a Cisco router connecting an accounting domain to the rest of 
> > the world. An accounting domain is a set of networks whose traffic to/from the world is
> > monitored by IPaccounting (uhm, this sounds like a recursive description...). 
> 
> Что я могу сказать по этому поводу:
> Тулза (v 2.0b) , в принципе, ничего, но:
> 
>   a) программирование на перле не самого высокого класса :)
[skip]
> После всего этого вроде работает, но черт же его знает :)))
> Сконфигурили ее на три кошки. Статистику смотреть более-менее удобно.
> 
> Может, кто еще чего нашел ;) ?

Я сразу же напоролся и поправил кусок разбора сырого show ip accounting.
Решение не ахти, зато работает :)))

make_daily.pl 

# Scan source_target file 
open (INPUT,"$input_file") || die "Can't open file $input_file";
while (<INPUT>) {
  chomp;
  next if ( !/^\s\d+/ );
  $_ =~ s/\s+/\|/g;
  ($zero, $t_sou_number, $t_tar_number, $t_tar_name, $t_bytes)=split(/\|/,$_,9999);

-- 
Dmitriy Yermakov, CCS SUT
dyer@sut.ru
=============================================================================
"inet-admins" Internet access mailing list. Maintained by East Connection ISP.
Mail "unsubscribe inet-admins" to Majordomo@info.east.ru if you want to quit.
Archive is accessible on http://info.east.ru/rus/inetadm.html



 




Copyright © Lexa Software, 1996-2009.