Skip to content

Other scripts

Repository usage

Scripts are now deprecated

Please note with anta cli availability, scripts described on this page are now deprecated and will be removed in later release of this project.

Once you are done with the installation, you can use the the scripts or the ANTA package.

How to use the scripts

How to create an inventory from CVP

The python script create-devices-inventory-from-cvp.py create an inventory text file using CVP.

Run these commands to get an inventory with all devices IP address.

./create-devices-inventory-from-cvp.py --help
./create-devices-inventory-from-cvp.py -cvp 192.168.0.5 -u arista -o inventory
cat inventory/all.yml

Run these commands to get an inventory with the IP address of the devices under the container Spine

./create-devices-inventory-from-cvp.py --help
./create-devices-inventory-from-cvp.py -cvp 192.168.0.5 -u arista -o inventory -c Spine
cat inventory/Spine.yml
How to check devices state

Info

Please visit this dedicated section for check-devices.py script

How to collect commands output

Info

Please visit this dedicated section for how to use inventory file.

The python script collect-eos-commands.py runs show commands on devices and collects the output:

vi inventory.yml
vi eos-commands.yaml
./collect-eos-commands.py --help
./collect-eos-commands.py -i inventory.yml -c eos-commands.yaml -o outdir -u username -p password
ls outdir
How to collect the scheduled show tech-support files

Info

Please visit this dedicated section for how to use inventory file.

The python script collect-sheduled-show-tech.py collects the scheduled show tech-support files:

vi inventory.yml
./collect-sheduled-show-tech.py --help
./collect-sheduled-show-tech.py -i inventory.yml -u username -o outdir
ls outdir
How to clear counters

The python script clear-counters.py clears counters:

Info

Please visit this dedicated section for how to use inventory file.

vi inventory.yml
./clear-counters.py --help
./clear-counters.py -i inventory.yml -u username
How to clear the MAC addresses which are blacklisted in EVPN

The python script evpn-blacklist-recovery.py clears the MAC addresses which are blacklisted in EVPN:

Info

Please visit this dedicated section for how to use inventory file.

vi inventory.yml
./evpn-blacklist-recovery.py --help
./evpn-blacklist-recovery.py -i inventory.yml -u username

Last update: February 15, 2023