Solved

FLowscan failed and i dont have file arts... Help me...

Posted on 2003-11-02
5
240 Views
Last Modified: 2010-04-22
hi... I have a problem here... I want to use Flowscan in my linux machine... I've already setting the Cisco Router 3650 series and also setting all the configuration its needed in the linux machine...

I've followed all the rules in this link :
http://www.linuxgeek.org/netflow-howto.php

also read and follow the instruction in the FlowScan how to...

When i started the cflowd, cflowdmux and cfdcollect it has no problem...

==> /var/log/messages <==
Nov  3 10:41:12 coba-coba cflowdmux[16397]: [I] created 2101248 byte packet queu
e shmem segment {CflowdPacketQueue.cc:247}
Nov  3 10:41:12 coba-coba cflowdmux[16397]: [I] attached to 2101248 byte packet
queue at 0x40189000
Nov  3 10:41:12 coba-coba cflowdmux[16397]: [I] created semaphore: id 1802247
Nov  3 10:41:12 coba-coba cflowdmux[16397]: [I] set UDP recv queue to 261040 byt
es for fd 4 (port 2055)
Nov  3 10:41:23 coba-coba cfdcollect[16399]: [I] cfdcollect (version cflowd-2-1-
b1) started with 1 cflowd instances.
Nov  3 10:41:24 coba-coba cfdcollect[16399]: [E] connect(4,0x810ac74,16) (host localhost port 2056) failed: Connection refused {CflowdServer.cc:112}
Nov  3 10:41:24 coba-coba cfdcollect[16399]: [I] sleeping for 299 seconds.
Nov  3 10:41:27 coba-coba cflowd[16401]: [I] cflowd (version cflowd-2-1-b1) started.
Nov  3 10:41:27 coba-coba cflowd[16401]: [I] got semaphore: id 802247
Nov  3 10:41:27 coba-coba cflowd[16401]: [I] attached to 2101248 byte packet queue at 0x4027e000

It seems that the cflowd already running...
But i dont see any arts files. where is it?
and i can not try the Flowscan ... its not work properly...

I read in the manual Flowscan, it says like this :
Testing FlowScan
    Once you have the patched cflowd running with the `-s 300'
    option, and it has written at least one time-stamped flow file
    (i.e. other than flows.current), try this:

      $ cd /dir/containing/your/time-stamped/raw/flow/files
      $ flowscan

    The output should appear as something like this:

       Loading "bin/Napster_subnets.boulder" ...
       Loading "bin/local_nets.boulder" ...
       2000/03/20 17:01:04 working on file flows.20000320_16:57:22...
       2000/03/20 17:07:38 flowscan-1.013 CampusIO: Cflow::find took 394 wallclock secs (350.03 usr +  0.52 sys = 350.55 CPU) for 23610455 flow file bytes, flow hit ratio: 254413/429281
       2000/03/20 17:07:41 flowscan-1.013 CampusIO: report took  3 wallclock secs ( 0.44 usr +  0.04 sys =  0.48 CPU)        sleep 300...

I've followed the instruction... but it doesnt appear like that...
[bnet@coba-coba flows]$ ./flowscan
Loading "/var/local/flows/bin/local_nets.boulder" ...
sleep 30...
sleep 30...

it always like that... Whats wrong here?
Can anybody help me please....

Thanks...

me... mullie... ;p
0
Comment
Question by:mullie
  • 2
5 Comments
 
LVL 2

Expert Comment

by:asbharadwaj
ID: 9668982
The HOWTO says
Then use netstat -lnp to see if flow-capture is listening to port 2055

seems your server hasnt started properly see the following line in your logfile
Nov  3 10:41:24 coba-coba cfdcollect[16399]: [E] connect(4,0x810ac74,16) (host localhost port 2056) failed: Connection refused {CflowdServer.cc:112}

Is that expected? May be installation problem?
0
 

Author Comment

by:mullie
ID: 9669585
thanks asbharadwaj....

i've found the problem is... i have to start the cflowdmux first, then cflowd, and the last is the cfdcollect... So, its log says nothing error...
Like this :

Nov  3 15:30:55 coba-coba cflowdmux[16783]: [I] cflowdmux (version cflowd-2-1-b1) started.
Nov  3 15:30:55 coba-coba cflowdmux[16783]: [I] created 2101248 byte packet queue shmem segment {CflowdPacketQueue.cc:247}
Nov  3 15:30:55 coba-coba cflowdmux[16783]: [I] attached to 2101248 byte packet queue at 0x40189000
Nov  3 15:30:55 coba-coba cflowdmux[16783]: [I] created semaphore: id 1835016
Nov  3 15:30:55 coba-coba cflowdmux[16783]: [I] set UDP recv queue to 261040 bytes for fd 4 (port 2055)

Nov  3 15:30:58 coba-coba cflowd[16785]: [I] cflowd (version cflowd-2-1-b1) started.
Nov  3 15:30:58 coba-coba cflowd[16785]: [I] got semaphore: id 1835016
Nov  3 15:30:58 coba-coba cflowd[16785]: [I] attached to 2101248 byte packet queue at 0x4027e000

Nov  3 15:31:01 coba-coba cfdcollect[16787]: [I] cfdcollect (version cflowd-2-1-b1) started with 1 cflowd instances.
Nov  3 15:31:02 coba-coba cfdcollect[16787]: [I] connected to coba-coba.binus.ac.id:2056

Nov  3 15:31:05 coba-coba cflowd[16788]: [I] sent data to 202.x.y.z:51039

Nov  3 15:31:05 coba-coba cfdcollect[16787]: [I] coba-coba.binus.ac.id has data for 1 router.
Nov  3 15:31:05 coba-coba cfdcollect[16787]: [I] got data for router 202.x.y.z from coba-coba.binus.ac.id
Nov  3 15:31:05 coba-coba cfdcollect[16787]: [I] wrote data for router 202.x.y.z
Nov  3 15:31:05 coba-coba cfdcollect[16787]: [I] sleeping for 296 seconds.

Nov  3 15:36:01 coba-coba cfdcollect[16787]: [I] awakened by alarm.
Nov  3 15:36:02 coba-coba cfdcollect[16787]: [I] connected to coba-coba.binus.ac.id:2056
Nov  3 15:36:05 coba-coba cflowd[16789]: [I] sent data to 202.a.b.c:51040
Nov  3 15:36:05 coba-coba cfdcollect[16787]: [I] coba-coba.binus.ac.id has data for 1 router.
Nov  3 15:36:05 coba-coba cfdcollect[16787]: [I] got data for router 202.x.y.z from coba-coba.binus.ac.id
Nov  3 15:36:05 coba-coba cfdcollect[16787]: [I] wrote data for router 202.x.y.z
Nov  3 15:36:05 coba-coba cfdcollect[16787]: [I] sleeping for 296 seconds.


Now when i started to testing the flowscan... Its log like this :

Nov  3 15:41:01 coba-coba cfdcollect[16787]: [I] awakened by alarm.
Nov  3 15:41:02 coba-coba cfdcollect[16787]: [I] connected to coba-coba.binus.ac.id:2056
Nov  3 15:41:05 coba-coba cflowd[16790]: [I] sent data to 202.a.b.c:51041
Nov  3 15:41:05 coba-coba cfdcollect[16787]: [I] coba-coba.binus.ac.id has data for 1 router.
Nov  3 15:41:05 coba-coba cfdcollect[16787]: [I] got data for router 202.x.y.z from coba-coba.binus.ac.id
Nov  3 15:41:05 coba-coba cfdcollect[16787]: [I] wrote data for router 202.x.y.z
Nov  3 15:41:05 coba-coba cfdcollect[16787]: [I] sleeping for 296 seconds.

And it should be appear like this :
The output should appear as something like this:

       Loading "bin/Napster_subnets.boulder" ...
       Loading "bin/local_nets.boulder" ...
       2000/03/20 17:01:04 working on file flows.20000320_16:57:22...
       2000/03/20 17:07:38 flowscan-1.013 CampusIO: Cflow::find took 394 wallclock secs (350.03 usr +  0.52 sys = 350.55 CPU) for 23610455 flow file bytes, flow hit ratio: 254413/429281
       2000/03/20 17:07:41 flowscan-1.013 CampusIO: report took  3 wallclock secs ( 0.44 usr +  0.04 sys =  0.48 CPU)        sleep 300...

Then what i've got here is :
[bnet@coba-coba flows]$ ./flowscan
Loading "/var/local/flows/bin/local_nets.boulder" ...
sleep 30...
sleep 30...
sleep 30...
sleep 30...
sleep 30...
sleep 30...
sleep 30...
sleep 30...
sleep 30...
sleep 30...
sleep 30...

What happen to this? How can i fix this?

Thanks
0
 
LVL 2

Accepted Solution

by:
asbharadwaj earned 250 total points
ID: 9670567
Same problem here
http://net.doit.wisc.edu/~plonka/list/flowscan/archive/1326.html
seems you have to do some patching
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now