SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  How to get PPPoE Session Connect/Disconnect log?

    Posted 06-19-2012 03:53

    Hello!

    I have SRX100 with JUNOS Software Release [12.1R1.9] (another with JUNOS Software Release [11.4R1.6])

    with PPPoE connection to ISP.

    I want to get some connection log like

    MM:DD:YYYY-time: Session Established 

    MM:DD:YYYY-time: Session Droped 

    or something  like this.

    I'd add traceoptions to config

    root@j100-medved# run show configuration protocols | display set
    set protocols pppoe traceoptions file pppoe_log
    set protocols pppoe traceoptions flag events 


    set interfaces pp0 traceoptions flag all 

     

    but nothing interesting in pppoe_log:

     

    Jun 18 11:36:39 Discovery phase timedout for intf pp0.0
    Jun 18 11:36:41 allocated 1510 bytes at 0x511000
    Jun 18 11:38:55 Discovery phase timedout for intf pp0.0
    Jun 18 11:38:57 allocated 1510 bytes at 0x511000
    Jun 18 11:41:11 Discovery phase timedout for intf pp0.0
    Jun 18 11:41:13 allocated 1510 bytes at 0x511000
    Jun 18 11:43:26 Discovery phase timedout for intf pp0.0
    Jun 18 11:43:28 allocated 1510 bytes at 0x511000
    Jun 18 15:55:26 SIGHUP received
    Jun 18 12:47:21 SIGHUP received
    Jun 19 09:21:59 SIGHUP received 

     

     

    how to get connection log?

    thanks! 



  • 2.  RE: How to get PPPoE Session Connect/Disconnect log?

    Posted 06-19-2012 06:34

    I think below config is enough to get required details:

    set protocols pppoe traceoptions file pppoe_log
    set protocols pppoe traceoptions level all
    set protocols pppoe traceoptions flag all



  • 3.  RE: How to get PPPoE Session Connect/Disconnect log?

    Posted 06-19-2012 23:16

    Still nothing interesting with

    #set protocols pppoe level all

     

    new log:

    Jun 20 09:50:53 === Configuration Reload succeeded ===
    Jun 20 09:53:26 pppoed_uifd_msg_handler fe-0/0/4 ifd 138 op 2 flag 0xc000
    Jun 20 09:53:26 pppoed_change_uifd: uifd fe-0/0/4 enter
    Jun 20 09:53:30 pppoed_uifd_msg_handler fe-0/0/4 ifd 138 op 2 flag 0xc001
    Jun 20 09:53:30 pppoed_change_uifd: uifd fe-0/0/4 enter
    Jun 20 09:53:33 pppoed_uifd_msg_handler fe-0/0/4 ifd 138 op 2 flag 0xc000
    Jun 20 09:53:33 pppoed_change_uifd: uifd fe-0/0/4 enter
    Jun 20 10:04:22 pppoed_uifd_msg_handler fe-0/0/4 ifd 138 op 2 flag 0xc001
    Jun 20 10:04:22 pppoed_change_uifd: uifd fe-0/0/4 enter
    Jun 20 10:07:56 pppoed_uifd_msg_handler fe-0/0/4 ifd 138 op 2 flag 0xc000
    Jun 20 10:07:56 pppoed_change_uifd: uifd fe-0/0/4 enter
    Jun 20 10:08:00 pppoed_uifd_msg_handler fe-0/0/4 ifd 138 op 2 flag 0xc001
    Jun 20 10:08:00 pppoed_change_uifd: uifd fe-0/0/4 enter
    Jun 20 10:08:03 pppoed_uifd_msg_handler fe-0/0/4 ifd 138 op 2 flag 0xc000
    Jun 20 10:08:03 pppoed_change_uifd: uifd fe-0/0/4 enter
     



  • 4.  RE: How to get PPPoE Session Connect/Disconnect log?

    Posted 06-19-2012 23:17

    any ideas?



  • 5.  RE: How to get PPPoE Session Connect/Disconnect log?

    Posted 06-24-2012 22:05

    up please!



  • 6.  RE: How to get PPPoE Session Connect/Disconnect log?

    Posted 06-25-2012 01:57

    For PPPoE disconnect there may be message saying PADT sent (PADT means session terminated).

    For PPPoE connect there will be a session id in the log messages

    Jun 25 01:31:54 pppoed_change_ifl_options: ifname pp0.0
    Jun 25 01:31:54 pppoed_change_ifl_options: pp0.0 session mode client
    Jun 25 01:31:54 pppoed_change_ifl_options: pp0.0 session up, kernsync false
    Jun 25 01:31:54 pppoed_change_ifl_options: pp0.0 session id=1 (current 1)
    Jun 25 01:31:54 pppoed_change_ifl_options: pp0.0 credit scale 0 max 65535
    Jun 25 01:31:54 pppoed_change_ifl_options: pp0.0 credits disabled, interval 0, scale 0
    Jun 25 01:31:54 pppoed_change_ifl_options: pp0.0 credit interval set to 0
    Jun 25 01:31:54 pppoed_change_ifl_options: pp0.0 session id=1

    Above log indicated pppoe session is UP

    for session down:

    Jun 25 01:33:27 Bringing session down for pp0.0
    Jun 25 01:33:27 Sent PADT on pp0.0

    and this is junos way of logging, so we can not keep it generic for each users.
    user should see the pppoe session state rather than logs unless he is debugging some thing and for debugging the existing logging is good enough.



  • 7.  RE: How to get PPPoE Session Connect/Disconnect log?

    Posted 06-25-2012 02:14

    I don't have pppoed log =(



  • 8.  RE: How to get PPPoE Session Connect/Disconnect log?

    Posted 11-18-2023 18:20

    Hi

    I'm struggling with this connection/disconnection every 7min

    Sent PADT on pp0.0

    Do you know how to fix it ?



    ------------------------------
    Best regards
    Marek
    ------------------------------