11-13-2020 12:22 AM - edited 11-13-2020 12:33 AM
Hey, just want to know if there is anyone who could explain how to configure SNMP on FDM 6.7 (Cisco Firepower 1010).
With 6.7 there is no FlexConfig for SNMP anymore and you have to use the REST API and this is nether well
documented anywhere (how to do so), nor are there any tutorials for SNMP configurations via API.
This, for me at least, is a ridiculously complicated way to configure something.
I also have no FMC here.
BR
Steve
Edit: I've used the API Explorer and could GET some Information and also POST some, like location and contact etc.
But I have no clue about the snmphost part.
Solved! Go to Solution.
01-26-2021 10:31 AM
Hi guys, i have solved thanks to this guide:
Regards
Marcello
11-17-2020 03:34 PM - edited 11-17-2020 03:35 PM
Hey Steve,
Are you trying to configure SNMP v2 or v3?
11-23-2020 11:10 PM
Sorry for the late reply. Just simple SNMP v2.
11-24-2020 12:48 AM - edited 11-24-2020 12:49 AM
Hey Steve,
No problem.
Try the following for SNMP v2:
curl -sk -H "Content-Type: application/json" -H "Authorization: Bearer <ACCESS TOKEN>" -X POST -d \
'{"type":"snmphost","name":"SNMPV2-POLLER","interface":{"type":"physicalinterface","name":"outside"},"managerAddress":{"type":"networkobject","name":"<NETWORK OBJECT NAME>"},"securityConfiguration":{"type":"snmpv2csecurityconfiguration","community":"<COMMUNITY STRING>"}}' \
https://<FDM-MGMT-IP>/api/fdm/latest/object/snmphosts | jq -r '.'
Kind regards,
Michael
11-26-2020 10:32 PM - edited 11-27-2020 02:35 AM
Hey thanks for your reply. Unfortunately I can't set this as solved because I don't have access to the Firepower anymore. It's already delivered to our customer. And it sits there on the desk till we get some further information about an site-to-site vpn from another customer. I'll get back to your Post in a couple of weeks.
But thank you so much for your help.
11-26-2020 11:59 PM
Hey Steve. No problem at all
12-30-2020 02:24 AM
Hi Michael, i have the same problem but i have no idea about Rest API and how to use your script. Please, can you help me? Thank you,
Marcello
12-30-2020 02:39 AM - edited 12-30-2020 02:41 AM
Hi Marcello,
Have a read through the following Cisco Firepower Threat Defense REST API guide to get started:
Essentially you are just sending a cURL request to the FDM API to configure SNMPv2 programmatically.
You need to request an access token first and then submit this access token in the command I showed in my previous comment (i.e. replace <ACCESS TOKEN> with your access token)
<NETWORK OBJECT> needs to be replaced with a network object that contains the IP address of the SNMP poller.
<COMMUNITY STRING> needs to be replaced with a community string that you define.
<FDM-MGMT-IP> needs to be replaced with the FDM management IP
Kind regards,
Michael
12-30-2020 07:45 AM
Hi MIchael,
really thanks for your answer.
I need to use PRTG Network Monitor software for monitoring FTD and i don't understand what i have to do on the monitoring software (PRTG) and what on the FDM. I haven' t developer background and it's very difficult for me understand the needs.
Regards
Marcello
01-26-2021 10:31 AM
Hi guys, i have solved thanks to this guide:
Regards
Marcello
02-06-2021 04:25 AM
06-21-2021 04:52 AM
Wait until you try in v7, this document does not work.
All-in-all, buy something else - not Cisco.
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