# Monitoring BFD

This section lists the system event logs associated with the BFD protocol and describes the show commands you can use to view BFD-related information.

## System Event Logs

To troubleshoot and monitor BFD, use the following system event logs:

- bfdGeneral
- bfdSession
- bfdEvents
- bgpConnections
- isisBfdEvents
- ospfEvents
- ospfv3General
- ripBfdLog

For more information about using event logs, see the JunosE System Event Logging Reference Guide.

## Viewing BFD Information

You can monitor the following aspects of BFD by using the following show commands:

To Display | Command
--- | ---
BFD session information | show bfd session
BFD license key information | show license bfd

You can use the output filtering feature of the show command to include or exclude lines of output based on a text string that you specify. See Command Line Interface in JunosE System Basics Configuration Guide, for details.

show license bfd

- Use to display the bfd license key configured on the router.
- Example

      host1#show license bfd
      BFD license is bfd_license

- See show license.

show bfd session

- Use to display BFD protocol session information.
- Use the address keyword to specify an IPv4 or IPv6 session that you want to view.
- Use the detail keyword to view more detailed information about the BFD session.
- Field descriptions
  - Address—IP address of the remote interface with which the session is established. In unnumbered cases, the remote interface provides its reference IP address.
  - State—State of the BFD session, Up, Down, or AdminDown
  - Interface—Interface on which the BFD session has been established
  - Detect/Detection Time—Time (in seconds) taken to declare the remote interface down when no packets are received from that interface
  - Local discriminator—Value used to identify the session at the local end
  - Remote discriminator—Value used to identify the session at the remote end
  - Session up time—Amount of time the session has been operational since the last session down event in days:hours:minutes:seconds format.
  - Up/Down count—Number of times up/down transitions have occurred on the session
  - Adaptivity—Number of times this session has adapted its intervals, or that additional adaptivity is disabled for this BFD session on the router
  - Local
    - min tx interval—Minimum transmit interval (in seconds) configured on the session at the local end
    - min rx interval—Minimum receive interval (in seconds) configured on the session at the local end
    - multiplier—Multiplier configured on the session at the local end
  - (Adapted)
    - min tx interval—Minimum transmit interval (in seconds) to which the session is adapted at the local end
    - min rx interval—Minimum receive interval (in seconds) to which the session is adapted at the local end
    - multiplier—Multiplier to which the session is adapted at the local end
  - Remote
    - min tx interval—Minimum transmit interval (in seconds) configured on the session at the remote end
    - min rx interval—Minimum receive interval (in seconds) configured on the session at the remote end
    - multiplier—Multiplier configured on the session at the remote end
  - Up/Down count—Number of up/down transitions that have occurred on the session
  - Local diagnostic—Reason at the local end for the last session down event
  - Remote diagnostic—Reason at the remote end for the last session down event
  - Remote heard/Remote not heard—Whether the local end is receiving packets from the remote end
  - hears us/doesn't hear us—Whether the remote end is receiving packets from the local end
  - Min async interval—Minimum interval (in seconds) between packets sent when in asynchronous mode
  - min slow interval—Minimum interval (in seconds) between packets when the remote end is first being detected
  - Echo mode—State of echo mode (enabled or disabled; active or inactive)
  - Client—Name of the client
    - desired tx—Minimum transmit interval (in seconds) requested by the client
    - required rx—Minimum required receive interval (in seconds) specified by the client
    - multiplier—Multiplier requested by the client
    - TX FC-assisted?—Whether component in forwarding controller is acting to speed transmission times, yes or no; forwarding controller assist available only for ES2 4G LM
    - Detection FC-assisted?—Whether component in forwarding controller is acting to speed fast failure detection times, yes or no; forwarding controller assist available only for ES2 4G LM
- Example 1

      host1#show bfd session
      Address            State     Interface        Detect    Interval   Mx
                                                     Time
      -------------------------------------------------------------------------
      172.16.1.2          Up        FastEthernet1/4   0.900     0.300     3
      172.16.1.1          Up        FastEthernet1/5   0.900     0.300     3
      172.16.1.3      AdminDown     FastEthernet1/2   0.900     0.300     3

- Example 2—IPv4 version

      host1#show bfd session detail
      Address: 172.16.1.2
        State UP on Interface FastEthernet1/4
        Detection Time0.900, version v0
        Local discriminator 3, Remote discriminator 1
        Session up time 00:00:01:04, Up/Down count 1, Adapted 3 times
        Local: min tx interval 0.3, min rx interval 0.3, multiplier 1
        (Adapted) min tx interval 0.6, min rx interval 0, multiplier 3
        Remote: min tx interval 0.3, min rx interval 0.3, multiplier 3
        Local diagnostic: None, Remote diagnostic: None
        Remote heard, hears us
        Min async interval 0.3, min slow interval 0.3
        Echo mode disabled/inactive
      2 Clients:
        Client OSPFv2, desired tx: 0.3, required rx: 0.3, multiplier 3
        Client ISIS, desired tx: 0.3, required rx: 0.3, multiplier 3
        TX FC-assisted? Yes, Detection FC-assisted? Yes

- Example 3—IPv6 version

      host1#show bfd session detail
      Address fe80:1234::abcd
        State UP on Interface FastEthernet1/3
        Detection Time0.900, version v1
        Local discriminator 3, Remote discriminator 1
        Session up time 00:00:01:04, Up/Down count 1, Adaptivity disabled
        Local: min tx interval 0.3, min rx interval 0.3, multiplier 3
        (Adapted) min tx interval 0, min rx interval 0, multiplier 4
        Remote: min tx interval 0.3, min rx interval 0.3, multiplier 3
        Local diagnostic: None, Remote diagnostic: None
        Remote heard, hears us
        Min async interval 0.3, min slow interval 0.3
        Echo mode disabled/inactive
      1 Client:
        Client OSPFv3, desired tx: 0.3, required rx: 0.3, multiplier 3

- See show bfd session.