Professional Documents
Culture Documents
PythonScript FMC BasicConfig
PythonScript FMC BasicConfig
/usr/bin/python
import json
import connect
import sys
host = "fmc.dcloud.local"
username = "restapiuser"
password = "C1sco12345"
name="NGFW"
user_input = str(raw_input("In the FMC UI, confirm that the device discovery has
completed and then press 'y' to continue or 'n' to exit. [y/n]"))
headers,uuid,server = connect.connect (host, username, password)
if user_input == "n":
quit()
devices = connect.deviceGET(headers,uuid,server)
for device in devices["items"]:
if device["name"] == name: