[2019/10/17 13:09:49.360333] infoblox.localdomain (DEBUG): got: 8e567228-fb9c-482d-8410-740069efddc6, stored: None [2019/10/17 13:09:49.389467] infoblox.localdomain (DEBUG): Executing the template Aruba ClearPass Login [2019/10/17 13:09:49.389595] infoblox.localdomain (DEBUG): Event {u'member_ip': u'xx.xx128.151', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-10-17T12:09:47Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'10.12.201.111', u'mac': u'aa:bb:cc:33:22:11', u'host': u'rafa-infoblox.ad', u'extattrs': {u'Aruba_Location': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMTIuMjAxLjAvMjQvMA:10.12.201.0/24/default'}, u'value': u'LAB'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuX2RlZmF1bHQuYWQucmFmYS1pbmZvYmxveC4xMC4xMi4yMDEuMTExLg:10.12.201.111/rafa-infoblox.ad/default'}, u'member_name': u'infoblox.localdomain', u'operation_type': u'INSERT'} [2019/10/17 13:09:49.390768] infoblox.localdomain (DEBUG): Deserialized template in use: { "comment": null, "content_type": "application/json", "headers": {}, "instance_variables": {}, "name": "Aruba ClearPass Login", "path": "", "quoting": "json", "steps": [ { "body": [ { "text": "{\"grant_type\": \"client_credentials\", \"client_secret\":\"" }, { "name": "KEY", "namespace": "S", "quoting": "asis" }, { "text": "\",\"client_id\":\"" }, { "name": "Client_ID", "namespace": "S", "quoting": "url" }, { "text": "\"}" } ], "content_type": "application/json", "headers": { "Authorization": "", "Content-Type": "application/json", "User-Agent": "Infoblox Security Integration", "X-Requested-With": "XMLHttpRequest" }, "name": "send login request", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": "/api/oauth" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "SESSID", "var1_namespace": "S", "var2_name": "access_token", "var2_namespace": "P" } ], "error": true, "statements": [ { "left": [ { "name": "RC", "namespace": "R", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "200" } ] } ] }, "content_type": "application/json", "name": "login. errorcheck", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" } ], "template_variables": {}, "vendor_identifier": "Aruba ClearPass", "version": "3.0" } [2019/10/17 13:09:49.390859] infoblox.localdomain (DEBUG): Executing step send login request (1) [2019/10/17 13:09:49.391224] infoblox.localdomain (DEBUG): Sleeping for 0 seconds [2019/10/17 13:09:49.391333] infoblox.localdomain (DEBUG): Sending a 'POST' request within connection: protocol='https', host='xx.xx128.2', port='443', path='/api/oauth', headers={u'X-Requested-With': u'XMLHttpRequest', 'Content-Type': u'application/json', 'User-Agent': u'Infoblox Security Integration'}, body='{"grant_type": "client_credentials", "client_secret":"OgJFXVywhhZsOBpucif+I/BiU7xpJq+weHk6tNQHuyH1","client_id":"BloxCS"}'. [2019/10/17 13:09:49.391387] infoblox.localdomain (DEBUG): closing connection due to keepalive_timeout [2019/10/17 13:09:49.391446] infoblox.localdomain (DEBUG): Request timeout is 30 [2019/10/17 13:09:49.636854] infoblox.localdomain (DEBUG): Response status:200 reason:OK headers:{'content-length': '113', 'x-xss-protection': '1;mode=block', 'x-content-type-options': 'nosniff', 'x-powered-by': 'PHP/7.2.20', 'set-cookie': '[*********]', 'expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'vary': 'X-Forwarded-For', 'server': 'Apache', 'pragma': 'no-cache', 'cache-control': 'no-store', 'date': 'Thu, 17 Oct 2019 11:09:45 GMT', 'content-type': 'application/json'} data:{"access_token":"cd8a9ba0cc764580be2324e5f0ebb4f432ae7824","expires_in":28800,"token_type":"Bearer","scope":null} [2019/10/17 13:09:49.637036] infoblox.localdomain (DEBUG): The previous endpoint request returned status 200 [2019/10/17 13:09:49.637120] infoblox.localdomain (DEBUG): Parsing the endpoint message {'BODY': '{"access_token":"cd8a9ba0cc764580be2324e5f0ebb4f432ae7824","expires_in":28800,"token_type":"Bearer","scope":null}', 'REASON': 'OK', 'RC': 200} [2019/10/17 13:09:49.637465] infoblox.localdomain (DEBUG): The parsing output is {u'access_token': u'cd8a9ba0cc764580be2324e5f0ebb4f432ae7824', u'token_type': u'Bearer', u'expires_in': 28800, u'scope': None} [2019/10/17 13:09:49.637578] infoblox.localdomain (DEBUG): Executing step Debug (1) [2019/10/17 13:09:49.637740] infoblox.localdomain (DEBUG): Namespace H contents are: {'Content-Type': u'application/json', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2019/10/17 13:09:49.637889] infoblox.localdomain (DEBUG): Namespace E contents are: {u'member_ip': u'xx.xx128.151', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-10-17T12:09:47Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'10.12.201.111', u'mac': u'aa:bb:cc:33:22:11', u'host': u'rafa-infoblox.ad', u'extattrs': {u'Aruba_Location': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMTIuMjAxLjAvMjQvMA:10.12.201.0/24/default'}, u'value': u'LAB'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuX2RlZmF1bHQuYWQucmFmYS1pbmZvYmxveC4xMC4xMi4yMDEuMTExLg:10.12.201.111/rafa-infoblox.ad/default'}, u'member_name': u'infoblox.localdomain', u'operation_type': u'INSERT'} [2019/10/17 13:09:49.638018] infoblox.localdomain (DEBUG): Namespace I contents are: {u'KEY': u'OgJFXVywhhZsOBpucif+I/BiU7xpJq+weHk6tNQHuyH1', u'Client_ID': u'BloxCS'} [2019/10/17 13:09:49.638112] infoblox.localdomain (DEBUG): Namespace L contents are: {} [2019/10/17 13:09:49.638226] infoblox.localdomain (DEBUG): Namespace S contents are: {'USER': u'admin', 'TIMEOUT': 30, u'KEY': u'OgJFXVywhhZsOBpucif+I/BiU7xpJq+weHk6tNQHuyH1', u'Client_ID': u'BloxCS', 'URI': u'https://xx.xx128.2'} [2019/10/17 13:09:49.638318] infoblox.localdomain (DEBUG): Namespace P contents are: {u'access_token': u'cd8a9ba0cc764580be2324e5f0ebb4f432ae7824', u'token_type': u'Bearer', u'expires_in': 28800, u'scope': None} [2019/10/17 13:09:49.638414] infoblox.localdomain (DEBUG): Namespace R contents are: {'BODY': '{"access_token":"cd8a9ba0cc764580be2324e5f0ebb4f432ae7824","expires_in":28800,"token_type":"Bearer","scope":null}', 'REASON': 'OK', 'RC': 200} [2019/10/17 13:09:49.638538] infoblox.localdomain (DEBUG): Namespace RH contents are: {'content-length': '113', 'x-xss-protection': '1;mode=block', 'x-content-type-options': 'nosniff', 'x-powered-by': 'PHP/7.2.20', 'set-cookie': '[*********]', 'expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'vary': 'X-Forwarded-For', 'server': 'Apache', 'pragma': 'no-cache', 'cache-control': 'no-store', 'date': 'Thu, 17 Oct 2019 11:09:45 GMT', 'content-type': 'application/json'} [2019/10/17 13:09:49.638979] infoblox.localdomain (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'ENDPOINT': 'notification:rest:endpoint/b25lLmVuZHBvaW50JDE', 'PROTOCOL': u'https', 'UUID': '522efb54-8a72-4db2-b526-5e496ca08bbb', 'WAPIUSERNAME': u'admin', 'URI': u'https://xx.xx128.2', 'HOST': u'xx.xx128.2', 'EPOCH': '1571314189', 'TIME': '2019-10-17T12:09:49Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2019/10/17 13:09:49.639112] infoblox.localdomain (DEBUG): Executing step login. errorcheck (1) [2019/10/17 13:09:49.639198] infoblox.localdomain (DEBUG): Found a/an AND condition step! [2019/10/17 13:09:49.639365] infoblox.localdomain (DEBUG): Evaluating statement: 200 != 200 [2019/10/17 13:09:49.639576] infoblox.localdomain (DEBUG): The condition did not match! [2019/10/17 13:09:49.639652] infoblox.localdomain (DEBUG): Executing the else_eval block [2019/10/17 13:09:49.639822] infoblox.localdomain (DEBUG): The template was executed successfully [2019/10/17 13:09:49.640077] infoblox.localdomain (DEBUG): Executing the template Aruba ClearPass Assets [2019/10/17 13:09:49.640209] infoblox.localdomain (DEBUG): Event {u'member_ip': u'xx.xx128.151', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-10-17T12:09:47Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'10.12.201.111', u'mac': u'aa:bb:cc:33:22:11', u'host': u'rafa-infoblox.ad', u'extattrs': {u'Aruba_Location': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMTIuMjAxLjAvMjQvMA:10.12.201.0/24/default'}, u'value': u'LAB'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuX2RlZmF1bHQuYWQucmFmYS1pbmZvYmxveC4xMC4xMi4yMDEuMTExLg:10.12.201.111/rafa-infoblox.ad/default'}, u'member_name': u'infoblox.localdomain', u'operation_type': u'INSERT'} [2019/10/17 13:09:49.708028] infoblox.localdomain (DEBUG): Deserialized template in use: { "comment": null, "content_type": "application/json", "headers": { "Accept": "*/*" }, "instance_variables": {}, "name": "Aruba ClearPass Assets", "path": "", "quoting": "json", "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": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#0", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "statements": [ { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "DELETE" } ] } ], "stop": true }, "content_type": "application/json", "name": "skip object modification and deletion", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "else_next": "assignLVarsNet from E:", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "L", "var2_name": "address", "var2_namespace": "E" } ], "next": "all discovery information", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/json", "name": "check if lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "timestamp", "var1_namespace": "L", "var2_name": "timestamp", "var2_namespace": "E" }, { "namespace": "XC", "op": "COPY", "var1_name": "network_view", "var1_namespace": "L", "var2_listindex": "network_view", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-12" } ], "content_type": "application/json", "name": "assignLVarsNet from E:", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "L", "var2_listindex": "ipv6addr", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8" }, { "assign_type": "S", "assign_val": "ipv6addr", "namespace": "XC", "op": "ASSIGN", "var1_name": "addr", "var1_namespace": "L" }, { "assign_type": "S", "assign_val": "ipv6fixedaddress", "namespace": "XC", "op": "ASSIGN", "var1_name": "fixed", "var1_namespace": "L" } ], "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "address", "var1_namespace": "L", "var2_listindex": "ipv4addr", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8" }, { "assign_type": "S", "assign_val": "ipv4addr", "namespace": "XC", "op": "ASSIGN", "var1_name": "addr", "var1_namespace": "L" }, { "assign_type": "S", "assign_val": "fixedaddress", "namespace": "XC", "op": "ASSIGN", "var1_name": "fixed", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "ipv4addr", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if IPv4 or IPv6 for assigning variables", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "Location", "var1_namespace": "L", "var2_listindex": "extattrsAruba_Locationvalue", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8,{8-22,{22-27" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "name", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "extattrsAruba_Locationvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-22,{22-27" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "Check if location", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "ArubaAddDate", "var1_namespace": "L", "var2_name": "TIME", "var2_namespace": "UT" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "ArubaAddDate", "var1_namespace": "L" } ], "content_type": "application/json", "name": "assignTimeValue", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "ArubaAddDateRecorded", "var1_namespace": "L", "var2_listindex": "extattrsAruba_SyncedAtvalue", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-8,{8-22,{22-27" }, { "fmt": "TRUNCATE", "fmtstr": "16t", "namespace": "XC", "op": "FORMAT", "var1_name": "ArubaAddDateRecorded", "var1_namespace": "L" } ], "eval": [ { "assign_type": "S", "assign_val": "", "namespace": "XC", "op": "ASSIGN", "var1_name": "ArubaAddDateRecorded", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "extattrsAruba_SyncedAtvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-22,{22-27" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "Set Old_Time", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "statements": [ { "left": [ { "listindex": "extattrsAruba_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-18,{18-23" } ], "op": "==", "right": [ { "text": "false" } ] }, { "left": [ { "name": "ArubaAddDateRecorded", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "name": "ArubaAddDate", "namespace": "L", "quoting": "asis" } ] } ], "stop": true }, "content_type": "application/json", "name": "check If Scan Happened today", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "headers": { "Accept": "application/json", "Authorization": "Basic YWRtaW46QXJ1YmExMjM=", "Content-Type": "application/json" }, "name": "all discovery information", "nodebug": false, "operation": "GET", "override_headers": true, "parse": "JSON", "path": [ { "text": "/wapi/v2.7/discovery:device?address=" }, { "name": "address", "namespace": "L", "quoting": "asis" }, { "text": "&_return_fields=name,description,os_version,chassis_serial_number,model,ms_ad_user_data,type,vendor,interfaces" } ], "wapi": "v2.7" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" } ], "content_type": "application/json", "name": "Debug#40", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "name", "var1_namespace": "L", "var2_listindex": "0name", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-5" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "name", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0name", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "==", "right": [ { "text": "" } ] }, { "left": [ { "listindex": "0name", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "==", "right": [ { "text": "unknown" } ] } ] }, "content_type": "application/json", "name": "Check if name is unknown", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" } ], "content_type": "application/json", "name": "Debug#41", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "description", "var1_namespace": "L", "var2_listindex": "0description", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-12" } ], "eval": [ { "assign_type": "S", "assign_val": "None", "namespace": "XC", "op": "ASSIGN", "var1_name": "description", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0description", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-12" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for description", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "os_version", "var1_namespace": "L", "var2_listindex": "0os_version", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-11" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "os_version", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0os_version", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-11" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for os_version", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "model", "var1_namespace": "L", "var2_listindex": "0model", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-6" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "model", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0model", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-6" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "active_users_count", "var1_namespace": "L", "var2_listindex": "0ms_ad_user_dataactive_users_count", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-16,{16-34" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "active_users_count", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0active_users_count", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-19" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for active_users_count", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "vendor", "var1_namespace": "L", "var2_listindex": "0vendor", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-7" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "vendor", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0vendor", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-7" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "type", "var1_namespace": "L", "var2_listindex": "0type", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-5" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "type", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0type", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "chassis_serial_number", "var1_namespace": "L", "var2_listindex": "0chassis_serial_number", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-22" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "chassis_serial_number", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0chassis_serial_number", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-22" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for chassis_serial_number", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "next": "Check if Lease is wanted", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ] }, "content_type": "application/json", "name": "check if lease to jump to lease event", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "statements": [ { "left": [ { "listindex": "extattrsAruba_Syncvalue", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-8,{8-18,{18-23" } ], "op": "!=", "right": [ { "text": "true" } ] } ], "stop": true }, "content_type": "application/json", "name": "stop add if Asset is not wanted", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#11", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#12", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "next": "check if IPv4 or IPv6 for host", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "asis" } ], "op": "=~", "right": [ { "text": "HOST" } ] } ] }, "content_type": "application/json", "name": "check if host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#13", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Fixed IPv6 Mac", "statements": [ { "left": [ { "name": "addr", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "ipv6addr" } ] } ] }, "content_type": "application/json", "name": "check if IPv4 or IPv6", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#14", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "name": "Get Fixed IPv4 Mac", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/wapi/v2.7/" }, { "listindex": "_ref", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-4" }, { "text": "?_return_fields=mac,discovered_data.mac_address,discovered_data.vmhost_mac_address,discovered_data.vport_mac_address" } ], "result": [ { "codes": "200,201,202,203,204", "next": "check if mac is present" } ], "wapi": "v2.7" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#15", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "name": "Get Fixed IPv6 Mac", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/wapi/v2.7/" }, { "listindex": "_ref", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-4" }, { "text": "?_return_fields=discovered_data.mac_address,discovered_data.vmhost_mac_address,discovered_data.vport_mac_address" } ], "result": [ { "codes": "200,201,202,203,204", "next": "check if discovered mac_address is present" } ], "wapi": "v2.7" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#16", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "mac", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "P" } ], "next": "assignMac from L: for fixed", "statements": [ { "left": [ { "name": "mac", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if mac is present", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#17", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "mac", "var1_namespace": "L", "var2_name": "discovered_data.mac_address", "var2_namespace": "P" } ], "next": "assignMac from L: for fixed", "statements": [ { "left": [ { "name": "discovered_data.mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if discovered mac_address is present", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "mac", "var1_namespace": "L", "var2_name": "discovered_data.vmhost_mac_address", "var2_namespace": "P" } ], "next": "assignMac from L: for fixed", "statements": [ { "left": [ { "name": "discovered_data.vmhost_mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if discovered vmhost_mac_address is present", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "mac", "var1_namespace": "L", "var2_name": "discovered_data.vport_mac_address", "var2_namespace": "P" } ], "next": "assignMac from L: for fixed", "statements": [ { "left": [ { "name": "discovered_data.vport_mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if discovered vport_mac_address is present", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#18", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop if no mac for fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#19", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "Mac1", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "2t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac1", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac2", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "5t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac2", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac2", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac3", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "8t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac3", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac3", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac4", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "11t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac4", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac4", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac5", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "14t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac5", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac5", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac6", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac6", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "MacFull", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" } ], "content_type": "application/json", "name": "assignMac from L: for fixed", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#20", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "headers": { "Authorization": [ { "text": "Bearer " }, { "name": "SESSID", "namespace": "S", "quoting": "asis" } ] }, "name": "Get Check if duplicate endpoint with Fixed", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/api/endpoint/mac-address/" }, { "name": "Mac1", "namespace": "L", "quoting": "asis" }, { "name": "Mac2", "namespace": "L", "quoting": "asis" }, { "name": "Mac3", "namespace": "L", "quoting": "asis" }, { "name": "Mac4", "namespace": "L", "quoting": "asis" }, { "name": "Mac5", "namespace": "L", "quoting": "asis" }, { "name": "Mac6", "namespace": "L", "quoting": "asis" } ], "result": [ { "codes": "200,201,202,203,204,404,405", "next": "Skip if modify event and no mac address with Fixed" } ] }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#21", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "next": "check for Location", "statements": [ { "left": [ { "name": "mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ] }, "content_type": "application/json", "name": "Skip if modify event and no mac address with Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "statements": [ { "left": [ { "name": "mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop everthing if mac isn't present with Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#22", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": [ { "text": "{\"mac_address\":\"" }, { "name": "MacFull", "namespace": "L", "quoting": "asis" }, { "text": "\",\"status\":\"Known\",\"description\":\"Added via API at " }, { "name": "TIME", "namespace": "UT", "quoting": "asis" }, { "text": "\",\"attributes\":{\"Device Type\":\"" }, { "name": "type", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Device Vendor\":\"" }, { "name": "vendor", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Location\":\"" }, { "name": "Location", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Model\":\"" }, { "name": "model", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox DHCP Fingerprint\":\"Unknown\",\"Infoblox Managed\":\"True\",\"Infoblox Last Known IP\":\"" }, { "name": "address", "namespace": "L", "quoting": "asis" }, { "text": "\",\"OS Version\":\"" }, { "name": "os_version", "namespace": "L", "quoting": "asis" }, { "text": "\"}}" } ], "content_type": "application/json", "headers": { "Authorization": [ { "text": "Bearer " }, { "name": "SESSID", "namespace": "S", "quoting": "asis" } ] }, "name": "Add an endpoint from a Fixed", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": "/api/endpoint" }, { "body": [ { "text": "{\"mac\":\"" }, { "name": "MacFull", "namespace": "L", "quoting": "asis" }, { "text": "\",\"ip\": \"" }, { "name": "address", "namespace": "L", "quoting": "asis" }, { "text": "\",\"device\":{\"family\":\"" }, { "name": "vendor", "namespace": "L", "quoting": "asis" }, { "text": "\",\"category\":\"" }, { "name": "type", "namespace": "L", "quoting": "asis" }, { "text": "\",\"name\":\"" }, { "name": "name", "namespace": "L", "quoting": "asis" }, { "text": "\"}}" } ], "content_type": "application/json", "headers": { "Accept": "*/*", "Content-Type": "application/json", "User-Agent": "Infoblox Security Integration" }, "name": "Testing fixed", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": "/async_netd/deviceprofiler/endpoints" }, { "body": [ { "text": "{\"extattrs+\":{\"Aruba_SyncedAt\": { \"value\": \"" }, { "name": "timestamp", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/json", "name": "Update extattrs for update fixed ip", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.7/" }, { "listindex": "_ref", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-4" } ], "wapi": "v2.7", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "next": "Stop everthing", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/json", "name": "end of adding a Fixed", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get Host_IPv6 information", "statements": [ { "left": [ { "name": "addr", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "ipv6addr" } ] } ] }, "content_type": "application/json", "name": "check if IPv4 or IPv6 for host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#5", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "name": "Get Host_IPv4 information", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/wapi/v2.7/" }, { "listindex": "_ref", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-4" }, { "text": "?_return_fields=mac,discovered_data.mac_address,discovered_data.vmhost_mac_address,discovered_data.vport_mac_address" } ], "result": [ { "codes": "200,201,202,203,204", "next": "check if mac is present for host" } ], "wapi": "v2.7" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#6", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "name": "Get Host_IPv6 information", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/wapi/v2.7/" }, { "listindex": "_ref", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-4" }, { "text": "?_return_fields=discovered_data.mac_address,discovered_data.vmhost_mac_address,discovered_data.vport_mac_address" } ], "result": [ { "codes": "200,201,202,203,204", "next": "check if discovered mac_address is present for host" } ], "wapi": "v2.7" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#7.1", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "mac", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "P" } ], "next": "assignMac from P: for host", "statements": [ { "left": [ { "name": "mac", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if mac is present for host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#7.2", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "mac", "var1_namespace": "L", "var2_name": "discovered_data.mac_address", "var2_namespace": "P" } ], "next": "assignMac from P: for host", "statements": [ { "left": [ { "name": "discovered_data.mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if discovered mac_address is present for host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#7.3", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "mac", "var1_namespace": "L", "var2_name": "discovered_data.vmhost_mac_address", "var2_namespace": "P" } ], "next": "assignMac from P: for host", "statements": [ { "left": [ { "name": "discovered_data.vmhost_mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if discovered vmhost_mac_address is present for host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#7.4", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "mac", "var1_namespace": "L", "var2_name": "discovered_data.vport_mac_address", "var2_namespace": "P" } ], "next": "assignMac from P: for host", "statements": [ { "left": [ { "name": "discovered_data.vport_mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check if discovered vport_mac_address is present for host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#7.5", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop if no mac for fixed for host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#7.6", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "Mac1", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "2t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac1", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac2", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "5t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac2", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac2", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac3", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "8t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac3", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac3", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac4", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "11t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac4", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac4", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac5", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "14t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac5", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac5", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac6", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac6", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "MacFull", "var1_namespace": "L", "var2_name": "mac", "var2_namespace": "L" } ], "content_type": "application/json", "name": "assignMac from P: for host", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#8", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "headers": { "Authorization": [ { "text": "Bearer " }, { "name": "SESSID", "namespace": "S", "quoting": "asis" } ] }, "name": "Get Check if duplicate endpoint with host", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/api/endpoint/mac-address/" }, { "name": "Mac1", "namespace": "L", "quoting": "asis" }, { "name": "Mac2", "namespace": "L", "quoting": "asis" }, { "name": "Mac3", "namespace": "L", "quoting": "asis" }, { "name": "Mac4", "namespace": "L", "quoting": "asis" }, { "name": "Mac5", "namespace": "L", "quoting": "asis" }, { "name": "Mac6", "namespace": "L", "quoting": "asis" } ], "result": [ { "codes": "200,201,202,203,204,404,405", "next": "Skip if modify event and no mac address" } ] }, { "body": null, "condition": { "condition_type": "AND", "next": "check for Location", "statements": [ { "left": [ { "name": "mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "operation_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "MODIFY" } ] } ] }, "content_type": "application/json", "name": "Skip if modify event and no mac address", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#9", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "statements": [ { "left": [ { "name": "mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop everthing if mac isn't present with host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#10", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": [ { "text": "{\"mac_address\":\"" }, { "name": "MacFull", "namespace": "L", "quoting": "asis" }, { "text": "\",\"status\":\"Known\",\"description\":\"Added via API at " }, { "name": "TIME", "namespace": "UT", "quoting": "asis" }, { "text": "\",\"attributes\":{\"client_hostname\":\"" }, { "listindex": "host", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-4" }, { "text": "\",\"Device Type\":\"" }, { "name": "type", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Device Vendor\":\"" }, { "name": "vendor", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Location\":\"" }, { "name": "Location", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Model\":\"" }, { "name": "model", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox DHCP Fingerprint\":\"Unknown\",\"Infoblox Managed\":\"True\",\"Infoblox Last Known IP\":\"" }, { "name": "address", "namespace": "L", "quoting": "asis" }, { "text": "\",\"OS Version\":\"" }, { "name": "os_version", "namespace": "L", "quoting": "asis" }, { "text": "\"}}" } ], "content_type": "application/json", "headers": { "Authorization": [ { "text": "Bearer " }, { "name": "SESSID", "namespace": "S", "quoting": "asis" } ] }, "name": "Add an endpoint from a host", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": "/api/endpoint" }, { "body": [ { "text": "{\"mac\":\"" }, { "name": "MacFull", "namespace": "L", "quoting": "asis" }, { "text": "\",\"ip\": \"" }, { "name": "address", "namespace": "L", "quoting": "asis" }, { "text": "\",\"hostname\": \"" }, { "listindex": "host", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-4" }, { "text": "\",\"device\":{\"family\":\"" }, { "name": "vendor", "namespace": "L", "quoting": "asis" }, { "text": "\",\"category\":\"" }, { "name": "type", "namespace": "L", "quoting": "asis" }, { "text": "\",\"name\":\"" }, { "name": "name", "namespace": "L", "quoting": "asis" }, { "text": "\"}}" } ], "content_type": "application/json", "headers": { "Accept": "*/*", "Content-Type": "application/json", "User-Agent": "Infoblox Security Integration" }, "name": "Testing host", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": "/async_netd/deviceprofiler/endpoints" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get HostIPv6 _ref", "statements": [ { "left": [ { "name": "addr", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "ipv6addr" } ] } ] }, "content_type": "application/json", "name": "check if IPv4 or IPv6 to get Host for update", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "name": "Get HostIPv4 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.7/record:host?ipv4addr=" }, { "name": "address", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "network_view", "namespace": "L", "quoting": "url" }, { "text": "&_return_fields=extattrs" } ], "result": [ { "codes": "200,201,202,203,204", "next": "Update extattrs for update Host" } ], "wapi": "v2.7" }, { "body": null, "content_type": "application/json", "name": "Get HostIPv6 _ref", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.7/record:host?ipv6addr=" }, { "name": "address", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "network_view", "namespace": "L", "quoting": "url" }, { "text": "&_return_fields=extattrs" } ], "wapi": "v2.7" }, { "body": [ { "text": "{\"extattrs+\":{\"Aruba_SyncedAt\": { \"value\": \"" }, { "name": "timestamp", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/json", "name": "Update extattrs for update Host", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.7/" }, { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "wapi": "v2.7", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "next": "Stop everthing", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ] }, "content_type": "application/json", "name": "end of adding a host", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "else_stop": true, "statements": [ { "left": [ { "listindex": "Aruba_Sync", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-10" } ], "op": "==", "right": [ { "text": "true" } ] } ] }, "content_type": "application/json", "name": "Check if Lease is wanted", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "Location", "var1_namespace": "L", "var2_listindex": "Aruba_Location", "var2_name": "ip.extattrs", "var2_namespace": "E", "var2_type": "{0-14" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "Location", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Aruba_Location", "name": "ip.extattrs", "namespace": "E", "quoting": "asis", "type": "{0-14" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "Check if location for lease", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "COPY", "var1_name": "Mac1", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" }, { "fmt": "TRUNCATE", "fmtstr": "2t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac1", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac2", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" }, { "fmt": "TRUNCATE", "fmtstr": "5t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac2", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac2", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac3", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" }, { "fmt": "TRUNCATE", "fmtstr": "8t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac3", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac3", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac4", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" }, { "fmt": "TRUNCATE", "fmtstr": "11t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac4", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac4", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac5", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" }, { "fmt": "TRUNCATE", "fmtstr": "14t", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac5", "var1_namespace": "L" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac5", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "Mac6", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" }, { "fmt": "TRUNCATE", "fmtstr": "-2f", "namespace": "XC", "op": "FORMAT", "var1_name": "Mac6", "var1_namespace": "L" }, { "namespace": "XC", "op": "COPY", "var1_name": "MacFull", "var1_namespace": "L", "var2_name": "hardware", "var2_namespace": "E" } ], "content_type": "application/json", "name": "assignMac from E: for lease", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#1", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "headers": { "Authorization": [ { "text": "Bearer " }, { "name": "SESSID", "namespace": "S", "quoting": "asis" } ] }, "name": "Get Check if duplicate endpoint", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/api/endpoint/mac-address/" }, { "name": "Mac1", "namespace": "L", "quoting": "asis" }, { "name": "Mac2", "namespace": "L", "quoting": "asis" }, { "name": "Mac3", "namespace": "L", "quoting": "asis" }, { "name": "Mac4", "namespace": "L", "quoting": "asis" }, { "name": "Mac5", "namespace": "L", "quoting": "asis" }, { "name": "Mac6", "namespace": "L", "quoting": "asis" } ], "result": [ { "codes": "200,201,202,203,204,404,405", "next": "Stop everthing if mac isn't present" } ] }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#1b", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "name": "mac_address", "namespace": "P", "quoting": "asis" } ], "op": "!=", "right": [ { "text": "" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop everthing if mac isn't present", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "name": "Get Lease information", "nodebug": false, "operation": "GET", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/wapi/v2.7/lease?address=" }, { "name": "address", "namespace": "E", "quoting": "asis" }, { "text": "&network_view=" }, { "name": "network_view", "namespace": "E", "quoting": "asis" }, { "text": "&_return_fields=fingerprint" } ], "result": [ { "codes": "200,201,202,203,204", "next": "Check if fingerprint is unknown" } ], "wapi": "v2.7" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug#3", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "fingerprint", "var1_namespace": "L", "var2_listindex": "0fingerprint", "var2_name": "PARSE", "var2_namespace": "P", "var2_type": "[0-1,{1-12" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "fingerprint", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "0fingerprint", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-12" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "Check if fingerprint is unknown", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "text": "{\"mac_address\":\"" }, { "name": "hardware", "namespace": "E", "quoting": "asis" }, { "text": "\",\"status\":\"Known\",\"description\":\"Added via API at " }, { "name": "TIME", "namespace": "UT", "quoting": "asis" }, { "text": "\",\"attributes\":{\"client_hostname\":\"" }, { "name": "client_hostname", "namespace": "E", "quoting": "asis" }, { "text": "\",\"Device Type\":\"" }, { "name": "type", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Device Vendor\":\"" }, { "name": "vendor", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Location\":\"" }, { "name": "Location", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Model\":\"" }, { "name": "model", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox DHCP Fingerprint\":\"" }, { "name": "fingerprint", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox Managed\":\"True\",\"Infoblox Last Known IP\":\"" }, { "name": "address", "namespace": "E", "quoting": "asis" }, { "text": "\",\"OS Version\":\"" }, { "name": "os_version", "namespace": "L", "quoting": "asis" }, { "text": "\"}}" } ], "content_type": "application/json", "headers": { "Authorization": [ { "text": "Bearer " }, { "name": "SESSID", "namespace": "S", "quoting": "asis" } ] }, "name": "Add an endpoint", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": "/api/endpoint" }, { "body": [ { "text": "{\"mac\":\"" }, { "name": "MacFull", "namespace": "L", "quoting": "asis" }, { "text": "\",\"ip\": \"" }, { "name": "address", "namespace": "E", "quoting": "asis" }, { "text": "\",\"device\":{\"family\":\"" }, { "name": "vendor", "namespace": "L", "quoting": "asis" }, { "text": "\",\"category\":\"" }, { "name": "type", "namespace": "L", "quoting": "asis" }, { "text": "\",\"name\":\"" }, { "name": "name", "namespace": "L", "quoting": "asis" }, { "text": "\"}}" } ], "content_type": "application/json", "headers": { "Accept": "*/*", "Content-Type": "application/json", "User-Agent": "Infoblox Security Integration" }, "name": "Testing lease", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": "/async_netd/deviceprofiler/endpoints" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug4", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop everthing", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "Location", "var1_namespace": "L", "var2_listindex": "Location", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-8" } ], "statements": [ { "left": [ { "listindex": "Location", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-8" } ], "op": "!=", "right": [ { "text": "" } ] }, { "left": [ { "name": "Location", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "Unknown" } ] } ] }, "content_type": "application/json", "name": "check for Location", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "fingerpring", "var1_namespace": "L", "var2_listindex": "Infoblox DHCP Fingerprint", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-25" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "fingerpring", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Infoblox DHCP Fingerprint", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-25" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Fingerprint", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "vendor", "var1_namespace": "L", "var2_listindex": "Device Vendor", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-13" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "vendor", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Device Vendor", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-13" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Device Vendor", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "host", "var1_namespace": "L", "var2_listindex": "client_hostname", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-15" } ], "statements": [ { "left": [ { "listindex": "client_hostname", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-15" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for client_hostname", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "host", "var1_namespace": "L", "var2_listindex": "host", "var2_name": "values", "var2_namespace": "E", "var2_type": "{0-4" } ], "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "asis" } ], "op": "=~", "right": [ { "text": "HOST" } ] } ] }, "content_type": "application/json", "name": "check for client_hostname if host event", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "type", "var1_namespace": "L", "var2_listindex": "Device Type", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-11" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "type", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Device Type", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-11" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Device Type", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "os_version", "var1_namespace": "L", "var2_listindex": "OS Version", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-10" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "os_version", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "OS Version", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-10" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for OS Version", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "model", "var1_namespace": "L", "var2_listindex": "Model", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-5" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "model", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Model", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-5" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Model", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "ThreatCategory", "var1_namespace": "L", "var2_listindex": "Infoblox Threat Category", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-24" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "ThreatCategory", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Infoblox Threat Category", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-24" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Threat Category", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "ThreatDetection", "var1_namespace": "L", "var2_listindex": "Infoblox Threat Detection Device IP", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-35" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "ThreatDetection", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Infoblox Threat Detection Device IP", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-35" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Threat Detection Device IP", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "ThreatName", "var1_namespace": "L", "var2_listindex": "Infoblox Threat Name", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-20" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "ThreatName", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Infoblox Threat Name", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-20" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Threat Name", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "ThreatSeverity", "var1_namespace": "L", "var2_listindex": "Infoblox Threat Severity", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-24" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "ThreatSeverity", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Infoblox Threat Severity", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-24" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Threat Severity", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "ThreatStatus", "var1_namespace": "L", "var2_listindex": "Infoblox Threat Status", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-22" } ], "eval": [ { "assign_type": "S", "assign_val": "Other", "namespace": "XC", "op": "ASSIGN", "var1_name": "ThreatStatus", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Infoblox Threat Status", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-22" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for Threat Status", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "name", "var1_namespace": "L", "var2_listindex": "name", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-4" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "name", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "name", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-4" } ], "op": "==", "right": [ { "text": "" } ] }, { "left": [ { "listindex": "name", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-4" } ], "op": "==", "right": [ { "text": "unknown" } ] } ] }, "content_type": "application/json", "name": "Check if name is unknown for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "description", "var1_namespace": "L", "var2_listindex": "description", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-11" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "description", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "description", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-11" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for description for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "os_version", "var1_namespace": "L", "var2_listindex": "os_version", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-10" } ], "statements": [ { "left": [ { "listindex": "os_version", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-10" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for os_version for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "model", "var1_namespace": "L", "var2_listindex": "model", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-5" } ], "statements": [ { "left": [ { "listindex": "model", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-5" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for model for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "active_users_count", "var1_namespace": "L", "var2_listindex": "ms_ad_user_dataactive_users_count", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-15,{15-33" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "active_users_count", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "active_users_count", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-18" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for active_users_count for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "vendor", "var1_namespace": "L", "var2_listindex": "vendor", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-6" } ], "statements": [ { "left": [ { "listindex": "vendor", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-6" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for vendor for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug Ruleid", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "RuleId", "var1_namespace": "L", "var2_listindex": "Infoblox RuleId", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-15" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "RuleId", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Infoblox RuleId", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-15" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "Check if Ruleid is unknown", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "else_eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "RuleCategory", "var1_namespace": "L", "var2_listindex": "Infoblox RuleCategory", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-21" } ], "eval": [ { "assign_type": "S", "assign_val": "Unknown", "namespace": "XC", "op": "ASSIGN", "var1_name": "RuleCategory", "var1_namespace": "L" } ], "statements": [ { "left": [ { "listindex": "Infoblox RuleCategory", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-21" } ], "op": "==", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "Check if RuleCategory is unknown", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "H" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "E" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "I" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "L" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "S" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "P" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "R" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "RH" }, { "namespace": "XC", "op": "DEBUG", "var1_name": "", "var1_namespace": "UT" } ], "content_type": "application/json", "name": "Debug RuleCategory", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "eval": [ { "namespace": "XC", "op": "COPY", "var1_name": "type", "var1_namespace": "L", "var2_listindex": "type", "var2_name": "attributes", "var2_namespace": "P", "var2_type": "{0-4" } ], "statements": [ { "left": [ { "listindex": "type", "name": "attributes", "namespace": "P", "quoting": "asis", "type": "{0-4" } ], "op": "!=", "right": [ { "text": "" } ] } ] }, "content_type": "application/json", "name": "check for type for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "name": "Get all discovery information for modify events", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.7/discovery:device?address=" }, { "name": "address", "namespace": "L", "quoting": "asis" }, { "text": "&_return_fields=name,description,os_version,chassis_serial_number,model,ms_ad_user_data,type,vendor,interfaces" } ], "wapi": "v2.7" }, { "body": [ { "text": "{\"mac_address\":\"" }, { "name": "MacFull", "namespace": "L", "quoting": "asis" }, { "text": "\",\"status\":\"Known\",\"description\":\"Added via API at " }, { "name": "TIME", "namespace": "UT", "quoting": "asis" }, { "text": "\",\"attributes\":{\"client_hostname\":\"" }, { "name": "host", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Device Type\":\"" }, { "name": "type", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Device Vendor\":\"" }, { "name": "vendor", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Location\":\"" }, { "name": "Location", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Model\":\"" }, { "name": "model", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox Last Known IP\":\"" }, { "name": "address", "namespace": "L", "quoting": "asis" }, { "text": "\",\"OS Version\":\"" }, { "name": "os_version", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox Managed\":\"True\",\"Infoblox DHCP Fingerprint\":\"" }, { "name": "fingerpring", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox Threat Category\":\"" }, { "name": "ThreatCategory", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox Threat Detection Device IP\":\"" }, { "name": "ThreatDetection", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox Threat Name\":\"" }, { "name": "ThreatName", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox Threat Severity\":\"" }, { "name": "ThreatSeverity", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox Threat Status\":\"" }, { "name": "ThreatStatus", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox RuleId\":\"" }, { "name": "RuleId", "namespace": "L", "quoting": "asis" }, { "text": "\",\"Infoblox RuleCategory\":\"" }, { "name": "RuleCategory", "namespace": "L", "quoting": "asis" }, { "text": "\"}}" } ], "content_type": "application/json", "headers": { "Authorization": [ { "text": "Bearer " }, { "name": "SESSID", "namespace": "S", "quoting": "asis" } ] }, "name": "Modify an endpoint", "nodebug": false, "operation": "PUT", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": [ { "text": "/api/endpoint/mac-address/" }, { "name": "Mac1", "namespace": "L", "quoting": "asis" }, { "name": "Mac2", "namespace": "L", "quoting": "asis" }, { "name": "Mac3", "namespace": "L", "quoting": "asis" }, { "name": "Mac4", "namespace": "L", "quoting": "asis" }, { "name": "Mac5", "namespace": "L", "quoting": "asis" }, { "name": "Mac6", "namespace": "L", "quoting": "asis" } ] }, { "body": [ { "text": "{\"mac\":\"" }, { "name": "MacFull", "namespace": "L", "quoting": "asis" }, { "text": "\",\"ip\": \"" }, { "name": "address", "namespace": "L", "quoting": "asis" }, { "text": "\",\"hostname\": \"" }, { "name": "host", "namespace": "L", "quoting": "asis" }, { "text": "\",\"device\":{\"family\":\"" }, { "name": "vendor", "namespace": "L", "quoting": "asis" }, { "text": "\",\"category\":\"" }, { "name": "type", "namespace": "L", "quoting": "asis" }, { "text": "\",\"name\":\"" }, { "name": "name", "namespace": "L", "quoting": "asis" }, { "text": "\"}}" } ], "content_type": "application/json", "headers": { "Accept": "*/*", "Content-Type": "application/json", "User-Agent": "Infoblox Security Integration" }, "name": " modify", "nodebug": false, "operation": "POST", "override_headers": false, "parse": "JSON", "parse_regex": null, "path": "/async_netd/deviceprofiler/endpoints" }, { "body": null, "condition": { "condition_type": "OR", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "asis" } ], "op": "==", "right": [ { "text": "LEASE" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop if lease event", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "OR", "next": "Update extattrs for update fixed ip", "statements": [ { "left": [ { "name": "event_type", "namespace": "E", "quoting": "asis" } ], "op": "=~", "right": [ { "text": "FIXED" } ] } ] }, "content_type": "application/json", "name": "skip if fixed event to update information", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "condition": { "condition_type": "AND", "next": "Get HostIPv6 _ref", "statements": [ { "left": [ { "name": "addr", "namespace": "L", "quoting": "asis" } ], "op": "==", "right": [ { "text": "ipv6addr" } ] } ] }, "content_type": "application/json", "name": "check if IPv4 or IPv6 to get Host for update for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": null, "content_type": "application/json", "name": "Get HostIPv4 _ref for modify events", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.7/record:host?ipv4addr=" }, { "name": "address", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "network_view", "namespace": "L", "quoting": "url" }, { "text": "&_return_fields=extattrs" } ], "result": [ { "codes": "200,201,202,203,204", "next": "Update extattrs for update Host" } ], "wapi": "v2.7" }, { "body": null, "content_type": "application/json", "name": "Get HostIPv6 _ref for modify events", "nodebug": false, "operation": "GET", "override_headers": false, "path": [ { "text": "/wapi/v2.7/record:host?ipv6addr=" }, { "name": "address", "namespace": "L", "quoting": "url" }, { "text": "&network_view=" }, { "name": "network_view", "namespace": "L", "quoting": "url" }, { "text": "&_return_fields=extattrs" } ], "wapi": "v2.7" }, { "body": [ { "text": "{\"extattrs+\":{\"Aruba_SyncedAt\": { \"value\": \"" }, { "name": "timestamp", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/json", "name": "Update extattrs for update Host for modify events", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.7/" }, { "listindex": "0_ref", "name": "PARSE", "namespace": "P", "quoting": "asis", "type": "[0-1,{1-5" } ], "wapi": "v2.7", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop host update for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" }, { "body": [ { "text": "{\"extattrs+\":{\"Aruba_SyncedAt\": { \"value\": \"" }, { "name": "timestamp", "namespace": "L", "quoting": "asis" }, { "text": "\"}}}" } ], "content_type": "application/json", "name": "Update extattrs for update fixed ip for modify events", "nodebug": false, "operation": "PUT", "override_headers": false, "path": [ { "text": "/wapi/v2.7/" }, { "listindex": "_ref", "name": "values", "namespace": "E", "quoting": "asis", "type": "{0-4" } ], "wapi": "v2.7", "wapi_quoting": "JSON" }, { "body": null, "condition": { "condition_type": "AND", "statements": [ { "left": [ { "text": "1" } ], "op": "==", "right": [ { "text": "1" } ] } ], "stop": true }, "content_type": "application/json", "name": "Stop fixedIP for modify events", "nodebug": false, "operation": "COND", "override_headers": false, "path": "" } ], "template_variables": {}, "vendor_identifier": "Aruba ClearPass", "version": "4.0" } [2019/10/17 13:09:49.708447] infoblox.localdomain (DEBUG): Executing step Debug#0 (1) [2019/10/17 13:09:49.708557] infoblox.localdomain (DEBUG): Namespace H contents are: {'Content-Type': u'application/json', 'Authorization': '[*********]', 'User-Agent': 'Infoblox Security Integration'} [2019/10/17 13:09:49.708648] infoblox.localdomain (DEBUG): Namespace E contents are: {u'member_ip': u'xx.xx128.151', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-10-17T12:09:47Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'10.12.201.111', u'mac': u'aa:bb:cc:33:22:11', u'host': u'rafa-infoblox.ad', u'extattrs': {u'Aruba_Location': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMTIuMjAxLjAvMjQvMA:10.12.201.0/24/default'}, u'value': u'LAB'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuX2RlZmF1bHQuYWQucmFmYS1pbmZvYmxveC4xMC4xMi4yMDEuMTExLg:10.12.201.111/rafa-infoblox.ad/default'}, u'member_name': u'infoblox.localdomain', u'operation_type': u'INSERT'} [2019/10/17 13:09:49.708703] infoblox.localdomain (DEBUG): Namespace I contents are: {u'KEY': u'OgJFXVywhhZsOBpucif+I/BiU7xpJq+weHk6tNQHuyH1', u'Client_ID': u'BloxCS'} [2019/10/17 13:09:49.708747] infoblox.localdomain (DEBUG): Namespace L contents are: {} [2019/10/17 13:09:49.708799] infoblox.localdomain (DEBUG): Namespace S contents are: {u'Client_ID': u'BloxCS', u'KEY': u'OgJFXVywhhZsOBpucif+I/BiU7xpJq+weHk6tNQHuyH1', 'URI': u'https://xx.xx128.2', u'SESSID': u'cd8a9ba0cc764580be2324e5f0ebb4f432ae7824', 'USER': u'admin', 'TIMEOUT': 30} [2019/10/17 13:09:49.708842] infoblox.localdomain (DEBUG): Namespace P contents are: {} [2019/10/17 13:09:49.708881] infoblox.localdomain (DEBUG): Namespace R contents are: {} [2019/10/17 13:09:49.708920] infoblox.localdomain (DEBUG): Namespace RH contents are: {} [2019/10/17 13:09:49.709100] infoblox.localdomain (DEBUG): Namespace UT contents are: {'USERNAME': '[redacted]', 'ENDPOINT': 'notification:rest:endpoint/b25lLmVuZHBvaW50JDE', 'PROTOCOL': u'https', 'UUID': 'e9e6feb8-c8ad-48af-9af5-f068bfac1704', 'WAPIUSERNAME': u'admin', 'URI': u'https://xx.xx128.2', 'HOST': u'xx.xx128.2', 'EPOCH': '1571314189', 'TIME': '2019-10-17T12:09:49Z', 'PATH': u'', 'PASSWORD': '[redacted]', 'PORT': 443} [2019/10/17 13:09:49.709223] infoblox.localdomain (DEBUG): Executing step skip object modification and deletion (1) [2019/10/17 13:09:49.709278] infoblox.localdomain (DEBUG): Found a/an OR condition step! [2019/10/17 13:09:49.709349] infoblox.localdomain (DEBUG): Evaluating statement: INSERT == DELETE [2019/10/17 13:09:49.709403] infoblox.localdomain (DEBUG): The condition did not match! [2019/10/17 13:09:49.709462] infoblox.localdomain (DEBUG): Executing step check if lease (1) [2019/10/17 13:09:49.709507] infoblox.localdomain (DEBUG): Found a/an OR condition step! [2019/10/17 13:09:49.709573] infoblox.localdomain (DEBUG): Evaluating statement: HOST_ADDRESS_IPV4 == LEASE [2019/10/17 13:09:49.709617] infoblox.localdomain (DEBUG): The condition did not match! [2019/10/17 13:09:49.709664] infoblox.localdomain (DEBUG): Jumping to step `assignLVarsNet from E:` [2019/10/17 13:09:49.709718] infoblox.localdomain (DEBUG): We are jumping from step check if lease (#3) to assignLVarsNet from E: (#4) [2019/10/17 13:09:49.709764] infoblox.localdomain (DEBUG): Executing step assignLVarsNet from E: (1) [2019/10/17 13:09:49.709935] infoblox.localdomain (DEBUG): Executing step check if IPv4 or IPv6 for assigning variables (1) [2019/10/17 13:09:49.709986] infoblox.localdomain (DEBUG): Found a/an AND condition step! [2019/10/17 13:09:49.710059] infoblox.localdomain (DEBUG): Evaluating statement: 10.12.201.111 != [2019/10/17 13:09:49.710108] infoblox.localdomain (DEBUG): The condition matched! [2019/10/17 13:09:49.710150] infoblox.localdomain (DEBUG): Executing the eval block [2019/10/17 13:09:49.710297] infoblox.localdomain (DEBUG): Executing step Check if location (1) [2019/10/17 13:09:49.710348] infoblox.localdomain (DEBUG): Found a/an OR condition step! [2019/10/17 13:09:49.710445] infoblox.localdomain (DEBUG): Evaluating statement: LAB == [2019/10/17 13:09:49.710495] infoblox.localdomain (DEBUG): The condition did not match! [2019/10/17 13:09:49.710528] infoblox.localdomain (DEBUG): Executing the else_eval block [2019/10/17 13:09:49.710646] infoblox.localdomain (DEBUG): Executing step assignTimeValue (1) [2019/10/17 13:09:49.710770] infoblox.localdomain (DEBUG): Executing step Set Old_Time (1) [2019/10/17 13:09:49.710822] infoblox.localdomain (DEBUG): Found a/an OR condition step! [2019/10/17 13:09:49.710919] infoblox.localdomain (DEBUG): Evaluating statement: == [2019/10/17 13:09:49.710975] infoblox.localdomain (DEBUG): The condition matched! [2019/10/17 13:09:49.711008] infoblox.localdomain (DEBUG): Executing the eval block [2019/10/17 13:09:49.711089] infoblox.localdomain (DEBUG): Executing step check If Scan Happened today (1) [2019/10/17 13:09:49.711136] infoblox.localdomain (DEBUG): Found a/an OR condition step! [2019/10/17 13:09:49.711214] infoblox.localdomain (DEBUG): Evaluating statement: == false [2019/10/17 13:09:49.711279] infoblox.localdomain (DEBUG): Evaluating statement: == 2019-10-17T12:09 [2019/10/17 13:09:49.711316] infoblox.localdomain (DEBUG): The condition did not match! [2019/10/17 13:09:49.711365] infoblox.localdomain (DEBUG): Executing step all discovery information (1) [2019/10/17 13:09:49.711816] infoblox.localdomain (DEBUG): Sleeping for 0 seconds [2019/10/17 13:09:49.711964] infoblox.localdomain (DEBUG): Sending a 'GET' request within connection: protocol='https', host='xx.xx0.199', port='443', path='/wapi/v2.7/discovery:device?address=10.12.201.111&_return_fields=name,description,os_version,chassis_serial_number,model,ms_ad_user_data,type,vendor,interfaces', headers={'Content-Type': 'application/json', 'Cookie': '[*********]', 'Accept': 'application/json', 'Authorization': '[*********]'}, body='(no body)'. [2019/10/17 13:09:49.712043] infoblox.localdomain (DEBUG): Request timeout is 30 [2019/10/17 13:10:19.828025] infoblox.localdomain (ERROR): Socket error during communication with external server: The read operation timed out [2019/10/17 13:10:19.849726] infoblox.localdomain (DEBUG): Request execution failed. retry [2019/10/17 13:10:19.850455] infoblox.localdomain (INFO): Sending a 'GET' request within connection: protocol='https', host='xx.xx0.199', port='443', path='/wapi/v2.7/discovery:device?address=10.12.201.111&_return_fields=name,description,os_version,chassis_serial_number,model,ms_ad_user_data,type,vendor,interfaces', body='(no body)'. [2019/10/17 13:10:19.850727] infoblox.localdomain (DEBUG): Executing the template Aruba ClearPass Logout [2019/10/17 13:10:19.850893] infoblox.localdomain (DEBUG): Event {u'member_ip': u'xx.xx128.151', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-10-17T12:09:47Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'10.12.201.111', u'mac': u'aa:bb:cc:33:22:11', u'host': u'rafa-infoblox.ad', u'extattrs': {u'Aruba_Location': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMTIuMjAxLjAvMjQvMA:10.12.201.0/24/default'}, u'value': u'LAB'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuX2RlZmF1bHQuYWQucmFmYS1pbmZvYmxveC4xMC4xMi4yMDEuMTExLg:10.12.201.111/rafa-infoblox.ad/default'}, u'member_name': u'infoblox.localdomain', u'operation_type': u'INSERT'} [2019/10/17 13:10:19.851408] infoblox.localdomain (DEBUG): Deserialized template in use: { "comment": null, "content_type": "application/json", "headers": {}, "instance_variables": {}, "name": "Aruba ClearPass Logout", "path": "", "quoting": "json", "steps": [ { "body": [ { "assign_type": "S", "assign_val": "", "namespace": "XC", "op": "ASSIGN", "var1_name": "SESSID", "var1_namespace": "S" } ], "content_type": "application/json", "name": "Clear the session ID", "nodebug": false, "operation": "NOP", "override_headers": false, "path": "" } ], "template_variables": {}, "vendor_identifier": "Aruba ClearPass", "version": "3.0" } [2019/10/17 13:10:19.851512] infoblox.localdomain (DEBUG): Executing step Clear the session ID (1) [2019/10/17 13:10:19.851699] infoblox.localdomain (DEBUG): The template was executed successfully [2019/10/17 13:10:19.851873] infoblox.localdomain (WARNING): Template execution retry limit is reached.Event `{u'member_ip': u'xx.xx128.151', u'event_type': 'HOST_ADDRESS_IPV4', u'timestamp': u'2019-10-17T12:09:47Z', u'vnode_oid': 0, u'object_type': u'HostAddress', u'previous_values': {}, u'values': {u'network_view': u'default', u'ipv4addr': u'10.12.201.111', u'mac': u'aa:bb:cc:33:22:11', u'host': u'rafa-infoblox.ad', u'extattrs': {u'Aruba_Location': {u'inheritance_source': {u'_ref': u'network/ZG5zLm5ldHdvcmskMTAuMTIuMjAxLjAvMjQvMA:10.12.201.0/24/default'}, u'value': u'LAB'}}, u'_ref': u'record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuX2RlZmF1bHQuYWQucmFmYS1pbmZvYmxveC4xMC4xMi4yMDEuMTExLg:10.12.201.111/rafa-infoblox.ad/default'}, u'member_name': u'infoblox.localdomain', u'operation_type': u'INSERT'}` is skipped