[j-nsp] filter access

Michael Loftis mloftis at wgops.com
Fri Apr 1 02:53:54 EST 2005



--On Friday, April 01, 2005 10:50 AM +0300 Erol Kahraman 
<erol.kahraman at gmail.com> wrote:

> hi to everybody,
> i have a filter as follows; is ti possible to view which port has
> mached, and how many times has matched

No.  In JunOS you have to explicitly ask for counters. ie set .... then 
count <countername> -- So in order to get the counts you're looking for 
you'll need to split it out into separate terms with a counter for each. 
Alternately you can log to syslog (log just stuffs it into a short 
ring-buffer in the kernel) and do some form of offline accounting, but 
that's far more resource intensive than just having the 20 so extra terms.





More information about the juniper-nsp mailing list