The Codec Compliance Report is a script that retrieves configuration and status information from a list of endpoints and generates a CSV report. It uses the Cisco API to communicate with the endpoints and extract the necessary data.
- Retrieve endpoint configuration and status information
- Generate a CSV report with the collected data
- Apply configuration changes to endpoints (e.g., MTU, SNMP)
- Error handling for failed API requests
-
Clone the repository
-
Navigate to the project directory:
cd codec-compliance-report
-
Install the required dependencies:
pip install -r requirements.txt
-
Prepare the list of endpoints by creating a text file called
list.txt
in the project directory. Each endpoint should be listed on a separate line. -
Configure the script by editing the
config.yaml
file. Specify the necessary details such as API credentials and file paths. -
Run the script:
python report.py
-
The script will retrieve the configuration and status information from each endpoint, apply any necessary changes, and generate a CSV report in the
output
directory.
The config.yaml
file contains the following configuration options:
api_username
: Username for API authenticationapi_password
: Password for API authenticationpath
: Path to the project directoryhost_vars_path
: Path to store the intermediate host variables XML filesoutput_path
: Path to store the generated CSV report and log files
Make sure to populate the list.txt
file with the list of endpoints to be processed.