[2019/02/05 16:21:59.074648] sdsc-ddi-01.ucsf.edu (DEBUG): got: 370b6a39-d26d-42dc-8f05-9049541d4e52, stored: None [2019/02/05 16:21:59.076060] sdsc-ddi-01.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt [2019/02/05 16:21:59.076147] sdsc-ddi-01.ucsf.edu (DEBUG): Event {u'member_ip': u'10.64.19.210', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-02-06T00:21:55Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'forescout-test', u'ipv4addr': u'10.41.8.10', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQubm9uX0ROU19ob3N0X3Jvb3QuMC4xNTQ5NDEyMjgzOTcyLmZvcmVzY291dC10ZXN0LjEwLjQxLjguMTAu:10.41.8.10/forescout-test/%20', u'network_view': u'default', u'extattrs': {u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'true'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'Lab'}, u'Change Number': {u'value': u'12345678'}}}, u'member_name': u'wtc-ddi.ucsf.edu', u'operation_type': u'DELETE'} [2019/02/05 16:21:59.089546] sdsc-ddi-01.ucsf.edu (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": "SyncDate", "var1_namespace": "L", "var2_name": "TIME", "var2_namespace": "UT" }, { "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": [ { "assign_type": "S", "assign_val": "false", "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L" } ], "eval": [ { "assign_type": "S", "assign_val": "true", "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Site", "var1_namespace": "L", "var2_listindex": "extattrsFS_Sitevalue", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8,{8-15,{15-20" }, { "namespace": "XC", "op": "COPY", "var1_name": "RemediateOnEvent", "var1_namespace": "L", "var2_listindex": "extattrsFS_RemediateOnEventvalue", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8,{8-27,{27-32" }, { "namespace": "XC", "op": "COPY", "var1_name": "Obj_ref", "var1_namespace": "L", "var2_listindex": "_ref", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-4" }, { "namespace": "XC", "op": "COPY", "var1_name": "IP", "var1_namespace": "L", "var2_listindex": "ipv4addr", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8" }, { "namespace": "XC", "op": "COPY", "var1_name": "NV", "var1_namespace": "L", "var2_listindex": "network_view", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-12" }, { "assign_type": "S", "assign_val": "", "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_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" } ] } ] }, "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": [ { "assign_type": "S", "assign_val": "000000000000", "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "MAC", "var1_namespace": "L", "var2_listindex": "mac", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-3" } ], "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": [ { "assign_type": "S", "assign_val": "true", "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Site", "var1_namespace": "L", "var2_listindex": "FS_Site", "var2_name": "ip.extattrs", "var2_namespace": "E", "var2_type": "{0-7" }, { "namespace": "XC", "op": "COPY", "var1_name": "RemediateOnEvent", "var1_namespace": "L", "var2_listindex": "FS_RemediateOnEvent", "var2_name": "ip.extattrs", "var2_namespace": "E", "var2_type": "{0-19" }, { "namespace": "XC", "op": "COPY", "var1_name": "IP", "var1_namespace": "L", "var2_name": "address", "var2_namespace": "E" }, { "namespace": "XC", "op": "COPY", "var1_name": "NV", "var1_namespace": "L", "var2_name": "network_view", "var2_namespace": "E" }, { "namespace": "XC", "op": "COPY", "var1_name": "MAC", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" } ], "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_name": "discovered_data", "var1_namespace": "L", "var2_listindex": "0discovered_data", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-16" } ], "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": null, "condition": { "condition_type": "AND", "else_eval": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_data", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "L", "var2_name": "discovered_data", "var2_namespace": "P" } ], "statements": [ { "left": [ { "name": "discovered_data", "namespace": "P", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_For_Discovery_Information", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "MAC", "var1_namespace": "L", "var2_listindex": "mac_address", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-11" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "discoverer", "var1_namespace": "L", "var2_listindex": "discoverer", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-10" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_name", "var1_namespace": "L", "var2_listindex": "discovered_name", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-15" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_switch", "var1_namespace": "L", "var2_listindex": "v_switch", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-8" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_host", "var1_namespace": "L", "var2_listindex": "v_host", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-6" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_datacenter", "var1_namespace": "L", "var2_listindex": "v_datacenter", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-12" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_entity_name", "var1_namespace": "L", "var2_listindex": "v_entity_name", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-13" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_adapter", "var1_namespace": "L", "var2_listindex": "v_adapter", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-9" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_entity_type", "var1_namespace": "L", "var2_listindex": "v_entity_type", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-13" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "network_component_ip", "var1_namespace": "L", "var2_listindex": "network_component_ip", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-20" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "network_component_name", "var1_namespace": "L", "var2_listindex": "network_component_name", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-22" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "network_component_port_name", "var1_namespace": "L", "var2_listindex": "network_component_port_name", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-27" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "network_component_port_description", "var1_namespace": "L", "var2_listindex": "network_component_port_description", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-34" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "device_vendor", "var1_namespace": "L", "var2_listindex": "device_vendor", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-13" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "device_model", "var1_namespace": "L", "var2_listindex": "device_model", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-12" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "device_type", "var1_namespace": "L", "var2_listindex": "device_type", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-11" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L" }, { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "domainname", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "username", "var1_namespace": "L", "var2_listindex": "name", "var2_name": "user", "var2_namespace": "L", "var2_type": "{0-4" }, { "namespace": "XC", "op": "COPY", "var1_name": "domainname", "var1_namespace": "L", "var2_listindex": "domainname", "var2_name": "user", "var2_namespace": "L", "var2_type": "{0-10" } ], "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><FSAPI TYPE=\"request\" API_VERSION=\"1.0\"><TRANSACTION TYPE=\"update\"><OPTIONS CREATE_NEW_HOST=\"true\"/><HOST_KEY NAME=\"ip\" VALUE=\"" }, { "name": "IP", "namespace": "L", "quoting": "asis" }, { "text": "\"/><PROPERTIES><PROPERTY NAME=\"IB_MAC\"><VALUE>" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "</VALUE></PROPERTY><PROPERTY NAME=\"IB_Comment\"><VALUE>Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "</VALUE></PROPERTY><TABLE_PROPERTY NAME=\"IB_Location\"><ROW><CPROPERTY NAME=\"Site\"><CVALUE>" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Discoverer\"><CVALUE>" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Discovered name\"><CVALUE>" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Virtual Machine Name\"><CVALUE>" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Virtual Datacenter\"><CVALUE>" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Virtual Host\"><CVALUE>" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Attached Device Address\"><CVALUE>" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Attached Device Name\"><CVALUE>" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Attached Device Port\"><CVALUE>" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Device Vendor\"><CVALUE>" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Device Model\"><CVALUE>" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Device Type\"><CVALUE>" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY></ROW></TABLE_PROPERTY><TABLE_PROPERTY NAME=\"IB_User\"><ROW><CPROPERTY NAME=\"Username\"><CVALUE>" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Domain\"><CVALUE>" }, { "name": "domainname", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY></ROW></TABLE_PROPERTY></PROPERTIES></TRANSACTION></FSAPI>" } ], "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_name": "Obj_ref", "var1_namespace": "L", "var2_listindex": "0_ref", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-5" } ], "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><FSAPI TYPE=\"request\" API_VERSION=\"1.0\"><TRANSACTION TYPE=\"update\"><OPTIONS CREATE_NEW_HOST=\"true\"/><HOST_KEY NAME=\"ip\" VALUE=\"" }, { "name": "IP", "namespace": "L", "quoting": "asis" }, { "text": "\"/><PROPERTIES><PROPERTY NAME=\"IB_Delete\"><VALUE>Delete</VALUE></PROPERTY></PROPERTIES></TRANSACTION></FSAPI>" } ], "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" } [2019/02/05 16:21:59.089660] sdsc-ddi-01.ucsf.edu (DEBUG): Executing step DebugOnStart (1) [2019/02/05 16:21:59.089721] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2019/02/05 16:21:59.089791] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace E contents are: {u'member_ip': u'10.64.19.210', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-02-06T00:21:55Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'forescout-test', u'ipv4addr': u'10.41.8.10', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQubm9uX0ROU19ob3N0X3Jvb3QuMC4xNTQ5NDEyMjgzOTcyLmZvcmVzY291dC10ZXN0LjEwLjQxLjguMTAu:10.41.8.10/forescout-test/%20', u'network_view': u'default', u'extattrs': {u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'true'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'Lab'}, u'Change Number': {u'value': u'12345678'}}}, u'member_name': u'wtc-ddi.ucsf.edu', u'operation_type': u'DELETE'} [2019/02/05 16:21:59.089834] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace I contents are: {} [2019/02/05 16:21:59.089866] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace L contents are: {} [2019/02/05 16:21:59.089899] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://128.218.28.162', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'} [2019/02/05 16:21:59.089929] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace P contents are: {} [2019/02/05 16:21:59.090048] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '79756b3f-58ac-4d33-8756-24ad7f708ac1', 'WAPIUSERNAME': u'aa-tannenbaumr', 'URI': u'https://128.218.28.162', 'HOST': u'128.218.28.162', 'EPOCH': '1549412519', 'TIME': '2019-02-06T00:21:59Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2019/02/05 16:21:59.090097] sdsc-ddi-01.ucsf.edu (DEBUG): Executing step assignSyncTime (1) [2019/02/05 16:21:59.090199] sdsc-ddi-01.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1) [2019/02/05 16:21:59.090236] sdsc-ddi-01.ucsf.edu (DEBUG): Found a/an AND condition step! [2019/02/05 16:21:59.090316] sdsc-ddi-01.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T00:21 [2019/02/05 16:21:59.090346] sdsc-ddi-01.ucsf.edu (DEBUG): The condition did not match! [2019/02/05 16:21:59.090378] sdsc-ddi-01.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1) [2019/02/05 16:21:59.090409] sdsc-ddi-01.ucsf.edu (DEBUG): Found a/an AND condition step! [2019/02/05 16:21:59.090459] sdsc-ddi-01.ucsf.edu (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2019/02/05 16:21:59.090528] sdsc-ddi-01.ucsf.edu (DEBUG): Evaluating statement: true == true [2019/02/05 16:21:59.090557] sdsc-ddi-01.ucsf.edu (DEBUG): The condition matched! [2019/02/05 16:21:59.090578] sdsc-ddi-01.ucsf.edu (DEBUG): Executing the eval block [2019/02/05 16:21:59.090725] sdsc-ddi-01.ucsf.edu (DEBUG): An error has occurred while processing a template [2019/02/05 16:21:59.090753] sdsc-ddi-01.ucsf.edu (DEBUG): Variable E:values sub-addressing cannot be executed successfully, please verify the indexes / keys passed are correct (last key tried: "<a complex substitution inner selector>" in "<a complex variable>") [2019/02/05 16:21:59.090818] sdsc-ddi-01.ucsf.edu (DEBUG): The namespace E contains the following data {u'member_ip': u'10.64.19.210', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-02-06T00:21:55Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'forescout-test', u'ipv4addr': u'10.41.8.10', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQubm9uX0ROU19ob3N0X3Jvb3QuMC4xNTQ5NDEyMjgzOTcyLmZvcmVzY291dC10ZXN0LjEwLjQxLjguMTAu:10.41.8.10/forescout-test/%20', u'network_view': u'default', u'extattrs': {u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'true'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'Lab'}, u'Change Number': {u'value': u'12345678'}}}, u'member_name': u'wtc-ddi.ucsf.edu', u'operation_type': u'DELETE'} [2019/02/05 16:21:59.090871] sdsc-ddi-01.ucsf.edu (DEBUG): Execution failed, retry if 0 < 0 [2019/02/05 16:21:59.090923] sdsc-ddi-01.ucsf.edu (WARNING): Template execution retry limit is reached.Event `{u'member_ip': u'10.64.19.210', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-02-06T00:21:55Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'forescout-test', u'ipv4addr': u'10.41.8.10', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQubm9uX0ROU19ob3N0X3Jvb3QuMC4xNTQ5NDEyMjgzOTcyLmZvcmVzY291dC10ZXN0LjEwLjQxLjguMTAu:10.41.8.10/forescout-test/%20', u'network_view': u'default', u'extattrs': {u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'true'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'Lab'}, u'Change Number': {u'value': u'12345678'}}}, u'member_name': u'wtc-ddi.ucsf.edu', u'operation_type': u'DELETE'}` is skipped [2019/02/05 16:22:37.254705] sdsc-ddi-01.ucsf.edu (DEBUG): got: 1ff08b40-d008-43f7-9ce3-f6f9a573e9a2, stored: None [2019/02/05 16:22:37.256463] sdsc-ddi-01.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt [2019/02/05 16:22:37.256557] sdsc-ddi-01.ucsf.edu (DEBUG): Event {u'member_ip': u'10.64.19.210', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-02-06T00:22:34Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'test-forescout', u'ipv4addr': u'10.41.8.10', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQubm9uX0ROU19ob3N0X3Jvb3QuMC4xNTQ5NDEyNTU0MDg3LnRlc3QtZm9yZXNjb3V0LjEwLjQxLjguMTAu:10.41.8.10/test-forescout/%20', u'network_view': u'default', u'extattrs': {u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'true'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'Lab'}, u'Change Number': {u'value': u'12345678'}}}, u'member_name': u'wtc-ddi.ucsf.edu', u'operation_type': u'INSERT'} [2019/02/05 16:22:37.270346] sdsc-ddi-01.ucsf.edu (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": "SyncDate", "var1_namespace": "L", "var2_name": "TIME", "var2_namespace": "UT" }, { "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": [ { "assign_type": "S", "assign_val": "false", "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L" } ], "eval": [ { "assign_type": "S", "assign_val": "true", "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Site", "var1_namespace": "L", "var2_listindex": "extattrsFS_Sitevalue", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8,{8-15,{15-20" }, { "namespace": "XC", "op": "COPY", "var1_name": "RemediateOnEvent", "var1_namespace": "L", "var2_listindex": "extattrsFS_RemediateOnEventvalue", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8,{8-27,{27-32" }, { "namespace": "XC", "op": "COPY", "var1_name": "Obj_ref", "var1_namespace": "L", "var2_listindex": "_ref", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-4" }, { "namespace": "XC", "op": "COPY", "var1_name": "IP", "var1_namespace": "L", "var2_listindex": "ipv4addr", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8" }, { "namespace": "XC", "op": "COPY", "var1_name": "NV", "var1_namespace": "L", "var2_listindex": "network_view", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-12" }, { "assign_type": "S", "assign_val": "", "namespace": "XC", "op": "ASSIGN", "var1_name": "Obj_Ref_Add", "var1_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" } ] } ] }, "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": [ { "assign_type": "S", "assign_val": "000000000000", "namespace": "XC", "op": "ASSIGN", "var1_name": "MAC", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "MAC", "var1_namespace": "L", "var2_listindex": "mac", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-3" } ], "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": [ { "assign_type": "S", "assign_val": "true", "namespace": "XC", "op": "ASSIGN", "var1_name": "Sync", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Site", "var1_namespace": "L", "var2_listindex": "FS_Site", "var2_name": "ip.extattrs", "var2_namespace": "E", "var2_type": "{0-7" }, { "namespace": "XC", "op": "COPY", "var1_name": "RemediateOnEvent", "var1_namespace": "L", "var2_listindex": "FS_RemediateOnEvent", "var2_name": "ip.extattrs", "var2_namespace": "E", "var2_type": "{0-19" }, { "namespace": "XC", "op": "COPY", "var1_name": "IP", "var1_namespace": "L", "var2_name": "address", "var2_namespace": "E" }, { "namespace": "XC", "op": "COPY", "var1_name": "NV", "var1_namespace": "L", "var2_name": "network_view", "var2_namespace": "E" }, { "namespace": "XC", "op": "COPY", "var1_name": "MAC", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" } ], "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_name": "discovered_data", "var1_namespace": "L", "var2_listindex": "0discovered_data", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-16" } ], "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": null, "condition": { "condition_type": "AND", "else_eval": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_data", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_data", "var1_namespace": "L", "var2_name": "discovered_data", "var2_namespace": "P" } ], "statements": [ { "left": [ { "name": "discovered_data", "namespace": "P", "quoting": "xml" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/xml", "name": "check_For_Discovery_Information", "nodebug": false, "operation": "COND", "override_headers": false, "path": "/fsapi/niCore/Hosts" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "MAC", "var1_namespace": "L", "var2_listindex": "mac_address", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-11" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "discoverer", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "discoverer", "var1_namespace": "L", "var2_listindex": "discoverer", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-10" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "discovered_name", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "discovered_name", "var1_namespace": "L", "var2_listindex": "discovered_name", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-15" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_switch", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_switch", "var1_namespace": "L", "var2_listindex": "v_switch", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-8" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_host", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_host", "var1_namespace": "L", "var2_listindex": "v_host", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-6" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_datacenter", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_datacenter", "var1_namespace": "L", "var2_listindex": "v_datacenter", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-12" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_name", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_entity_name", "var1_namespace": "L", "var2_listindex": "v_entity_name", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-13" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_adapter", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_adapter", "var1_namespace": "L", "var2_listindex": "v_adapter", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-9" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "v_entity_type", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "v_entity_type", "var1_namespace": "L", "var2_listindex": "v_entity_type", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-13" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_ip", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "network_component_ip", "var1_namespace": "L", "var2_listindex": "network_component_ip", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-20" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_name", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "network_component_name", "var1_namespace": "L", "var2_listindex": "network_component_name", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-22" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_name", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "network_component_port_name", "var1_namespace": "L", "var2_listindex": "network_component_port_name", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-27" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "network_component_port_description", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "network_component_port_description", "var1_namespace": "L", "var2_listindex": "network_component_port_description", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-34" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "device_vendor", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "device_vendor", "var1_namespace": "L", "var2_listindex": "device_vendor", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-13" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "device_model", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "device_model", "var1_namespace": "L", "var2_listindex": "device_model", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-12" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "device_type", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "device_type", "var1_namespace": "L", "var2_listindex": "device_type", "var2_name": "discovered_data", "var2_namespace": "L", "var2_type": "{0-11" } ], "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": [ { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "username", "var1_namespace": "L" }, { "assign_type": "S", "assign_val": ".", "namespace": "XC", "op": "ASSIGN", "var1_name": "domainname", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "username", "var1_namespace": "L", "var2_listindex": "name", "var2_name": "user", "var2_namespace": "L", "var2_type": "{0-4" }, { "namespace": "XC", "op": "COPY", "var1_name": "domainname", "var1_namespace": "L", "var2_listindex": "domainname", "var2_name": "user", "var2_namespace": "L", "var2_type": "{0-10" } ], "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><FSAPI TYPE=\"request\" API_VERSION=\"1.0\"><TRANSACTION TYPE=\"update\"><OPTIONS CREATE_NEW_HOST=\"true\"/><HOST_KEY NAME=\"ip\" VALUE=\"" }, { "name": "IP", "namespace": "L", "quoting": "asis" }, { "text": "\"/><PROPERTIES><PROPERTY NAME=\"IB_MAC\"><VALUE>" }, { "name": "MAC", "namespace": "L", "quoting": "asis" }, { "text": "</VALUE></PROPERTY><PROPERTY NAME=\"IB_Comment\"><VALUE>Added via IB OutboundAPI at " }, { "name": "SyncDate", "namespace": "L", "quoting": "asis" }, { "text": "</VALUE></PROPERTY><TABLE_PROPERTY NAME=\"IB_Location\"><ROW><CPROPERTY NAME=\"Site\"><CVALUE>" }, { "name": "Site", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Discoverer\"><CVALUE>" }, { "name": "discoverer", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Discovered name\"><CVALUE>" }, { "name": "discovered_name", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Virtual Machine Name\"><CVALUE>" }, { "name": "v_entity_name", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Virtual Datacenter\"><CVALUE>" }, { "name": "v_datacenter", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Virtual Host\"><CVALUE>" }, { "name": "v_host", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Attached Device Address\"><CVALUE>" }, { "name": "network_component_ip", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Attached Device Name\"><CVALUE>" }, { "name": "network_component_name", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_switch", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Attached Device Port\"><CVALUE>" }, { "name": "v_adapter", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "network_component_port_name", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Device Vendor\"><CVALUE>" }, { "name": "device_vendor", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Device Model\"><CVALUE>" }, { "name": "device_model", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Device Type\"><CVALUE>" }, { "name": "device_type", "namespace": "L", "quoting": "xml" }, { "text": " " }, { "name": "v_entity_type", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY></ROW></TABLE_PROPERTY><TABLE_PROPERTY NAME=\"IB_User\"><ROW><CPROPERTY NAME=\"Username\"><CVALUE>" }, { "name": "username", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY><CPROPERTY NAME=\"Domain\"><CVALUE>" }, { "name": "domainname", "namespace": "L", "quoting": "xml" }, { "text": "</CVALUE></CPROPERTY></ROW></TABLE_PROPERTY></PROPERTIES></TRANSACTION></FSAPI>" } ], "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_name": "Obj_ref", "var1_namespace": "L", "var2_listindex": "0_ref", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-5" } ], "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": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><FSAPI TYPE=\"request\" API_VERSION=\"1.0\"><TRANSACTION TYPE=\"update\"><OPTIONS CREATE_NEW_HOST=\"true\"/><HOST_KEY NAME=\"ip\" VALUE=\"" }, { "name": "IP", "namespace": "L", "quoting": "asis" }, { "text": "\"/><PROPERTIES><PROPERTY NAME=\"IB_Delete\"><VALUE>Delete</VALUE></PROPERTY></PROPERTIES></TRANSACTION></FSAPI>" } ], "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" } [2019/02/05 16:22:37.270467] sdsc-ddi-01.ucsf.edu (DEBUG): Executing step DebugOnStart (1) [2019/02/05 16:22:37.270540] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2019/02/05 16:22:37.270616] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace E contents are: {u'member_ip': u'10.64.19.210', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-02-06T00:22:34Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'test-forescout', u'ipv4addr': u'10.41.8.10', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQubm9uX0ROU19ob3N0X3Jvb3QuMC4xNTQ5NDEyNTU0MDg3LnRlc3QtZm9yZXNjb3V0LjEwLjQxLjguMTAu:10.41.8.10/test-forescout/%20', u'network_view': u'default', u'extattrs': {u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'true'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'Lab'}, u'Change Number': {u'value': u'12345678'}}}, u'member_name': u'wtc-ddi.ucsf.edu', u'operation_type': u'INSERT'} [2019/02/05 16:22:37.270657] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace I contents are: {} [2019/02/05 16:22:37.270689] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace L contents are: {} [2019/02/05 16:22:37.270724] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://128.218.28.162', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'} [2019/02/05 16:22:37.270756] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace P contents are: {} [2019/02/05 16:22:37.270883] sdsc-ddi-01.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7df6e149-0c57-41ad-8995-c0ca3bbd75e2', 'WAPIUSERNAME': u'aa-tannenbaumr', 'URI': u'https://128.218.28.162', 'HOST': u'128.218.28.162', 'EPOCH': '1549412557', 'TIME': '2019-02-06T00:22:37Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2019/02/05 16:22:37.270939] sdsc-ddi-01.ucsf.edu (DEBUG): Executing step assignSyncTime (1) [2019/02/05 16:22:37.271050] sdsc-ddi-01.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1) [2019/02/05 16:22:37.271090] sdsc-ddi-01.ucsf.edu (DEBUG): Found a/an AND condition step! [2019/02/05 16:22:37.271177] sdsc-ddi-01.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T00:22 [2019/02/05 16:22:37.271210] sdsc-ddi-01.ucsf.edu (DEBUG): The condition did not match! [2019/02/05 16:22:37.271245] sdsc-ddi-01.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1) [2019/02/05 16:22:37.271279] sdsc-ddi-01.ucsf.edu (DEBUG): Found a/an AND condition step! [2019/02/05 16:22:37.271331] sdsc-ddi-01.ucsf.edu (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE [2019/02/05 16:22:37.271406] sdsc-ddi-01.ucsf.edu (DEBUG): Evaluating statement: true == true [2019/02/05 16:22:37.271438] sdsc-ddi-01.ucsf.edu (DEBUG): The condition matched! [2019/02/05 16:22:37.271461] sdsc-ddi-01.ucsf.edu (DEBUG): Executing the eval block [2019/02/05 16:22:37.271618] sdsc-ddi-01.ucsf.edu (DEBUG): An error has occurred while processing a template [2019/02/05 16:22:37.271648] sdsc-ddi-01.ucsf.edu (DEBUG): Variable E:values sub-addressing cannot be executed successfully, please verify the indexes / keys passed are correct (last key tried: "<a complex substitution inner selector>" in "<a complex variable>") [2019/02/05 16:22:37.271718] sdsc-ddi-01.ucsf.edu (DEBUG): The namespace E contains the following data {u'member_ip': u'10.64.19.210', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-02-06T00:22:34Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'test-forescout', u'ipv4addr': u'10.41.8.10', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQubm9uX0ROU19ob3N0X3Jvb3QuMC4xNTQ5NDEyNTU0MDg3LnRlc3QtZm9yZXNjb3V0LjEwLjQxLjguMTAu:10.41.8.10/test-forescout/%20', u'network_view': u'default', u'extattrs': {u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'true'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'Lab'}, u'Change Number': {u'value': u'12345678'}}}, u'member_name': u'wtc-ddi.ucsf.edu', u'operation_type': u'INSERT'} [2019/02/05 16:22:37.271785] sdsc-ddi-01.ucsf.edu (DEBUG): Execution failed, retry if 0 < 0 [2019/02/05 16:22:37.271843] sdsc-ddi-01.ucsf.edu (WARNING): Template execution retry limit is reached.Event `{u'member_ip': u'10.64.19.210', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-02-06T00:22:34Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'test-forescout', u'ipv4addr': u'10.41.8.10', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQubm9uX0ROU19ob3N0X3Jvb3QuMC4xNTQ5NDEyNTU0MDg3LnRlc3QtZm9yZXNjb3V0LjEwLjQxLjguMTAu:10.41.8.10/test-forescout/%20', u'network_view': u'default', u'extattrs': {u'FS_Sync': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'true'}, u'FS_Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuNDEuOC4wLzI0LzA:10.41.8.0/24/default'}, u'value': u'Lab'}, u'Change Number': {u'value': u'12345678'}}}, u'member_name': u'wtc-ddi.ucsf.edu', u'operation_type': u'INSERT'}` is skipped