[2018/06/12 01:20:33.144024] ipam.mqt.maple.waffle.com (DEBUG): got: c6a23f38-275f-44fb-946a-22861b1026e9, stored: None [2018/06/12 01:20:33.159673] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.159917] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.160222] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.190900] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.191272] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.191449] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.191681] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.191808] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.191895] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.191995] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.192197] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.192722] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'b3a6bfc9-3738-4b4f-9244-2f66603cb889', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.192868] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.193055] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.193153] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.193343] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.193430] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.193534] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.193632] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.193771] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.193858] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.193916] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.194005] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.194093] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.194207] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.194280] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.194338] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.194424] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.194541] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.194661] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.194825] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.194904] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.194962] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.195159] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.195228] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.195389] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.195569] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5 [2018/06/12 01:20:33.195643] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.195796] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.196020] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.223124] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.223396] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.223546] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.223725] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.223826] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.223910] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.223999] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.224138] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.224373] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '5a2b7691-03c2-431c-9462-ef7e74971d6c', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.224479] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.224677] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.224771] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.224887] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.224959] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.225057] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.225140] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.225254] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.225328] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.225385] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.225472] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.225576] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.225693] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.225785] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.225845] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.225934] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.226019] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.226137] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.226260] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.226334] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.226391] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.226572] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.226643] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.226799] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.226943] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5 [2018/06/12 01:20:33.227011] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.227164] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.227335] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.254592] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.254938] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.255075] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.255247] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.255349] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.255441] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.255543] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.255692] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.256009] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '79ea301f-19b3-4e94-a927-dab0cfd491af', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.256123] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.256293] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.256385] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.256508] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.256619] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.256700] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.256783] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.256910] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.256984] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.257041] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.257129] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.257216] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.257329] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.257402] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.257461] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.257573] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.257662] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.257777] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.257905] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.257984] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.258042] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.258211] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.258310] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.258468] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.258641] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5 [2018/06/12 01:20:33.258724] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.258850] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.259013] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.286279] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.286645] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.286785] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.286962] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.287083] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.287168] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.287264] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.287409] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.287692] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '015e88fc-2db6-499a-bdba-446b629e0b60', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.287799] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.287963] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.288048] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.288177] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.288297] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.288383] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.288466] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.288613] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.288696] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.288754] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.288849] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.288932] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.289046] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.289120] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.289177] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.289303] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.289393] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.289517] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.289668] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.289751] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.289813] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.289978] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.290050] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.290210] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.290376] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5 [2018/06/12 01:20:33.290445] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.290586] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.290763] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.318308] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.318601] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.318755] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.318929] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.319031] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.319122] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.319210] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.319347] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.319675] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'b7c085fe-5a8c-4828-bb25-355f7d29adb4', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.319786] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.319950] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.320037] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.320165] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.320240] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.320317] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.320398] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.320521] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.320614] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.320673] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.320763] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.320844] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.320966] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.321040] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.321100] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.321202] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.321286] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.321400] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.321550] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.321635] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.321693] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.321870] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.321939] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.322095] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.322248] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5 [2018/06/12 01:20:33.322317] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.322440] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.322634] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.351211] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.351545] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.351693] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.351870] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.351974] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.352058] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.352147] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.352285] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.352560] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd448a4b1-9d65-44cc-8d12-8bacf8c1f205', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.352678] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.352844] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.352931] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.353050] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.353125] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.353216] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.353299] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.353416] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.353490] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.353578] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.353675] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.353759] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.353872] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.353946] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.354003] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.354091] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.354175] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.354287] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.354413] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.354487] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.354575] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.354755] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.354827] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.354963] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.355108] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5 [2018/06/12 01:20:33.355236] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}` is skipped [2018/06/12 01:20:33.359779] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.359986] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.360164] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.403613] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.403991] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.404142] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.404341] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.404494] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.404609] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.404753] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.404931] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.405248] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '3bd8f4b1-f651-4172-b498-45295d672a5b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.405359] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.405527] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.405624] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.405810] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.405903] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.405985] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.406068] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.406196] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.406272] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.406331] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.406468] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.406570] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.406692] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.406768] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.406825] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.406913] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.407010] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.407158] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.407314] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.407425] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.407532] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.407764] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.407837] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.408004] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.408173] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5 [2018/06/12 01:20:33.408306] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.408467] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.408658] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.437466] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.437857] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.438007] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.438188] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.438341] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.438429] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.438519] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.438691] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.438960] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '97a463ac-d80d-437e-a6ce-59efe64de6d8', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.439071] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.439238] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.439324] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.439446] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.439520] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.439627] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.439719] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.439838] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.439912] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.439969] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.440062] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.440144] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.440257] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.440331] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.440401] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.440492] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.440608] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.440733] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.440873] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.440949] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.441006] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.441171] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.441238] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.441389] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.441546] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5 [2018/06/12 01:20:33.441649] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.441778] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.441971] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.470237] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.470610] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.470758] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.470947] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.471051] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.471136] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.471226] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.471364] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.471659] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '30f1f912-65f3-4529-8d5d-99ed0706a713', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.471770] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.471936] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.472022] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.472187] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.472266] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.472343] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.472424] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.472541] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.472639] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.472700] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.472791] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.472873] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.472995] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.473071] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.473129] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.473216] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.473299] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.473413] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.473542] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.473657] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.473720] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.473890] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.473958] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.474116] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.474270] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5 [2018/06/12 01:20:33.474338] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.474462] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.474685] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.502782] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.503100] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.503242] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.503414] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.503516] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.503608] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.503740] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.503884] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.504179] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '253083f8-9ff9-4399-a89f-51e1e892cb08', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.504288] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.504453] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.504540] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.504700] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.504780] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.504858] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.504940] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.505059] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.505135] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.505192] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.505280] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.505363] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.505477] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.505551] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.505627] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.505746] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.505858] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.505980] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.506116] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.506191] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.506248] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.506414] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.506482] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.506628] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.506824] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5 [2018/06/12 01:20:33.506899] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.507044] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.507221] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.535117] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "" }, { "name": "dmqtinname", "namespace": "L", "quoting": "xml" }, { "text": "" } ], "content_type": "application/xml", "name": "Create_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "Check add/modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Update Sync Time", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "FIXED_ADDRESS_IPV4" } ] } ] }, "content_type": "application/xml", "name": "next_if_Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/record:host?ipv4addr=" }, { "name": "IP", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "NV", "namespace": "L", "quoting": "url" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0_ref", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-5", "var2_name": "Obj_ref", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "Get_Objref", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \"" }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/xml", "name": "Update Sync Time", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/xml", "name": "Stop Create/Modify", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugDelete", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "Delete" } ], "content_type": "application/xml", "name": "Delete_FS_Asset", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "XMLA", "parse_regex": null, "path": "/fsapi/niCore/Hosts", "strip_whitespace": true }, { "body": null, "condition": { "condition_type": "OR", "error": true, "statements": [ { "left": [ { "listindex": "FSAPISTATUSCODE", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "{0-5,{5-11,{11-15" } ], "op": "!=", "right": [ { "text": "FSAPI_OK" } ] } ] }, "content_type": "application/xml", "name": "check delete", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" } ], "template_variables": {}, "vendor_identifier": "ForeScout", "version": "2.0" } [2018/06/12 01:20:33.535429] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.535570] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 01:20:33.535757] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.535907] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.535996] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.536086] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'} [2018/06/12 01:20:33.536223] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}} [2018/06/12 01:20:33.536477] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'f14ef740-5f8e-488a-8270-05cf99ca1710', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:33.536596] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.536771] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.536857] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.536978] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.537053] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.537130] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.537211] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.537327] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.537403] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.537460] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.537549] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.537651] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.537779] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.537853] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.537910] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.537998] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.538080] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.538192] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.538343] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.538419] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.538477] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.538675] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.538747] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'}) [2018/06/12 01:20:33.538942] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.539094] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5 [2018/06/12 01:20:33.539163] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.539301] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'} [2018/06/12 01:20:33.539466] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description'] [2018/06/12 01:20:33.566433] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: { "comment": "Assets Management", "content_type": "application/xml", "headers": {}, "instance_variables": {}, "name": "ForeScout Assets Mgmt", "path": "/fsapi/niCore/Hosts", "quoting": "xml", "steps": [ { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/xml", "name": "DebugOnStart", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "TIME", "var1_namespace": "UT", "var2_name": "SyncDate", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "SyncDate", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "assignSyncTime", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "listindex": "extattrsFS_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-19,{19-24" } ], "op": "==", "right": [ { "name": "SyncDate", "namespace": "L", "quoting": "xml" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_just_changed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "false" } ], "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_Sitevalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-15,{15-20", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "extattrsFS_RemediateOnEventvalue", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8,{8-27,{27-32", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "_ref", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-4", "var2_name": "Obj_ref", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "ipv4addr", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-8", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "network_view", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-12", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_namespace": "L", "var1_type": "S", "var1_value": "" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_not_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L", "var1_type": "S", "var1_value": "000000000000" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac", "var1_name": "values", "var1_namespace": "E", "var1_type": "{0-3", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "extattrsFS_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-15,{15-20" } ], "op": "==", "right": [ { "text": "true" } ] }, { "left": [ { "listindex": "mac", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-3" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_MAC", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L", "var1_type": "S", "var1_value": "true" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_Site", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-7", "var2_name": "Site", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "FS_RemediateOnEvent", "var1_name": "ip.extattrs", "var1_namespace": "E", "var1_type": "{0-19", "var2_name": "RemediateOnEvent", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "E", "var2_name": "IP", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "E", "var2_name": "NV", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "hardware", "var1_namespace": "E", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "==", "right": [ { "text": "LEASE" } ] }, { "left": [ { "listindex": "FS_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-7" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "Sync", "namespace": "L", "quoting": "xml" } ], "op": "==", "right": [ { "text": "false" } ] } ], "stop": true }, "content_type": "application/xml", "name": "stop_if_no_sync", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "OR", "next": "DebugDelete", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "RELEASED" } ] }, { "left": [ { "name": "binding_state", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "FREE" } ] } ] }, "content_type": "application/xml", "name": "Goto for delete action", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Discovery Data", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/xml", "name": "check_for_Lease_go_for_Data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Create Obj_Ref for Lease", "nodebug": false, "operation": "SERIALIZE", "override_headers": false, "path": "/fsapi/niCore/Hosts", "serializations": [ { "content": [ { "text": "lease" } ], "destination": [ { "name": "Obj_ref", "namespace": "L", "quoting": "xml" } ] }, { "content": [ { "text": "&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "destination": [ { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "xml" } ] } ] }, { "body": null, "content_type": "application/xml", "name": "Get Lease Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" }, { "name": "Obj_Ref_Add", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "0discovered_data", "var1_name": "PARSE", "var1_namespace": "P", "var1_type": "[0-1,{1-16", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for Lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_mac", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/xml", "name": "jump_to_discovery_data", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get Discovery Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/" }, { "name": "Obj_ref", "namespace": "L", "quoting": "asis" }, { "text": "?_return_fields=discovered_data" } ], "wapi": "v2.6" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "P", "var2_name": "discovered_data", "var2_namespace": "L" } ], "content_type": "application/xml", "name": "Copy discovery_data for other records", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "mac_address", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "MAC", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "mac_address", "name": "discovered_data", "namespace": "L", "quoting": "asis", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "MAC", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "000000000000" } ] } ] }, "content_type": "application/xml", "name": "check_mac", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discoverer", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "discoverer", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discoverer", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discoverer", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "discovered_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-15", "var2_name": "discovered_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "discovered_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_discovered_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_switch", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-8", "var2_name": "v_switch", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_switch", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_switch", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_host", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-6", "var2_name": "v_host", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_host", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_datacenter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "v_datacenter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_datacenter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_datacenter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_adapter", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-9", "var2_name": "v_adapter", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_adapter", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-9" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_adapter", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "v_entity_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "v_entity_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "v_entity_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ v_entity_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_ip", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-20", "var2_name": "network_component_ip", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_ip", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-20" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_ip", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-22", "var2_name": "network_component_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-22" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_name", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-27", "var2_name": "network_component_port_name", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_name", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-27" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "network_component_port_description", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-34", "var2_name": "network_component_port_description", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "network_component_port_description", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-34" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ network_component_port_description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_vendor", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-13", "var2_name": "device_vendor", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_vendor", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-13" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_model", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-12", "var2_name": "device_model", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_model", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-12" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "device_type", "var1_name": "discovered_data", "var1_namespace": "L", "var1_type": "{0-11", "var2_name": "device_type", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "device_type", "name": "discovered_data", "namespace": "L", "quoting": "xml", "type": "{0-11" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_ device_type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugDiscovery", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Get User Data", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address=" }, { "name": "IP", "namespace": "L", "quoting": "asis" } ], "wapi": "v2.6" }, { "body": null, "condition": { "condition_type": "AND", "next": "check_username", "statements": [ { "left": [ { "name": "PARSE", "namespace": "P", "quoting": "len" } ], "op": "==", "right": [ { "text": "0" } ] } ] }, "content_type": "application/xml", "name": "check_user_response", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "content_type": "application/xml", "name": "Pop User from the list", "nodebug": false, "operation": "VARIABLEOP", "override_headers": false, "path": "/fsapi/niCore/Hosts", "variable_ops": [ { "destination": [ { "name": "user", "namespace": "L", "quoting": "xml" } ], "operation": "UNSHIFT", "source": [ { "name": "PARSE", "namespace": "P", "quoting": "xml" } ], "type": "DICTIONARY" } ] }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L", "var1_type": "S", "var1_value": "." }, { "namespace": "XC", "op": "ASSIGN", "var1_name": "dmqtinname", "var1_namespace": "L", "var1_type": "S", "var1_value": "." } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_listindex": "name", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-4", "var2_name": "username", "var2_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_listindex": "dmqtinname", "var1_name": "user", "var1_namespace": "L", "var1_type": "{0-10", "var2_name": "dmqtinname", "var2_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "user", "namespace": "L", "quoting": "xml", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_username", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" } ], "content_type": "application/xml", "name": "DebugUserData", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": [ { "text": "" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L",