Automation

last person joined: 4 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  Configlet to log traffic and interfaces state

    Posted 02-12-2016 13:13

    I need help with the creation of a CLI configlet on Junos Space that will send the following commands on my devices:

     

     

    set system syslog file traffic-log any any
    set system syslog file traffic-log match "RT_FLOW_SESSION"

     

    and 

     

    set system syslog file interface-monitor any any
    set system syslog file interface-monitor match "ifOperStatus"

     

     

    Any help would be greatly appreciated.



  • 2.  RE: Configlet to log traffic and interfaces state
    Best Answer

    Posted 02-12-2016 13:34
      |   view attached

    Try importing the attached configlet xml.  

    See if that does what you want.

    Notes:

    - I defined this for EX (that's what I had to test it against).  You may need to change yours to the appropaite Device Series.  

    - There are no variables at all.  It just blows in the configuration.  

    You can apply a lot more logic/finesse...

     

    Capture.JPG

    Attachment(s)



  • 3.  RE: Configlet to log traffic and interfaces state

    Posted 02-15-2016 05:48

    Thanks a lot dmcpherson. I will give it a try. 



  • 4.  RE: Configlet to log traffic and interfaces state

    Posted 02-15-2016 06:59

    Yes, Il works ! Thanks again dmcpherson!