You can monitor the following aspects of J-Flow statistics by using the following commands:
|
To Display |
Command |
|---|---|
|
Main cache flow operational statistics |
show ip cache flow |
|
J-Flow sampling state |
show ip flow sampling |
|
J-Flow export state and export statistics |
show ip flow export |
You can use the output filtering feature of the show command to include or exclude lines of output based on a text string that you specify. See Command Line Interface in JUNOSe System Basics Configuration Guide, for details.
show ip cache flow
host1# show ip cache flow active brief
29140 packets sampled. Distribution of IP packets by size. Size Percent ---------- ------- 1 - 32 0.000 64 0.000 96 0.000 128 0.000 160 0.000 192 0.000 224 0.000 256 0.000 288 0.000 320 0.000 352 0.000 384 0.000 416 0.000 448 0.000 480 0.000 512 0.000 544 0.000 576 0.000 1024 96.791 1536 3.209 2048 0.000 2560 0.000 3072 0.000 3584 0.000 4096 0.000 4608 0.000 Total Flows Packets Bytes Packets Protocol-Port Flows /Sec /Flow /Pkt /Sec ------------------- ---------- --------- ------------ --------- ----------- TCP-telnet 1 0.000 118.000 1014.000 0.000 UDP-whois++ 1 0.008 935.000 1026.000 7.664 ------------------ Summary --------------------- Total Flows Processed: 2 Total Packets 1053 Total Bytes 1078962 ------------------------------------------------
![]() |
Note: The output format for this command was modified slightly to fit within the confines of this document. |
host1# show ip cache flow active detail
Main Cache
Max Entries: 65536
Activity Timeout: 60 mins.
Inactivity Timeout: 600 secs.
Cache Enabled
32012 packets sampled.
Distribution of IP packets by size.
Size Percent
---------- -------
1 - 32 0.000
64 0.000
96 0.000
128 0.000
160 0.000
192 0.000
224 0.000
256 0.000
288 0.000
320 0.000
352 0.000
384 0.000
416 0.000
448 0.000
480 0.000
512 0.000
544 0.000
576 0.000
1024 96.789
1536 3.211
2048 0.000
2560 0.000
3072 0.000
3584 0.000
4096 0.000
4608 0.000
Packets Bytes Packets
Src.Addr Src.Intf Dst.Addr Dst.Intf Protocol Port /Flow /Packet /Sec
------------- --------- --------- ---------- --------------- --------- --------- ---------
10.20.30.41 258 GigE4/0 12.0.0.2 GigE2/0 TCP-telnet 58.000 1014.000 0.000
10.20.30.41 63 GE4/0 50.60.70.88 UDP-whois++ 1028.000 1026.000 7.672
------------------ Summary ---------------------
Total Flows Processed: 2
Total Packets 1086
Total Bytes 1113540
------------------------------------------------
host1# show ip cache flow history
35604 packets sampled.
Distribution of IP packets by size.
Size Percent
---------- -------
1 - 32 0.000
64 0.000
96 0.000
128 0.000
160 0.000
192 0.000
224 0.000
256 0.000
288 0.000
320 0.000
352 0.000
384 0.000
416 0.000
448 0.000
480 0.000
512 0.000
544 0.000
576 0.000
1024 96.784
1536 3.216
2048 0.000
2560 0.000
3072 0.000
3584 0.000
4096 0.000
4608 0.000
Total Flows Packets Bytes Packets
Protocol Port Flows /Sec /Flow /Pkt /Sec
------------------- ---------- --------- ------------ --------- -----------
TCP-telnet 216 1.450 159.264 1014.000 230.879
------------------ Summary ---------------------
Total Flows Processed: 216
Total Packets 34401
Total Bytes 34882614
------------------------------------------------
show ip cache flow aggregation
Example—Aggregation cache flow output
host1#show ip cache flow aggregation as active brief 29140 packets sampled.
Total Src AS Dest AS Flows Packets/Flows Bytes/Pkt Packets/Sec ----------------- ---------- -------------- ---------------- --------- 400 100 0.000 118.000 1014.000 0.000 100 400 0.008 935.000 1026.000 7.664
------------------ Summary --------------------- Total Flows Processed: 2 Total Packets 1053 Total Bytes 1078962 ------------------------------------------------
show ip flow export
host1#show ip flow export Flow export is enabled using version 5 format. Exporting to 10.0.0.2 port 9898 using source ip interface GigabitEthernet5/0/0.
show ip flow sampling
host1#show ip flow sampling Flow sampling is enabled 'Packet Interval' sampling mode is configured. 1 out of every 1000 packets is being sampled.