Management
Management

Interface logs up/down ,the log from juniper router show only the changes from up to down .

‎11-05-2017 07:40 AM

Hi,

In the juniper log I can see only when the interface goes down and not when he come back to up.

Example:

Oct 21 19:51:57  XXXXX mib2d[1483]: SNMP_TRAP_LINK_DOWN: ifIndex 519, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/7

Oct 21 22:39:55  XXXXX mib2d[1483]: SNMP_TRAP_LINK_DOWN: ifIndex 519, ifAdminStatus up(1), ifOperStatus down(2), ifName ge-0/0/7

Please advise what I need configure   to I can see in the juniper  log when the interface change is status from down to up also.

Thanks!!!

1 ACCEPTED SOLUTION

Accepted Solutions
Management
Solution
Accepted by topic author hanan
‎11-06-2017 06:42 AM

Re: Interface logs up/down ,the log from juniper router show only the changes from up to down .

‎11-05-2017 07:56 AM
Junos OS logs the protocol UP and DOWN events with different severity levels.
Both the SNMP_TRAP_LINK_DOWN and SNMP_TRAP_LINK_UP events have a facility of 'daemon', but the SNMP_TRAP_LINK_DOWN event has a severity level of 'warning', and the SNMP_TRAP_LINK_UP event has a severity level of 'info'.
Normally, when you configure a system log file, you must filter events to that file using the lower severity level of 'info' in order to log both of the events.

Hence, you use "set system syslog file messages any any" or "set system syslog file messages any info" to filter both events.

KB FYR - https://www.juniper.net/documentation/en_US/junos12.1/topics/topic-map/junos-script-automation-event...


*************************************
HTH.
Accept this as solution if it resolved your issue.
Kudos would be appreciated too.
3 REPLIES 3
Management
Solution
Accepted by topic author hanan
‎11-06-2017 06:42 AM

Re: Interface logs up/down ,the log from juniper router show only the changes from up to down .

‎11-05-2017 07:56 AM
Junos OS logs the protocol UP and DOWN events with different severity levels.
Both the SNMP_TRAP_LINK_DOWN and SNMP_TRAP_LINK_UP events have a facility of 'daemon', but the SNMP_TRAP_LINK_DOWN event has a severity level of 'warning', and the SNMP_TRAP_LINK_UP event has a severity level of 'info'.
Normally, when you configure a system log file, you must filter events to that file using the lower severity level of 'info' in order to log both of the events.

Hence, you use "set system syslog file messages any any" or "set system syslog file messages any info" to filter both events.

KB FYR - https://www.juniper.net/documentation/en_US/junos12.1/topics/topic-map/junos-script-automation-event...


*************************************
HTH.
Accept this as solution if it resolved your issue.
Kudos would be appreciated too.
Management

Re: Interface logs up/down ,the log from juniper router show only the changes from up to down .

‎09-20-2018 08:42 PM

will it work for routing protocols also, suppose my ospf neighbourship goes down comes into my log messages, but when neigbourship comes up it deosnt show me in log messages. will below script work for routing protocols also.

Management

Re: Interface logs up/down ,the log from juniper router show only the changes from up to down .

‎09-21-2018 04:49 AM

The linked event script is specifically matching on the snmp link up/down messages only.

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home