SRX Services Gateway
Highlighted
SRX Services Gateway

Command to restart all services to avoid reboot

‎12-26-2019 09:24 AM
Hi,
Is their any single command or way to restart control and data plain service instead of rebooting(soft/hard) the appliance.
7 REPLIES 7
Highlighted
SRX Services Gateway

Re: Command to restart all services to avoid reboot

[ Edited ]
‎12-26-2019 09:33 AM

Target,

 

The command that comes to my mind is commit full:

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB15410&cat=MX_SERIES&actp=LIST

http://www.networkcommands.net/

 

This command restarts/synchronizes all daemons and it is a hidden command, meaning you have to type the whole command in CLI, it wont autocomplete with the Tab key.

 

Be careful when using it, specially if you have VPN tunnels, because it will make the tunnels be renegotiated.

 

Pura Vida from Costa Rica - Mark as Resolved if it applies.
Kudos are appreciated too!
Highlighted
SRX Services Gateway

Re: Command to restart all services to avoid reboot

‎12-27-2019 04:05 PM

Hello Target,

 

I don't think any such command is designed in JunOS. As mentioned above, "commit full" re-pushes all the configuration again to the forwarding-plane . But it does NOT touch the processes which are not configured.

Thanks!

Highlighted
SRX Services Gateway

Re: Command to restart all services to avoid reboot

‎12-29-2019 10:08 PM

Hello,

 

There are several processes running on the control plane and so to on the PFE. Which one do you wish to restart?

 

On the RE to restart chassisd you can:

restart chassis-control

 

On the PFE one of the main PFE packet processing functions is the flow daemon (flowd)

You can vty to the SPU and kill the flow process causing it to restart and also to restart other flow daemons.

 

I would need to add that these are gerneally not recommended unless done under the supervision/directions of JTAC.

 

Regards,

 

Vikas

Highlighted
SRX Services Gateway

Re: Command to restart all services to avoid reboot

‎12-31-2019 04:19 PM

you can do restart forwarding to restart the forwarding plane / data plane

Highlighted
SRX Services Gateway

Re: Command to restart all services to avoid reboot

‎12-31-2019 04:20 PM

There is no single command to restart both control and data plane in one shot without reboot

Highlighted
SRX Services Gateway

Re: Command to restart all services to avoid reboot

‎12-31-2019 04:21 PM

Here is a kb article describing on how to restart a specific / problematic process though ( just to avoid restarting the whole system)

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB10956&cat=JUNOS&actp=LIST

Highlighted
SRX Services Gateway

Re: Command to restart all services to avoid reboot

‎12-31-2019 04:22 PM

Here is another list of processes that could be restarted manually, as reference

https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/restart-s...