Cisco Server Provisioner 6.6 User's Guide ("Chuck Berry")

Scheduled Jobs

Hide Navigation Pane

Scheduled Jobs

Previous topic Next topic No expanding text in this topic  

Scheduled Jobs

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

When installed, the Provisioner PXE Server initiates the following daily automated maintenance tasks:

Database cleanup (at 12:05 a.m.)

Database backup (at 1:05 a.m.)

Provisioner PXE Server restart (at 3:05 a.m.) during which the Provisioner PXE Server is unavailable for a few seconds

 

The following instructions are intended for users with a working knowledge of cron and crontab settings and syntax:

 

## List cron
# crontab -l
PATH=/usr/bin:/bin:/usr/sbin:/sbin
 
## clean up LBMP postgres database at 5 minutes after midnight daily
5 0 * * * vacuumdb linminbmp -U postgres
 
## check for LBMP postgres database backup at five minutes after 1 AM daily
5 1 * * * /usr/local/linmin/lbmpPostgresBackup.sh 2>&1 > /usr/local/linmin/pgDBbkup/lbmpBkup.log
 
## restart LinMin provisioning services at 5 minutes after 3 AM daily
5 3 * * * /usr/local/linmin/linmin-services.sh restart 2>&1 > /usr/local/linmin/LBMPcronRestart.log
 
## dump cron to a file
# crontab -l > crontab_{uniquetag1}.txt
 
## copy cron dump file
# cp crontab_{uniquetag1}.txt crontab_{uniquetag2}.txt
 
## edit cron dump file and make changes
# nano crontab{uniquetag2}.txt
 
## implement changed cron dump file
# crontab -u root crontab{uniquetag2}.txt
 
## list changed crontab
# crontab -l
PATH=/usr/bin:/bin:/usr/sbin:/sbin

 

Note: retaining the two .txt files provides a record of the changes and an easy means to back out the changes.