cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2178
Views
10
Helpful
1
Replies

Python scripts to create and delete hosts on Firepower Manager (FMC) from csv file

Maneck_UK
Level 1
Level 1

I recently created python scripts that can create or delete host objects.

I received a lot of help from this community in getting them working. Therefore I'm making them available to the community to say thanks. Hopefully they will help someone in return.

 

The scripts are:

post-csv-hosts

This script creates network host objects for use in FMC policies via API POST operation.


get-hosts-for-csv

This script collects all network host objects in FMC via API GET operation and returns them to a csv formatted text file containing the Object ID which is required in delete an object.

 

delete-hosts-from-csv
This script deletes all network hosts within a csv via the FMC API DELETE operation

 

The scripts can be found on github at:

FMC-API-Scripts 

 

1 Reply 1

#Mat
Level 6
Level 6

Nice work, thanks for sharing it.

.
Review Cisco Networking products for a $25 gift card