[2019/02/06 11:56:24.527016] wtc-ddi.ucsf.edu (DEBUG): got: f03283de-3ae8-4168-b457-993d45217859, stored: None
[2019/02/06 11:56:24.542831] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:24.542933] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T20:23:16Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 20, u'sequence_id': 998418, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.543007] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'ipv6_duid', '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']
[2019/02/06 11:56:24.557232] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:24.557373] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:24.557439] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:24.557528] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T20:23:16Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 20, u'sequence_id': 998418, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.557571] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:24.557603] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:24.557640] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:24.557705] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:24.557841] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '95a743d5-3a63-45df-a777-26e7cc301bd5', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482984', 'TIME': '2019-02-06T19:56:24Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:24.557896] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:24.558008] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:24.558049] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.558108] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:24.558140] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.558174] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:24.558208] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.558259] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.558289] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.558311] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.558374] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:24.558411] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.558469] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.558500] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.558522] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.558582] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:24.558619] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.558668] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:24.558731] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:24.558762] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.558795] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:24.558829] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.558881] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:24.558910] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:24.558933] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:24.558964] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:24.559751] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:24.559845] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 20, u'sequence_id': 998420, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.559910] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'ipv6_duid', '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']
[2019/02/06 11:56:24.574211] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:24.574338] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:24.574397] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:24.574484] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 20, u'sequence_id': 998420, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.574526] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:24.574558] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:24.574593] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:24.574655] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:24.574771] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'c747f9e2-f111-4ec5-9f09-9f9c699d1211', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482984', 'TIME': '2019-02-06T19:56:24Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:24.574830] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:24.574933] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:24.574973] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.575028] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:24.575059] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.575093] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:24.575127] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.575177] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.575207] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.575229] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.575292] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:24.575328] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.575377] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.575406] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.575427] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.575486] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:24.575522] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.575571] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:24.575632] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:24.575663] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.575696] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:24.575728] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.575779] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:24.575808] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:24.575830] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:24.575858] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:24.576561] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:24.576652] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 20, u'sequence_id': 998422, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'FREE', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.576716] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'ipv6_duid', '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']
[2019/02/06 11:56:24.591006] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:24.591107] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:24.591162] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:24.591244] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 20, u'sequence_id': 998422, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'FREE', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.591288] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:24.591319] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:24.591353] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:24.591413] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:24.591522] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '0a651bfc-5b9b-4e9e-9b6c-1f9a2a48b757', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482984', 'TIME': '2019-02-06T19:56:24Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:24.591570] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:24.591664] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:24.591702] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.591753] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:24.591781] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.591812] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:24.591844] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.591892] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.591920] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.591940] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.591998] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:24.592032] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.592079] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.592107] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.592127] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.592182] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:24.592217] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.592262] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:24.592318] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:24.592375] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.592415] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:24.592454] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.592513] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:24.592547] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:24.592574] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:24.592608] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:24.593495] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:24.593584] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T20:23:16Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 16, u'sequence_id': 814896, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.593652] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'ipv6_duid', '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']
[2019/02/06 11:56:24.607140] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:24.607253] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:24.607310] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:24.607399] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T20:23:16Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 16, u'sequence_id': 814896, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.607440] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:24.607470] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:24.607505] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:24.607565] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:24.607686] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd7fb4acb-3907-44d2-98ce-6f8fc9ea5fcf', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482984', 'TIME': '2019-02-06T19:56:24Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:24.607737] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:24.607836] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:24.607874] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.607927] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:24.607955] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.607986] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:24.608017] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.608065] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.608093] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.608114] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.608171] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:24.608205] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.608252] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.608279] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.608300] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.608354] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:24.608389] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.608435] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:24.608502] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:24.608532] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.608563] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:24.608595] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.608645] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:24.608672] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:24.608692] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:24.608719] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:24.609552] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:24.609664] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 16, u'sequence_id': 814897, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.609738] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'ipv6_duid', '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']
[2019/02/06 11:56:24.623698] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:24.623815] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:24.623875] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:24.623960] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 16, u'sequence_id': 814897, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.623999] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:24.624029] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:24.624063] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:24.624123] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:24.624245] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'cd63205e-b515-48ca-b860-976d19b4f03a', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482984', 'TIME': '2019-02-06T19:56:24Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:24.624295] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:24.624394] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:24.624432] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.624485] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:24.624519] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.624553] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:24.624585] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.624634] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.624661] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.624682] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.624741] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:24.624775] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.624821] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.624849] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.624870] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.624924] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:24.624959] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.625005] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:24.625064] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:24.625093] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.625124] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:24.625154] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.625204] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:24.625232] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:24.625252] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:24.625280] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:24.626065] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:24.626149] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 16, u'sequence_id': 814898, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'FREE', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.626212] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'ipv6_duid', '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']
[2019/02/06 11:56:24.640422] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:24.640539] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:24.640600] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:24.640687] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:21Z', u'vnode_oid': 16, u'sequence_id': 814898, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'FREE', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.640727] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:24.640758] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:24.640791] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:24.640853] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:24.640984] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '502fdca6-f433-4200-b61b-9a68bc7d7cb9', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482984', 'TIME': '2019-02-06T19:56:24Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:24.641036] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:24.641137] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:24.641176] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.641230] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:24.641258] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.641290] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:24.641321] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.641370] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.641397] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.641417] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.641476] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:24.641511] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.641557] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.641585] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.641605] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.641659] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:24.641694] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.641741] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:24.641801] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:24.641830] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.641861] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:24.641893] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.641942] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:24.641969] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:24.641990] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:24.642018] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:24.642939] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:24.643078] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:22Z', u'vnode_oid': 20, u'sequence_id': 998526, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.643154] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', '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']
[2019/02/06 11:56:24.656364] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:24.656465] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:24.656520] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:24.656601] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:22Z', u'vnode_oid': 20, u'sequence_id': 998526, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.656645] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:24.656677] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:24.656710] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:24.656768] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:24.656877] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '2e3e5367-44fc-49b6-8e38-c5302dab2367', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482984', 'TIME': '2019-02-06T19:56:24Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:24.656926] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:24.657020] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:24.657059] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.657110] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:24.657138] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.657170] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:24.657201] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.657249] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.657277] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.657297] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.657355] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:24.657389] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.657436] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.657464] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.657484] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.657539] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:24.657573] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.657619] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:24.657676] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:24.657705] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.657735] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:24.657766] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.657813] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:24.657840] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:24.657867] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:24.657896] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:24.658622] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:24.658706] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:22Z', u'vnode_oid': 20, u'sequence_id': 998528, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.658765] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', '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']
[2019/02/06 11:56:24.672515] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:24.672701] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:24.672759] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:24.672841] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:22Z', u'vnode_oid': 20, u'sequence_id': 998528, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:24.672880] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:24.672911] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:24.672944] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:24.673002] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:24.673113] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '15a79a64-7cb8-41cc-bf83-6d3b29084d75', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482984', 'TIME': '2019-02-06T19:56:24Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:24.673162] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:24.673257] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:24.673313] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.673367] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:24.673397] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.673431] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:24.673464] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.673515] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.673544] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.673580] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.673638] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:24.673677] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.673727] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:24.673755] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.673776] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:24.673832] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:24.673866] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.673912] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:24.673969] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:24.673998] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:24.674029] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:24.674060] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:24.674108] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:24.674135] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:24.674156] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:24.674183] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:25.593122] wtc-ddi.ucsf.edu (DEBUG): got: 82eb4e0e-edbc-4fcd-9ed0-43ba57f53197, stored: None
[2019/02/06 11:56:25.597936] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:25.598034] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:22Z', u'vnode_oid': 16, u'sequence_id': 815011, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:25.598106] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', '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']
[2019/02/06 11:56:25.614599] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:25.614722] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:25.614787] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:25.614871] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:22Z', u'vnode_oid': 16, u'sequence_id': 815011, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:25.614912] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:25.614943] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:25.614976] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:25.615037] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:25.615166] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '1ac29600-8c08-45e6-b571-168b8651e487', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482985', 'TIME': '2019-02-06T19:56:25Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:25.615224] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:25.615331] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:25.615369] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.615425] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:25.615454] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:25.615487] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:25.615518] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.615566] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:25.615594] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:25.615615] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:25.615673] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:25.615707] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.615755] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:25.615782] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:25.615803] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:25.615858] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:25.615892] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.615938] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:25.615997] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:25.616026] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:25.616057] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:25.616088] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.616137] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:25.616165] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:25.616187] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:25.616214] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:25.616963] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:25.617049] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:22Z', u'vnode_oid': 16, u'sequence_id': 815013, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:25.617110] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', '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']
[2019/02/06 11:56:25.630321] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:25.630422] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:25.630477] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:25.630560] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:22Z', u'vnode_oid': 16, u'sequence_id': 815013, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:25.630604] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:25.630636] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:25.630670] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:25.630731] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:25.630842] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'c3f11636-2cd5-4442-89e7-f48d1b9884f9', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482985', 'TIME': '2019-02-06T19:56:25Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:25.630891] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:25.630985] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:25.631022] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.631073] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:25.631102] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:25.631133] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:25.631164] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.631212] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:25.631240] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:25.631260] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:25.631319] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:25.631352] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.631418] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:25.631447] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:25.631469] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:25.631528] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:25.631565] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.631615] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:25.631690] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:25.631719] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:25.631751] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:25.631782] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:25.631830] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:25.631857] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:25.631877] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:25.631903] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:29.570048] wtc-ddi.ucsf.edu (DEBUG): got: 34c6d6f1-95fa-4233-9081-1b88550626e0, stored: None
[2019/02/06 11:56:29.574859] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:29.574953] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:27Z', u'vnode_oid': 20, u'sequence_id': 999250, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:29.575034] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', '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']
[2019/02/06 11:56:29.588340] wtc-ddi.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": ""
},
{
"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": "domainname",
"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_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": "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"
}
[2019/02/06 11:56:29.588443] wtc-ddi.ucsf.edu (DEBUG): Executing step DebugOnStart (1)
[2019/02/06 11:56:29.588504] wtc-ddi.ucsf.edu (DEBUG): Namespace H contents are: {'Connection': 'close', 'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2019/02/06 11:56:29.588592] wtc-ddi.ucsf.edu (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_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'infoblox-gridmaster', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T19:56:21Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:27Z', u'vnode_oid': 20, u'sequence_id': 999250, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'No Match', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.36', u'network_view': u'default', u'starts': u'2019-02-06T19:53:16Z', u'network_view_id': u'0', u'binding_state': u'RELEASED', u'address': u'10.41.8.207'}
[2019/02/06 11:56:29.588633] wtc-ddi.ucsf.edu (DEBUG): Namespace I contents are: {}
[2019/02/06 11:56:29.588664] wtc-ddi.ucsf.edu (DEBUG): Namespace L contents are: {}
[2019/02/06 11:56:29.588698] wtc-ddi.ucsf.edu (DEBUG): Namespace S contents are: {'URI': u'https://1.1.1.1', 'TIMEOUT': 30, 'USER': u'fs_infoblox_lab@Infoblox_lab'}
[2019/02/06 11:56:29.588759] wtc-ddi.ucsf.edu (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 host [ip=10.41.8.8]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2019/02/06 11:56:29.588886] wtc-ddi.ucsf.edu (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'b6568dce-1072-4b4d-b68a-0e090d018086', 'WAPIUSERNAME': u'xxxxxxxx', 'URI': u'https://1.1.1.1', 'HOST': u'1.1.1.1', 'EPOCH': '1549482989', 'TIME': '2019-02-06T19:56:29Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2019/02/06 11:56:29.588937] wtc-ddi.ucsf.edu (DEBUG): Executing step assignSyncTime (1)
[2019/02/06 11:56:29.589042] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_just_changed (1)
[2019/02/06 11:56:29.589080] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:29.589136] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == 2019-02-06T19:56
[2019/02/06 11:56:29.589165] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:29.589197] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_not_Lease (1)
[2019/02/06 11:56:29.589229] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:29.589279] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:29.589307] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:29.589328] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:29.589385] wtc-ddi.ucsf.edu (DEBUG): Executing step check_MAC (1)
[2019/02/06 11:56:29.589420] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:29.589467] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE != LEASE
[2019/02/06 11:56:29.589494] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:29.589514] wtc-ddi.ucsf.edu (DEBUG): Executing the else_eval block
[2019/02/06 11:56:29.589569] wtc-ddi.ucsf.edu (DEBUG): Executing step check_for_Lease (1)
[2019/02/06 11:56:29.589604] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:29.589658] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: LEASE == LEASE
[2019/02/06 11:56:29.589719] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: == true
[2019/02/06 11:56:29.589748] wtc-ddi.ucsf.edu (DEBUG): The condition did not match!
[2019/02/06 11:56:29.589779] wtc-ddi.ucsf.edu (DEBUG): Executing step stop_if_no_sync (1)
[2019/02/06 11:56:29.589809] wtc-ddi.ucsf.edu (DEBUG): Found a/an AND condition step!
[2019/02/06 11:56:29.589857] wtc-ddi.ucsf.edu (DEBUG): Evaluating statement: false == false
[2019/02/06 11:56:29.589884] wtc-ddi.ucsf.edu (DEBUG): The condition matched!
[2019/02/06 11:56:29.589905] wtc-ddi.ucsf.edu (DEBUG): A stop condition was triggered, exiting
[2019/02/06 11:56:29.589933] wtc-ddi.ucsf.edu (DEBUG): The template was executed successfully
[2019/02/06 11:56:29.590782] wtc-ddi.ucsf.edu (DEBUG): Executing the template ForeScout Assets Mgmt
[2019/02/06 11:56:29.590875] wtc-ddi.ucsf.edu (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_RemediateOnEvent': u'true', u'Change Number': u'12345678'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'2408-0c50-ins1.ucsf.edu', u'range_end_addr': u'10.41.8.254', u'network': u'10.41.8.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2019-02-06T20:26:27Z', u'range_start_addr': u'10.41.8.50', u'network.extattrs': {u'Building': [u'2415', u'MCB'], u'Category': u'Campus', u'Network Device': [u'2415-0602-s10'], u'Floor': [u'6th'], u'Country': u'US', u'FS_Site': u'Lab', u'FS_RemediateOnEvent': u'true', u'Change Number': u'1234567', u'VRF': u'global', u'FS_Sync': u'true', u'Campus': [u'Mission Center Building'], u'Network Type': u'Voice'}, u'timestamp': u'2019-02-06T19:56:27Z', u'vnode_oid': 16, u'sequence_id': 815724, 'network_ipaddr': '10.41.8.0', u'fingerprint': u'MSFT 5.0', u'hardware': u'F4:D1:08:6C:D9:64', u'ipv4_uid': u'01:F4:D1:08:6C:D9:64', u'member_ip': u'10.1.1.28', u'network_view': u'default', u'starts': u'2019-02-06T19:56:27Z', u'client_hostname': u'DESKTOP-LAG95IJ', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'10.41.8.207'}
[2019/02/06 11:56:29.590938] wtc-ddi.ucsf.edu (DEBUG): Event fields with no value ['new_binding', 'ipv6_duid', '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']
[2019/02/06 11:56:29.604120] wtc-ddi.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",