Kategorie-Archiv: Scripts

Find unused elements in Juniper configurations

The following lines, help to find unused elements, like communities, as-path, prefixlists or policy-statements, in Juniper JunOS Configurations.

At first you need to save the configuration to your local computer.

Run the following commands on your linux box:

Save the following script as unused.sh :

Make the script executable and execute it with configuration file as argument: