This article details multiple ways to restart the Bidirectional Forwarding Detection process (BFDD) without rebooting the Routing Engine.
There are three ways to restart BFDD:
By terminating the process from CLI
Get the process ID:
re0> show system processes extensive | match bfdd 27019 root 20 0 722M 11688K select 0 0:05 0.00% bfdd <<<< 27019 is the bfd process ID.
Terminate the process by using the command request system process terminate <bfd process ID> .
request system process terminate <bfd process ID>
re0> request system process terminate 27019
Check whether the BFD process ID has changed:
re0> show system processes extensive | match bfdd 58564 root 20 0 722M 14192K select 2 0:00 0.00% bfdd <<<< the process ID changed from 27019 to 58564, which means the process restarted
By using the hidden CLI command restart bfdd (you need to type the full command):
restart bfdd
re0> restart bfdd Bidirectional Forwarding Detection process started, pid 58586
There are also different options to restart the process (default one is gracefully). re0> restart bfdd ? Possible completions: <[Enter]> Execute this command gracefully Gracefully restart the process immediately Immediately restart (SIGKILL) the process soft Soft reset (SIGHUP) the process | Pipe through a command
There are also different options to restart the process (default one is gracefully).
re0> restart bfdd ? Possible completions: <[Enter]> Execute this command gracefully Gracefully restart the process immediately Immediately restart (SIGKILL) the process soft Soft reset (SIGHUP) the process | Pipe through a command
By restarting the process from shell using root access:
Get the BFD process ID from either the CLI or shell.
From CLI: request system process extensive | match bfdd re0> show system processes extensive | match bfdd 58649 root 20 0 722M 14332K select 0 0:00 0.00% bfdd <<< BFD process ID is 58649
From CLI: request system process extensive | match bfdd
request system process extensive | match bfdd
re0> show system processes extensive | match bfdd 58649 root 20 0 722M 14332K select 0 0:00 0.00% bfdd <<< BFD process ID is 58649
From shell with root access: ps aux | grep bfdd re0> start shell user root Password: root@re0:/var/home/labroot # ps aux | grep bfdd root 58649 0.0 0.0 738980 14332 - S 12:29 0:00.03 /usr/sbin/bfdd -N << You can also get the BFD process ID 58649 here. root 58679 0.0 0.0 16604 2272 0 S+ 12:32 0:00.00 grep bfdd
From shell with root access: ps aux | grep bfdd
ps aux | grep bfdd
re0> start shell user root Password: root@re0:/var/home/labroot # ps aux | grep bfdd root 58649 0.0 0.0 738980 14332 - S 12:29 0:00.03 /usr/sbin/bfdd -N << You can also get the BFD process ID 58649 here. root 58679 0.0 0.0 16604 2272 0 S+ 12:32 0:00.00 grep bfdd
Restart the process by using " kill -9 <process ID> " from shell with root access.
kill -9 <process ID>
root@re0:/var/home/labroot # kill -9 58649
Check whether the process ID has changed.
root@re0:/var/home/labroot # ps aux | grep bfdd root 58691 0.0 0.0 738980 13568 - S 12:36 0:00.03 /usr/sbin/bfdd -N <<< BFD process ID changed to 58691 root 58693 0.0 0.0 16604 2272 0 S+ 12:36 0:00.00 grep bfdd
Alternatively, you can verify the process ID from CLI. re0> show system processes extensive | match bfd 58691 root 20 0 722M 14332K select 3 0:00 0.00% bfdd
Alternatively, you can verify the process ID from CLI.
re0> show system processes extensive | match bfd 58691 root 20 0 722M 14332K select 3 0:00 0.00% bfdd