[j-nsp] How to restart a JUNOS process using Shell and CRONTAB

GIULIANO (WZTECH) giuliano at wztech.com.br
Sun Aug 12 11:03:10 EDT 2012


Looks like is better to use event-options:

set event-options generate-event TestEvent time-of-day "09:05:00 -0300"
set event-options policy Policy1 events TestEvent
set event-options policy Policy1 then execute-commands commands "run 
restart firewall"
set event-options policy Policy1 then execute-commands output-filename test1
set event-options policy Policy1 then execute-commands destination 
local-directory
set event-options destinations local-directory archive-sites /var/tmp/



> Hi everyone,
>
> Does anyone know how to restart a JUNOS process using Shell and CRONTAB ?
>
> Do we need to create some kind of shell script to do that ?
>
> This seems not to be working for me:
>
> ps -ax | grep dfwd
>  1146  ??  I      0:00.27 /usr/sbin/dfwd -N
> kill -s HUP 1146
>
> Does anyone uses the CRONTAB for that ?
>
> Thanks a lot,
>
> Giuliano



More information about the juniper-nsp mailing list