display bfd statistics session { all | static } [ for-ip | for-ipv6 ]
display bfd statistics session { dynamic | discriminator local-discr-value | peer-ip { default-ip | peer-ip [ vpn-instance vpn-instance-name ] } | static-auto }
display bfd statistics session peer-ipv6 peer-ipv6 [ vpn-instance vpn-instance-name ]
| Parameter | Description | Value |
|---|---|---|
| all | Displays the statistics of all BFD sessions. | - |
| static | Displays the statistics of the static BFD session. | - |
| for-ip | Displays the statistics of a BFD session that monitors an IPv4 link. | - |
| for-ipv6 | Displays the statistics of a BFD6 session that monitors an IPv6 link. | - |
| discriminator local-discr-value | Displays the statistics of the BFD session with a local discriminator. | It is an integer ranging from 1 to 16383. |
| dynamic | Displays the statistics of the dynamic BFD session. | - |
| peer-ip peer-ip | Displays the statistics of the BFD session bound to a specified IP address. | It is in dotted decimal notation. |
| default-ip | Display statistics about a BFD session with a default multicast address. | - |
| vpn-instance vpn-instance-name | Displays the statistics of the BFD session bound with a specified VPN instance. | It must be the name of the existing VPN instance configured with the RD. |
| static-auto | Displays the statistics of the static BFD session with automatically negotiated discriminators. | - |
| peer-ipv6 peer-ipv6 | Displays statistics about a BFD6 session bound to a specified peer IPv6 address. | - |
Usage Scenario
To view statistics about BFD sessions, you can run the display bfd statistics session command.
Precautions
If static BFD with automatically negotiated discriminators and dynamic BFD share a session, you can specify all, static-auto, or dynamic for query.
Running the reset bfd statistics command to clear statistics about received and sent BFD packets is recommended before collecting statistics about BFD sessions by running the display bfd statistics session command.
# View statistics of the BFD session.
<sysname> display bfd statistics session all -------------------------------------------------------------------------------- Session MIndex : 16384 (One Hop) State : Up Name : test -------------------------------------------------------------------------------- Session Type : Static Bind Type : IP Local/Remote Discriminator : 1/2 Received Packets : 240059 Send Packets : 240059 Received Bad Packets : 0 Send Bad Packets : 0 Down Count : 0 ShortBreak Count : 0 Send Lsp Ping Count : 0 Dynamic Session Delete Count : 0 Create Time : 2014-11-28 09:52:06+08:00 Last Down Time : - Total Time From Last DOWN : ---D:--H:--M:--S Last Up Time : 2014-11-28 09:52:11+08:00 Last Up Lasting Time : 000D:04H:45M:30S Total Time From Create : 000D:00H:44M:15S -------------------------------------------------------------------------------- Total Session Number : 1
Item |
Description |
|---|---|
Session MIndex |
Index of a BFD session entry |
State |
Current status of the BFD session |
Name |
Name of the BFD session |
Session Type |
Type of the BFD session:
|
Bind Type |
Binding type of a BFD session |
Local/Remote Discriminator |
Local and remote discriminators |
Received Packets |
Number of BFD control packets received on the local end Run the reset bfd statistics command to clear the output of this field. |
Send Packets |
Number of BFD control packets sent by the local end Run the reset bfd statistics command to clear the output of this field. |
Received Bad Packets |
Number of the received error packets |
Send Bad Packets |
Number of packets sent unsuccessfully |
Down Count |
Number of times of the BFD session that turns to Down |
ShortBreak Count |
Number of times of the BFD session that short breaks |
Send Lsp Ping Count |
Number of sent LSP ping packets |
Dynamic Session Delete Count |
Number of deleted dynamic BFD sessions |
Create Time |
Time when the BFD session is created |
Last Down Time |
Time of the last Down BFD session |
Total Time From Last DOWN Down Status Lasting Time |
Time period from the last Up BFD session to the current time If a BFD session is Down, "Down Status Lasting Time" is displayed, indicating the time elapsed since the last BFD session went Down. |
Last Up Time |
Time when the BFD session went Up last time |
Last Up Lasting Time |
Period during which the BFD session has been Up |
Total Time From Create |
Time period from the time the BFD session is created to the current time |
Total Session Number |
Total number of BFD sessions |