perl-Data-Netflow-0.02-alt1.noarch.rpm


Advertisement

Description

perl-Data-Netflow - Module to process binary netflow data (v5 and v9)

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Data-Netflow-0.02-alt1.noarch.rpm
Package name perl-Data-Netflow
Package version 0.02
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 22.73 KB
Installed size 22.73 KB
Module to create netflow binary data from text data
use Data::Netflow;
use IO::Socket;
my $sock_udp = IO::Socket::INET->new(
Proto    => 'udp',
PeerPort => 9995,
PeerAddr => '127.0.0.1',
) or die "Could not create UDP socket: $!\n";
my $TemplateV9 = {
'FlowSetId'      => 0,
'TemplateId' => 300,
'Fields'   => [
{ 'Length' => 4, 'Id' => 1  },    # octetDeltaCount
{ 'Length' => 4, 'Id' => 2  },    # packetDeltaCount
{ 'Length' => 1, 'Id' => 4  },    # protocolIdentifier
{ 'Length' => 1, 'Id' => 6  },    # tcp flags
{ 'Length' => 2, 'Id' => 7  },    # sourceTransportPort
{ 'Length' => 4, 'Id' => 8  },    # sourceIPv4Address
{ 'Length' => 2, 'Id' => 11 },    # destinationTransportPort
{ 'Length' => 4, 'Id' => 12 },    # destinationIPv4Address
{ 'Length' => 4, 'Id' => 21 },    # last switched
{ 'Length' => 4, 'Id' => 22 },    # first switched
],
}
my $Header = {
Version => 9,
SysUptime => int ( uptime() *1000 ),
};
my @flow;
my @tmp = qw( 5 8126 17 0 22 10.2.1.1 5365 10.2.1.254  ) ;
my $uptime = int ( (uptime()- $back ) *1000 );
push @tmp  , $uptime + 5;
push @tmp  , $uptime;
push @flow , \@tmp;
my $encoded = Data::Netflow::encodeV9($Header, $TemplateV9 ,\@flow);
$sock_udp->send( $encoded );

Alternatives

Package Version Architecture Repository
perl-Data-Netflow - - -

Requires

Name Value
/usr/share/perl5 -
perl(Data/Dumper.pm) -
perl(List/Util.pm) >= 1.480
perl(Socket.pm) >= 2.020.030
perl(Time/HiRes.pm) >= 1.974.100
perl-base >= 1:5.10.0
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Data/Netflow.pm) = 0.020
perl-Data-Netflow = 0.02-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-Data-Netflow-0.02-alt1.noarch.rpm
Source Package perl-Data-Netflow-0.02-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Data-Netflow rpm package:
    # sudo apt-get install perl-Data-Netflow

Files

Path
/usr/share/doc/perl-Data-Netflow-0.02/Changes
/usr/share/doc/perl-Data-Netflow-0.02/README
/usr/share/doc/perl-Data-Netflow-0.02/examples/decode_netflow.pl
/usr/share/doc/perl-Data-Netflow-0.02/examples/encode_v5.pl
/usr/share/doc/perl-Data-Netflow-0.02/examples/encode_v9.pl
/usr/share/perl5/Data/Netflow.pm

See Also

Package Description
perl-Data-OFAC-0.67-alt1.noarch.rpm A Perl interface to the United States Office of Foreign Assets
perl-Data-Object-0.99-alt1.noarch.rpm Object Orientation for Perl 5
perl-Data-Object-AutoWrap-0.02-alt1.noarch.rpm Autogenerate accessors for R/O object data
perl-Data-Object-Autobox-0.14-alt1.noarch.rpm perl module Data-Object-Autobox
perl-Data-ObjectStore-2.03-alt1.noarch.rpm Object store
perl-Data-ObjectStore-scripts-2.03-alt1.noarch.rpm Data-ObjectStore scripts
perl-Data-Omap-0.06-alt1.noarch.rpm perl module Data-Omap
perl-Data-OpenGraph-0.01-alt1.noarch.rpm Parse OpenGraph Contents
perl-Data-OpenStruct-Deep-0.03-alt1.noarch.rpm allows you to create data objects and set arbitrary attributes deeply
perl-Data-OpeningHours-0.4.2-alt1.noarch.rpm Is a shop is open or closed at this moment?
perl-Data-Overlay-0.54-alt1.noarch.rpm merge/overlay data with composable changes
perl-Data-Ovulation-0.01-alt1.noarch.rpm Female ovulation prediction based on basal body temperature values
perl-Data-PABX-ParseLex-1.05-alt1.noarch.rpm Parse output of /lex a e/ command for the iSDC PABX
perl-Data-Pack-1.101611-alt1.noarch.rpm Pack data structures so only real content remains
perl-Data-Package-1.05-alt1.noarch.rpm Base class for packages that are purely data
Advertisement
Advertisement