[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", "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.566829] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.566972] 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.567155] 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.567258] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.567343] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.567432] 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.567569] 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.567868] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'ad30b928-fe21-42cb-ac51-7b64b4d624c1', '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.567978] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.568147] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.568233] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.568556] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.568668] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.568750] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.569029] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.569158] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.569234] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.569292] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.569384] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.570044] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.570188] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.570501] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.570566] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.570809] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.570904] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.571023] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.571152] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.571229] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.571293] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.571462] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.571530] 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.571707] 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.571866] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5 [2018/06/12 01:20:33.571999] 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': 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'}` is skipped [2018/06/12 01:20:33.576433] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.576603] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.576880] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', '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.604532] 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.604901] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.605045] 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.605239] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.605344] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.605435] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.605525] 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.605687] 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.606002] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd957c1df-0811-43c7-8e5d-d3e540101a62', '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.606122] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.606289] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.606375] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.606506] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.606580] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.606681] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.606765] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.606882] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.606956] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.607013] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.607102] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.607184] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.607299] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.607372] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.607430] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.607517] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.607612] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.607736] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.607866] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.607939] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.607997] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.608156] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.608224] 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.608549] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.608737] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5 [2018/06/12 01:20:33.609302] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.609460] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.609682] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', '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.638122] 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.638467] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.638633] 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.638806] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.638917] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.639003] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.639099] 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.639246] 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.639509] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '0789b5f6-7ce8-48e0-b6ab-140066153a47', '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.639642] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.639818] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.639905] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.640046] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.640130] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.640236] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.640334] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.640453] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.640527] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.640585] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.640708] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.640806] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.640927] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.641001] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.641059] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.641148] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.641232] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.641344] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.641475] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.641549] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.641628] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.641824] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.641893] 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.642075] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.642238] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5 [2018/06/12 01:20:33.642307] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.642447] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.642637] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', '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.670787] 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.671097] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.671244] 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.671421] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.671524] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.671678] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.671774] 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.671912] 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.672187] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7a918fe3-3ad6-4170-a5f6-6d3e1868d8e1', '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.672297] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.672464] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.672549] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.672696] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.672776] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.672854] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.672935] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.673066] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.673142] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.673200] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.673288] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.673370] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.673482] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.673617] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.673694] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.673788] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.673874] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.673989] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.674116] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.674190] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.674248] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.674413] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.674481] 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.674635] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.674799] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5 [2018/06/12 01:20:33.674867] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.675011] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.675207] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', '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.703522] 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.703810] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.703947] 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.704122] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.704224] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.704310] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.704401] 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.704546] 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.704814] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '33e16a36-0236-45d1-875d-5edcf7fa5551', '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.704931] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.705105] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.705191] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.705312] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.705400] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.705479] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.705561] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.705709] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.705788] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.705865] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.705959] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.706042] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.706157] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.706231] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.706289] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.706377] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.706460] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.706574] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.706735] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.706813] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.706871] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.707034] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.707106] 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.707256] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.707404] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5 [2018/06/12 01:20:33.707473] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.707596] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.707805] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', '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.734234] 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.734520] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.734659] 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.734835] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.734936] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.735020] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.735109] 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.735242] 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.735499] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '20b86c4a-ec66-45cf-bd55-93b741ec4d1b', '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.735607] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.735795] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.735903] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.736023] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.736098] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.736176] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.736257] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.736372] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.736446] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.736503] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.736591] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.736695] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.736812] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.736886] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.736943] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.737031] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.737114] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.737228] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.737354] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.737427] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.737483] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.737660] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.737732] 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.737883] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.738039] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5 [2018/06/12 01:20:33.738129] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:33.738295] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.738474] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', '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.765904] 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.766239] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:33.766374] 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.766545] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.766679] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:33.766783] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:33.766874] 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.767010] 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.767259] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '20dbb51b-3466-4ea6-985b-58f4b0c1d46a', '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.767366] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:33.767531] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:33.767616] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.767777] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:33.767857] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.767934] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:33.768016] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.768134] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.768209] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.768292] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.768386] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:33.768470] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.768585] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:33.768694] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:33.768792] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:33.768899] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:33.768986] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:33.769101] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:33.769227] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:33.769302] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:33.769358] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:33.769523] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:33.769592] 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.769771] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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.769937] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5 [2018/06/12 01:20:33.770068] 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'fingerprint': u'No Match', 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'2038-01-19T03:14:07Z', 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': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, 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'}` is skipped [2018/06/12 01:20:35.709780] ipam.mqt.maple.waffle.com (DEBUG): got: c81bc97b-f768-4259-a28a-e8f1d18091cb, stored: None [2018/06/12 01:20:35.720825] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.720998] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.721221] 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:35.748683] 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:35.748955] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:35.749100] 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:35.749304] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.749415] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:35.749499] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:35.749587] 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:35.749719] 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:35.750041] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'ded12e14-2642-4ba7-97a3-923fe4c287a2', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:35.750188] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:35.750358] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:35.750444] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.750565] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:35.750653] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.750733] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:35.750814] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.750929] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.751004] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.751061] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.751184] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:35.751270] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.751385] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.751458] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.751515] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.751602] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:35.751685] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.751797] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:35.751923] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:35.751998] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:35.752055] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:35.752284] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:35.752355] 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:35.752491] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.752632] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5 [2018/06/12 01:20:35.752701] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.752839] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.753019] 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:35.779738] 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:35.780011] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:35.780160] 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:35.780326] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.780427] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:35.780510] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:35.780600] 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:35.780730] 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:35.780989] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '046a7f90-2641-453c-b09a-e4167e4b6251', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:35.781131] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:35.781368] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:35.781499] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.781662] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:35.781744] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.781822] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:35.781904] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.782020] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.782094] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.782151] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.782239] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:35.782320] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.782433] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.782506] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.782564] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.782651] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:35.782733] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.782844] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:35.782967] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:35.783041] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:35.783098] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:35.783276] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:35.783346] 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:35.783494] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.783651] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5 [2018/06/12 01:20:35.783720] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.783844] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.784000] 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:35.811270] 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:35.811555] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:35.811691] 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:35.811844] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.811956] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:35.812041] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:35.812158] 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:35.812303] 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:35.812584] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '1cf6614b-c68e-44f2-afee-878c09ef7021', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:35.812692] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:35.812864] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:35.812949] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.813069] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:35.813183] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.813266] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:35.813350] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.813467] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.813542] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.813601] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.813689] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:35.813772] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.813886] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.813960] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.814018] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.814118] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:35.814239] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.814359] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:35.814487] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:35.814561] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:35.814619] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:35.814785] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:35.814853] 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:35.815027] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.815219] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5 [2018/06/12 01:20:35.815290] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.815416] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.815576] 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:35.844235] 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:35.844557] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:35.844696] 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:35.844890] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.845000] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:35.845085] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:35.845172] 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:35.845305] 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:35.845561] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '71a9bcc8-a870-4d01-b859-6bd214010b5e', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:35.845670] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:35.845834] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:35.845921] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.846041] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:35.846115] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.846192] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:35.846329] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.846453] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.846529] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.846587] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.846676] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:35.846759] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.846874] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.846961] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.847020] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.847107] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:35.847191] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.847304] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:35.847431] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:35.847504] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:35.847562] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:35.847725] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:35.847794] 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:35.847929] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.848077] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5 [2018/06/12 01:20:35.848145] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.848292] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.848454] 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:35.875805] 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:35.876145] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:35.876313] 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:35.876478] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.876576] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:35.876659] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:35.876747] 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:35.876882] 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:35.877161] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '49db9a61-bb88-43da-a963-c1c395ce332d', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:35.877302] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:35.877468] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:35.877554] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.877689] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:35.877766] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.877847] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:35.877929] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.878046] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.878122] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.878216] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.878345] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:35.878431] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.878547] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.878622] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.878679] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.878766] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:35.878850] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.878964] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:35.879091] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:35.879206] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:35.879276] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:35.879447] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:35.879515] 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:35.879653] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.879810] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5 [2018/06/12 01:20:35.879878] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.880002] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.880194] 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:35.907444] 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:35.907769] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:35.907920] 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:35.908085] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.908183] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:35.908297] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:35.908390] 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:35.908534] 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:35.908808] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'a2e713c6-6a97-4f1d-80dd-9952136a3c4b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:35.908916] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:35.909082] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:35.909174] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.909295] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:35.909370] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.909446] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:35.909526] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.909642] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.909716] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.909774] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.909861] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:35.909944] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.910057] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.910131] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.910311] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.910406] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:35.910492] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.910616] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:35.910760] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:35.910834] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:35.910892] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:35.911069] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:35.912294] 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:35.912451] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.912620] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5 [2018/06/12 01:20:35.912736] 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-12T06:22:32Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 3, '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:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}` is skipped [2018/06/12 01:20:35.917770] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.917930] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.918093] 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:35.945491] 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:35.945768] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:35.945896] 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:35.946043] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.946145] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:35.946264] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:35.946357] 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:35.946488] 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:35.946730] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd4a9ab0e-a127-4605-af0e-f80924d2bcb8', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:35.946835] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:35.946998] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:35.947082] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.947219] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:35.947298] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.947375] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:35.947457] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.947572] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.947645] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.947702] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.947789] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:35.947870] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.948016] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.948094] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.948166] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.948296] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:35.948384] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.948502] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:35.948626] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:35.948700] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:35.948757] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:35.948914] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:35.948980] 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:35.949112] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.949279] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5 [2018/06/12 01:20:35.949347] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.949475] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.949595] 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:35.976094] 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:35.976430] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:35.976555] 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:35.976699] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.976794] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:35.976877] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:35.976965] 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:35.977092] 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:35.977402] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7cbd8592-29e5-478a-8a39-acfc5aa18139', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:35.977559] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:35.977742] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:35.977845] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.977964] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:35.978038] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.978115] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:35.978216] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.978362] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.978438] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.978496] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.978583] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:35.978665] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.978777] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:35.978849] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:35.978905] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:35.978990] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:35.979070] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:35.979203] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:35.979343] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:35.979417] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:35.979473] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:35.979631] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:35.979698] 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:35.979830] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.979963] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5 [2018/06/12 01:20:35.980030] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:35.980161] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:35.980346] 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:36.007228] 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:36.007505] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:36.007634] 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:36.007784] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.007881] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:36.007963] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:36.008050] 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:36.008214] 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:36.008484] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7c257b74-334a-41c7-8b8f-5db03a43c531', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784436', 'TIME': '2018-06-12T06:20:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:36.008591] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:36.008754] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:36.008838] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.008956] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:36.009030] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.009107] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:36.009218] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.009341] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:36.009416] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.009474] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:36.009562] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:36.009644] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.009757] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:36.009831] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.009889] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:36.009976] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:36.010058] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.010187] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:36.010338] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:36.010413] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:36.010470] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:36.010631] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:36.010697] 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:36.010830] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.010984] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5 [2018/06/12 01:20:36.011051] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:36.011189] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.011349] 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:36.040741] 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:36.041058] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:36.041213] 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:36.041371] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.041484] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:36.041570] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:36.041658] 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:36.041792] 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:36.042047] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '81e78e92-c18e-44ce-b709-b5f8d4c334d8', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784436', 'TIME': '2018-06-12T06:20:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:36.042154] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:36.042349] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:36.042443] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.042564] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:36.042639] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.042715] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:36.042797] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.042912] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:36.042986] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.043044] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:36.043132] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:36.043250] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.043371] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:36.043445] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.043503] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:36.043591] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:36.043674] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.043787] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:36.043911] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:36.043984] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:36.044042] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:36.044248] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:36.044319] 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:36.044454] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.044610] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5 [2018/06/12 01:20:36.044677] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:36.044801] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.044951] 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:36.071544] 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:36.071810] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:36.071933] 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:36.072089] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.072206] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:36.072297] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:36.072386] 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:36.072515] 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:36.072742] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '207c2479-f73e-4e02-ac7f-a5d8f1b1d523', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784436', 'TIME': '2018-06-12T06:20:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:36.072845] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:36.073007] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:36.073091] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.073229] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:36.073307] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.073385] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:36.073467] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.073580] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:36.073653] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.073710] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:36.073797] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:36.073891] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.074005] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:36.074079] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.074136] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:36.074258] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:36.074347] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.074461] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:36.074585] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:36.074657] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:36.074715] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:36.074870] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:36.074936] 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:36.075067] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.075219] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5 [2018/06/12 01:20:36.075290] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 01:20:36.075413] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.075555] 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:36.102276] 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:36.102557] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 01:20:36.102692] 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:36.102838] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.102933] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 01:20:36.103016] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 01:20:36.103102] 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:36.103252] 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:36.103499] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '492df6e3-3864-4a46-b027-98e1a2e9acae', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784436', 'TIME': '2018-06-12T06:20:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 01:20:36.103605] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 01:20:36.103781] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 01:20:36.103866] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.103982] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20 [2018/06/12 01:20:36.104054] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.104131] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 01:20:36.104213] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.104348] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:36.104422] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.104479] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:36.104566] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 01:20:36.104646] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.104758] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE [2018/06/12 01:20:36.104831] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 01:20:36.104888] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 01:20:36.104974] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 01:20:36.105056] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 01:20:36.105166] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE [2018/06/12 01:20:36.105340] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 01:20:36.105417] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 01:20:36.105474] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 01:20:36.105632] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 01:20:36.105699] 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:36.105831] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'} [2018/06/12 01:20:36.105968] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5 [2018/06/12 01:20:36.106081] 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:33Z', 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:33Z', u'vnode_oid': 3, u'sequence_id': 4, '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:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}` is skipped [2018/06/12 07:44:49.547962] ipam.mqt.maple.waffle.com (DEBUG): got: 21b0c7d8-aa12-438e-98d8-7f18fbf3383d, stored: None [2018/06/12 07:44:49.557252] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 07:44:49.557575] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'yyy.yyy.176.84', u'mac': u'18:db:f2:30:f5:69', u'host': u'gic-i-laptop-2.mqt.maple.waffle.com', u'extattrs': {u'NetReg SITC Username': {u'value': u'username@maple.waffle.com'}, u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'mqt'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'500'}, u'NetReg Ownership': {u'value': u'Commerical'}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'176'}, u'Environment': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'maple System Center Protected (SSCPE)'}, u'NetReg Physical Host': {u'value': u'hyper.mqt.maple.waffle.com'}, u'NetReg Cost Center': {u'value': u'85P532290S'}, u'NetReg MAC Address': {u'value': u'00:00:00:00:00:00'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'3G2'}, u'NetReg Administrator': {u'value': u'tim'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmdpYy1pLWxhcHRvcC0yLjE5OC4yNTMuMTc2Ljg0Lg:yyy.yyy.176.84/gic-i-laptop-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 07:44:49.557830] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 07:44:49.588703] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 07:44:49.589108] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 07:44:49.589310] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 07:44:49.589570] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'yyy.yyy.176.84', u'mac': u'18:db:f2:30:f5:69', u'host': u'gic-i-laptop-2.mqt.maple.waffle.com', u'extattrs': {u'NetReg SITC Username': {u'value': u'username@maple.waffle.com'}, u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'mqt'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'500'}, u'NetReg Ownership': {u'value': u'Commerical'}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'176'}, u'Environment': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'maple System Center Protected (SSCPE)'}, u'NetReg Physical Host': {u'value': u'hyper.mqt.maple.waffle.com'}, u'NetReg Cost Center': {u'value': u'85P532290S'}, u'NetReg MAC Address': {u'value': u'00:00:00:00:00:00'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'3G2'}, u'NetReg Administrator': {u'value': u'tim'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmdpYy1pLWxhcHRvcC0yLjE5OC4yNTMuMTc2Ljg0Lg:yyy.yyy.176.84/gic-i-laptop-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 07:44:49.589689] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 07:44:49.589773] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 07:44:49.589873] 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 07:44:49.590049] 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 07:44:49.590578] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '55704cdb-f835-4f82-9a05-41e27ae68939', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528807489', 'TIME': '2018-06-12T12:44:49Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 07:44:49.590705] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 07:44:49.590891] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 07:44:49.590979] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 07:44:49.591244] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T12:44 [2018/06/12 07:44:49.591333] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 07:44:49.591438] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 07:44:49.591533] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 07:44:49.591651] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 07:44:49.591801] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 07:44:49.591887] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 07:44:49.591947] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 07:44:49.592037] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 07:44:49.592118] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 07:44:49.592233] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 07:44:49.592379] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 07:44:49.592510] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 07:44:49.592600] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 07:44:49.592695] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 07:44:49.592779] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 07:44:49.592892] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 07:44:49.592963] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 07:44:49.593039] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 07:44:49.593119] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 07:44:49.593239] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 07:44:49.593311] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 07:44:49.593368] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 07:44:49.593456] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:03:40.714510] ipam.mqt.maple.waffle.com (DEBUG): got: 9ebcfe83-847b-412f-b679-663a0f264b57, stored: None [2018/06/12 09:03:40.729728] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:03:40.729898] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:03:40.730034] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:03:40.757462] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:03:40.757857] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:03:40.758010] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:03:40.758174] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:03:40.758337] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:03:40.758420] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:03:40.758505] 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 09:03:40.758656] 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 09:03:40.758951] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'a9db0cb5-734c-43e0-8d33-48e339be5ef0', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812220', 'TIME': '2018-06-12T14:03:40Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:03:40.759077] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:03:40.759235] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:03:40.759314] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:40.759499] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:03 [2018/06/12 09:03:40.759572] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:40.759645] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:03:40.759720] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:40.759832] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:03:40.759977] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:03:40.760054] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:40.760108] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:03:40.760213] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:03:40.760293] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:40.760400] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:03:40.760540] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:03:40.760608] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:40.760662] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:03:40.760744] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:03:40.760820] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:40.760929] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:03:40.760996] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:40.761067] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:03:40.761142] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:40.761256] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:03:40.761322] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:03:40.761376] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:03:40.761438] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:03:44.822054] ipam.mqt.maple.waffle.com (DEBUG): got: fc31ea4a-ccbd-4d68-893f-6808be465d43, stored: None [2018/06/12 09:03:44.827456] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:03:44.827624] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:03:44.827724] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:03:44.854618] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:03:44.855045] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:03:44.855178] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:03:44.855332] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:03:44.855425] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:03:44.855527] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:03:44.855617] 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 09:03:44.855747] 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 09:03:44.855993] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd36dc510-001d-4853-bb00-1353bde4462b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812224', 'TIME': '2018-06-12T14:03:44Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:03:44.856096] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:03:44.856255] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:03:44.856337] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:44.856517] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:03 [2018/06/12 09:03:44.856595] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:44.856669] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:03:44.856746] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:44.856859] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:03:44.857007] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:03:44.857078] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:44.857132] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:03:44.857215] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:03:44.857292] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:44.857400] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:03:44.857635] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:03:44.857709] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:44.857762] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:03:44.857846] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:03:44.857924] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:44.858031] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:03:44.858099] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:44.858170] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:03:44.858259] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:44.858380] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:03:44.858448] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:03:44.858520] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:03:44.858588] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:03:50.338076] ipam.mqt.maple.waffle.com (DEBUG): got: 8839a980-e7b2-4e9c-a21f-934f5c1683ef, stored: None [2018/06/12 09:03:50.344278] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:03:50.344431] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:03:50.344543] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:03:50.372462] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:03:50.372704] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:03:50.372835] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:03:50.373011] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:03:50.373104] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:03:50.373196] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:03:50.373288] 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 09:03:50.373417] 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 09:03:50.373657] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'feccefff-5f83-4e9f-b84e-8eb7c5d57f14', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812230', 'TIME': '2018-06-12T14:03:50Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:03:50.373758] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:03:50.373913] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:03:50.373992] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:50.374170] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:03 [2018/06/12 09:03:50.374257] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:50.374332] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:03:50.374408] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:50.374517] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:03:50.374660] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:03:50.374730] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:50.374784] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:03:50.374867] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:03:50.374944] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:50.375052] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:03:50.375207] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:03:50.375280] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:50.375335] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:03:50.375431] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:03:50.375515] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:50.375628] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:03:50.375695] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:03:50.375767] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:03:50.375841] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:03:50.375952] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:03:50.376020] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:03:50.376074] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:03:50.376136] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:04:23.585590] ipam.mqt.maple.waffle.com (DEBUG): got: 340aca9e-03bc-4f2c-80f0-b911e3d38af2, stored: None [2018/06/12 09:04:23.591620] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:04:23.591772] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.19', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS4xMC4yMi4yNS4xOS4:aa.bb.25.19/cloudbusine0509.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:23.591881] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:04:23.619004] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:04:23.619243] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:04:23.619370] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:04:23.619537] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.19', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS4xMC4yMi4yNS4xOS4:aa.bb.25.19/cloudbusine0509.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:23.619638] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:04:23.619716] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:04:23.619799] 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 09:04:23.619938] 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 09:04:23.620200] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '8c799e4c-611e-491c-b96d-54ac9aa46e7a', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812263', 'TIME': '2018-06-12T14:04:23Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:04:23.620345] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:04:23.620550] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:04:23.620746] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.620922] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04 [2018/06/12 09:04:23.620995] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.621071] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:04:23.621147] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.621257] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:23.621401] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:23.621471] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.621524] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:23.621609] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:04:23.621685] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.621793] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:23.621933] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:23.622001] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.622055] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:23.622139] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:04:23.622216] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.622324] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:04:23.622404] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.622478] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:04:23.622554] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.622676] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:04:23.622744] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:04:23.622798] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:04:23.622861] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:04:23.626616] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:04:23.626759] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0yLjEwLjIyLjI3LjMu:aa.bb.27.3/cloudbusine0509-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:23.626855] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:04:23.653050] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:04:23.653269] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:04:23.653387] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:04:23.653552] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0yLjEwLjIyLjI3LjMu:aa.bb.27.3/cloudbusine0509-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:23.653655] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:04:23.653733] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:04:23.653815] 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 09:04:23.653939] 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 09:04:23.654170] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'c8ba0f81-7602-468d-95d0-32f4f5bb4901', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812263', 'TIME': '2018-06-12T14:04:23Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:04:23.654269] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:04:23.654443] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:04:23.654532] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.654689] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04 [2018/06/12 09:04:23.654760] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.654833] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:04:23.654909] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.655018] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:23.655161] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:23.655231] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.655286] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:23.655367] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:04:23.655472] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.655585] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:23.655726] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:23.655795] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.655848] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:23.655930] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:04:23.656008] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.656114] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:04:23.656183] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.656253] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:04:23.656327] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.656485] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:04:23.656559] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:04:23.656614] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:04:23.656676] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:04:23.660184] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:04:23.660326] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.20', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC4xMC4yMi4yNS4yMC4:aa.bb.25.20/cloudbusine0510.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:23.660440] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:04:23.693776] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:04:23.694009] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:04:23.694132] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:04:23.694281] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.20', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC4xMC4yMi4yNS4yMC4:aa.bb.25.20/cloudbusine0510.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:23.694382] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:04:23.694484] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:04:23.694568] 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 09:04:23.694697] 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 09:04:23.694935] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '1c745bb6-af2f-464f-8e75-2217eb1d5d30', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812263', 'TIME': '2018-06-12T14:04:23Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:04:23.695035] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:04:23.695190] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:04:23.695269] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.695457] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04 [2018/06/12 09:04:23.695533] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.695607] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:04:23.695682] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.695792] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:23.695933] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:23.696004] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.696057] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:23.696140] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:04:23.696216] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.696322] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:23.696496] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:23.696576] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.696630] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:23.696713] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:04:23.696791] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.696897] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:04:23.696965] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:23.697035] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:04:23.697110] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:23.697223] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:04:23.697290] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:04:23.697343] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:04:23.697416] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:04:25.138103] ipam.mqt.maple.waffle.com (DEBUG): got: f33a4908-8448-4e7f-b003-a80daa17acc2, stored: None [2018/06/12 09:04:25.143865] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:04:25.144019] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0xLjEwLjIyLjI2LjMu:aa.bb.26.3/cloudbusine0510-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:25.144117] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:04:25.170737] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:04:25.170947] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:04:25.171065] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:04:25.171206] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0xLjEwLjIyLjI2LjMu:aa.bb.26.3/cloudbusine0510-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:25.171296] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:04:25.171372] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:04:25.171456] 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 09:04:25.171612] 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 09:04:25.171880] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'a081cfd5-9848-4ea9-9082-ce42f5d04e05', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812265', 'TIME': '2018-06-12T14:04:25Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:04:25.171989] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:04:25.172142] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:04:25.172221] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.172377] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04 [2018/06/12 09:04:25.172447] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.172519] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:04:25.172619] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.172737] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:25.172879] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:25.172949] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.173002] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:25.173085] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:04:25.173161] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.173267] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:25.173407] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:25.173476] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.173529] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:25.173633] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:04:25.173716] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.173823] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:04:25.173892] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.173963] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:04:25.174038] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.174148] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:04:25.174217] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:04:25.174270] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:04:25.174332] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:04:25.177939] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:04:25.178079] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0yLjEwLjIyLjI3LjQu:aa.bb.27.4/cloudbusine0510-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:25.178181] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:04:25.204618] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:04:25.204822] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:04:25.204936] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:04:25.205074] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0yLjEwLjIyLjI3LjQu:aa.bb.27.4/cloudbusine0510-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:25.205163] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:04:25.205240] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:04:25.205322] 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 09:04:25.205444] 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 09:04:25.205689] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '60262dde-6198-4dec-886a-1ed25e323939', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812265', 'TIME': '2018-06-12T14:04:25Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:04:25.205788] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:04:25.205940] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:04:25.206018] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.206205] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04 [2018/06/12 09:04:25.206280] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.206353] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:04:25.206428] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.206537] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:25.206720] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:25.206790] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.206845] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:25.206927] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:04:25.207007] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.207113] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:25.207253] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:25.207321] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.207374] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:25.207455] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:04:25.207533] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.207658] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:04:25.207729] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.207801] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:04:25.207875] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.207985] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:04:25.208052] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:04:25.208105] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:04:25.208166] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:04:25.211759] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:04:25.211898] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0xLjEwLjIyLjI2LjQu:aa.bb.26.4/cloudbusine0509-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:25.212002] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:04:25.238221] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:04:25.238451] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:04:25.238566] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:04:25.238738] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0xLjEwLjIyLjI2LjQu:aa.bb.26.4/cloudbusine0509-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:04:25.238829] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:04:25.238905] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:04:25.238986] 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 09:04:25.239107] 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 09:04:25.239329] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'e5913950-1caf-4666-aa5e-713e7f30d48b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812265', 'TIME': '2018-06-12T14:04:25Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:04:25.239438] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:04:25.239615] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:04:25.239705] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.239860] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04 [2018/06/12 09:04:25.239929] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.240001] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:04:25.240077] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.240186] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:25.240327] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:25.240395] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.240448] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:25.240530] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:04:25.240616] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.240736] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:04:25.240875] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:04:25.240944] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.240997] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:04:25.241079] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:04:25.241157] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.241263] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:04:25.241330] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:04:25.241401] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:04:25.241476] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:04:25.241588] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:04:25.241674] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:04:25.241730] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:04:25.241791] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:07:36.330617] ipam.mqt.maple.waffle.com (DEBUG): got: 17fc639f-e079-4a84-9be8-3ddc7378bde2, stored: None [2018/06/12 09:07:36.336758] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:07:36.336911] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:36.337042] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:07:36.365128] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:07:36.365338] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:07:36.365468] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:07:36.365608] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:36.365691] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:07:36.365762] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:07:36.365840] 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 09:07:36.365959] 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 09:07:36.366221] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '10e0c14d-084a-4cf1-ab17-958f44455434', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812456', 'TIME': '2018-06-12T14:07:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:07:36.366316] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:07:36.366475] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:07:36.366549] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.366719] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07 [2018/06/12 09:07:36.366786] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:36.366854] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:07:36.366924] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.367033] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:36.367173] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:36.367237] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:36.367288] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:36.367421] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:07:36.367546] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.367708] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:36.367851] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:36.367914] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:36.367963] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:36.368043] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:07:36.368141] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.368290] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:07:36.368451] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:36.368525] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:07:36.368595] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.368889] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:07:36.368972] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:07:36.369046] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:07:36.369109] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:07:36.372942] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:07:36.373084] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:36.373170] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:07:36.400389] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:07:36.400605] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:07:36.400719] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:07:36.400857] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:36.400941] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:07:36.401013] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:07:36.401089] 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 09:07:36.401205] 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 09:07:36.401442] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'fd0d5eec-0c2c-4397-85f1-de2bb8a31dfc', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812456', 'TIME': '2018-06-12T14:07:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:07:36.401534] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:07:36.401682] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:07:36.401755] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.401905] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07 [2018/06/12 09:07:36.401970] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:36.402057] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:07:36.402139] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.402243] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:36.402383] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:36.402446] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:36.402494] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:36.402574] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:07:36.402645] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.402745] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:36.402884] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:36.402947] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:36.402994] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:36.403071] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:07:36.403142] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.403243] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:07:36.403304] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:36.403369] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:07:36.403437] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:36.403541] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:07:36.403603] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:07:36.403651] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:07:36.403708] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:07:38.843476] ipam.mqt.maple.waffle.com (DEBUG): got: 998f4d1b-605e-42d2-8b32-74148cabbd3f, stored: None [2018/06/12 09:07:38.849940] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:07:38.850089] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:38.850194] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:07:38.877510] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:07:38.877727] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:07:38.877842] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:07:38.877977] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:38.878063] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:07:38.878134] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:07:38.878224] 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 09:07:38.878392] 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 09:07:38.878665] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd3204768-c74b-4d18-9c42-2de3c33f3bca', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812458', 'TIME': '2018-06-12T14:07:38Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:07:38.878760] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:07:38.878907] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:07:38.878980] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.879141] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07 [2018/06/12 09:07:38.879231] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:38.879323] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:07:38.879396] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.879514] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:38.879652] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:38.879717] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:38.879765] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:38.879843] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:07:38.879913] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.880014] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:38.880148] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:38.880212] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:38.880275] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:38.880360] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:07:38.880433] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.880535] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:07:38.880597] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:38.880662] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:07:38.880731] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.880837] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:07:38.880899] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:07:38.880949] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:07:38.881006] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:07:38.885148] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:07:38.885300] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:38.885391] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:07:38.911620] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:07:38.911835] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:07:38.911953] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:07:38.912088] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:38.912170] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:07:38.912240] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:07:38.912314] 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 09:07:38.912427] 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 09:07:38.912632] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'e03bf6f4-c9c4-4768-8e98-16975353bd48', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812458', 'TIME': '2018-06-12T14:07:38Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:07:38.912723] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:07:38.912866] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:07:38.912938] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.913090] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07 [2018/06/12 09:07:38.913184] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:38.913254] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:07:38.913325] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.913427] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:38.913563] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:38.913626] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:38.913675] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:38.913764] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:07:38.913835] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.913935] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:38.914069] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:38.914131] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:38.914189] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:38.914268] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:07:38.914339] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.914439] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:07:38.914499] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:38.914564] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:07:38.914632] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:38.914735] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:07:38.914796] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:07:38.914844] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:07:38.914900] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:07:39.842221] ipam.mqt.maple.waffle.com (DEBUG): got: 71ac6055-c5c3-44ff-ae2c-4b69fdc86317, stored: None [2018/06/12 09:07:39.851055] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:07:39.851207] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:39.851347] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:07:39.877368] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:07:39.877590] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:07:39.877710] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:07:39.877855] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:39.877941] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:07:39.878012] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:07:39.878088] 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 09:07:39.878210] 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 09:07:39.878467] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '65c6db46-0973-4a08-8397-5567c45a8ab4', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812459', 'TIME': '2018-06-12T14:07:39Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:07:39.878562] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:07:39.878713] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:07:39.878786] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.878939] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07 [2018/06/12 09:07:39.879005] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:39.879073] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:07:39.879143] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.879263] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:39.879405] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:39.879468] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:39.879518] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:39.879597] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:07:39.879667] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.879768] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:39.879913] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:39.879977] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:39.880025] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:39.880145] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:07:39.880221] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.880322] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:07:39.880384] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:39.880450] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:07:39.880519] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.880626] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:07:39.880688] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:07:39.880737] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:07:39.880795] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:07:39.885182] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:07:39.885315] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:39.885405] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:07:39.917084] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:07:39.917381] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:07:39.917536] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:07:39.917738] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:07:39.917849] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:07:39.917944] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:07:39.918047] 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 09:07:39.918211] 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 09:07:39.918614] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'b1f2243b-5715-46a7-8b9f-7c71276e7a9b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812459', 'TIME': '2018-06-12T14:07:39Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:07:39.918739] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:07:39.918934] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:07:39.919033] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.919247] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07 [2018/06/12 09:07:39.919335] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:39.919424] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:07:39.919518] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.919657] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:39.919838] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:39.919922] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:39.919987] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:39.920091] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:07:39.920186] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.920322] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:07:39.920502] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:07:39.920584] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:39.920648] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:07:39.920751] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:07:39.920859] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.920996] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:07:39.921078] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:07:39.921167] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:07:39.921261] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:07:39.921403] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:07:39.921485] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:07:39.921551] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:07:39.921628] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:15.472620] ipam.mqt.maple.waffle.com (DEBUG): got: bea4e612-92e9-4b0c-9a64-2509b3ab0b5f, stored: None [2018/06/12 09:13:15.477342] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:15.477482] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-vip.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.21', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS12aXAuMTAuMjIuMjUuMjEu:aa.bb.25.21/rtb1stp02-de001-vip.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:13:15.477594] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:15.504999] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:15.505265] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:15.505397] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:15.505530] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-vip.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.21', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS12aXAuMTAuMjIuMjUuMjEu:aa.bb.25.21/rtb1stp02-de001-vip.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:13:15.505624] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:15.505724] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:15.505856] 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 09:13:15.505993] 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 09:13:15.506272] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'aee18cdf-a544-486f-b79e-ba229bb9f2dc', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812795', 'TIME': '2018-06-12T14:13:15Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:15.506370] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:15.506520] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:15.506595] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:15.506800] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:15.506880] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:15.506950] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:15.507020] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:15.507125] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:15.507263] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:15.507326] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:15.507376] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:15.507456] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:15.507527] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:15.507628] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:15.507802] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:15.507869] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:15.507918] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:15.507997] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:15.508070] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:15.508171] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:15.508233] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:15.508325] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:15.508396] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:15.508503] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:15.508564] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:15.508624] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:15.508716] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:17.949265] ipam.mqt.maple.waffle.com (DEBUG): got: a61e75dd-6857-4f6f-8553-67fd198c6d3d, stored: None [2018/06/12 09:13:17.954426] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:17.954569] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:13:17.954665] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:17.983027] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:17.983280] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:17.983408] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:17.983534] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:13:17.983617] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:17.983688] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:17.983765] 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 09:13:17.983887] 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 09:13:17.984183] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'ff5469d9-aab2-464a-951e-e11070b3bd0b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812797', 'TIME': '2018-06-12T14:13:17Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:17.984281] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:17.984432] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:17.984507] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:17.984664] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:17.984730] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:17.984798] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:17.984868] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:17.985013] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:17.985157] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:17.985220] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:17.985270] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:17.985348] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:17.985419] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:17.985520] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:17.985665] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:17.985727] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:17.985775] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:17.985852] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:17.985923] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:17.986083] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:17.986157] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:17.986225] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:17.986295] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:17.986468] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:17.986535] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:17.986585] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:17.986643] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:18.515515] ipam.mqt.maple.waffle.com (DEBUG): got: a6ee04ad-9953-49e3-82a3-2d297cc3ca1c, stored: None [2018/06/12 09:13:18.530131] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:18.530266] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.530380] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:18.557286] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:18.557534] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:18.557659] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:18.557785] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.557869] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:18.557940] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:18.558042] 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 09:13:18.558176] 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 09:13:18.558438] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'cd9c44f0-aef1-4d16-a050-598c43d06f3e', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:18.558572] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:18.558725] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:18.558799] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.558958] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:18.559042] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.559119] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:18.559190] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.559296] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.559432] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.559495] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.559544] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.559661] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:18.559738] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.559841] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.559977] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.560065] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.560117] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.560196] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:18.560269] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.560369] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:18.560431] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.560497] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:18.560565] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.560672] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:18.560734] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:18.560782] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:18.560839] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:18.567487] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:18.567608] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:13:18.567698] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:18.594661] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:18.594871] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:18.594982] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:18.595133] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:13:18.595218] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:18.595290] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:18.595366] 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 09:13:18.595490] 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 09:13:18.595721] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '72c9a445-9e06-4357-b079-40a0d25b286e', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:18.595815] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:18.595960] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:18.596053] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.596211] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:18.596277] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.596344] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:18.596414] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.596516] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.596652] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.596726] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.596777] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.596855] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:18.596925] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.597044] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.597184] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.597247] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.597295] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.597373] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:18.597444] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.597544] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:18.597606] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.597670] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:18.597738] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.597843] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:18.597905] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:18.597954] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:18.598043] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:18.601473] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:18.601592] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.601675] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:18.628013] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:18.628234] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:18.628375] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:18.628491] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.628580] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:18.628654] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:18.628731] 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 09:13:18.628847] 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 09:13:18.629069] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'a9eb6216-9649-4a62-af06-7f13c4003973', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:18.629164] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:18.629309] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:18.629382] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.629527] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:18.629607] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.629681] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:18.629750] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.629851] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.629985] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.630070] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.630123] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.630201] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:18.630272] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.630371] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.630504] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.630566] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.630614] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.630702] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:18.630775] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.630875] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:18.630938] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.631007] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:18.631095] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.631201] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:18.631262] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:18.631310] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:18.631367] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:18.635034] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:18.635179] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.635266] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:18.662002] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:18.662235] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:18.662347] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:18.662467] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.662559] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:18.662641] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:18.662718] 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 09:13:18.662845] 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 09:13:18.663082] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'cc45933c-0381-4bce-854b-dedb928595c2', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:18.663177] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:18.663322] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:18.663395] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.663545] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:18.663611] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.663678] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:18.663748] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.663849] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.663982] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.664061] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.664117] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.664195] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:18.664266] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.664366] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.664499] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.664561] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.664609] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.664687] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:18.664757] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.664857] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:18.664918] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.664982] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:18.665077] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.665185] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:18.665247] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:18.665295] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:18.665363] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:18.668920] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:18.669058] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.669154] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:18.695345] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:18.695538] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:18.695653] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:18.695771] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.695852] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:18.695923] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:18.695999] 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 09:13:18.696151] 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 09:13:18.696371] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'fdc016ca-1c8a-477b-affb-ecfb9d42f73f', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:18.696462] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:18.696606] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:18.696678] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.696823] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:18.696889] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.696957] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:18.697048] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.697159] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.697296] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.697359] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.697408] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.697486] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:18.697557] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.697657] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.697791] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.697854] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.697902] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.697979] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:18.698071] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.698176] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:18.698237] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.698365] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:18.698435] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.698540] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:18.698601] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:18.698649] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:18.698706] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:18.702201] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:18.702319] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.26', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI2Lg:aa.bb.25.26/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:13:18.702416] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:18.731472] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:18.731698] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:18.731813] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:18.731935] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.26', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI2Lg:aa.bb.25.26/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:13:18.732025] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:18.732156] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:18.732300] 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 09:13:18.732506] 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 09:13:18.732861] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '0f32e48e-b54e-4d8a-bc5b-fe0ceff9cdec', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:18.732961] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:18.733154] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:18.733283] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.733571] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:18.733677] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.733794] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:18.733925] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.734090] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.734235] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.734300] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.734350] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.734430] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:18.734501] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.734602] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.734737] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.734800] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.734849] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.734927] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:18.734998] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.735134] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:18.735199] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.735266] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:18.735336] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.735494] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:18.735620] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:18.735701] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:18.735763] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:18.739518] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:18.739678] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.739776] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:18.769320] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:18.769602] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:18.769740] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:18.769864] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.769948] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:18.770027] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:18.770129] 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 09:13:18.770254] 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 09:13:18.770492] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '6372120c-8975-470a-bade-c4f48eac3eab', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:18.770587] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:18.770737] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:18.770811] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.770967] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:18.771037] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.771126] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:18.771199] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.771312] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.771448] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.771512] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.771561] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.771639] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:18.771721] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.771825] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.771959] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.772027] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.772090] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.772171] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:18.772243] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.772346] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:18.772407] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.772473] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:18.772541] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.772658] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:18.772722] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:18.772770] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:18.772828] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:13:18.776420] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:13:18.776539] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.776630] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:13:18.803398] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:13:18.803622] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:13:18.803737] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:13:18.803857] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:13:18.803954] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:13:18.804035] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:13:18.804151] 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 09:13:18.804274] 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 09:13:18.804505] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '4269eb58-477d-4638-af6b-2c39e56ee501', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:13:18.804598] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:13:18.804744] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:13:18.804818] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.804967] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13 [2018/06/12 09:13:18.805053] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.805144] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:13:18.805217] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.805320] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.805457] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.805521] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.805568] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.805658] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:13:18.805729] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.805829] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:13:18.805978] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:13:18.806067] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.806126] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:13:18.806207] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:13:18.806279] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.806380] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:13:18.806453] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:13:18.806521] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:13:18.806590] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:13:18.806696] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:13:18.806757] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:13:18.806808] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:13:18.806865] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:17:47.052682] ipam.mqt.maple.waffle.com (DEBUG): got: dac755b9-57df-4f3f-9cab-1ef39ae51a5c, stored: None [2018/06/12 09:17:47.066567] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:17:47.066735] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:17:47.066843] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:17:47.093851] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:17:47.094219] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:17:47.094360] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:17:47.094501] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:17:47.094597] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:17:47.094672] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:17:47.094751] 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 09:17:47.094906] 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 09:17:47.095184] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'f91e3b4e-2a4d-4c16-8d9a-fc87cbc23a99', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813067', 'TIME': '2018-06-12T14:17:47Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:17:47.095288] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:17:47.095439] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:17:47.095514] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.095678] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17 [2018/06/12 09:17:47.095746] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:47.095814] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:17:47.095883] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.095987] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:47.096122] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:47.096186] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:47.096235] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:47.096312] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:17:47.096382] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.096483] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:47.096618] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:47.096681] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:47.096730] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:47.096816] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:17:47.096889] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.096990] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:17:47.097053] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:47.097119] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:17:47.097187] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.097306] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:17:47.097370] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:17:47.097420] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:17:47.097478] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:17:47.101400] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:17:47.101538] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.25.18', u'mac': u'00:50:56:9b:7c:b0', u'host': u'rtb1stp02-de001.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS4xMC4yMi4yNS4xOC4:aa.bb.25.18/rtb1stp02-de001.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:17:47.101625] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:17:47.129123] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:17:47.129363] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:17:47.129484] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:17:47.129630] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.25.18', u'mac': u'00:50:56:9b:7c:b0', u'host': u'rtb1stp02-de001.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS4xMC4yMi4yNS4xOC4:aa.bb.25.18/rtb1stp02-de001.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:17:47.129723] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:17:47.129801] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:17:47.129880] 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 09:17:47.130000] 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 09:17:47.130233] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '27834722-96bb-43b4-9850-0c22b1803c71', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813067', 'TIME': '2018-06-12T14:17:47Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:17:47.130328] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:17:47.130478] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:17:47.130552] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.130704] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17 [2018/06/12 09:17:47.130770] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:47.130837] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:17:47.130909] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.131020] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:47.131160] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:47.131224] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:47.131273] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:47.131351] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:17:47.131423] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.131525] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:47.131660] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:47.131723] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:47.131773] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:47.131858] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:17:47.131929] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.132097] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:17:47.132167] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:47.132235] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:17:47.132305] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:47.132412] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:17:47.132475] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:17:47.132523] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:17:47.132580] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:17:49.072805] ipam.mqt.maple.waffle.com (DEBUG): got: 3b10b106-31b7-46b6-b3d1-3f9a2eb6dd53, stored: None [2018/06/12 09:17:49.078168] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:17:49.078346] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:17:49.078489] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:17:49.106427] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:17:49.106693] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:17:49.106822] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:17:49.107000] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:17:49.107103] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:17:49.107177] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:17:49.107266] 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 09:17:49.107390] 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 09:17:49.107634] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7b5eaf6e-26c4-4580-bc36-ae38e9cc0fc9', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813069', 'TIME': '2018-06-12T14:17:49Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:17:49.107732] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:17:49.107883] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:17:49.107980] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.108157] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17 [2018/06/12 09:17:49.108225] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:49.108316] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:17:49.108389] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.108497] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:49.108634] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:49.108699] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:49.108747] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:49.108826] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:17:49.108896] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.109032] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:49.109182] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:49.109247] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:49.109296] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:49.109375] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:17:49.109447] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.109550] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:17:49.109613] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:49.109679] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:17:49.109749] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.109858] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:17:49.109921] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:17:49.110000] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:17:49.110074] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:17:49.113958] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:17:49.114123] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-1.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0xLjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-1.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:17:49.114231] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:17:49.141516] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:17:49.141783] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:17:49.141908] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:17:49.142095] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-1.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0xLjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-1.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:17:49.142202] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:17:49.142279] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:17:49.142359] 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 09:17:49.142482] 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 09:17:49.142735] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'ad81c47b-0df8-4eb6-9d87-e99ab1000c58', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813069', 'TIME': '2018-06-12T14:17:49Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:17:49.142849] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:17:49.143026] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:17:49.143103] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.143260] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17 [2018/06/12 09:17:49.143326] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:49.143394] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:17:49.143465] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.143586] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:49.143729] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:49.143792] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:49.143842] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:49.143921] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:17:49.144020] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.144126] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:49.144276] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:49.144343] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:49.144393] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:49.144472] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:17:49.144545] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.144648] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:17:49.144711] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:49.144777] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:17:49.144848] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:49.144985] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:17:49.145054] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:17:49.145113] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:17:49.145174] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:17:50.071593] ipam.mqt.maple.waffle.com (DEBUG): got: 90e7d6cc-c539-4364-ac74-1b7267e84bd0, stored: None [2018/06/12 09:17:50.077836] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:17:50.077982] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:17:50.078100] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:17:50.105277] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:17:50.105527] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:17:50.105648] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:17:50.105788] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:17:50.105874] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:17:50.105945] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:17:50.106022] 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 09:17:50.106186] 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 09:17:50.106441] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '682046a5-16fa-4082-be2c-c2c71088af90', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813070', 'TIME': '2018-06-12T14:17:50Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:17:50.106536] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:17:50.106686] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:17:50.106792] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.107075] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17 [2018/06/12 09:17:50.107203] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:50.107329] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:17:50.107463] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.107660] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:50.107917] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:50.108037] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:50.108141] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:50.108312] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:17:50.108449] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.108641] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:50.108899] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:50.109020] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:50.109122] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:50.109273] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:17:50.109410] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.109603] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:17:50.109785] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:50.109917] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:17:50.110050] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.110259] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:17:50.110374] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:17:50.110468] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:17:50.110573] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:17:50.114909] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:17:50.115106] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-2.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0yLjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:17:50.115240] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:17:50.149861] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:17:50.150257] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:17:50.150456] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:17:50.150700] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-2.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0yLjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:17:50.150857] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:17:50.150998] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:17:50.151153] 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 09:17:50.151368] 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 09:17:50.151766] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '3b9996d2-1f61-4a1a-88b8-6f88612a4c7e', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813070', 'TIME': '2018-06-12T14:17:50Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:17:50.151952] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:17:50.152200] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:17:50.152286] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.152447] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17 [2018/06/12 09:17:50.152516] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:50.152587] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:17:50.152659] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.152766] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:50.152904] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:50.152969] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:50.153018] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:50.153123] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:17:50.153200] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.153303] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:17:50.153441] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:17:50.153505] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:50.153554] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:17:50.153632] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:17:50.153704] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.153806] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:17:50.153867] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:17:50.153933] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:17:50.154002] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:17:50.154137] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:17:50.154203] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:17:50.154253] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:17:50.154310] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:18:40.535506] ipam.mqt.maple.waffle.com (DEBUG): got: ddcf477d-20bb-42db-a7d7-680634d8d2ae, stored: None [2018/06/12 09:18:40.540771] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:40.540921] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-1.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0xLjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-1.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:18:40.541095] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:40.570214] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:40.570437] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:40.570556] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:40.570698] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-1.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0xLjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-1.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:18:40.570782] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:40.570854] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:40.570932] 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 09:18:40.571077] 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 09:18:40.571314] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'fbb1e31d-1eea-4b01-9f3a-5182b73786c5', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813120', 'TIME': '2018-06-12T14:18:40Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:40.571410] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:40.571570] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:40.571646] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.571815] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:40.571883] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.571953] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:40.572045] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.572151] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.572288] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:18:40.572352] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.572401] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:18:40.572481] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:40.572552] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.572654] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.572787] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:18:40.572850] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.572898] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:18:40.572987] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:40.573069] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.573173] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:40.573236] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.573303] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:40.573371] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.573476] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:18:40.573538] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.573586] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:18:40.573644] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:18:40.578137] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:40.578345] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.578467] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:40.605390] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:40.605604] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:40.605722] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:40.605917] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.606059] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:40.606137] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:40.606214] 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 09:18:40.606336] 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 09:18:40.606565] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd4c685af-19a1-4db6-8d0c-8e8f3f4dd54f', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813120', 'TIME': '2018-06-12T14:18:40Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:40.607387] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:40.607540] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:40.607616] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.607769] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:40.607835] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.607952] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:40.608055] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.608164] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.608343] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.608411] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.608462] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.608752] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:40.608829] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.608931] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.609094] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.609204] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:7e:39 != [2018/06/12 09:18:40.609268] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.609318] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.609421] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:40.609495] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.609595] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:40.609658] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.609725] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:40.609796] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.609903] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:40.609985] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.610064] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:40.610136] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:40.610246] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:40.610342] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:40.610435] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:40.610495] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.610562] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:40.610631] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.610732] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.610794] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.610847] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:40.610928] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:40.611023] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:40.611710] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:40.611920] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:40.612053] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:40.671715] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:40 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'set-cookie': 'ibapauth="client=API,group=web-api-only,ctime=1528813120,timeout=900,mtime=1528813120,ip=yyy.yyy.181.26,auth=LOCAL,user=fsapi,VgnwqHi2y36xE+WaCxQ6HBcAgGpoCrGLmkU"; httponly; Path=/', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:40.671821] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:40.671892] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:40.672099] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.672188] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:40.672298] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:40.672354] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:40.672456] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.672587] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5 [2018/06/12 09:18:40.672648] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:40.672834] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.672926] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:40.700836] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:40.701099] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:40.701224] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:40.701440] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.701532] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:40.701605] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:40.701684] 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 09:18:40.701763] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.702032] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'fd69c855-fed3-474a-a544-763d4bf34ed6', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813120', 'TIME': '2018-06-12T14:18:40Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:40.702133] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:40.702283] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:40.702366] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.702523] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:40.702594] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.702663] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:40.702734] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.702838] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.703005] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.703079] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.703140] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.703443] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:40.703521] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.703624] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.703766] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.703875] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:7e:39 != [2018/06/12 09:18:40.703938] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.704012] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.704218] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:40.704360] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.704532] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:40.704602] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.704671] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:40.704742] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.704855] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:40.704918] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.704998] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:40.705075] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:40.705169] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:40.705262] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:40.705354] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:40.705421] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.705488] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:40.705564] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.705664] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.705727] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.705780] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:40.705852] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:40.705920] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:40.706503] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:40.706698] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:40.706797] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:40.759803] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:40 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:40.759939] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:40.760038] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:40.760236] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.760334] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:40.760454] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:40.760512] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:40.760595] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.760713] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5 [2018/06/12 09:18:40.760778] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:40.760991] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.761108] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:40.787951] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:40.788172] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:40.788297] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:40.788489] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.788581] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:40.788654] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:40.788732] 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 09:18:40.788810] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.789074] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'c6db63f0-3b27-40a4-88a4-9047f1b74d5c', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813120', 'TIME': '2018-06-12T14:18:40Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:40.789251] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:40.789486] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:40.789609] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.789862] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:40.789977] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.790102] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:40.790248] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.790436] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.790701] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.790820] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.790915] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.791435] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:40.791572] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.791758] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.792013] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.792202] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:7e:39 != [2018/06/12 09:18:40.792308] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.792363] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.792472] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:40.792548] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.792653] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:40.792717] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.792784] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:40.792854] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.792961] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:40.793043] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.793113] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:40.793201] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:40.793303] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:40.793396] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:40.793488] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:40.793549] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.793616] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:40.793686] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.793786] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.793848] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.793901] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:40.793995] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:40.794072] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:40.794622] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:40.794816] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:40.794914] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:40.846777] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:40 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:40.846891] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:40.846962] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:40.847156] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.847255] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:40.847375] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:40.847431] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:40.847514] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.847630] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5 [2018/06/12 09:18:40.847689] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:40.847872] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.847984] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:40.874593] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:40.874808] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:40.874919] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:40.875121] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.875220] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:40.875293] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:40.875370] 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 09:18:40.875449] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.875678] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '0b5aa4a6-be40-4dd7-ab69-0a69670bd9a7', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813120', 'TIME': '2018-06-12T14:18:40Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:40.875770] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:40.875917] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:40.875995] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.876159] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:40.876224] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.876292] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:40.876361] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.876463] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.876609] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.876673] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.876721] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.877005] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:40.877080] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.877189] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.877333] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.877439] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:7e:39 != [2018/06/12 09:18:40.877501] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.877550] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.877652] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:40.877726] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.877826] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:40.877888] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.877953] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:40.878028] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.878134] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:40.878206] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.878291] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:40.878363] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:40.878455] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:40.878547] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:40.878637] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:40.878696] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.878763] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:40.878831] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.878929] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.878995] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.879050] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:40.879125] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:40.879192] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:40.879722] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:40.879911] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:40.880037] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:40.932535] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:40 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:40.932642] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:40.932714] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:40.932884] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.932971] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:40.933123] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:40.933189] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:40.933274] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.933408] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5 [2018/06/12 09:18:40.933467] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:40.933666] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.933758] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:40.961355] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:40.961602] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:40.961725] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:40.961943] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:40.962071] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:40.962147] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:40.962225] 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 09:18:40.962304] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:40.962563] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '3a3b889f-1628-4a59-9497-5be90c962828', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813120', 'TIME': '2018-06-12T14:18:40Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:40.962658] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:40.962805] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:40.962879] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.963078] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:40.963153] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.963222] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:40.963303] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.963415] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.963565] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.963631] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.963679] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.963970] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:40.964075] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.964194] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.964341] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:40.964453] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:7e:39 != [2018/06/12 09:18:40.964516] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.964564] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:40.964668] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:40.964754] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.964856] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:40.964919] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.964989] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:40.965077] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.965187] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:40.965248] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.965315] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:40.965384] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:40.965476] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:40.965568] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:40.965657] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:40.965718] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:40.965784] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:40.965852] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:40.965951] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:40.966032] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:40.966096] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:40.966169] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:40.966241] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:40.966814] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:40.967049] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:40.967152] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:41.032199] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:40 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:41.032314] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:41.032406] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:41.032588] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:41.032677] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:41.032804] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:41.032865] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:41.032957] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:41.033109] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5 [2018/06/12 09:18:41.033170] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:41.033358] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:41.033453] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:41.060876] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:41.061147] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:41.061267] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:41.061461] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:41.061551] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:41.061625] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:41.061702] 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 09:18:41.061782] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:41.062026] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'be014f8f-b07b-4ba4-8e34-138202ab3ee3', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813121', 'TIME': '2018-06-12T14:18:41Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:41.062151] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:41.062308] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:41.062384] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:41.062538] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:41.062604] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:41.062672] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:41.062742] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:41.062847] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:41.062996] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:41.063088] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:41.063139] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:41.063437] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:41.063518] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:41.063621] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:41.063764] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:41.063872] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:7e:39 != [2018/06/12 09:18:41.063935] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:41.063985] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:41.064115] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:41.064205] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:41.064312] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:41.064376] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:41.064442] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:41.064511] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:41.064623] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:41.064685] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:41.064753] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:41.064821] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:41.064914] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:41.065022] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:41.065129] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:41.065200] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:41.065266] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:41.065337] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:41.065436] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:41.065499] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:41.065554] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:41.065625] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:41.065692] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:41.066291] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:41.066482] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:41.066588] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:41.120142] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:41 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:41.120264] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:41.120340] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:41.120517] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:41.120605] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:41.120723] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:41.120780] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:41.120861] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:41.120976] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5 [2018/06/12 09:18:41.121165] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-priv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 1}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'1026'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjYuMC8yNC8w:aa.bb.26.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}` is skipped [2018/06/12 09:18:42.549615] ipam.mqt.maple.waffle.com (DEBUG): got: c1836e02-c4de-4b7e-a255-69711ef1d110, stored: None [2018/06/12 09:18:42.555548] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:42.555700] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-2.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0yLjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:18:42.555793] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:42.582660] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:42.582858] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:42.582981] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:42.583119] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-2.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0yLjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'} [2018/06/12 09:18:42.583260] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:42.583343] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:42.583420] 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 09:18:42.583499] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.583724] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'fedff9e9-d031-40cf-9fc7-c9c1eb7d41bf', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813122', 'TIME': '2018-06-12T14:18:42Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:42.583816] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:42.583961] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:42.584035] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.584206] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:42.584290] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.584362] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:42.584432] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.584536] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.584673] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:18:42.584737] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.584786] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:18:42.584862] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:42.584932] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.585033] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.585177] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:18:42.585253] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.585303] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:18:42.585380] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:42.585452] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.585562] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:42.585624] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.585689] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:42.585760] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.585863] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:18:42.585925] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.585988] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:18:42.586050] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:18:42.590541] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:42.590735] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.590825] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:42.617349] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:42.617611] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:42.617762] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:42.617960] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.618066] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:42.618203] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:42.618303] 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 09:18:42.618385] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1wcml2LjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-priv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.618604] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '42a1746b-f9b6-4ba0-81a3-e389d75433e5', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813122', 'TIME': '2018-06-12T14:18:42Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:42.619311] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:42.619468] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:42.619545] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.619735] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:42.619802] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.619872] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:42.619944] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.620049] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.620215] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.620285] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.620335] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.620625] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:42.620716] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.620822] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.620965] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.621073] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:57:d5 != [2018/06/12 09:18:42.621135] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.621203] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.621314] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:42.621389] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.621493] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:42.621556] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.621623] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:42.621692] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.621797] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:42.621859] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.621925] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:42.621994] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:42.622085] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:42.622195] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:42.622302] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:42.622366] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.622432] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:42.622501] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.622599] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.622661] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.622721] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:42.622793] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:42.622859] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:42.623520] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:42.623712] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:42.623810] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:42.678068] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:42 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:42.678209] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:42.678310] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:42.678489] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.678575] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:42.678684] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:42.678739] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:42.678820] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.678934] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5 [2018/06/12 09:18:42.678994] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:42.679189] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.679298] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:42.710149] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:42.710396] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:42.710515] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:42.710710] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.710798] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:42.710869] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:42.710945] 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 09:18:42.711024] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.711270] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '91b74a89-d976-4b20-b7a2-cc6dd1c121ac', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813122', 'TIME': '2018-06-12T14:18:42Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:42.711374] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:42.711522] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:42.711594] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.711747] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:42.711812] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.711880] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:42.711950] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.712052] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.712216] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.712284] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.712333] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.712623] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:42.712699] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.712801] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.712942] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.713049] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:57:d5 != [2018/06/12 09:18:42.713112] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.713163] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.713294] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:42.713371] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.713507] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:42.713576] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.713642] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:42.713711] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.713818] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:42.713879] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.713944] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:42.714013] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:42.714103] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:42.714210] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:42.714332] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:42.714395] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.714461] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:42.714531] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.714630] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.714691] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.714744] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:42.714815] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:42.714893] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:42.715463] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:42.715653] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:42.715749] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:42.769513] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:42 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:42.769630] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:42.769701] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:42.769882] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.769970] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:42.770091] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:42.770148] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:42.770263] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.770396] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5 [2018/06/12 09:18:42.770458] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:42.770645] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.770759] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:42.798029] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:42.798360] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:42.798486] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:42.798689] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.798789] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:42.798863] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:42.798940] 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 09:18:42.799019] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.799264] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'bae00a11-ee44-4fb2-a695-64979865c6ee', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813122', 'TIME': '2018-06-12T14:18:42Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:42.799359] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:42.799507] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:42.799581] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.799735] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:42.799800] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.799867] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:42.799937] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.800042] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.800201] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.800283] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.800334] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.800627] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:42.800704] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.800807] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.800947] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.801054] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:57:d5 != [2018/06/12 09:18:42.801117] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.801166] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.801292] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:42.801368] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.801471] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:42.801533] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.801598] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:42.801667] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.801773] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:42.801851] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.801921] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:42.801990] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:42.802082] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:42.802176] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:42.802286] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:42.802347] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.802413] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:42.802483] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.802581] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.802644] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.802696] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:42.802767] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:42.802833] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:42.803413] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:42.803602] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:42.803698] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:42.862757] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:42 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:42.862865] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:42.862937] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:42.863110] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.863209] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:42.863332] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:42.863391] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:42.863474] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.863609] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5 [2018/06/12 09:18:42.863669] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:42.863849] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.863939] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:42.890355] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:42.890548] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:42.890655] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:42.890839] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.890940] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:42.891014] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:42.891091] 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 09:18:42.891169] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.891413] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '564bc9a0-5dc6-423d-9075-27e8c5471dec', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813122', 'TIME': '2018-06-12T14:18:42Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:42.891506] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:42.891652] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:42.891726] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.891878] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:42.891943] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.892011] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:42.892080] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.892191] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.892358] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.892425] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.892475] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.892761] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:42.892847] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.892951] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.893093] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.893214] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:57:d5 != [2018/06/12 09:18:42.893282] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.893331] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.893434] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:42.893508] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.893609] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:42.893671] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.893737] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:42.893805] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.893910] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:42.893972] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.894038] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:42.894106] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:42.894211] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:42.894325] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:42.894418] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:42.894479] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.894545] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:42.894614] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.894713] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.894774] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.894827] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:42.894898] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:42.894966] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:42.895505] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:42.895718] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:42.895816] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:42.951492] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:42 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:42.951626] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:42.951703] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:42.951886] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.951977] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:42.952099] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:42.952159] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:42.952293] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.952471] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5 [2018/06/12 09:18:42.952535] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:42.952723] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.952815] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:42.981841] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:42.982042] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:42.982150] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:42.982364] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:42.982459] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:42.982532] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:42.982610] 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 09:18:42.982688] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:42.982912] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '031e799b-a866-4f47-8c6c-d386730a67d3', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813122', 'TIME': '2018-06-12T14:18:42Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:42.983016] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:42.983163] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:42.983263] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.983425] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:42.983492] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.983560] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:42.983631] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.983733] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.983879] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.983944] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.983993] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.984347] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:42.984431] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.984535] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.984679] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:42.984788] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:57:d5 != [2018/06/12 09:18:42.984852] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.984902] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:42.985005] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:42.985078] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.985178] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:42.985271] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.985343] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:42.985413] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.985519] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:42.985581] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.985648] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:42.985716] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:42.985808] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:42.985899] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:42.985990] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:42.986051] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:42.986117] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:42.986193] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:42.986316] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:42.986379] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:42.986432] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:42.986504] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:42.986583] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:42.987113] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:42.987333] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:42.987434] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:43.047103] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:43 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:43.047225] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:43.047305] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:43.047482] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:43.047570] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:43.047688] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:43.047746] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:43.047829] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:43.047946] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5 [2018/06/12 09:18:43.048006] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:18:43.048224] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:43.048418] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:18:43.075474] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:18:43.075675] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:18:43.075783] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:18:43.075969] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'} [2018/06/12 09:18:43.076067] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:18:43.076140] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:18:43.076231] 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 09:18:43.076316] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:43.076565] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '48c4e8fe-1c89-47ef-9a34-76030c60b03c', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813123', 'TIME': '2018-06-12T14:18:43Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:18:43.076659] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:18:43.076804] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:18:43.076877] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:43.077065] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:18 [2018/06/12 09:18:43.077136] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:43.077214] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:18:43.077306] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:43.077413] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:43.077561] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:43.077626] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:43.077690] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:43.078012] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:18:43.078090] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:43.078194] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:43.078433] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true [2018/06/12 09:18:43.078545] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: 00:50:56:9b:57:d5 != [2018/06/12 09:18:43.078609] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:43.078658] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block [2018/06/12 09:18:43.078793] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:18:43.078870] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:43.078973] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:18:43.079034] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:43.079100] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:18:43.079168] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:43.079292] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == false [2018/06/12 09:18:43.079369] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:43.079439] ipam.mqt.maple.waffle.com (DEBUG): Executing step Goto for delete action (1) [2018/06/12 09:18:43.079509] ipam.mqt.maple.waffle.com (DEBUG): Found a/an OR condition step! [2018/06/12 09:18:43.079600] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: INSERT == DELETE [2018/06/12 09:18:43.079692] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == RELEASED [2018/06/12 09:18:43.079782] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == FREE [2018/06/12 09:18:43.079841] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:18:43.079907] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease_go_for_Data (1) [2018/06/12 09:18:43.079976] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:18:43.080074] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:18:43.080136] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:18:43.080189] ipam.mqt.maple.waffle.com (DEBUG): Jumping to to Get Discovery Data [2018/06/12 09:18:43.080281] ipam.mqt.maple.waffle.com (DEBUG): We are jumping from step check_for_Lease_go_for_Data (#8), to Get Discovery Data (#13) [2018/06/12 09:18:43.080348] ipam.mqt.maple.waffle.com (DEBUG): Executing step Get Discovery Data (1) [2018/06/12 09:18:43.080877] ipam.mqt.maple.waffle.com (DEBUG): Sleeping for 0 seconds [2018/06/12 09:18:43.081065] ipam.mqt.maple.waffle.com (DEBUG): Sending a 'GET' request within connection: protocol='https', host='yyy.yyy.181.22', port='443', path='/wapi/v2.6/record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt?_return_fields=discovered_data', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2018/06/12 09:18:43.081160] ipam.mqt.maple.waffle.com (DEBUG): Request timeout is 30 [2018/06/12 09:18:43.140799] ipam.mqt.maple.waffle.com (DEBUG): Response status:200 reason:OK headers:{'date': 'Tue, 12 Jun 2018 14:18:43 GMT', 'connection': 'close', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store', 'transfer-encoding': 'chunked', 'content-type': 'application/json'} data:{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"} [2018/06/12 09:18:43.140905] ipam.mqt.maple.waffle.com (DEBUG): The previous endpoint request returned status 200 [2018/06/12 09:18:43.140977] ipam.mqt.maple.waffle.com (DEBUG): Parsing the endpoint message {'BODY': '{"_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt"}', 'REASON': 'OK', 'RC': 200} [2018/06/12 09:18:43.141159] ipam.mqt.maple.waffle.com (DEBUG): The parsing output is {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:43.141270] ipam.mqt.maple.waffle.com (DEBUG): Executing step Copy discovery_data for other records (1) [2018/06/12 09:18:43.141391] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template [2018/06/12 09:18:43.141448] ipam.mqt.maple.waffle.com (DEBUG): Invalid variable P:discovered_data [2018/06/12 09:18:43.141531] ipam.mqt.maple.waffle.com (DEBUG): The namespace P contains the following data {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:18:43.141662] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5 [2018/06/12 09:18:43.141839] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-asmpriv.mqt.maple.waffle.com', u'extattrs': {u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'mqt'}, u'VMware NIC index': {u'value': 2}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'1027'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'500'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'Lab'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'3G2'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'FS_RemediateOnEvent': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'CMP Type': {u'value': u'VMWare'}, u'VM Name': {u'value': u'CloudBusine0508'}, u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMjIuMjcuMC8yNC8w:aa.bb.27.0/24/default'}, u'value': u'true'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}` is skipped [2018/06/12 09:22:11.905726] ipam.mqt.maple.waffle.com (DEBUG): got: 308a1287-2cf6-40c9-844e-1b79bfa99c40, stored: None [2018/06/12 09:22:11.914647] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:22:11.914799] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.19', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS4xMC4yMi4yNS4xOS4:aa.bb.25.19/cloudbusine0509.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:11.914899] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:22:11.952459] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:22:11.952755] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:22:11.952931] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:22:11.953107] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.19', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS4xMC4yMi4yNS4xOS4:aa.bb.25.19/cloudbusine0509.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:11.953212] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:22:11.953328] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:22:11.953416] 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 09:22:11.953499] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:22:11.953806] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '0b064d69-3a18-42ec-9f5c-513e1df0657b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813331', 'TIME': '2018-06-12T14:22:11Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:22:11.953931] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:22:11.954157] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:22:11.954238] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:11.954396] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:22 [2018/06/12 09:22:11.954462] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:11.954531] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:22:11.954602] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:11.954707] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:11.954846] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:11.954910] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:11.954960] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:11.955057] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:22:11.955153] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:11.955260] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:11.955396] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:11.955459] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:11.955508] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:11.955588] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:22:11.955660] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:11.955762] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:22:11.955825] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:11.955891] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:22:11.955959] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:11.956097] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:22:11.956164] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:22:11.956223] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:22:11.956284] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:22:11.976896] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:22:11.977076] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.19', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS4xMC4yMi4yNS4xOS4:aa.bb.25.19/cloudbusine0509.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:11.977177] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:22:12.004004] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:22:12.004261] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:22:12.004391] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:22:12.004536] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.19', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS4xMC4yMi4yNS4xOS4:aa.bb.25.19/cloudbusine0509.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:12.004619] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:22:12.004692] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:22:12.004769] 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 09:22:12.004846] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:22:12.005097] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '58fd4e24-2a00-4310-a585-8e6dbc858267', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813332', 'TIME': '2018-06-12T14:22:12Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:22:12.005199] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:22:12.005349] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:22:12.005422] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.005577] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:22 [2018/06/12 09:22:12.005643] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.005712] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:22:12.005782] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.005886] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:12.006024] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:12.006118] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.006172] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:12.006263] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:22:12.006336] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.006438] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:12.006572] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:12.006634] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.006683] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:12.006761] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:22:12.006843] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.006946] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:22:12.007008] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.007101] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:22:12.007179] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.007287] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:22:12.007349] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:22:12.007399] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:22:12.007456] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:22:12.011328] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:22:12.011469] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.20', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC4xMC4yMi4yNS4yMC4:aa.bb.25.20/cloudbusine0510.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:12.011564] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:22:12.038401] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:22:12.038707] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:22:12.038823] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:22:12.038961] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.20', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC4xMC4yMi4yNS4yMC4:aa.bb.25.20/cloudbusine0510.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:12.039066] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:22:12.039151] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:22:12.039242] 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 09:22:12.039371] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:22:12.039617] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '6404553d-384d-4982-a3a4-40225deb8fa3', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813332', 'TIME': '2018-06-12T14:22:12Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:22:12.039711] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:22:12.039859] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:22:12.039933] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.040103] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:22 [2018/06/12 09:22:12.040184] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.040254] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:22:12.040325] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.040427] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:12.040564] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:12.040628] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.040677] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:12.040756] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:22:12.040826] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.040926] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:12.041076] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:12.041151] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.041202] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:12.041280] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:22:12.041353] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.041454] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:22:12.041515] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.041581] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:22:12.041650] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.041754] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:22:12.041826] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:22:12.041877] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:22:12.041935] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:22:12.047445] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:22:12.047593] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.20', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC4xMC4yMi4yNS4yMC4:aa.bb.25.20/cloudbusine0510.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:12.047689] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:22:12.074220] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:22:12.074430] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:22:12.074545] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:22:12.074684] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.20', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC4xMC4yMi4yNS4yMC4:aa.bb.25.20/cloudbusine0510.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:12.074767] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:22:12.074849] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:22:12.074929] 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 09:22:12.075010] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:22:12.075250] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '08b72b68-c490-45e1-b7c0-34981c3c9a57', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813332', 'TIME': '2018-06-12T14:22:12Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:22:12.075343] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:22:12.075486] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:22:12.075561] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.075710] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:22 [2018/06/12 09:22:12.075774] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.075842] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:22:12.075911] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.076015] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:12.076170] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:12.076246] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.076298] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:12.076376] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:22:12.076446] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.076548] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:12.076680] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:12.076743] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.076792] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:12.076869] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:22:12.076940] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.077041] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:22:12.077124] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:12.077192] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:22:12.077261] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:12.077366] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:22:12.077427] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:22:12.077476] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:22:12.077534] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:22:14.242381] ipam.mqt.maple.waffle.com (DEBUG): got: 6f4b4a91-3033-455e-8861-2f6ba3fcc44e, stored: None [2018/06/12 09:22:14.248847] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:22:14.248992] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0xLjEwLjIyLjI2LjQu:aa.bb.26.4/cloudbusine0509-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:14.249103] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:22:14.279224] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:22:14.279493] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:22:14.279616] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:22:14.279757] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0xLjEwLjIyLjI2LjQu:aa.bb.26.4/cloudbusine0509-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:14.279842] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:22:14.279913] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:22:14.280013] 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 09:22:14.280096] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:22:14.280344] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'b22b435d-7fa6-447b-88ce-a5409924feab', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813334', 'TIME': '2018-06-12T14:22:14Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:22:14.280440] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:22:14.280588] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:22:14.280662] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.280815] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:22 [2018/06/12 09:22:14.280881] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:14.280948] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:22:14.281018] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.281121] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:14.281257] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:14.281341] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:14.281392] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:14.281474] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:22:14.281544] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.281647] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:14.281780] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:14.281842] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:14.281890] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:14.281968] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:22:14.282038] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.282140] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:22:14.282201] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:14.282272] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:22:14.282366] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.282595] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:22:14.282671] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:22:14.282725] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:22:14.282830] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:22:14.286438] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:22:14.286576] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0xLjEwLjIyLjI2LjQu:aa.bb.26.4/cloudbusine0509-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:14.286683] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:22:14.312914] 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, "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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, "parse": "JSON", "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 09:22:14.313117] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1) [2018/06/12 09:22:14.313226] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2018/06/12 09:22:14.313389] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0xLjEwLjIyLjI2LjQu:aa.bb.26.4/cloudbusine0509-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:14.313478] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {} [2018/06/12 09:22:14.313551] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {} [2018/06/12 09:22:14.313628] 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 09:22:14.313707] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1hc21wcml2LjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-asmpriv.mqt.maple.waffle.com/mqt'} [2018/06/12 09:22:14.313919] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '38c5070a-89e6-4ce6-ab50-a68b8765d7b5', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813334', 'TIME': '2018-06-12T14:22:14Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2018/06/12 09:22:14.314012] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1) [2018/06/12 09:22:14.314157] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1) [2018/06/12 09:22:14.314231] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.314408] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:22 [2018/06/12 09:22:14.314477] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:14.314545] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1) [2018/06/12 09:22:14.314615] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.314718] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:14.314854] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:14.314917] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:14.314965] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:14.315042] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1) [2018/06/12 09:22:14.315382] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.315500] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2018/06/12 09:22:14.315638] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true [2018/06/12 09:22:14.315702] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:14.315751] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block [2018/06/12 09:22:14.315829] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1) [2018/06/12 09:22:14.315901] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.316002] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2018/06/12 09:22:14.316065] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match! [2018/06/12 09:22:14.316131] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1) [2018/06/12 09:22:14.316199] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step! [2018/06/12 09:22:14.316327] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false [2018/06/12 09:22:14.316397] ipam.mqt.maple.waffle.com (DEBUG): The condition matched! [2018/06/12 09:22:14.316447] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting [2018/06/12 09:22:14.316504] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully [2018/06/12 09:22:14.320077] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt [2018/06/12 09:22:14.320216] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0xLjEwLjIyLjI2LjMu:aa.bb.26.3/cloudbusine0510-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'} [2018/06/12 09:22:14.320319] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp'] [2018/06/12 09:22:14.346775] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {