Rev 128 |
Go to most recent revision |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
2 |
rodolico |
1 |
# /etc/cron.d/mapswitches: crontab to map network switches
|
|
|
2 |
|
134 |
rodolico |
3 |
SCRIPTPATH=/path/to/script
|
|
|
4 |
HTMLPATH=/path/to/document/root
|
|
|
5 |
|
2 |
rodolico |
6 |
# run once an hour at some odd time
|
134 |
rodolico |
7 |
9 * * * * root perl $SCRIPTPATH/mapSwitches
|
5 |
rodolico |
8 |
# run once daily to turn the YAML into a CSV for someone to read
|
134 |
rodolico |
9 |
12 12 * * * root perl $SCRIPTPATH/mapSwitchesCSV.pl > $HTMLPATH/mapswitches.tsv
|
128 |
rodolico |
10 |
# run once a day to turn the YAML into an HTML page
|
134 |
rodolico |
11 |
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
|