06-07-2020 01:07 PM
HI, I have about few hundred FQDN objects. Which I have create on FMC. Is there any public script which can be used against FMC API to create them automatically?
06-07-2020 11:20 PM
Use the Cisco Firepower Migration Tool and only select objects (vs. objects, ACLs and NAT rules) when you get to the import step.
06-08-2020 01:51 AM
thanks. I presume the migration tool requires ASA object syntax in order to import the config. Can this also be done if have 100 lines of IP address or FQDN´s which I want to import into FMC?
06-08-2020 02:26 AM
Yes, the FMT requires ASA syntax. It's not hard to create that out of a raw text file though.
What's your reason for wanting the FQDNs to be imported into FMC? Depending on what it is, there might be easier ways.
06-08-2020 06:52 AM
Its a new servers which has not exists on the firewall before. So I have 100 FQDN´s which should be created as objects and then object group. I want use this group in my ACP.
06-13-2020 11:42 AM
Do you have any hints on this one?
"Yes, the FMT requires ASA syntax. It's not hard to create that out of a raw text file though."
06-13-2020 07:29 PM - edited 06-14-2020 07:09 AM
You have a list of FQDNs. An ASA FQDN object looks like this (using www.cisco.com as an example FQDN):
object network www.cisco.com fqdn www.cisco.com
Take your list and process it though a script that wraps your FQDNs with the "object network obj-<fqdn>" and "fqdn <fqdn>" elements. You could probably even do it with an Excel macro or Notepad++ advanced search and replace.
06-14-2020 07:06 AM
Yes, but I though you already had a script to do that. I am not a programmer.
08-17-2020 10:15 AM
Old Post but wanted to provide the solution if anyone else is looking for it. You can use the script provided in the link below :
https://github.com/shubhambharti89/FMCAPI/tree/master/URL-Obj
It has a CSV file with the format in which it needs the FQDN to be in. Once you have moved your FQDN to the CSV file - run the script with "python url-bulkpush.py"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide