Routing

 View Only
last person joined: yesterday 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  capture files

    Posted 02-03-2011 07:00

    Hi all am trying to run a packet capture using 

     

    edit forwarding-options

    set packet-capture maximum-capture-size 500

    set packet-capture file filename test1

    set packet-capture file files 100

    set packet-capture file size 1024

    set packet-capture file world-readable

     

    set interface ge-0/0/0.0 family inet sampling input output

     

    however this does not appear to save a pcap file anywhere - logged into root and cannot find any pcap files however if I do a tcpdump I can see the pcap file however want to be able to do this from command line


    running JUNOS Software Release [8.4R2.3]

     

    tcpdump -w test.pcap -i ge-0/0/1 works



  • 2.  RE: capture files

    Posted 02-03-2011 23:02

    Look in /var/tmp/



  • 3.  RE: capture files

    Posted 02-04-2011 01:19

    Hi thanks checked and there is no var tmp as its j-series it is not in /cf/var/tmp either - is it possible to determine the place the file is deposited - I try'd but it would not take it

     

    Manager@xxxxx# set packet-capture file filename /cf/var/tmp/test1 files ?
    Possible completions:
      <files>              Maximum number of files (2..10000)
    [edit forwarding-options]
    Manager@xxxxx# ...p/test1 files 10 size 1k world-readable                   
    error: filename: '/cf/var/tmp/test1': Must not contain '/', '%', '.' or a space
    error: syntax error, expecting [Enter]: files

     



  • 4.  RE: capture files

    Posted 02-04-2011 03:54

    please be aware this is for a J-series router



  • 5.  RE: capture files
    Best Answer

    Posted 02-04-2011 18:06

    Drop into the shell and type "find / -name test1"

     

    I'm not aware of any restrictions on the J series off the top of my head.