This article provides information about the different CLI knobs that can be used to restart the chassis-control.
Junos OS provides different knobs to restart the chassis-control, depending on the requirement. This article provides information on the behavior of each of these knobs.
The behavior of the command restart chassis-control varies, depending on whether graceful switchover is enabled or disabled.
restart chassis-control
restart chassis-control : SIGTERM
restart chassis-control :
The existing chassis-control process is stopped and a new one is started. SIGTERM is the polite way to kill a process; the process can catch the signal, realize that you want it to shut down, close any log files it may have open, and generally finish whatever it is doing at the time before shutting down.
In some cases a process may even ignore SIGTERM, if it is in the middle of some task that cannot be interrupted. PFE(FPC/FEB/CFEB/DPC/MPC) will not be rebooted. m20-a-re0> restart chassis-control Chassis control process started, pid 57669
PFE(FPC/FEB/CFEB/DPC/MPC)
m20-a-re0> restart chassis-control Chassis control process started, pid 57669
restart chassis-control gracefully
The existing chassis-control process is stopped and a new one is started. SIGTERM is a polite way to kill a process; the process can catch the signal, realize that you want it to shut down, close any log files it may have open, and generally finish whatever it is doing at the time before shutting down.
In some cases a process may even ignore SIGTERM, if it is in the middle of some task that cannot be interrupted. PFE(FPC/FEB/CFEB/DPC/MPC) will not be rebooted. m20-a-re0> restart chassis-control gracefully Chassis control process started, pid 58117
m20-a-re0> restart chassis-control gracefully Chassis control process started, pid 58117
restart chassis-control immediately
The existing chassis-control process is stopped and a new one is started. SIGKILL can not be ignored by a process.
If you send SIGKILL to a process, FreeBSD will stop that process immediately. PFE(FPC/FEB/CFEB/DPC/MPC) will not be rebooted. m20-a-re0> restart chassis-control immediately m20-a-re0>
m20-a-re0> restart chassis-control immediately m20-a-re0>
restart chassis-control soft
The existing chassis-control process is not stopped. Chassisd will just read the config file and update the configurations. PFE(FPC/FEB/CFEB/DPC/MPC) will not be rebooted. m20-a-re0> restart chassis-control soft m20-a-re0>
m20-a-re0> restart chassis-control soft m20-a-re0>
restart chassisd
Existing chassis-control process is stopped and a new one is started. PFE(FPC/FEB/CFEB/DPC/MPC) will be rebooted as well. m20-a-re0> restart chassisd chassisd hard restart initiated
m20-a-re0> restart chassisd chassisd hard restart initiated
In some cases a process may even ignore SIGTERM, if it is in the middle of some task that cannot be interrupted. PFE(FPC/FEB/CFEB/DPC/MPC) will be rebooted as well. m320-re0> restart chassis-control Chassis control process started, pid 13147
m320-re0> restart chassis-control Chassis control process started, pid 13147
In some cases a process may even ignore SIGTERM, if it is in the middle of some task that cannot be interrupted. PFE(FPC/FEB/CFEB/DPC/MPC) will be rebooted. m320-re0> restart chassis-control gracefully Chassis control process started, pid 13226
m320-re0> restart chassis-control gracefully Chassis control process started, pid 13226
The existing chassis-control process is stopped and a new one is started. SIGKILL cannot be ignored by a process.
If you send SIGKILL to a process, FreeBSD will stop that process immediately. PFE(FPC/FEB/CFEB/DPC/MPC) will not be rebooted. m320-re0> restart chassis-control immediately m320-re0> Message from syslogd@m320-re0 at Nov 5 09:53:22 ... m320-re0 fpc0 CMLC: Going disconnected; Routing engine chassis socket closed abruptly Message from syslogd@m320-re0 at Nov 5 09:53:26 ... m320-re0 fpc6 CMLC: Going disconnected; Routing engine chassis socket closed abruptly
m320-re0> restart chassis-control immediately m320-re0> Message from syslogd@m320-re0 at Nov 5 09:53:22 ... m320-re0 fpc0 CMLC: Going disconnected; Routing engine chassis socket closed abruptly Message from syslogd@m320-re0 at Nov 5 09:53:26 ... m320-re0 fpc6 CMLC: Going disconnected; Routing engine chassis socket closed abruptly
The existing chassis-control process is not stopped. Chassisd will just read the config file and update the configurations. PFE(FPC/FEB/CFEB/DPC/MPC) will not be rebooted. m320-re0> restart chassis-control soft m320-re0>
m320-re0> restart chassis-control soft m320-re0>
The existing chassis-control process is stopped and a new one is started. PFE(FPC/FEB/CFEB/DPC/MPC) will be rebooted as well. m320-re0> restart chassisd chassisd hard restart initiated. m320-re0>
m320-re0> restart chassisd chassisd hard restart initiated. m320-re0>
When Graceful Switchover is enabled:
When Graceful Switchover is not enabled:
With or without Graceful Switchover, these switches have the same behavior: