@itentialopensource/adapter-cisco_ise 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +34 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +2991 -0
  7. package/CODE_OF_CONDUCT.md +43 -0
  8. package/CONTRIBUTING.md +13 -0
  9. package/ENHANCE.md +69 -0
  10. package/LICENSE +201 -0
  11. package/PROPERTIES.md +646 -0
  12. package/README.md +349 -0
  13. package/SUMMARY.md +9 -0
  14. package/SYSTEMINFO.md +23 -0
  15. package/TAB1.md +13 -0
  16. package/TAB2.md +306 -0
  17. package/TROUBLESHOOT.md +56 -0
  18. package/adapter.js +53480 -0
  19. package/adapterBase.js +1452 -0
  20. package/entities/.generic/action.json +214 -0
  21. package/entities/.generic/schema.json +28 -0
  22. package/entities/.system/action.json +50 -0
  23. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  24. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  25. package/entities/.system/schema.json +19 -0
  26. package/entities/.system/schemaTokenReq.json +53 -0
  27. package/entities/.system/schemaTokenResp.json +53 -0
  28. package/entities/ACIConnection/action.json +330 -0
  29. package/entities/ACIConnection/schema.json +34 -0
  30. package/entities/ACIData/action.json +205 -0
  31. package/entities/ACIData/schema.json +28 -0
  32. package/entities/ADGroups/action.json +25 -0
  33. package/entities/ADGroups/schema.json +19 -0
  34. package/entities/ActiveDirectories/action.json +25 -0
  35. package/entities/ActiveDirectories/schema.json +19 -0
  36. package/entities/BackupAndRestore/action.json +125 -0
  37. package/entities/BackupAndRestore/schema.json +24 -0
  38. package/entities/Certificates/action.json +452 -0
  39. package/entities/Certificates/schema.json +40 -0
  40. package/entities/ClassificationRule/action.json +146 -0
  41. package/entities/ClassificationRule/schema.json +25 -0
  42. package/entities/Configuration/action.json +24 -0
  43. package/entities/Configuration/schema.json +19 -0
  44. package/entities/CustomAttributes/action.json +106 -0
  45. package/entities/CustomAttributes/schema.json +23 -0
  46. package/entities/DataconnectServices/action.json +106 -0
  47. package/entities/DataconnectServices/schema.json +23 -0
  48. package/entities/DeviceAdminMFARules/action.json +126 -0
  49. package/entities/DeviceAdminMFARules/schema.json +24 -0
  50. package/entities/DeviceAdministrationAuthenticationRules/action.json +126 -0
  51. package/entities/DeviceAdministrationAuthenticationRules/schema.json +24 -0
  52. package/entities/DeviceAdministrationAuthorizationExceptionRules/action.json +126 -0
  53. package/entities/DeviceAdministrationAuthorizationExceptionRules/schema.json +24 -0
  54. package/entities/DeviceAdministrationAuthorizationGlobalExceptionRules/action.json +126 -0
  55. package/entities/DeviceAdministrationAuthorizationGlobalExceptionRules/schema.json +24 -0
  56. package/entities/DeviceAdministrationAuthorizationRules/action.json +126 -0
  57. package/entities/DeviceAdministrationAuthorizationRules/schema.json +24 -0
  58. package/entities/DeviceAdministrationCommandSets/action.json +25 -0
  59. package/entities/DeviceAdministrationCommandSets/schema.json +19 -0
  60. package/entities/DeviceAdministrationConditions/action.json +230 -0
  61. package/entities/DeviceAdministrationConditions/schema.json +29 -0
  62. package/entities/DeviceAdministrationDictionaryAttributesList/action.json +67 -0
  63. package/entities/DeviceAdministrationDictionaryAttributesList/schema.json +21 -0
  64. package/entities/DeviceAdministrationIdentityStores/action.json +25 -0
  65. package/entities/DeviceAdministrationIdentityStores/schema.json +19 -0
  66. package/entities/DeviceAdministrationNetworkConditions/action.json +106 -0
  67. package/entities/DeviceAdministrationNetworkConditions/schema.json +23 -0
  68. package/entities/DeviceAdministrationPolicySets/action.json +126 -0
  69. package/entities/DeviceAdministrationPolicySets/schema.json +24 -0
  70. package/entities/DeviceAdministrationServiceNames/action.json +25 -0
  71. package/entities/DeviceAdministrationServiceNames/schema.json +19 -0
  72. package/entities/DeviceAdministrationShellProfiles/action.json +25 -0
  73. package/entities/DeviceAdministrationShellProfiles/schema.json +19 -0
  74. package/entities/DeviceAdministrationTimeDateConditions/action.json +106 -0
  75. package/entities/DeviceAdministrationTimeDateConditions/schema.json +23 -0
  76. package/entities/DuoIdentitySync/action.json +168 -0
  77. package/entities/DuoIdentitySync/schema.json +26 -0
  78. package/entities/DuoMfa/action.json +147 -0
  79. package/entities/DuoMfa/schema.json +25 -0
  80. package/entities/EnableMFA/action.json +24 -0
  81. package/entities/EnableMFA/schema.json +19 -0
  82. package/entities/EndpointStopReplicationService/action.json +45 -0
  83. package/entities/EndpointStopReplicationService/schema.json +20 -0
  84. package/entities/Endpoints/action.json +207 -0
  85. package/entities/Endpoints/schema.json +28 -0
  86. package/entities/ExternalConnection/action.json +25 -0
  87. package/entities/ExternalConnection/schema.json +19 -0
  88. package/entities/InboundRule/action.json +166 -0
  89. package/entities/InboundRule/schema.json +26 -0
  90. package/entities/LSDSettings/action.json +25 -0
  91. package/entities/LSDSettings/schema.json +19 -0
  92. package/entities/Licensing/action.json +231 -0
  93. package/entities/Licensing/schema.json +29 -0
  94. package/entities/NBARApplicationManagement/action.json +106 -0
  95. package/entities/NBARApplicationManagement/schema.json +23 -0
  96. package/entities/NativeIPsec/action.json +187 -0
  97. package/entities/NativeIPsec/schema.json +27 -0
  98. package/entities/NetworkAccessAuthenticationRules/action.json +126 -0
  99. package/entities/NetworkAccessAuthenticationRules/schema.json +24 -0
  100. package/entities/NetworkAccessAuthorizationExceptionRules/action.json +126 -0
  101. package/entities/NetworkAccessAuthorizationExceptionRules/schema.json +24 -0
  102. package/entities/NetworkAccessAuthorizationGlobalExceptionRules/action.json +126 -0
  103. package/entities/NetworkAccessAuthorizationGlobalExceptionRules/schema.json +24 -0
  104. package/entities/NetworkAccessAuthorizationProfiles/action.json +25 -0
  105. package/entities/NetworkAccessAuthorizationProfiles/schema.json +19 -0
  106. package/entities/NetworkAccessAuthorizationRules/action.json +126 -0
  107. package/entities/NetworkAccessAuthorizationRules/schema.json +24 -0
  108. package/entities/NetworkAccessConditions/action.json +230 -0
  109. package/entities/NetworkAccessConditions/schema.json +29 -0
  110. package/entities/NetworkAccessDictionaries/action.json +106 -0
  111. package/entities/NetworkAccessDictionaries/schema.json +23 -0
  112. package/entities/NetworkAccessDictionaryAttributes/action.json +106 -0
  113. package/entities/NetworkAccessDictionaryAttributes/schema.json +23 -0
  114. package/entities/NetworkAccessDictionaryAttributesList/action.json +67 -0
  115. package/entities/NetworkAccessDictionaryAttributesList/schema.json +21 -0
  116. package/entities/NetworkAccessIdentityStores/action.json +25 -0
  117. package/entities/NetworkAccessIdentityStores/schema.json +19 -0
  118. package/entities/NetworkAccessMFARules/action.json +126 -0
  119. package/entities/NetworkAccessMFARules/schema.json +24 -0
  120. package/entities/NetworkAccessNetworkConditions/action.json +106 -0
  121. package/entities/NetworkAccessNetworkConditions/schema.json +23 -0
  122. package/entities/NetworkAccessPolicySets/action.json +126 -0
  123. package/entities/NetworkAccessPolicySets/schema.json +24 -0
  124. package/entities/NetworkAccessSecurityGroups/action.json +25 -0
  125. package/entities/NetworkAccessSecurityGroups/schema.json +19 -0
  126. package/entities/NetworkAccessServiceNames/action.json +25 -0
  127. package/entities/NetworkAccessServiceNames/schema.json +19 -0
  128. package/entities/NetworkAccessTimeDateConditions/action.json +106 -0
  129. package/entities/NetworkAccessTimeDateConditions/schema.json +23 -0
  130. package/entities/NodeDeployment/action.json +186 -0
  131. package/entities/NodeDeployment/schema.json +27 -0
  132. package/entities/NodeGroup/action.json +167 -0
  133. package/entities/NodeGroup/schema.json +26 -0
  134. package/entities/NodeServices/action.json +107 -0
  135. package/entities/NodeServices/schema.json +23 -0
  136. package/entities/OutboundRule/action.json +146 -0
  137. package/entities/OutboundRule/schema.json +25 -0
  138. package/entities/PANHA/action.json +45 -0
  139. package/entities/PANHA/schema.json +20 -0
  140. package/entities/Patch/action.json +252 -0
  141. package/entities/Patch/schema.json +30 -0
  142. package/entities/PatchAndHotPatch/action.json +126 -0
  143. package/entities/PatchAndHotPatch/schema.json +24 -0
  144. package/entities/PrometheusAlertmanager/action.json +330 -0
  145. package/entities/PrometheusAlertmanager/schema.json +34 -0
  146. package/entities/Proxy/action.json +45 -0
  147. package/entities/Proxy/schema.json +20 -0
  148. package/entities/PxGridCloud/action.json +107 -0
  149. package/entities/PxGridCloud/schema.json +23 -0
  150. package/entities/PxGridDirect/action.json +290 -0
  151. package/entities/PxGridDirect/schema.json +32 -0
  152. package/entities/Repository/action.json +127 -0
  153. package/entities/Repository/schema.json +24 -0
  154. package/entities/RuleFlow/action.json +24 -0
  155. package/entities/RuleFlow/schema.json +19 -0
  156. package/entities/RuleSummary/action.json +24 -0
  157. package/entities/RuleSummary/schema.json +19 -0
  158. package/entities/SXP/action.json +67 -0
  159. package/entities/SXP/schema.json +21 -0
  160. package/entities/SXPDomainsWithMappingAndDevicesCounts/action.json +25 -0
  161. package/entities/SXPDomainsWithMappingAndDevicesCounts/schema.json +19 -0
  162. package/entities/SecurityGroupManagement/action.json +25 -0
  163. package/entities/SecurityGroupManagement/schema.json +19 -0
  164. package/entities/Sgt/action.json +25 -0
  165. package/entities/Sgt/schema.json +19 -0
  166. package/entities/SgtReservation/action.json +106 -0
  167. package/entities/SgtReservation/schema.json +23 -0
  168. package/entities/SharedMappings/action.json +25 -0
  169. package/entities/SharedMappings/schema.json +19 -0
  170. package/entities/Subscriber/action.json +147 -0
  171. package/entities/Subscriber/schema.json +25 -0
  172. package/entities/TaskService/action.json +46 -0
  173. package/entities/TaskService/schema.json +20 -0
  174. package/entities/Telemetry/action.json +45 -0
  175. package/entities/Telemetry/schema.json +20 -0
  176. package/entities/TrustSecMatrixPolicy/action.json +46 -0
  177. package/entities/TrustSecMatrixPolicy/schema.json +20 -0
  178. package/entities/TrustsecIntegrationRuleDefaultTrustsecIntegrationRuleSet/action.json +25 -0
  179. package/entities/TrustsecIntegrationRuleDefaultTrustsecIntegrationRuleSet/schema.json +19 -0
  180. package/entities/TrustsecIntegrationRuleDictionaries/action.json +67 -0
  181. package/entities/TrustsecIntegrationRuleDictionaries/schema.json +21 -0
  182. package/entities/TrustsecIntegrationRuleDictionaryAttributes/action.json +130 -0
  183. package/entities/TrustsecIntegrationRuleDictionaryAttributes/schema.json +24 -0
  184. package/entities/Upgrade/action.json +168 -0
  185. package/entities/Upgrade/schema.json +26 -0
  186. package/entities/UserEquipment/action.json +188 -0
  187. package/entities/UserEquipment/schema.json +27 -0
  188. package/entities/VirtualNetworkManagement/action.json +166 -0
  189. package/entities/VirtualNetworkManagement/schema.json +26 -0
  190. package/entities/WorkloadConnection/action.json +717 -0
  191. package/entities/WorkloadConnection/schema.json +53 -0
  192. package/error.json +190 -0
  193. package/metadata.json +85 -0
  194. package/package.json +81 -0
  195. package/pronghorn.json +22101 -0
  196. package/propertiesDecorators.json +14 -0
  197. package/propertiesSchema.json +1582 -0
  198. package/report/adapterInfo.json +10 -0
  199. package/report/auto-adapter-openapi.json +18045 -0
  200. package/report/creationReport.json +3745 -0
  201. package/report/ise.json +40324 -0
  202. package/sampleProperties.json +257 -0
  203. package/test/integration/adapterTestBasicGet.js +83 -0
  204. package/test/integration/adapterTestConnectivity.js +118 -0
  205. package/test/integration/adapterTestIntegration.js +12350 -0
  206. package/test/unit/adapterBaseTestUnit.js +1024 -0
  207. package/test/unit/adapterTestUnit.js +11628 -0
  208. package/utils/adapterInfo.js +206 -0
  209. package/utils/addAuth.js +94 -0
  210. package/utils/artifactize.js +146 -0
  211. package/utils/basicGet.js +50 -0
  212. package/utils/checkMigrate.js +63 -0
  213. package/utils/entitiesToDB.js +179 -0
  214. package/utils/findPath.js +74 -0
  215. package/utils/methodDocumentor.js +273 -0
  216. package/utils/modify.js +152 -0
  217. package/utils/packModificationScript.js +35 -0
  218. package/utils/patches2bundledDeps.js +90 -0
  219. package/utils/pre-commit.sh +32 -0
  220. package/utils/removeHooks.js +20 -0
  221. package/utils/setup.js +33 -0
  222. package/utils/taskMover.js +309 -0
  223. package/utils/tbScript.js +239 -0
  224. package/utils/tbUtils.js +489 -0
  225. package/utils/testRunner.js +298 -0
  226. package/utils/troubleshootingAdapter.js +193 -0
package/TAB2.md ADDED
@@ -0,0 +1,306 @@
1
+ # Cisco ISE
2
+
3
+ ## Table of Contents
4
+
5
+ - [Specific Adapter Information](#specific-adapter-information)
6
+ - [Authentication](#authentication)
7
+ - [Sample Properties](#sample-properties)
8
+ - [Swagger](#swagger)
9
+ - [Generic Adapter Information](#generic-adapter-information)
10
+
11
+ ## Specific Adapter Information
12
+ ### Authentication
13
+
14
+ This document will go through the steps for authenticating the Cisco ISE adapter with Basic Authentication. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
15
+
16
+ #### Basic Authentication
17
+ The Cisco ISE adapter requires Basic Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
18
+
19
+ STEPS
20
+ 1. Ensure you have access to a Cisco ISE server and that it is running
21
+ 2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
22
+ 3. Use the properties below for the ```properties.authentication``` field
23
+ ```json
24
+ "authentication": {
25
+ "auth_method": "basic user_password",
26
+ "username": "<username>",
27
+ "password": "<password>",
28
+ "auth_field": "header.headers.Authorization",
29
+ "auth_field_format": "Basic {b64}{username}:{password}{/b64}",
30
+ "auth_logging": false,
31
+ }
32
+ ```
33
+ you can leave all of the other properties in the authentication section, they will not be used when the auth_method is basic user_password.<br>
34
+ 4. Restart the adapter. If your properties were set correctly, the adapter should go online.
35
+
36
+ #### Troubleshooting
37
+ - Make sure you copied over the correct username and password.
38
+ - Turn on debug level logs for the adapter in IAP Admin Essentials.
39
+ - Turn on auth_logging for the adapter in IAP Admin Essentials (adapter properties).
40
+ - Investigate the logs - in particular:
41
+ - The FULL REQUEST log to make sure the proper headers are being sent with the request.
42
+ - The FULL BODY log to make sure the payload is accurate.
43
+ - The CALL RETURN log to see what the other system is telling us.
44
+ - Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
45
+ - Remember when you are done to turn auth_logging off as you do not want to log credentials.
46
+
47
+ ### Sample Properties
48
+
49
+ Sample Properties can be used to help you configure the adapter in the Itential Automation Platform. You will need to update connectivity information such as the host, port, protocol and credentials.
50
+
51
+ ```json
52
+ "properties": {
53
+ "host": "localhost",
54
+ "port": 443,
55
+ "choosepath": "",
56
+ "base_path": "/api",
57
+ "version": "v1",
58
+ "cache_location": "none",
59
+ "encode_pathvars": true,
60
+ "encode_queryvars": true,
61
+ "save_metric": false,
62
+ "stub": true,
63
+ "protocol": "https",
64
+ "authentication": {
65
+ "auth_method": "basic user_password",
66
+ "username": "username",
67
+ "password": "password",
68
+ "token": "token",
69
+ "token_timeout": 1800000,
70
+ "token_cache": "local",
71
+ "invalid_token_error": 401,
72
+ "auth_field": "header.headers.Authorization",
73
+ "auth_field_format": "Basic {b64}{username}:{password}{/b64}",
74
+ "auth_logging": false,
75
+ "client_id": "",
76
+ "client_secret": "",
77
+ "grant_type": "",
78
+ "sensitive": [],
79
+ "sso": {
80
+ "protocol": "",
81
+ "host": "",
82
+ "port": 0
83
+ },
84
+ "multiStepAuthCalls": [
85
+ {
86
+ "name": "",
87
+ "requestFields": {},
88
+ "responseFields": {},
89
+ "successfullResponseCode": 200
90
+ }
91
+ ]
92
+ },
93
+ "healthcheck": {
94
+ "type": "none",
95
+ "frequency": 60000,
96
+ "query_object": {},
97
+ "addlHeaders": {}
98
+ },
99
+ "throttle": {
100
+ "throttle_enabled": false,
101
+ "number_pronghorns": 1,
102
+ "sync_async": "sync",
103
+ "max_in_queue": 1000,
104
+ "concurrent_max": 1,
105
+ "expire_timeout": 0,
106
+ "avg_runtime": 200,
107
+ "priorities": [
108
+ {
109
+ "value": 0,
110
+ "percent": 100
111
+ }
112
+ ]
113
+ },
114
+ "request": {
115
+ "number_redirects": 0,
116
+ "number_retries": 3,
117
+ "limit_retry_error": [
118
+ 0
119
+ ],
120
+ "failover_codes": [],
121
+ "attempt_timeout": 5000,
122
+ "global_request": {
123
+ "payload": {},
124
+ "uriOptions": {},
125
+ "addlHeaders": {},
126
+ "authData": {}
127
+ },
128
+ "healthcheck_on_timeout": true,
129
+ "return_raw": false,
130
+ "archiving": false,
131
+ "return_request": false
132
+ },
133
+ "proxy": {
134
+ "enabled": false,
135
+ "host": "",
136
+ "port": 1,
137
+ "protocol": "http",
138
+ "username": "",
139
+ "password": ""
140
+ },
141
+ "ssl": {
142
+ "ecdhCurve": "",
143
+ "enabled": false,
144
+ "accept_invalid_cert": false,
145
+ "ca_file": "",
146
+ "key_file": "",
147
+ "cert_file": "",
148
+ "secure_protocol": "",
149
+ "ciphers": ""
150
+ },
151
+ "mongo": {
152
+ "host": "",
153
+ "port": 0,
154
+ "database": "",
155
+ "username": "",
156
+ "password": "",
157
+ "replSet": "",
158
+ "db_ssl": {
159
+ "enabled": false,
160
+ "accept_invalid_cert": false,
161
+ "ca_file": "",
162
+ "key_file": "",
163
+ "cert_file": ""
164
+ }
165
+ },
166
+ "devicebroker": {
167
+ "enabled": false,
168
+ "getDevice": [
169
+ {
170
+ "path": "/get/devices/{id}",
171
+ "method": "GET",
172
+ "query": {},
173
+ "body": {},
174
+ "headers": {},
175
+ "handleFailure": "fail",
176
+ "requestFields": {
177
+ "id": "name"
178
+ },
179
+ "responseDatakey": "",
180
+ "responseFields": {
181
+ "name": "host",
182
+ "ostype": "os",
183
+ "ostypePrefix": "system-",
184
+ "ipaddress": "attributes.ipaddr",
185
+ "port": "443"
186
+ }
187
+ }
188
+ ],
189
+ "getDevicesFiltered": [
190
+ {
191
+ "path": "/get/devices",
192
+ "method": "GET",
193
+ "pagination": {
194
+ "offsetVar": "",
195
+ "limitVar": "",
196
+ "incrementBy": "limit",
197
+ "requestLocation": "query"
198
+ },
199
+ "query": {},
200
+ "body": {},
201
+ "headers": {},
202
+ "handleFailure": "fail",
203
+ "requestFields": {},
204
+ "responseDatakey": "",
205
+ "responseFields": {
206
+ "name": "host",
207
+ "ostype": "os",
208
+ "ostypePrefix": "system-",
209
+ "ipaddress": "attributes.ipaddr",
210
+ "port": "443"
211
+ }
212
+ }
213
+ ],
214
+ "isAlive": [
215
+ {
216
+ "path": "/get/devices/{id}/status",
217
+ "method": "GET",
218
+ "query": {},
219
+ "body": {},
220
+ "headers": {},
221
+ "handleFailure": "fail",
222
+ "requestFields": {
223
+ "id": "name"
224
+ },
225
+ "responseDatakey": "",
226
+ "responseFields": {
227
+ "status": "status",
228
+ "statusValue": "online"
229
+ }
230
+ }
231
+ ],
232
+ "getConfig": [
233
+ {
234
+ "path": "/get/devices/{id}/configPart1",
235
+ "method": "GET",
236
+ "query": {},
237
+ "body": {},
238
+ "headers": {},
239
+ "handleFailure": "fail",
240
+ "requestFields": {
241
+ "id": "name"
242
+ },
243
+ "responseDatakey": "",
244
+ "responseFields": {}
245
+ }
246
+ ],
247
+ "getCount": [
248
+ {
249
+ "path": "/get/devices",
250
+ "method": "GET",
251
+ "query": {},
252
+ "body": {},
253
+ "headers": {},
254
+ "handleFailure": "fail",
255
+ "requestFields": {},
256
+ "responseDatakey": "",
257
+ "responseFields": {}
258
+ }
259
+ ]
260
+ },
261
+ "cache": {
262
+ "enabled": false,
263
+ "entities": [
264
+ {
265
+ "entityType": "",
266
+ "frequency": 1440,
267
+ "flushOnFail": false,
268
+ "limit": 1000,
269
+ "retryAttempts": 5,
270
+ "sort": true,
271
+ "populate": [
272
+ {
273
+ "path": "",
274
+ "method": "GET",
275
+ "pagination": {
276
+ "offsetVar": "",
277
+ "limitVar": "",
278
+ "incrementBy": "limit",
279
+ "requestLocation": "query"
280
+ },
281
+ "query": {},
282
+ "body": {},
283
+ "headers": {},
284
+ "handleFailure": "ignore",
285
+ "requestFields": {},
286
+ "responseDatakey": "",
287
+ "responseFields": {}
288
+ }
289
+ ],
290
+ "cachedTasks": [
291
+ {
292
+ "name": "",
293
+ "filterField": "",
294
+ "filterLoc": ""
295
+ }
296
+ ]
297
+ }
298
+ ]
299
+ }
300
+ }
301
+ ```
302
+ ### Swagger
303
+
304
+ Note: The content for this section may be missing as its corresponding .json file is unavailable. This sections will be updated once adapter-openapi.json file is added.
305
+ ## [Generic Adapter Information](https://gitlab.com/itentialopensource/adapters/adapter-cisco_ise/-/blob/master/README.md)
306
+
@@ -0,0 +1,56 @@
1
+ ## Troubleshoot
2
+
3
+ Run `npm run troubleshoot` to start the interactive troubleshooting process. The command allows you to verify and update connection, authentication as well as healthcheck configuration. After that it will test these properties by sending HTTP request to the endpoint. If the tests pass, it will persist these changes into IAP.
4
+
5
+ You also have the option to run individual commands to perform specific test:
6
+
7
+ - `npm run healthcheck` will perform a healthcheck request of with current setting.
8
+ - `npm run basicget` will perform some non-parameter GET request with current setting.
9
+ - `npm run connectivity` will perform networking diagnostics of the adatper endpoint.
10
+
11
+ ### Connectivity Issues
12
+
13
+ 1. You can run the adapter troubleshooting script which will check connectivity, run the healthcheck and run basic get calls.
14
+
15
+ ```bash
16
+ npm run troubleshoot
17
+ ```
18
+
19
+ 2. Verify the adapter properties are set up correctly.
20
+
21
+ ```text
22
+ Go into the Itential Platform GUI and verify/update the properties
23
+ ```
24
+
25
+ 3. Verify there is connectivity between the Itential Platform Server and Cisco_ise Server.
26
+
27
+ ```text
28
+ ping the ip address of Cisco_ise server
29
+ try telnet to the ip address port of Cisco_ise
30
+ execute a curl command to the other system
31
+ ```
32
+
33
+ 4. Verify the credentials provided for Cisco_ise.
34
+
35
+ ```text
36
+ login to Cisco_ise using the provided credentials
37
+ ```
38
+
39
+ 5. Verify the API of the call utilized for Cisco_ise Healthcheck.
40
+
41
+ ```text
42
+ Go into the Itential Platform GUI and verify/update the properties
43
+ ```
44
+
45
+ ### Functional Issues
46
+
47
+ Adapter logs are located in `/var/log/pronghorn`. In older releases of the Itential Platform, there is a `pronghorn.log` file which contains logs for all of the Itential Platform. In newer versions, adapters can be configured to log into their own files.
48
+
49
+ ### Adapter Results
50
+
51
+ The majority of the http response codes from the adapter come directly from the downstream system. There are some exceptions to this:
52
+
53
+ 1. Timeout (-2): There is an attempt timeout property that defines how long the adapter should wait to receive a response before giving up. If that time expires before a resonse is received the adapter will respond with a code of -2. The message will say "The Adapter has run out of time for the request" and it will recommend that you "Increase your adapter request.attempt_timeout property".
54
+ 2. Econnreset (-1): When the downstream system or something within the network drops the connection, the adapter will receive and forward an ECONNRESET error with a -1 code. The message will say "The connection was terminated by the network or external system" and the recommendation will be for you to "Check connectivity to the external system and that the system is up".
55
+
56
+ The adapter will also have various errors if it is unable to build the request. All of these errors come with messages and recommendations to help you understand what you need to do to resolve the issue.