- 21 Oct 2024
-
DarkLight
-
PDF
Adapter Degraded Status
- Updated on 21 Oct 2024
-
DarkLight
-
PDF
Degraded Connection
The degraded
status is an additional adapter state alongside the online
(connected) and offline
(disconnected) status. This unique state would be used for adapter-nso and other adapters that have multiple connection types.
Some scenarios where the degraded state would apply include:
- The connection is not fully up or fully down.
- One method of communication for an adapter has been disconnected, but another is still active.
- The adapter is connected, but it is an unstable connection.
- Some functions related to a mode of communication fail to respond.
Emit Degraded Events
Add the example code block to instances where you would like to send the adapter to the degraded state.
this.emit("DEGRADED", {
reason: 'Reason adapter is degraded (will appear on system page'
});
Add this example code block to instances where the adapter is no longer degraded, and the state should be removed. For example, if the second method of communication comes back online, the connection stabilizes, or a specific call succeeds.
this.emit("FIXED", {
reason: 'Optional'
});
Admin Essentials - Degraded Adapter
To recognize a degraded
state:
-
Start IAP and Adapter NSO.
-
Connect them with the default
admin
username andadmin
password.Figure 1
-
Check the connection status from Admin Essentials → Profiles → Adapters. Status should show as "Running" and connection as "Online".
Figure 2
-
Next, create a new user in NSO with the name “client”.
Figure 3
-
Change the Adapter NSO properties credentials to the newly created user in NSO (username and password).
Figure 4
-
Go back and check the connection status from Admin Essentials → Profiles → Adapters. Status should show as "Running" and connection as "Online".
Figure 5
-
Go to NSO and delete the
client
user.Figure 6
-
Go to the Service Management UI to load Service Models. You should not see any models in the UI.
Figure 7
-
Last, check the connection status from Admin Essentials → Profiles → Adapters. Status should now show as "Running" and connection as "Degraded".
Figure 8