Subversion Repositories sysadmin_scripts

Rev

Rev 128 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# /etc/cron.d/mapswitches: crontab to map network switches

SCRIPTPATH=/path/to/script
HTMLPATH=/path/to/document/root

# run once an hour at some odd time
9 *     * * *     root   perl $SCRIPTPATH/mapSwitches
# run once daily to turn the YAML into a CSV for someone to read
12 12   * * *     root   perl $SCRIPTPATH/mapSwitchesCSV.pl > $HTMLPATH/mapswitches.tsv
# run once a day to turn the YAML into an HTML page
13 12   * * *     root   perl $SCRIPTPATH/csv2html -c mapSwitches.css -t MapSwitches --h2 "Created <a href='mapswitches.tsv'>mapswitches.tsv</a><br />`date`" $HTMLPATH/mapswitches.tsv >  $HTMLPATH/mapswitches.html