Junos OS

last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  Interface Up/Down logging

     
    Posted 09-30-2010 16:02

    Hey,

     

    I'm new to JunOS and trying to see how i can see, or configure logs for intrface status changes.  I'd like the logs to just be local to the device at the moment (not sent to a syslog server or SNMP trap)

     

    So whats the best way to do that type of logging to the console?



  • 2.  RE: Interface Up/Down logging

    Posted 09-30-2010 19:42

    I would first set updown messages to go to a specific file on the box like this:

     

    [edit system syslog]

    file interface-logs {
        any any;
        match UpDown;
    }

    Then if you want to see them on the console, you could type "monitor start interface-logs" to start seeing the messages in that file as they occur on the console.  The command "monitor stop interface-logs" would turn off the console logging for that file.  I think that would take care of it.

     

    Ron



  • 3.  RE: Interface Up/Down logging
    Best Answer

    Posted 11-09-2010 09:43

    I'd propose to use

     

    match "<UpDown>"

     

    This will strip off some unnecessary stuff.



  • 4.  RE: Interface Up/Down logging

     
    Posted 12-01-2010 16:17

    Thanks guys.

     

    After some mucking around i found matching on ifOperStatus gives the best resutls.