[j-nsp] packet sampling does not export any data, why?

Vadim Shesterin rowdy at zenon.net
Thu Nov 18 03:25:41 EST 2004


Hi, Joe,

You need define service accounting interface in forwarding options.
For example:

sampling {
     input {
         family inet {
             rate 1;
         }
     }
     output {
         cflowd XX.XX.XX.XX {
             port xxxx;
             version 5;
             no-local-dump;
         }
         flow-inactive-timeout 15;
         flow-active-timeout 60;
         interface sp-0/3/0 {
             engine-id 0;
             engine-type 1;
             source-address ZZ.ZZ.ZZ.ZZ;
         }
     }
}

Also you can check AS-PIC work by using command:

 > show services accounting status
 > show services accounting flow
 > show services accounting errors

Joe Shen wrote:
> Hi,
> 
> I'm trying to export "netflow" data from our M160.
> I do the following configuration:
> 
> ge-3/0/0 {
>         description to_wul_10720;
>         mtu 1522;
>         unit 0 {
>             family inet {
>                 filter {
>                     input netflow-sj;
>                 }
>                 address 10.10.67.129/30;
>             }
>             family mpls {
>                 mtu 1508;
>             }
>         }
> 
> 
> forwarding-options {
>     sampling {
>         input {
>             family inet {
>                 rate 1000;
>                 run-length 1;
>             }
>         }
>         output {
>            cflowd 10.13.61.2 { 
>                 port 2056; 
>                 version 5; 
>             } 
> 
>         }
>     }
> }
> 
> 
> firewall {
>   filter netflow-sj {
>         term all {
>             then {
>                 count sj;
>                 sample;
>                 accept;
>             }
>         }
>     }
> }
> 
> 
> but, after setting up the configuration there is no
> packet exported. Why? How could I get it work?
> 
> Another question, if I want to get statistics of
> source AS and destination AS, could I use "origin-as"
> ?
> 
> 
> 
> regards
> 
> Joe 

-- 
Vadim Shesterin [SVAD-RIPE], Zenon N.S.P.
phone: +7 (095) 956-4035


More information about the juniper-nsp mailing list