Skip to content

This repository is intended to get an excel from a json file generated via FMC API

License

Notifications You must be signed in to change notification settings

ainglese-dev/cisco-fmc-excel-from-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cisco FMC Excel and SVG from Firepower API

published

Script Result

Installation for debian-based OS

Virtual Environment

We recommend running this application in a Python virtual environment while testing or developing. This will help keep your host system clean and allow you to have multiple environments to try new things. If you are not using a virtual environment, start at the download/clone step below.

You will also need Python 3, pip, and venv installed on your host system.

In your project directory, create your virtual environment

python3 -m venv myvenv

Activate (use) your new virtual environment (Linux):

source myvenv/bin/activate

Download or clone the cisco-fmc-excel-from-json repository:

git clone https://github.com/AngelIV23/cisco-fmc-excel-from-json.git

Install Python packages using pip according to the requirements.txt file

pip install -r requirements.txt

If needed, you can create optionally the next folders depending on current requirements and code tweaks you'd like to make:

mkdir outputs

To test the code, you can easily get a temporary username and password and play around with API calls using the Cisco Firepower Management Center Get Hands-On section:

https://developer.cisco.com/secure-firewall/

Application walkthorugh:

  1. Run the main script which will automatically gather data from corresponding key (by default, Meraki API is being used):
python main_fmc2csv.py
  1. Follow the steps described in the session which will request the corresponding UUID per layer: FMC Domains FMC Domains
  2. Output files under outputs folder :)

About

This repository is intended to get an excel from a json file generated via FMC API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages