Menu

Multiple rcdcap processes using expressions

Josh
2017-09-07
2017-10-18
  • Josh

    Josh - 2017-09-07

    Using rcdcap 0.8.1. Main goal is to have two different tap devices so I can write two different tcpdump files based off the erspan source host.

    I am trying to run two instances of rcdcap with the following commands:
    rcdcap -d -i eth1 --erspan --tap-persist --tap-device mon1 --snaplen 65535 --expression host 1.1.1.1
    rcdcap -d -i eth1 --erspan --tap-persist --tap-device mon2 --snaplen 65535 --expression host 2.2.2.2

    When I try to execute the second command, I receive:

    rcdcap: option '--expression' cannot be specified more than once

    Now, if I run the commands this way:
    rcdcap -d -i eth1 --erspan --tap-persist --tap-device mon1 --snaplen 65535 --expression host 1.1.1.1
    rcdcap -d -i eth1 --erspan --tap-persist --tap-device mon2 --snaplen 65535

    It works. I don’t receive an error. Any idea why we receive an error when trying to run two instances using expressions?

     
  • Josh

    Josh - 2017-09-25

    Any ideas?

     
  • Zero effect

    Zero effect - 2017-09-25

    What version of Boost do you use?

     
  • Josh

    Josh - 2017-09-29

    1.53.0

     
  • Josh

    Josh - 2017-10-04

    Is a different version required?

     
  • Zero effect

    Zero effect - 2017-10-11

    Try this instead:
    rcdcap -d -i eth1 --erspan --tap-persist --tap-device mon1 --snaplen 65535 host 1.1.1.1
    rcdcap -d -i eth1 --erspan --tap-persist --tap-device mon2 --snaplen 65535 host 2.2.2.2

     
  • Josh

    Josh - 2017-10-12

    That worked. Both commands were accepted without errors. I am going to test it to make sure I can accomplish what I am trying to do. Also, to anyone that uses @[Zero efffect] recommendation; make sure to put quotes around "host x.x.x.x" and/or "host y.y.y.y".

    rcdcap -d -i eth1 --erspan --tap-persist --tap-device mon1 --snaplen 65535 "host 1.1.1.1"
    rcdcap -d -i eth1 --erspan --tap-persist --tap-device mon2 --snaplen 65535 "host 2.2.2.2"

    Thank you Zero effect for giving me the proper syntax. I will update this thread once I finalize that I can write to two different tcpdump files.

     
  • Josh

    Josh - 2017-10-18

    I was able to write to multiple files. Thanks again for your help Zero.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.