Modifying Cronjobs
The “crontab” file contains jobs (cronjobs) that have to be executed on a regular, time based schedule. FOXMAN‑UN creates two such jobs at installation time:
• “logcycle” rotates the alarm and event log files every day at 23:55.
• “nettimesynch” synchronizes the time and date of all NEs in the network every day at 03:01.
FOXMAN‑UN cronjobs can be edited by a NEM administrator with the command
crontab -e
This opens an editor showing the FOXMAN‑UN cronjobs:
55 23 * * * /opt/nem/bin/private/logcycle
01 03 * * * /bin/sh -c "/opt/nem/bin/private/nettimesynch > /dev/null 2>&1"
An existing cronjob can be stopped by simply turning it into a comment. Add a # in front of the command line as shown for the time synchronization in the screenshot below:
55 23 * * * /opt/nem/bin/private/logcycle
#01 03 * * * /bin/sh -c "/opt/nem/bin/private/nettimesynch > /dev/null 2>&1"
The job can be reactivated by removing the # in front of it.
The existing FOXMAN‑UN cronjobs can be listed by a NEM administrator with the command
crontab -l