[2018/06/12 01:20:33.144024] ipam.mqt.maple.waffle.com (DEBUG): got: c6a23f38-275f-44fb-946a-22861b1026e9, stored: None
[2018/06/12 01:20:33.159673] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.159917] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.160222] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.190900] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.191272] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.191449] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.191681] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.191808] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.191895] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.191995] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.192197] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.192722] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'b3a6bfc9-3738-4b4f-9244-2f66603cb889', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.192868] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.193055] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.193153] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.193343] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.193430] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.193534] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.193632] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.193771] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.193858] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.193916] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.194005] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.194093] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.194207] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.194280] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.194338] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.194424] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.194541] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.194661] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.194825] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.194904] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.194962] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.195159] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.195228] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.195389] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.195569] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5
[2018/06/12 01:20:33.195643] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.195796] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.196020] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.223124] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.223396] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.223546] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.223725] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.223826] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.223910] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.223999] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.224138] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.224373] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '5a2b7691-03c2-431c-9462-ef7e74971d6c', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.224479] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.224677] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.224771] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.224887] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.224959] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.225057] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.225140] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.225254] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.225328] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.225385] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.225472] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.225576] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.225693] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.225785] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.225845] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.225934] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.226019] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.226137] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.226260] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.226334] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.226391] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.226572] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.226643] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.226799] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.226943] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5
[2018/06/12 01:20:33.227011] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.227164] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.227335] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.254592] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.254938] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.255075] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.255247] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.255349] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.255441] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.255543] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.255692] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.256009] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '79ea301f-19b3-4e94-a927-dab0cfd491af', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.256123] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.256293] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.256385] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.256508] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.256619] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.256700] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.256783] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.256910] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.256984] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.257041] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.257129] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.257216] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.257329] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.257402] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.257461] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.257573] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.257662] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.257777] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.257905] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.257984] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.258042] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.258211] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.258310] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.258468] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.258641] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5
[2018/06/12 01:20:33.258724] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.258850] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.259013] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.286279] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.286645] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.286785] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.286962] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.287083] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.287168] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.287264] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.287409] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.287692] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '015e88fc-2db6-499a-bdba-446b629e0b60', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.287799] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.287963] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.288048] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.288177] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.288297] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.288383] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.288466] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.288613] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.288696] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.288754] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.288849] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.288932] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.289046] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.289120] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.289177] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.289303] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.289393] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.289517] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.289668] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.289751] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.289813] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.289978] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.290050] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.290210] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.290376] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5
[2018/06/12 01:20:33.290445] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.290586] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.290763] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.318308] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.318601] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.318755] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.318929] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.319031] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.319122] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.319210] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.319347] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.319675] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'b7c085fe-5a8c-4828-bb25-355f7d29adb4', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.319786] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.319950] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.320037] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.320165] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.320240] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.320317] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.320398] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.320521] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.320614] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.320673] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.320763] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.320844] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.320966] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.321040] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.321100] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.321202] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.321286] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.321400] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.321550] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.321635] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.321693] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.321870] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.321939] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.322095] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.322248] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5
[2018/06/12 01:20:33.322317] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.322440] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.322634] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.351211] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.351545] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.351693] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.351870] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.351974] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.352058] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.352147] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.352285] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.352560] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd448a4b1-9d65-44cc-8d12-8bacf8c1f205', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.352678] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.352844] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.352931] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.353050] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.353125] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.353216] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.353299] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.353416] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.353490] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.353578] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.353675] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.353759] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.353872] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.353946] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.354003] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.354091] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.354175] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.354287] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.354413] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.354487] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.354575] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.354755] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.354827] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.354963] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.355108] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5
[2018/06/12 01:20:33.355236] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 0, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.33'}` is skipped
[2018/06/12 01:20:33.359779] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.359986] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.360164] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.403613] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.403991] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.404142] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.404341] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.404494] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.404609] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.404753] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.404931] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.405248] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '3bd8f4b1-f651-4172-b498-45295d672a5b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.405359] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.405527] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.405624] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.405810] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.405903] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.405985] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.406068] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.406196] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.406272] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.406331] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.406468] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.406570] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.406692] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.406768] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.406825] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.406913] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.407010] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.407158] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.407314] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.407425] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.407532] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.407764] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.407837] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.408004] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.408173] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5
[2018/06/12 01:20:33.408306] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.408467] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.408658] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.437466] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.437857] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.438007] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.438188] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.438341] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.438429] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.438519] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.438691] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.438960] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '97a463ac-d80d-437e-a6ce-59efe64de6d8', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.439071] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.439238] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.439324] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.439446] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.439520] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.439627] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.439719] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.439838] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.439912] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.439969] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.440062] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.440144] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.440257] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.440331] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.440401] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.440492] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.440608] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.440733] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.440873] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.440949] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.441006] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.441171] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.441238] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.441389] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.441546] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5
[2018/06/12 01:20:33.441649] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.441778] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.441971] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.470237] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.470610] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.470758] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.470947] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.471051] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.471136] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.471226] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.471364] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.471659] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '30f1f912-65f3-4529-8d5d-99ed0706a713', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.471770] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.471936] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.472022] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.472187] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.472266] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.472343] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.472424] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.472541] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.472639] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.472700] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.472791] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.472873] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.472995] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.473071] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.473129] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.473216] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.473299] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.473413] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.473542] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.473657] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.473720] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.473890] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.473958] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.474116] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.474270] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5
[2018/06/12 01:20:33.474338] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.474462] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.474685] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.502782] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.503100] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.503242] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.503414] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.503516] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.503608] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.503740] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.503884] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.504179] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '253083f8-9ff9-4399-a89f-51e1e892cb08', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.504288] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.504453] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.504540] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.504700] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.504780] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.504858] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.504940] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.505059] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.505135] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.505192] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.505280] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.505363] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.505477] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.505551] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.505627] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.505746] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.505858] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.505980] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.506116] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.506191] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.506248] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.506414] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.506482] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.506628] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.506824] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5
[2018/06/12 01:20:33.506899] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.507044] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.507221] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.535117] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.535429] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.535570] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.535757] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.535907] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.535996] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.536086] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.536223] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.536477] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'f14ef740-5f8e-488a-8270-05cf99ca1710', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.536596] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.536771] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.536857] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.536978] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.537053] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.537130] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.537211] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.537327] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.537403] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.537460] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.537549] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.537651] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.537779] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.537853] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.537910] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.537998] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.538080] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.538192] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.538343] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.538419] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.538477] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.538675] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.538747] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.538942] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.539094] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5
[2018/06/12 01:20:33.539163] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.539301] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.539466] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.566433] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.566829] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.566972] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.567155] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.567258] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.567343] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.567432] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.567569] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.567868] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'ad30b928-fe21-42cb-ac51-7b64b4d624c1', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.567978] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.568147] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.568233] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.568556] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.568668] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.568750] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.569029] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.569158] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.569234] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.569292] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.569384] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.570044] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.570188] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.570501] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.570566] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.570809] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.570904] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.571023] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.571152] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.571229] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.571293] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.571462] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.571530] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.571707] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.571866] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5
[2018/06/12 01:20:33.571999] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:31Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 1, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}` is skipped
[2018/06/12 01:20:33.576433] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.576603] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.576880] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.604532] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.604901] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.605045] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.605239] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.605344] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.605435] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.605525] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.605687] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.606002] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd957c1df-0811-43c7-8e5d-d3e540101a62', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.606122] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.606289] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.606375] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.606506] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.606580] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.606681] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.606765] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.606882] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.606956] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.607013] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.607102] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.607184] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.607299] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.607372] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.607430] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.607517] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.607612] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.607736] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.607866] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.607939] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.607997] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.608156] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.608224] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.608549] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.608737] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5
[2018/06/12 01:20:33.609302] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.609460] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.609682] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.638122] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.638467] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.638633] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.638806] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.638917] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.639003] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.639099] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.639246] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.639509] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '0789b5f6-7ce8-48e0-b6ab-140066153a47', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.639642] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.639818] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.639905] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.640046] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.640130] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.640236] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.640334] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.640453] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.640527] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.640585] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.640708] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.640806] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.640927] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.641001] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.641059] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.641148] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.641232] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.641344] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.641475] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.641549] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.641628] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.641824] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.641893] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.642075] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.642238] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5
[2018/06/12 01:20:33.642307] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.642447] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.642637] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.670787] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.671097] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.671244] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.671421] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.671524] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.671678] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.671774] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.671912] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.672187] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7a918fe3-3ad6-4170-a5f6-6d3e1868d8e1', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.672297] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.672464] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.672549] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.672696] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.672776] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.672854] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.672935] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.673066] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.673142] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.673200] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.673288] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.673370] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.673482] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.673617] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.673694] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.673788] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.673874] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.673989] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.674116] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.674190] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.674248] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.674413] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.674481] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.674635] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.674799] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5
[2018/06/12 01:20:33.674867] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.675011] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.675207] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.703522] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.703810] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.703947] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.704122] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.704224] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.704310] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.704401] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.704546] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.704814] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '33e16a36-0236-45d1-875d-5edcf7fa5551', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.704931] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.705105] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.705191] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.705312] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.705400] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.705479] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.705561] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.705709] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.705788] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.705865] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.705959] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.706042] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.706157] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.706231] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.706289] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.706377] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.706460] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.706574] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.706735] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.706813] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.706871] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.707034] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.707106] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.707256] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.707404] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5
[2018/06/12 01:20:33.707473] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.707596] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.707805] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.734234] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.734520] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.734659] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.734835] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.734936] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.735020] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.735109] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.735242] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.735499] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '20b86c4a-ec66-45cf-bd55-93b741ec4d1b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.735607] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.735795] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.735903] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.736023] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.736098] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.736176] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.736257] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.736372] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.736446] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.736503] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.736591] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.736695] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.736812] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.736886] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.736943] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.737031] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.737114] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.737228] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.737354] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.737427] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.737483] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.737660] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.737732] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.737883] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.738039] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5
[2018/06/12 01:20:33.738129] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:33.738295] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.738474] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'hardware', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:33.765904] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:33.766239] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:33.766374] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:33.766545] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.766679] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:33.766783] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:33.766874] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:33.767010] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:33.767259] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '20dbb51b-3466-4ea6-985b-58f4b0c1d46a', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784433', 'TIME': '2018-06-12T06:20:33Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:33.767366] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:33.767531] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:33.767616] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.767777] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:33.767857] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.767934] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:33.768016] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.768134] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.768209] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.768292] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.768386] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:33.768470] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.768585] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:33.768694] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:33.768792] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:33.768899] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:33.768986] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:33.769101] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:33.769227] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:33.769302] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:33.769358] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:33.769523] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:33.769592] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:33.769771] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}
[2018/06/12 01:20:33.769937] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5
[2018/06/12 01:20:33.770068] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'fingerprint': u'No Match', u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2038-01-19T03:14:07Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:31Z', u'vnode_oid': 3, u'sequence_id': 2, 'network_ipaddr': 'aa.bb.22.0', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:31Z', u'network_view_id': u'0', u'binding_state': u'ABANDONED', u'address': u'aa.bb.22.33'}` is skipped
[2018/06/12 01:20:35.709780] ipam.mqt.maple.waffle.com (DEBUG): got: c81bc97b-f768-4259-a28a-e8f1d18091cb, stored: None
[2018/06/12 01:20:35.720825] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.720998] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.721221] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:35.748683] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:35.748955] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:35.749100] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:35.749304] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.749415] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:35.749499] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:35.749587] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:35.749719] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:35.750041] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'ded12e14-2642-4ba7-97a3-923fe4c287a2', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:35.750188] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:35.750358] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:35.750444] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.750565] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:35.750653] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.750733] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:35.750814] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.750929] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.751004] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.751061] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.751184] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:35.751270] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.751385] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.751458] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.751515] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.751602] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:35.751685] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.751797] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:35.751923] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:35.751998] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:35.752055] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:35.752284] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:35.752355] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:35.752491] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.752632] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5
[2018/06/12 01:20:35.752701] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.752839] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.753019] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:35.779738] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:35.780011] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:35.780160] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:35.780326] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.780427] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:35.780510] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:35.780600] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:35.780730] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:35.780989] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '046a7f90-2641-453c-b09a-e4167e4b6251', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:35.781131] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:35.781368] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:35.781499] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.781662] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:35.781744] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.781822] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:35.781904] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.782020] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.782094] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.782151] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.782239] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:35.782320] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.782433] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.782506] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.782564] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.782651] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:35.782733] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.782844] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:35.782967] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:35.783041] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:35.783098] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:35.783276] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:35.783346] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:35.783494] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.783651] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5
[2018/06/12 01:20:35.783720] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.783844] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.784000] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:35.811270] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:35.811555] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:35.811691] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:35.811844] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.811956] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:35.812041] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:35.812158] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:35.812303] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:35.812584] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '1cf6614b-c68e-44f2-afee-878c09ef7021', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:35.812692] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:35.812864] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:35.812949] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.813069] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:35.813183] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.813266] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:35.813350] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.813467] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.813542] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.813601] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.813689] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:35.813772] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.813886] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.813960] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.814018] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.814118] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:35.814239] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.814359] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:35.814487] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:35.814561] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:35.814619] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:35.814785] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:35.814853] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:35.815027] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.815219] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5
[2018/06/12 01:20:35.815290] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.815416] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.815576] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:35.844235] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:35.844557] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:35.844696] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:35.844890] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.845000] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:35.845085] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:35.845172] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:35.845305] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:35.845561] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '71a9bcc8-a870-4d01-b859-6bd214010b5e', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:35.845670] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:35.845834] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:35.845921] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.846041] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:35.846115] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.846192] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:35.846329] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.846453] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.846529] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.846587] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.846676] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:35.846759] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.846874] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.846961] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.847020] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.847107] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:35.847191] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.847304] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:35.847431] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:35.847504] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:35.847562] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:35.847725] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:35.847794] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:35.847929] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.848077] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5
[2018/06/12 01:20:35.848145] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.848292] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.848454] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:35.875805] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:35.876145] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:35.876313] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:35.876478] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.876576] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:35.876659] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:35.876747] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:35.876882] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:35.877161] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '49db9a61-bb88-43da-a963-c1c395ce332d', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:35.877302] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:35.877468] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:35.877554] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.877689] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:35.877766] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.877847] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:35.877929] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.878046] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.878122] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.878216] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.878345] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:35.878431] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.878547] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.878622] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.878679] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.878766] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:35.878850] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.878964] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:35.879091] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:35.879206] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:35.879276] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:35.879447] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:35.879515] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:35.879653] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.879810] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5
[2018/06/12 01:20:35.879878] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.880002] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.880194] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:35.907444] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:35.907769] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:35.907920] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:35.908085] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.908183] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:35.908297] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:35.908390] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:35.908534] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:35.908808] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'a2e713c6-6a97-4f1d-80dd-9952136a3c4b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:35.908916] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:35.909082] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:35.909174] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.909295] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:35.909370] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.909446] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:35.909526] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.909642] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.909716] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.909774] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.909861] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:35.909944] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.910057] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.910131] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.910311] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.910406] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:35.910492] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.910616] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:35.910760] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:35.910834] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:35.910892] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:35.911069] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:35.912294] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:35.912451] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.912620] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5
[2018/06/12 01:20:35.912736] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-12T06:22:32Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 3, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:32Z', u'network_view_id': u'0', u'binding_state': u'OFFERED', u'address': u'aa.bb.22.26'}` is skipped
[2018/06/12 01:20:35.917770] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.917930] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.918093] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:35.945491] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:35.945768] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:35.945896] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:35.946043] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.946145] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:35.946264] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:35.946357] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:35.946488] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:35.946730] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd4a9ab0e-a127-4605-af0e-f80924d2bcb8', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:35.946835] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:35.946998] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:35.947082] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.947219] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:35.947298] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.947375] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:35.947457] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.947572] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.947645] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.947702] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.947789] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:35.947870] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.948016] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.948094] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.948166] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.948296] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:35.948384] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.948502] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:35.948626] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:35.948700] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:35.948757] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:35.948914] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:35.948980] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:35.949112] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.949279] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 0 < 5
[2018/06/12 01:20:35.949347] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.949475] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.949595] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:35.976094] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:35.976430] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:35.976555] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:35.976699] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.976794] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:35.976877] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:35.976965] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:35.977092] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:35.977402] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7cbd8592-29e5-478a-8a39-acfc5aa18139', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784435', 'TIME': '2018-06-12T06:20:35Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:35.977559] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:35.977742] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:35.977845] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.977964] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:35.978038] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.978115] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:35.978216] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.978362] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.978438] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.978496] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.978583] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:35.978665] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.978777] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:35.978849] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:35.978905] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:35.978990] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:35.979070] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:35.979203] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:35.979343] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:35.979417] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:35.979473] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:35.979631] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:35.979698] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:35.979830] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.979963] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 1 < 5
[2018/06/12 01:20:35.980030] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:35.980161] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:35.980346] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:36.007228] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:36.007505] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:36.007634] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:36.007784] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.007881] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:36.007963] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:36.008050] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:36.008214] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:36.008484] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7c257b74-334a-41c7-8b8f-5db03a43c531', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784436', 'TIME': '2018-06-12T06:20:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:36.008591] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:36.008754] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:36.008838] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.008956] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:36.009030] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.009107] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:36.009218] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.009341] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:36.009416] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.009474] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:36.009562] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:36.009644] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.009757] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:36.009831] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.009889] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:36.009976] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:36.010058] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.010187] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:36.010338] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:36.010413] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:36.010470] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:36.010631] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:36.010697] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:36.010830] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.010984] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 2 < 5
[2018/06/12 01:20:36.011051] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:36.011189] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.011349] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:36.040741] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:36.041058] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:36.041213] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:36.041371] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.041484] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:36.041570] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:36.041658] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:36.041792] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:36.042047] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '81e78e92-c18e-44ce-b709-b5f8d4c334d8', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784436', 'TIME': '2018-06-12T06:20:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:36.042154] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:36.042349] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:36.042443] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.042564] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:36.042639] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.042715] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:36.042797] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.042912] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:36.042986] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.043044] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:36.043132] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:36.043250] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.043371] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:36.043445] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.043503] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:36.043591] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:36.043674] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.043787] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:36.043911] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:36.043984] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:36.044042] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:36.044248] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:36.044319] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:36.044454] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.044610] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 3 < 5
[2018/06/12 01:20:36.044677] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:36.044801] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.044951] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:36.071544] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:36.071810] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:36.071933] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:36.072089] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.072206] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:36.072297] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:36.072386] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:36.072515] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:36.072742] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '207c2479-f73e-4e02-ac7f-a5d8f1b1d523', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784436', 'TIME': '2018-06-12T06:20:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:36.072845] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:36.073007] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:36.073091] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.073229] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:36.073307] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.073385] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:36.073467] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.073580] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:36.073653] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.073710] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:36.073797] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:36.073891] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.074005] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:36.074079] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.074136] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:36.074258] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:36.074347] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.074461] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:36.074585] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:36.074657] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:36.074715] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:36.074870] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:36.074936] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:36.075067] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.075219] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 4 < 5
[2018/06/12 01:20:36.075290] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 01:20:36.075413] ipam.mqt.maple.waffle.com (DEBUG): Event {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.075555] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['new_binding', 'client_hostname', 'ipv6_duid', 'ipv4_uid', 'ip.discovered_data.device_model', 'ip.discovered_data.device_port_name', 'ip.discovered_data.device_type', 'ip.discovered_data.device_port_type', 'ip.discovered_data.vendor', 'ip.discovered_data.first_discovered', 'ip.discovered_data.discovered_name', 'ip.discovered_data.mac_address', 'ip.discovered_data.duid', 'ip.discovered_data.netbios_name', 'ip.discovered_data.port_link_status', 'ip.discovered_data.port_speed', 'ip.discovered_data.port_status', 'ip.discovered_data.port_vlan_name', 'ip.discovered_data.port_vlan_description']
[2018/06/12 01:20:36.102276] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 01:20:36.102557] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 01:20:36.102692] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 01:20:36.102838] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.102933] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 01:20:36.103016] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 01:20:36.103102] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 01:20:36.103252] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 01:20:36.103499] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '492df6e3-3864-4a46-b027-98e1a2e9acae', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528784436', 'TIME': '2018-06-12T06:20:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 01:20:36.103605] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 01:20:36.103781] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 01:20:36.103866] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.103982] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T06:20
[2018/06/12 01:20:36.104054] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.104131] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 01:20:36.104213] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.104348] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:36.104422] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.104479] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:36.104566] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 01:20:36.104646] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.104758] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE != LEASE
[2018/06/12 01:20:36.104831] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 01:20:36.104888] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 01:20:36.104974] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 01:20:36.105056] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 01:20:36.105166] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: LEASE == LEASE
[2018/06/12 01:20:36.105340] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: true == true
[2018/06/12 01:20:36.105417] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 01:20:36.105474] ipam.mqt.maple.waffle.com (DEBUG): Executing the eval block
[2018/06/12 01:20:36.105632] ipam.mqt.maple.waffle.com (DEBUG): An error has occurred while processing a template
[2018/06/12 01:20:36.105699] ipam.mqt.maple.waffle.com (DEBUG): Key FS_RemediateOnEvent in dictionary variable E:ip.extattrs was not found ({u'FS_Site': u'Lab', u'FS_Sync': u'true'})
[2018/06/12 01:20:36.105831] ipam.mqt.maple.waffle.com (DEBUG): The namespace E contains the following data {u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}
[2018/06/12 01:20:36.105968] ipam.mqt.maple.waffle.com (DEBUG): Execution failed, retry if 5 < 5
[2018/06/12 01:20:36.106081] ipam.mqt.maple.waffle.com (WARNING): Template execution retry limit is reached.Event `{u'protocol': u'IPv4', u'event_type': 'LEASE', u'fingerprint_os_number': u'No Match', u'ip.extattrs': {u'FS_Site': u'Lab', u'FS_Sync': u'true'}, u'ip.username': u'', u'thread_id': 0, u'member_name': u'dnsdhcp.mqt.maple.waffle.com', u'range_end_addr': u'aa.bb.22.75', u'network': u'aa.bb.22.0/24', u'ip.names': [], 'network_netmask': 24, u'ends': u'2018-06-16T06:20:33Z', u'range_start_addr': u'aa.bb.22.25', u'network.extattrs': {u'NetReg Site': u'mqt', u'FS_Site': u'Lab', u'NetReg Building': u'500', u'FS_RemediateOnEvent': u'true', u'FS_Sync': u'true', u'NetReg Room Number': u'3G2'}, u'timestamp': u'2018-06-12T06:20:33Z', u'vnode_oid': 3, u'sequence_id': 4, 'network_ipaddr': 'aa.bb.22.0', u'fingerprint': u'No Match', u'hardware': u'84:7B:EB:CE:03:8E', u'member_ip': u'yyy.yyy.181.25', u'network_view': u'default', u'starts': u'2018-06-12T06:20:33Z', u'network_view_id': u'0', u'binding_state': u'ACTIVE', u'address': u'aa.bb.22.26'}` is skipped
[2018/06/12 07:44:49.547962] ipam.mqt.maple.waffle.com (DEBUG): got: 21b0c7d8-aa12-438e-98d8-7f18fbf3383d, stored: None
[2018/06/12 07:44:49.557252] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 07:44:49.557575] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'yyy.yyy.176.84', u'mac': u'18:db:f2:30:f5:69', u'host': u'gic-i-laptop-2.mqt.maple.waffle.com', u'extattrs': {u'NetReg SITC Username': {u'value': u'username@maple.waffle.com'}, u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'mqt'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'500'}, u'NetReg Ownership': {u'value': u'Commerical'}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'176'}, u'Environment': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'maple System Center Protected (SSCPE)'}, u'NetReg Physical Host': {u'value': u'hyper.mqt.maple.waffle.com'}, u'NetReg Cost Center': {u'value': u'85P532290S'}, u'NetReg MAC Address': {u'value': u'00:00:00:00:00:00'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'3G2'}, u'NetReg Administrator': {u'value': u'tim'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmdpYy1pLWxhcHRvcC0yLjE5OC4yNTMuMTc2Ljg0Lg:yyy.yyy.176.84/gic-i-laptop-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 07:44:49.557830] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 07:44:49.588703] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 07:44:49.589108] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 07:44:49.589310] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 07:44:49.589570] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'yyy.yyy.176.84', u'mac': u'18:db:f2:30:f5:69', u'host': u'gic-i-laptop-2.mqt.maple.waffle.com', u'extattrs': {u'NetReg SITC Username': {u'value': u'username@maple.waffle.com'}, u'NetReg Site': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'mqt'}, u'NetReg Building': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'500'}, u'NetReg Ownership': {u'value': u'Commerical'}, u'VLAN': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'176'}, u'Environment': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'maple System Center Protected (SSCPE)'}, u'NetReg Physical Host': {u'value': u'hyper.mqt.maple.waffle.com'}, u'NetReg Cost Center': {u'value': u'85P532290S'}, u'NetReg MAC Address': {u'value': u'00:00:00:00:00:00'}, u'NetReg Room Number': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTk4LjI1My4xNzYuMC8yNC8w:yyy.yyy.176.0/24/default'}, u'value': u'3G2'}, u'NetReg Administrator': {u'value': u'tim'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmdpYy1pLWxhcHRvcC0yLjE5OC4yNTMuMTc2Ljg0Lg:yyy.yyy.176.84/gic-i-laptop-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 07:44:49.589689] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 07:44:49.589773] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 07:44:49.589873] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 07:44:49.590049] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 07:44:49.590578] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '55704cdb-f835-4f82-9a05-41e27ae68939', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528807489', 'TIME': '2018-06-12T12:44:49Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 07:44:49.590705] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 07:44:49.590891] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 07:44:49.590979] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 07:44:49.591244] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T12:44
[2018/06/12 07:44:49.591333] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 07:44:49.591438] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 07:44:49.591533] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 07:44:49.591651] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 07:44:49.591801] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 07:44:49.591887] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 07:44:49.591947] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 07:44:49.592037] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 07:44:49.592118] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 07:44:49.592233] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 07:44:49.592379] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 07:44:49.592510] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 07:44:49.592600] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 07:44:49.592695] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 07:44:49.592779] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 07:44:49.592892] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 07:44:49.592963] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 07:44:49.593039] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 07:44:49.593119] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 07:44:49.593239] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 07:44:49.593311] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 07:44:49.593368] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 07:44:49.593456] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:03:40.714510] ipam.mqt.maple.waffle.com (DEBUG): got: 9ebcfe83-847b-412f-b679-663a0f264b57, stored: None
[2018/06/12 09:03:40.729728] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:03:40.729898] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:03:40.730034] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:03:40.757462] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:03:40.757857] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:03:40.758010] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:03:40.758174] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:03:40.758337] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:03:40.758420] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:03:40.758505] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:03:40.758656] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:03:40.758951] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'a9db0cb5-734c-43e0-8d33-48e339be5ef0', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812220', 'TIME': '2018-06-12T14:03:40Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:03:40.759077] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:03:40.759235] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:03:40.759314] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:40.759499] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:03
[2018/06/12 09:03:40.759572] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:40.759645] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:03:40.759720] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:40.759832] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:03:40.759977] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:03:40.760054] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:40.760108] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:03:40.760213] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:03:40.760293] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:40.760400] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:03:40.760540] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:03:40.760608] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:40.760662] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:03:40.760744] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:03:40.760820] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:40.760929] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:03:40.760996] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:40.761067] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:03:40.761142] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:40.761256] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:03:40.761322] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:03:40.761376] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:03:40.761438] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:03:44.822054] ipam.mqt.maple.waffle.com (DEBUG): got: fc31ea4a-ccbd-4d68-893f-6808be465d43, stored: None
[2018/06/12 09:03:44.827456] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:03:44.827624] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:03:44.827724] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:03:44.854618] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:03:44.855045] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:03:44.855178] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:03:44.855332] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:03:44.855425] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:03:44.855527] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:03:44.855617] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:03:44.855747] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:03:44.855993] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd36dc510-001d-4853-bb00-1353bde4462b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812224', 'TIME': '2018-06-12T14:03:44Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:03:44.856096] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:03:44.856255] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:03:44.856337] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:44.856517] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:03
[2018/06/12 09:03:44.856595] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:44.856669] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:03:44.856746] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:44.856859] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:03:44.857007] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:03:44.857078] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:44.857132] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:03:44.857215] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:03:44.857292] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:44.857400] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:03:44.857635] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:03:44.857709] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:44.857762] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:03:44.857846] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:03:44.857924] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:44.858031] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:03:44.858099] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:44.858170] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:03:44.858259] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:44.858380] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:03:44.858448] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:03:44.858520] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:03:44.858588] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:03:50.338076] ipam.mqt.maple.waffle.com (DEBUG): got: 8839a980-e7b2-4e9c-a21f-934f5c1683ef, stored: None
[2018/06/12 09:03:50.344278] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:03:50.344431] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:03:50.344543] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:03:50.372462] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:03:50.372704] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:03:50.372835] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:03:50.373011] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:03:50.373104] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:03:50.373196] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:03:50.373288] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:03:50.373417] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:03:50.373657] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'feccefff-5f83-4e9f-b84e-8eb7c5d57f14', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812230', 'TIME': '2018-06-12T14:03:50Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:03:50.373758] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:03:50.373913] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:03:50.373992] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:50.374170] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:03
[2018/06/12 09:03:50.374257] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:50.374332] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:03:50.374408] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:50.374517] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:03:50.374660] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:03:50.374730] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:50.374784] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:03:50.374867] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:03:50.374944] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:50.375052] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:03:50.375207] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:03:50.375280] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:50.375335] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:03:50.375431] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:03:50.375515] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:50.375628] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:03:50.375695] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:03:50.375767] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:03:50.375841] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:03:50.375952] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:03:50.376020] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:03:50.376074] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:03:50.376136] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:04:23.585590] ipam.mqt.maple.waffle.com (DEBUG): got: 340aca9e-03bc-4f2c-80f0-b911e3d38af2, stored: None
[2018/06/12 09:04:23.591620] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:04:23.591772] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.19', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS4xMC4yMi4yNS4xOS4:aa.bb.25.19/cloudbusine0509.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:23.591881] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:04:23.619004] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:04:23.619243] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:04:23.619370] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:04:23.619537] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.19', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS4xMC4yMi4yNS4xOS4:aa.bb.25.19/cloudbusine0509.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:23.619638] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:04:23.619716] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:04:23.619799] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:04:23.619938] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:04:23.620200] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '8c799e4c-611e-491c-b96d-54ac9aa46e7a', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812263', 'TIME': '2018-06-12T14:04:23Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:04:23.620345] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:04:23.620550] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:04:23.620746] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.620922] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04
[2018/06/12 09:04:23.620995] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.621071] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:04:23.621147] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.621257] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:23.621401] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:23.621471] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.621524] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:23.621609] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:04:23.621685] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.621793] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:23.621933] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:23.622001] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.622055] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:23.622139] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:04:23.622216] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.622324] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:04:23.622404] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.622478] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:04:23.622554] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.622676] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:04:23.622744] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:04:23.622798] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:04:23.622861] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:04:23.626616] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:04:23.626759] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0yLjEwLjIyLjI3LjMu:aa.bb.27.3/cloudbusine0509-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:23.626855] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:04:23.653050] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:04:23.653269] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:04:23.653387] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:04:23.653552] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0yLjEwLjIyLjI3LjMu:aa.bb.27.3/cloudbusine0509-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:23.653655] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:04:23.653733] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:04:23.653815] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:04:23.653939] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:04:23.654170] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'c8ba0f81-7602-468d-95d0-32f4f5bb4901', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812263', 'TIME': '2018-06-12T14:04:23Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:04:23.654269] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:04:23.654443] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:04:23.654532] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.654689] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04
[2018/06/12 09:04:23.654760] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.654833] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:04:23.654909] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.655018] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:23.655161] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:23.655231] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.655286] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:23.655367] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:04:23.655472] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.655585] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:23.655726] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:23.655795] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.655848] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:23.655930] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:04:23.656008] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.656114] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:04:23.656183] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.656253] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:04:23.656327] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.656485] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:04:23.656559] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:04:23.656614] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:04:23.656676] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:04:23.660184] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:04:23.660326] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.20', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC4xMC4yMi4yNS4yMC4:aa.bb.25.20/cloudbusine0510.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:23.660440] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:04:23.693776] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:04:23.694009] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:04:23.694132] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:04:23.694281] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.20', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC4xMC4yMi4yNS4yMC4:aa.bb.25.20/cloudbusine0510.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:23.694382] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:04:23.694484] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:04:23.694568] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:04:23.694697] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:04:23.694935] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '1c745bb6-af2f-464f-8e75-2217eb1d5d30', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812263', 'TIME': '2018-06-12T14:04:23Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:04:23.695035] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:04:23.695190] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:04:23.695269] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.695457] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04
[2018/06/12 09:04:23.695533] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.695607] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:04:23.695682] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.695792] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:23.695933] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:23.696004] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.696057] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:23.696140] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:04:23.696216] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.696322] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:23.696496] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:23.696576] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.696630] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:23.696713] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:04:23.696791] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.696897] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:04:23.696965] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:23.697035] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:04:23.697110] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:23.697223] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:04:23.697290] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:04:23.697343] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:04:23.697416] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:04:25.138103] ipam.mqt.maple.waffle.com (DEBUG): got: f33a4908-8448-4e7f-b003-a80daa17acc2, stored: None
[2018/06/12 09:04:25.143865] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:04:25.144019] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0xLjEwLjIyLjI2LjMu:aa.bb.26.3/cloudbusine0510-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:25.144117] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:04:25.170737] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:04:25.170947] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:04:25.171065] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:04:25.171206] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.3', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0xLjEwLjIyLjI2LjMu:aa.bb.26.3/cloudbusine0510-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:25.171296] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:04:25.171372] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:04:25.171456] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:04:25.171612] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:04:25.171880] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'a081cfd5-9848-4ea9-9082-ce42f5d04e05', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812265', 'TIME': '2018-06-12T14:04:25Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:04:25.171989] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:04:25.172142] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:04:25.172221] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.172377] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04
[2018/06/12 09:04:25.172447] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.172519] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:04:25.172619] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.172737] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:25.172879] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:25.172949] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.173002] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:25.173085] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:04:25.173161] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.173267] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:25.173407] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:25.173476] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.173529] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:25.173633] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:04:25.173716] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.173823] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:04:25.173892] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.173963] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:04:25.174038] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.174148] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:04:25.174217] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:04:25.174270] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:04:25.174332] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:04:25.177939] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:04:25.178079] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0yLjEwLjIyLjI3LjQu:aa.bb.27.4/cloudbusine0510-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:25.178181] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:04:25.204618] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:04:25.204822] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:04:25.204936] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:04:25.205074] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0510-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUxMC0yLjEwLjIyLjI3LjQu:aa.bb.27.4/cloudbusine0510-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0510'}, u'VM ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'VMware resource ID': {u'value': u'915bc6f4-70cb-4190-b827-cdaaf5e882c4'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:25.205163] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:04:25.205240] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:04:25.205322] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:04:25.205444] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:04:25.205689] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '60262dde-6198-4dec-886a-1ed25e323939', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812265', 'TIME': '2018-06-12T14:04:25Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:04:25.205788] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:04:25.205940] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:04:25.206018] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.206205] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04
[2018/06/12 09:04:25.206280] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.206353] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:04:25.206428] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.206537] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:25.206720] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:25.206790] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.206845] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:25.206927] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:04:25.207007] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.207113] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:25.207253] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:25.207321] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.207374] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:25.207455] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:04:25.207533] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.207658] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:04:25.207729] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.207801] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:04:25.207875] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.207985] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:04:25.208052] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:04:25.208105] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:04:25.208166] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:04:25.211759] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:04:25.211898] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0xLjEwLjIyLjI2LjQu:aa.bb.26.4/cloudbusine0509-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:25.212002] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:04:25.238221] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:04:25.238451] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:04:25.238566] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:04:25.238738] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0509-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.4', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOS0xLjEwLjIyLjI2LjQu:aa.bb.26.4/cloudbusine0509-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0509'}, u'VM ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'VMware resource ID': {u'value': u'0c76118a-3ffc-4ea6-9ac1-9a599e3c5553'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:04:25.238829] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:04:25.238905] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:04:25.238986] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:04:25.239107] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:04:25.239329] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'e5913950-1caf-4666-aa5e-713e7f30d48b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812265', 'TIME': '2018-06-12T14:04:25Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:04:25.239438] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:04:25.239615] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:04:25.239705] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.239860] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:04
[2018/06/12 09:04:25.239929] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.240001] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:04:25.240077] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.240186] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:25.240327] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:25.240395] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.240448] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:25.240530] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:04:25.240616] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.240736] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:04:25.240875] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:04:25.240944] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.240997] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:04:25.241079] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:04:25.241157] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.241263] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:04:25.241330] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:04:25.241401] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:04:25.241476] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:04:25.241588] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:04:25.241674] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:04:25.241730] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:04:25.241791] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:07:36.330617] ipam.mqt.maple.waffle.com (DEBUG): got: 17fc639f-e079-4a84-9be8-3ddc7378bde2, stored: None
[2018/06/12 09:07:36.336758] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:07:36.336911] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:36.337042] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:07:36.365128] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:07:36.365338] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:07:36.365468] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:07:36.365608] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:36.365691] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:07:36.365762] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:07:36.365840] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:07:36.365959] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:07:36.366221] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '10e0c14d-084a-4cf1-ab17-958f44455434', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812456', 'TIME': '2018-06-12T14:07:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:07:36.366316] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:07:36.366475] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:07:36.366549] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.366719] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07
[2018/06/12 09:07:36.366786] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:36.366854] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:07:36.366924] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.367033] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:36.367173] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:36.367237] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:36.367288] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:36.367421] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:07:36.367546] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.367708] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:36.367851] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:36.367914] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:36.367963] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:36.368043] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:07:36.368141] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.368290] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:07:36.368451] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:36.368525] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:07:36.368595] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.368889] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:07:36.368972] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:07:36.369046] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:07:36.369109] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:07:36.372942] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:07:36.373084] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:36.373170] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:07:36.400389] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:07:36.400605] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:07:36.400719] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:07:36.400857] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:36.400941] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:07:36.401013] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:07:36.401089] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:07:36.401205] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:07:36.401442] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'fd0d5eec-0c2c-4397-85f1-de2bb8a31dfc', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812456', 'TIME': '2018-06-12T14:07:36Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:07:36.401534] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:07:36.401682] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:07:36.401755] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.401905] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07
[2018/06/12 09:07:36.401970] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:36.402057] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:07:36.402139] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.402243] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:36.402383] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:36.402446] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:36.402494] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:36.402574] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:07:36.402645] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.402745] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:36.402884] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:36.402947] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:36.402994] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:36.403071] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:07:36.403142] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.403243] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:07:36.403304] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:36.403369] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:07:36.403437] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:36.403541] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:07:36.403603] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:07:36.403651] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:07:36.403708] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:07:38.843476] ipam.mqt.maple.waffle.com (DEBUG): got: 998f4d1b-605e-42d2-8b32-74148cabbd3f, stored: None
[2018/06/12 09:07:38.849940] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:07:38.850089] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:38.850194] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:07:38.877510] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:07:38.877727] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:07:38.877842] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:07:38.877977] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:38.878063] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:07:38.878134] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:07:38.878224] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:07:38.878392] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:07:38.878665] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'd3204768-c74b-4d18-9c42-2de3c33f3bca', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812458', 'TIME': '2018-06-12T14:07:38Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:07:38.878760] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:07:38.878907] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:07:38.878980] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.879141] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07
[2018/06/12 09:07:38.879231] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:38.879323] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:07:38.879396] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.879514] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:38.879652] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:38.879717] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:38.879765] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:38.879843] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:07:38.879913] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.880014] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:38.880148] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:38.880212] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:38.880275] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:38.880360] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:07:38.880433] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.880535] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:07:38.880597] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:38.880662] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:07:38.880731] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.880837] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:07:38.880899] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:07:38.880949] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:07:38.881006] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:07:38.885148] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:07:38.885300] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:38.885391] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:07:38.911620] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:07:38.911835] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:07:38.911953] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:07:38.912088] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:38.912170] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:07:38.912240] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:07:38.912314] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:07:38.912427] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:07:38.912632] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'e03bf6f4-c9c4-4768-8e98-16975353bd48', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812458', 'TIME': '2018-06-12T14:07:38Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:07:38.912723] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:07:38.912866] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:07:38.912938] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.913090] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07
[2018/06/12 09:07:38.913184] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:38.913254] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:07:38.913325] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.913427] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:38.913563] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:38.913626] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:38.913675] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:38.913764] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:07:38.913835] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.913935] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:38.914069] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:38.914131] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:38.914189] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:38.914268] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:07:38.914339] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.914439] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:07:38.914499] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:38.914564] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:07:38.914632] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:38.914735] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:07:38.914796] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:07:38.914844] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:07:38.914900] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:07:39.842221] ipam.mqt.maple.waffle.com (DEBUG): got: 71ac6055-c5c3-44ff-ae2c-4b69fdc86317, stored: None
[2018/06/12 09:07:39.851055] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:07:39.851207] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:39.851347] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:07:39.877368] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:07:39.877590] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:07:39.877710] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:07:39.877855] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:39.877941] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:07:39.878012] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:07:39.878088] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:07:39.878210] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:07:39.878467] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '65c6db46-0973-4a08-8397-5567c45a8ab4', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812459', 'TIME': '2018-06-12T14:07:39Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:07:39.878562] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:07:39.878713] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:07:39.878786] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.878939] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07
[2018/06/12 09:07:39.879005] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:39.879073] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:07:39.879143] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.879263] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:39.879405] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:39.879468] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:39.879518] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:39.879597] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:07:39.879667] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.879768] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:39.879913] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:39.879977] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:39.880025] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:39.880145] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:07:39.880221] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.880322] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:07:39.880384] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:39.880450] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:07:39.880519] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.880626] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:07:39.880688] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:07:39.880737] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:07:39.880795] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:07:39.885182] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:07:39.885315] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:39.885405] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:07:39.917084] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:07:39.917381] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:07:39.917536] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:07:39.917738] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:07:39.917849] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:07:39.917944] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:07:39.918047] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:07:39.918211] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:07:39.918614] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'b1f2243b-5715-46a7-8b9f-7c71276e7a9b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812459', 'TIME': '2018-06-12T14:07:39Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:07:39.918739] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:07:39.918934] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:07:39.919033] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.919247] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:07
[2018/06/12 09:07:39.919335] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:39.919424] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:07:39.919518] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.919657] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:39.919838] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:39.919922] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:39.919987] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:39.920091] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:07:39.920186] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.920322] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:07:39.920502] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:07:39.920584] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:39.920648] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:07:39.920751] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:07:39.920859] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.920996] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:07:39.921078] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:07:39.921167] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:07:39.921261] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:07:39.921403] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:07:39.921485] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:07:39.921551] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:07:39.921628] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:15.472620] ipam.mqt.maple.waffle.com (DEBUG): got: bea4e612-92e9-4b0c-9a64-2509b3ab0b5f, stored: None
[2018/06/12 09:13:15.477342] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:15.477482] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-vip.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.21', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS12aXAuMTAuMjIuMjUuMjEu:aa.bb.25.21/rtb1stp02-de001-vip.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:13:15.477594] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:15.504999] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:15.505265] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:15.505397] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:15.505530] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-vip.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.21', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS12aXAuMTAuMjIuMjUuMjEu:aa.bb.25.21/rtb1stp02-de001-vip.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:13:15.505624] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:15.505724] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:15.505856] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:15.505993] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:15.506272] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'aee18cdf-a544-486f-b79e-ba229bb9f2dc', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812795', 'TIME': '2018-06-12T14:13:15Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:15.506370] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:15.506520] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:15.506595] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:15.506800] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:15.506880] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:15.506950] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:15.507020] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:15.507125] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:15.507263] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:15.507326] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:15.507376] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:15.507456] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:15.507527] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:15.507628] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:15.507802] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:15.507869] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:15.507918] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:15.507997] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:15.508070] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:15.508171] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:15.508233] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:15.508325] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:15.508396] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:15.508503] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:15.508564] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:15.508624] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:15.508716] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:17.949265] ipam.mqt.maple.waffle.com (DEBUG): got: a61e75dd-6857-4f6f-8553-67fd198c6d3d, stored: None
[2018/06/12 09:13:17.954426] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:17.954569] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:13:17.954665] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:17.983027] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:17.983280] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:17.983408] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:17.983534] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:13:17.983617] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:17.983688] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:17.983765] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:17.983887] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:17.984183] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'ff5469d9-aab2-464a-951e-e11070b3bd0b', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812797', 'TIME': '2018-06-12T14:13:17Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:17.984281] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:17.984432] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:17.984507] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:17.984664] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:17.984730] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:17.984798] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:17.984868] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:17.985013] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:17.985157] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:17.985220] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:17.985270] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:17.985348] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:17.985419] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:17.985520] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:17.985665] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:17.985727] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:17.985775] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:17.985852] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:17.985923] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:17.986083] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:17.986157] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:17.986225] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:17.986295] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:17.986468] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:17.986535] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:17.986585] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:17.986643] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:18.515515] ipam.mqt.maple.waffle.com (DEBUG): got: a6ee04ad-9953-49e3-82a3-2d297cc3ca1c, stored: None
[2018/06/12 09:13:18.530131] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:18.530266] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.530380] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:18.557286] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:18.557534] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:18.557659] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:18.557785] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.557869] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:18.557940] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:18.558042] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:18.558176] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:18.558438] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'cd9c44f0-aef1-4d16-a050-598c43d06f3e', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:18.558572] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:18.558725] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:18.558799] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.558958] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:18.559042] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.559119] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:18.559190] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.559296] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.559432] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.559495] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.559544] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.559661] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:18.559738] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.559841] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.559977] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.560065] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.560117] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.560196] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:18.560269] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.560369] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:18.560431] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.560497] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:18.560565] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.560672] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:18.560734] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:18.560782] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:18.560839] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:18.567487] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:18.567608] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:13:18.567698] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:18.594661] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:18.594871] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:18.594982] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:18.595133] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:13:18.595218] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:18.595290] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:18.595366] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:18.595490] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:18.595721] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '72c9a445-9e06-4357-b079-40a0d25b286e', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:18.595815] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:18.595960] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:18.596053] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.596211] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:18.596277] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.596344] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:18.596414] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.596516] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.596652] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.596726] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.596777] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.596855] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:18.596925] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.597044] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.597184] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.597247] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.597295] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.597373] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:18.597444] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.597544] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:18.597606] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.597670] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:18.597738] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.597843] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:18.597905] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:18.597954] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:18.598043] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:18.601473] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:18.601592] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.601675] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:18.628013] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:18.628234] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:18.628375] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:18.628491] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.628580] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:18.628654] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:18.628731] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:18.628847] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:18.629069] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'a9eb6216-9649-4a62-af06-7f13c4003973', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:18.629164] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:18.629309] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:18.629382] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.629527] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:18.629607] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.629681] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:18.629750] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.629851] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.629985] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.630070] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.630123] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.630201] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:18.630272] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.630371] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.630504] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.630566] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.630614] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.630702] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:18.630775] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.630875] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:18.630938] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.631007] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:18.631095] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.631201] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:18.631262] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:18.631310] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:18.631367] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:18.635034] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:18.635179] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.635266] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:18.662002] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:18.662235] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:18.662347] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:18.662467] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.662559] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:18.662641] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:18.662718] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:18.662845] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:18.663082] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'cc45933c-0381-4bce-854b-dedb928595c2', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:18.663177] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:18.663322] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:18.663395] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.663545] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:18.663611] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.663678] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:18.663748] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.663849] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.663982] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.664061] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.664117] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.664195] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:18.664266] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.664366] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.664499] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.664561] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.664609] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.664687] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:18.664757] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.664857] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:18.664918] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.664982] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:18.665077] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.665185] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:18.665247] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:18.665295] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:18.665363] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:18.668920] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:18.669058] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.669154] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:18.695345] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:18.695538] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:18.695653] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:18.695771] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.695852] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:18.695923] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:18.695999] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:18.696151] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:18.696371] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'fdc016ca-1c8a-477b-affb-ecfb9d42f73f', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:18.696462] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:18.696606] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:18.696678] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.696823] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:18.696889] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.696957] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:18.697048] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.697159] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.697296] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.697359] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.697408] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.697486] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:18.697557] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.697657] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.697791] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.697854] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.697902] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.697979] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:18.698071] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.698176] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:18.698237] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.698365] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:18.698435] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.698540] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:18.698601] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:18.698649] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:18.698706] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:18.702201] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:18.702319] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.26', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI2Lg:aa.bb.25.26/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:13:18.702416] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:18.731472] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:18.731698] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:18.731813] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:18.731935] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.26', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI2Lg:aa.bb.25.26/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:13:18.732025] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:18.732156] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:18.732300] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:18.732506] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:18.732861] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '0f32e48e-b54e-4d8a-bc5b-fe0ceff9cdec', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:18.732961] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:18.733154] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:18.733283] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.733571] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:18.733677] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.733794] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:18.733925] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.734090] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.734235] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.734300] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.734350] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.734430] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:18.734501] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.734602] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.734737] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.734800] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.734849] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.734927] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:18.734998] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.735134] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:18.735199] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.735266] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:18.735336] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.735494] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:18.735620] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:18.735701] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:18.735763] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:18.739518] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:18.739678] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.739776] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:18.769320] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:18.769602] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:18.769740] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:18.769864] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.22', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjIyLg:aa.bb.25.22/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.769948] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:18.770027] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:18.770129] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:18.770254] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:18.770492] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '6372120c-8975-470a-bade-c4f48eac3eab', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:18.770587] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:18.770737] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:18.770811] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.770967] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:18.771037] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.771126] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:18.771199] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.771312] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.771448] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.771512] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.771561] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.771639] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:18.771721] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.771825] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.771959] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.772027] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.772090] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.772171] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:18.772243] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.772346] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:18.772407] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.772473] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:18.772541] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.772658] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:18.772722] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:18.772770] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:18.772828] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:13:18.776420] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:13:18.776539] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.776630] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:13:18.803398] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:13:18.803622] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:13:18.803737] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:13:18.803857] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'rtb1stp02-de001-scan.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.25', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS1zY2FuLjEwLjIyLjI1LjI1Lg:aa.bb.25.25/rtb1stp02-de001-scan.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'Cloud API Owned': {u'value': u'True'}, u'CMP Type': {u'value': u'VMWare'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'MODIFY'}
[2018/06/12 09:13:18.803954] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:13:18.804035] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:13:18.804151] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:13:18.804274] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:13:18.804505] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '4269eb58-477d-4638-af6b-2c39e56ee501', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528812798', 'TIME': '2018-06-12T14:13:18Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:13:18.804598] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:13:18.804744] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:13:18.804818] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.804967] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:13
[2018/06/12 09:13:18.805053] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.805144] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:13:18.805217] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.805320] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.805457] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.805521] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.805568] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.805658] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:13:18.805729] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.805829] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:13:18.805978] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:13:18.806067] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.806126] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:13:18.806207] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:13:18.806279] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.806380] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:13:18.806453] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:13:18.806521] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:13:18.806590] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:13:18.806696] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:13:18.806757] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:13:18.806808] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:13:18.806865] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:17:47.052682] ipam.mqt.maple.waffle.com (DEBUG): got: dac755b9-57df-4f3f-9cab-1ef39ae51a5c, stored: None
[2018/06/12 09:17:47.066567] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:17:47.066735] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 09:17:47.066843] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:17:47.093851] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:17:47.094219] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:17:47.094360] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:17:47.094501] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.25.18', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC4xMC4yMi4yNS4xOC4:aa.bb.25.18/cloudbusine0508.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 09:17:47.094597] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:17:47.094672] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:17:47.094751] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:17:47.094906] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:17:47.095184] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'f91e3b4e-2a4d-4c16-8d9a-fc87cbc23a99', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813067', 'TIME': '2018-06-12T14:17:47Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:17:47.095288] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:17:47.095439] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:17:47.095514] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.095678] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17
[2018/06/12 09:17:47.095746] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:47.095814] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:17:47.095883] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.095987] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:47.096122] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:47.096186] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:47.096235] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:47.096312] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:17:47.096382] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.096483] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:47.096618] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:47.096681] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:47.096730] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:47.096816] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:17:47.096889] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.096990] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:17:47.097053] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:47.097119] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:17:47.097187] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.097306] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:17:47.097370] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:17:47.097420] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:17:47.097478] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:17:47.101400] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:17:47.101538] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.25.18', u'mac': u'00:50:56:9b:7c:b0', u'host': u'rtb1stp02-de001.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS4xMC4yMi4yNS4xOC4:aa.bb.25.18/rtb1stp02-de001.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:17:47.101625] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:17:47.129123] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:17:47.129363] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:17:47.129484] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:17:47.129630] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.25.18', u'mac': u'00:50:56:9b:7c:b0', u'host': u'rtb1stp02-de001.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 0}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS4xMC4yMi4yNS4xOC4:aa.bb.25.18/rtb1stp02-de001.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:17:47.129723] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:17:47.129801] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:17:47.129880] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:17:47.130000] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:17:47.130233] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '27834722-96bb-43b4-9850-0c22b1803c71', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813067', 'TIME': '2018-06-12T14:17:47Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:17:47.130328] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:17:47.130478] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:17:47.130552] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.130704] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17
[2018/06/12 09:17:47.130770] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:47.130837] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:17:47.130909] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.131020] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:47.131160] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:47.131224] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:47.131273] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:47.131351] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:17:47.131423] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.131525] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:47.131660] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:47.131723] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:47.131773] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:47.131858] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:17:47.131929] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.132097] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:17:47.132167] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:47.132235] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:17:47.132305] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:47.132412] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:17:47.132475] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:17:47.132523] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:17:47.132580] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:17:49.072805] ipam.mqt.maple.waffle.com (DEBUG): got: 3b10b106-31b7-46b6-b3d1-3f9a2eb6dd53, stored: None
[2018/06/12 09:17:49.078168] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:17:49.078346] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 09:17:49.078489] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:17:49.106427] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:17:49.106693] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:17:49.106822] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:17:49.107000] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-1.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.26.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0xLjEwLjIyLjI2LjIu:aa.bb.26.2/cloudbusine0508-1.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 09:17:49.107103] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:17:49.107177] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:17:49.107266] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:17:49.107390] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:17:49.107634] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '7b5eaf6e-26c4-4580-bc36-ae38e9cc0fc9', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813069', 'TIME': '2018-06-12T14:17:49Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:17:49.107732] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:17:49.107883] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:17:49.107980] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.108157] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17
[2018/06/12 09:17:49.108225] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:49.108316] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:17:49.108389] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.108497] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:49.108634] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:49.108699] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:49.108747] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:49.108826] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:17:49.108896] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.109032] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:49.109182] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:49.109247] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:49.109296] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:49.109375] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:17:49.109447] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.109550] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:17:49.109613] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:49.109679] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:17:49.109749] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.109858] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:17:49.109921] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:17:49.110000] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:17:49.110074] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:17:49.113958] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:17:49.114123] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-1.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0xLjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-1.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:17:49.114231] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:17:49.141516] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:17:49.141783] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:17:49.141908] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:17:49.142095] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-1.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0xLjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-1.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:17:49.142202] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:17:49.142279] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:17:49.142359] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:17:49.142482] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:17:49.142735] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': 'ad81c47b-0df8-4eb6-9d87-e99ab1000c58', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813069', 'TIME': '2018-06-12T14:17:49Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:17:49.142849] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:17:49.143026] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:17:49.143103] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.143260] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17
[2018/06/12 09:17:49.143326] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:49.143394] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:17:49.143465] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.143586] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:49.143729] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:49.143792] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:49.143842] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:49.143921] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:17:49.144020] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.144126] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:49.144276] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:49.144343] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:49.144393] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:49.144472] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:17:49.144545] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.144648] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:17:49.144711] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:49.144777] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:17:49.144848] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:49.144985] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:17:49.145054] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:17:49.145113] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:17:49.145174] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:17:50.071593] ipam.mqt.maple.waffle.com (DEBUG): got: 90e7d6cc-c539-4364-ac74-1b7267e84bd0, stored: None
[2018/06/12 09:17:50.077836] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:17:50.077982] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 09:17:50.078100] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:17:50.105277] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:17:50.105527] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:17:50.105648] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:17:50.105788] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'host': u'cloudbusine0508-2.mqt.maple.waffle.com', u'ipv4addr': u'aa.bb.27.2', u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLmNsb3VkYnVzaW5lMDUwOC0yLjEwLjIyLjI3LjIu:aa.bb.27.2/cloudbusine0508-2.mqt.maple.waffle.com/mqt', u'network_view': u'default', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 09:17:50.105874] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:17:50.105945] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:17:50.106022] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:17:50.106186] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:17:50.106441] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '682046a5-16fa-4082-be2c-c2c71088af90', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813070', 'TIME': '2018-06-12T14:17:50Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:17:50.106536] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:17:50.106686] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:17:50.106792] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.107075] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17
[2018/06/12 09:17:50.107203] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:50.107329] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:17:50.107463] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.107660] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:50.107917] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:50.108037] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:50.108141] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:50.108312] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:17:50.108449] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.108641] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:50.108899] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:50.109020] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:50.109122] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:50.109273] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:17:50.109410] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.109603] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:17:50.109785] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:50.109917] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:17:50.110050] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.110259] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:17:50.110374] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:17:50.110468] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:17:50.110573] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:17:50.114909] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:17:50.115106] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-2.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0yLjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:17:50.115240] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:17:50.149861] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": ""
},
{
"name": "Site",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discoverer",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "discovered_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_entity_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_datacenter",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_host",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_ip",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "network_component_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_switch",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "v_adapter",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "network_component_port_name",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_vendor",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_model",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "device_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": " "
},
{
"name": "v_entity_type",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
},
{
"name": "username",
"namespace": "L",
"quoting": "xml"
},
{
"text": ""
},
{
"name": "dmqtinname",
"namespace": "L",
"quoting": "xml"
},
{
"text": "
"
}
],
"content_type": "application/xml",
"name": "Create_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "Check add/modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Update Sync Time",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "FIXED_ADDRESS_IPV4"
}
]
}
]
},
"content_type": "application/xml",
"name": "next_if_Fixed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get HostIPv4 _ref",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/record:host?ipv4addr="
},
{
"name": "IP",
"namespace": "L",
"quoting": "url"
},
{
"text": "&network_view="
},
{
"name": "NV",
"namespace": "L",
"quoting": "url"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0_ref",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-5",
"var2_name": "Obj_ref",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "0_ref",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "[0-1,{1-5"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "Get_Objref",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "{\"extattrs+\":{\"FS_SyncedAt\": { \"value\": \""
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "\"}}}"
}
],
"content_type": "application/xml",
"name": "Update Sync Time",
"nodebug": false,
"operation": "PUT",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6",
"wapi_quoting": "JSON"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "Stop Create/Modify",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugDelete",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": "Delete"
}
],
"content_type": "application/xml",
"name": "Delete_FS_Asset",
"nodebug": false,
"operation": "POST",
"override_headers": false,
"parse": "XMLA",
"parse_regex": null,
"path": "/fsapi/niCore/Hosts",
"strip_whitespace": true
},
{
"body": null,
"condition": {
"condition_type": "OR",
"error": true,
"statements": [
{
"left": [
{
"listindex": "FSAPISTATUSCODE",
"name": "PARSE",
"namespace": "P",
"quoting": "asis",
"type": "{0-5,{5-11,{11-15"
}
],
"op": "!=",
"right": [
{
"text": "FSAPI_OK"
}
]
}
]
},
"content_type": "application/xml",
"name": "check delete",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
}
],
"template_variables": {},
"vendor_identifier": "ForeScout",
"version": "2.0"
}
[2018/06/12 09:17:50.150257] ipam.mqt.maple.waffle.com (DEBUG): Executing step DebugOnStart (1)
[2018/06/12 09:17:50.150456] ipam.mqt.maple.waffle.com (DEBUG): Namespace H contents are: {'Content-Type': u'application/xml', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'}
[2018/06/12 09:17:50.150700] ipam.mqt.maple.waffle.com (DEBUG): Namespace E contents are: {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.27.2', u'mac': u'00:50:56:9b:57:d5', u'host': u'rtb1stp02-de001-2.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 2}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0yLjEwLjIyLjI3LjIu:aa.bb.27.2/rtb1stp02-de001-2.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'INSERT'}
[2018/06/12 09:17:50.150857] ipam.mqt.maple.waffle.com (DEBUG): Namespace I contents are: {}
[2018/06/12 09:17:50.150998] ipam.mqt.maple.waffle.com (DEBUG): Namespace L contents are: {}
[2018/06/12 09:17:50.151153] ipam.mqt.maple.waffle.com (DEBUG): Namespace S contents are: {'USER': u'infoblox@infoblox', 'TIMEOUT': 30, 'URI': u'https://yyy.yyy.182.73'}
[2018/06/12 09:17:50.151368] ipam.mqt.maple.waffle.com (DEBUG): Namespace P contents are: {'PARSE': {'index': {'STATUS': 0}, '': True, 'name': 'FSAPI', 'value': [{'index': {'MESSAGE': 1, 'CODE': 0}, '': True, 'name': 'STATUS', 'value': [{'index': {}, '': True, 'name': 'CODE', 'value': ['FSAPI_OK'], 'attrs': {}}, {'index': {}, '': True, 'name': 'MESSAGE', 'value': ['Successfully updated [1] properties for new host [ip=aa.bb.22.13]'], 'attrs': {}}], 'attrs': {}}], 'attrs': {'TYPE': 'response', 'API_VERSION': '1.0'}}}
[2018/06/12 09:17:50.151766] ipam.mqt.maple.waffle.com (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'PROTOCOL': u'https', 'UUID': '3b9996d2-1f61-4a1a-88b8-6f88612a4c7e', 'WAPIUSERNAME': u'fsapi', 'URI': u'https://yyy.yyy.182.73', 'HOST': u'yyy.yyy.182.73', 'EPOCH': '1528813070', 'TIME': '2018-06-12T14:17:50Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443}
[2018/06/12 09:17:50.151952] ipam.mqt.maple.waffle.com (DEBUG): Executing step assignSyncTime (1)
[2018/06/12 09:17:50.152200] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_just_changed (1)
[2018/06/12 09:17:50.152286] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.152447] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == 2018-06-12T14:17
[2018/06/12 09:17:50.152516] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:50.152587] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_not_Lease (1)
[2018/06/12 09:17:50.152659] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.152766] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:50.152904] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:50.152969] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:50.153018] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:50.153123] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_MAC (1)
[2018/06/12 09:17:50.153200] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.153303] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 != LEASE
[2018/06/12 09:17:50.153441] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: == true
[2018/06/12 09:17:50.153505] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:50.153554] ipam.mqt.maple.waffle.com (DEBUG): Executing the else_eval block
[2018/06/12 09:17:50.153632] ipam.mqt.maple.waffle.com (DEBUG): Executing step check_for_Lease (1)
[2018/06/12 09:17:50.153704] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.153806] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE
[2018/06/12 09:17:50.153867] ipam.mqt.maple.waffle.com (DEBUG): The condition did not match!
[2018/06/12 09:17:50.153933] ipam.mqt.maple.waffle.com (DEBUG): Executing step stop_if_no_sync (1)
[2018/06/12 09:17:50.154002] ipam.mqt.maple.waffle.com (DEBUG): Found a/an AND condition step!
[2018/06/12 09:17:50.154137] ipam.mqt.maple.waffle.com (DEBUG): Evaluating statement: false == false
[2018/06/12 09:17:50.154203] ipam.mqt.maple.waffle.com (DEBUG): The condition matched!
[2018/06/12 09:17:50.154253] ipam.mqt.maple.waffle.com (DEBUG): A stop condition was triggered, exiting
[2018/06/12 09:17:50.154310] ipam.mqt.maple.waffle.com (DEBUG): The template was executed successfully
[2018/06/12 09:18:40.535506] ipam.mqt.maple.waffle.com (DEBUG): got: ddcf477d-20bb-42db-a7d7-680634d8d2ae, stored: None
[2018/06/12 09:18:40.540771] ipam.mqt.maple.waffle.com (DEBUG): Executing the template ForeScout Assets Mgmt
[2018/06/12 09:18:40.540921] ipam.mqt.maple.waffle.com (DEBUG): Event {u'member_ip': u'yyy.yyy.181.22', u'event_type': 'HOST_ADDRESS_IPV4', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'aa.bb.26.2', u'mac': u'00:50:56:9b:7e:39', u'host': u'rtb1stp02-de001-1.mqt.maple.waffle.com', u'extattrs': {u'VMware NIC index': {u'value': 1}, u'VM Name': {u'value': u'CloudBusine0508'}, u'VM ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'VMware resource ID': {u'value': u'e16cbb03-1054-44cd-9ed6-5878cd699bbd'}, u'CMP Type': {u'value': u'VMWare'}, u'Cloud API Owned': {u'value': u'True'}, u'Tenant ID': {u'value': u'maple'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuOS5taWwubmF2eS5zcGF3YXIub21hLnJ0YjFzdHAwMi1kZTAwMS0xLjEwLjIyLjI2LjIu:aa.bb.26.2/rtb1stp02-de001-1.mqt.maple.waffle.com/mqt'}, u'member_name': u'ipam.mqt.maple.waffle.com', u'operation_type': u'DELETE'}
[2018/06/12 09:18:40.541095] ipam.mqt.maple.waffle.com (DEBUG): Event fields with no value ['timestamp']
[2018/06/12 09:18:40.570214] ipam.mqt.maple.waffle.com (DEBUG): Deserialized template in use: {
"comment": "Assets Management",
"content_type": "application/xml",
"headers": {},
"instance_variables": {},
"name": "ForeScout Assets Mgmt",
"path": "/fsapi/niCore/Hosts",
"quoting": "xml",
"steps": [
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "H"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "E"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "I"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "S"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "UT"
}
],
"content_type": "application/xml",
"name": "DebugOnStart",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "TIME",
"var1_namespace": "UT",
"var2_name": "SyncDate",
"var2_namespace": "L"
},
{
"fmt": "TRUNCATE",
"fmtstr": "16t",
"namespace": "XC",
"op": "FORMAT",
"var1_name": "SyncDate",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "assignSyncTime",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"listindex": "extattrsFS_SyncedAtvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-19,{19-24"
}
],
"op": "==",
"right": [
{
"name": "SyncDate",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "MODIFY"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_just_changed",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "false"
}
],
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_Sitevalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-15,{15-20",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "extattrsFS_RemediateOnEventvalue",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8,{8-27,{27-32",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "_ref",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-4",
"var2_name": "Obj_ref",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "ipv4addr",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-8",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_view",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-12",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Obj_Ref_Add",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": ""
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_not_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "MAC",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "000000000000"
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac",
"var1_name": "values",
"var1_namespace": "E",
"var1_type": "{0-3",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "extattrsFS_Syncvalue",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-8,{8-15,{15-20"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
},
{
"left": [
{
"listindex": "mac",
"name": "values",
"namespace": "E",
"quoting": "asis",
"type": "{0-3"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_MAC",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "Sync",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "true"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_Site",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-7",
"var2_name": "Site",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "FS_RemediateOnEvent",
"var1_name": "ip.extattrs",
"var1_namespace": "E",
"var1_type": "{0-19",
"var2_name": "RemediateOnEvent",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "address",
"var1_namespace": "E",
"var2_name": "IP",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "network_view",
"var1_namespace": "E",
"var2_name": "NV",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_name": "hardware",
"var1_namespace": "E",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "LEASE"
}
]
},
{
"left": [
{
"listindex": "FS_Sync",
"name": "ip.extattrs",
"namespace": "E",
"quoting": "asis",
"type": "{0-7"
}
],
"op": "==",
"right": [
{
"text": "true"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"statements": [
{
"left": [
{
"name": "Sync",
"namespace": "L",
"quoting": "xml"
}
],
"op": "==",
"right": [
{
"text": "false"
}
]
}
],
"stop": true
},
"content_type": "application/xml",
"name": "stop_if_no_sync",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "OR",
"next": "DebugDelete",
"statements": [
{
"left": [
{
"name": "operation_type",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "DELETE"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "RELEASED"
}
]
},
{
"left": [
{
"name": "binding_state",
"namespace": "E",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "FREE"
}
]
}
]
},
"content_type": "application/xml",
"name": "Goto for delete action",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "Get Discovery Data",
"statements": [
{
"left": [
{
"name": "event_type",
"namespace": "E",
"quoting": "xml"
}
],
"op": "!=",
"right": [
{
"text": "LEASE"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_for_Lease_go_for_Data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Create Obj_Ref for Lease",
"nodebug": false,
"operation": "SERIALIZE",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"serializations": [
{
"content": [
{
"text": "lease"
}
],
"destination": [
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "xml"
}
]
},
{
"content": [
{
"text": "&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"destination": [
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "xml"
}
]
}
]
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Lease Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
},
{
"name": "Obj_Ref_Add",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "0discovered_data",
"var1_name": "PARSE",
"var1_namespace": "P",
"var1_type": "[0-1,{1-16",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for Lease",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_mac",
"statements": [
{
"left": [
{
"text": "1"
}
],
"op": "==",
"right": [
{
"text": "1"
}
]
}
]
},
"content_type": "application/xml",
"name": "jump_to_discovery_data",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get Discovery Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/"
},
{
"name": "Obj_ref",
"namespace": "L",
"quoting": "asis"
},
{
"text": "?_return_fields=discovered_data"
}
],
"wapi": "v2.6"
},
{
"body": [
{
"namespace": "XC",
"op": "COPY",
"var1_name": "discovered_data",
"var1_namespace": "P",
"var2_name": "discovered_data",
"var2_namespace": "L"
}
],
"content_type": "application/xml",
"name": "Copy discovery_data for other records",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "mac_address",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "MAC",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "mac_address",
"name": "discovered_data",
"namespace": "L",
"quoting": "asis",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
},
{
"left": [
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
}
],
"op": "==",
"right": [
{
"text": "000000000000"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_mac",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discoverer",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discoverer",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "discoverer",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discoverer",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-10"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discoverer",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "discovered_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "discovered_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-15",
"var2_name": "discovered_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "discovered_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-15"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_discovered_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_switch",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_switch",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-8",
"var2_name": "v_switch",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_switch",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-8"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_switch",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_host",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_host",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-6",
"var2_name": "v_host",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_host",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-6"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_host",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_datacenter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_datacenter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "v_datacenter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_datacenter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_datacenter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_adapter",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_adapter",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-9",
"var2_name": "v_adapter",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_adapter",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-9"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_adapter",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "v_entity_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "v_entity_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "v_entity_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "v_entity_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ v_entity_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_ip",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_ip",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-20",
"var2_name": "network_component_ip",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_ip",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-20"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_ip",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-22",
"var2_name": "network_component_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-22"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_name",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_name",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-27",
"var2_name": "network_component_port_name",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_name",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-27"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_name",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "network_component_port_description",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "network_component_port_description",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-34",
"var2_name": "network_component_port_description",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "network_component_port_description",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-34"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ network_component_port_description",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_vendor",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_vendor",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-13",
"var2_name": "device_vendor",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_vendor",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-13"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_vendor",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_model",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_model",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-12",
"var2_name": "device_model",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_model",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-12"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_model",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "device_type",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "device_type",
"var1_name": "discovered_data",
"var1_namespace": "L",
"var1_type": "{0-11",
"var2_name": "device_type",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "device_type",
"name": "discovered_data",
"namespace": "L",
"quoting": "xml",
"type": "{0-11"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_ device_type",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugDiscovery",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Get User Data",
"nodebug": false,
"operation": "GET",
"override_headers": false,
"parse": "JSON",
"path": [
{
"text": "/wapi/v2.6/networkuser?user_status=ACTIVE&address="
},
{
"name": "IP",
"namespace": "L",
"quoting": "asis"
}
],
"wapi": "v2.6"
},
{
"body": null,
"condition": {
"condition_type": "AND",
"next": "check_username",
"statements": [
{
"left": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "len"
}
],
"op": "==",
"right": [
{
"text": "0"
}
]
}
]
},
"content_type": "application/xml",
"name": "check_user_response",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": null,
"content_type": "application/xml",
"name": "Pop User from the list",
"nodebug": false,
"operation": "VARIABLEOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts",
"variable_ops": [
{
"destination": [
{
"name": "user",
"namespace": "L",
"quoting": "xml"
}
],
"operation": "UNSHIFT",
"source": [
{
"name": "PARSE",
"namespace": "P",
"quoting": "xml"
}
],
"type": "DICTIONARY"
}
]
},
{
"body": null,
"condition": {
"condition_type": "AND",
"else_eval": [
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "username",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
},
{
"namespace": "XC",
"op": "ASSIGN",
"var1_name": "dmqtinname",
"var1_namespace": "L",
"var1_type": "S",
"var1_value": "."
}
],
"eval": [
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "name",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-4",
"var2_name": "username",
"var2_namespace": "L"
},
{
"namespace": "XC",
"op": "COPY",
"var1_listindex": "dmqtinname",
"var1_name": "user",
"var1_namespace": "L",
"var1_type": "{0-10",
"var2_name": "dmqtinname",
"var2_namespace": "L"
}
],
"statements": [
{
"left": [
{
"listindex": "name",
"name": "user",
"namespace": "L",
"quoting": "xml",
"type": "{0-4"
}
],
"op": "!=",
"right": [
{
"text": ""
}
]
}
]
},
"content_type": "application/xml",
"name": "check_username",
"nodebug": false,
"operation": "COND",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "P"
},
{
"namespace": "XC",
"op": "DEBUG",
"var1_name": "",
"var1_namespace": "L"
}
],
"content_type": "application/xml",
"name": "DebugUserData",
"nodebug": false,
"operation": "NOP",
"override_headers": false,
"path": "/fsapi/niCore/Hosts"
},
{
"body": [
{
"text": ""
},
{
"name": "MAC",
"namespace": "L",
"quoting": "asis"
},
{
"text": "Added via IB OutboundAPI at "
},
{
"name": "SyncDate",
"namespace": "L",
"quoting": "asis"
},
{
"text": "|