/
Run network_snapshot periodically

Run network_snapshot periodically

In order to understand network performance and diagnose problems, it’s useful to be able to provide the support team with information about the network connectivity and the changes over time.

Using the cron utility built into every Linux distribution, we can create an automatic task to run the network_snapshot script and clean up old snapshot files.

As the dust user, create a bash script with the following contents.

bin/periodic_snapshot.sh:

#!/bin/bash # periodically create a snapshot in the snapshots directory cd snapshots # remove old snapshot files find . -name "Snapshot*.tar.gz" -mtime +14 -exec rm {} \; # create the snapshot /opt/dust-voyager/bin/network_snapshot -u dust -p dust

Make sure the periodic_snapshot.sh file is executable.

Create the snapshots directory.

As the dust user, create a cron job by running crontab -e and entering a line to run the periodic_snapshot script periodically:

@hourly /home/dust/bin/periodic_snapshot.sh

 

Related content

network_snapshot
network_snapshot
More like this
Lab 29. DustLink
Lab 29. DustLink
More like this
Lab 10. Performance estimator
Lab 10. Performance estimator
More like this
Test Downstream Data
Test Downstream Data
More like this
NetworkHealth
NetworkHealth
More like this
VManager CLI tools
VManager CLI tools
More like this