Background Tasks
CloudVision provides command-line tools that can be executed from the linux shell or scheduled as cronjobs either on a CVP node or on an external server, for the following tasks:
- Compliance checks
- Snapshots
- Backups
The tools are available by default on the CVP nodes in the /cvpi/tools/ directory. The tools can be used on an external linux server by downloading the cvp-tools-<version> .tgz from https://www.arista.com to the external linux server.
cvpi/tools/compliance.py –h
cvpi/tools/backup.py –h
Related topics:
Scheduling and Viewing Cronjobs
To schedule cronjobs to perform periodic compliance checks or snapshots, insert commands into the crontab using the following command:
crontab -e
Example
0 * * * * /cvpi/tools/compliance.py --user me --password pwd --containers tenant
0 2 * * * /cvpi/tools/backup.py --limit 5
crontab –l
tail –f /var/log/cron
Related topics: