**Scenario for Auto-Remediation – User Connectivity Loss Due to Error-Disabled Switch Port**
Users reported losing network access without any apparent changes or scheduled maintenance. Upon investigation, the affected switch port was found to be in an **err-disabled** state, preventing the end user from reconnecting. Issues like this often require manual device access, multiple CLI checks, and ad-hoc remediation — all of which increase resolution time and operational risk.\
\
In this automated remediation demonstration, our goal is to quickly diagnose the root cause of the err-disabled condition and safely restore end-user connectivity using NetBrain’s runbook-driven automation and Safe Change workflow.
**Starting with Runbook-based automations to identify the root cause**
We begin by running a NetBrain diagnostic runbook to automatically collect interface state, err-disable reasons, and related configuration data from the affected switch. This allows us to confirm why the port entered an err-disabled state and whether the issue is isolated or part of a broader pattern.
**Executing a Pre-built Intent with Auto Remediation enabled**
Once the root cause is identified, we run a pre-built intent that includes auto-remediation logic. This intent validates whether the condition meets predefined remediation criteria and confirms that it is safe to proceed with corrective action.
**Opening a Change Runbook to apply the fix using NetBrain Safe Change**
The remediation workflow launches a Change Runbook that applies the fix in a controlled manner, following NetBrain’s change philosophy. This includes benchmarking the current state, enforcing approval gates, and executing the change consistently across the affected interface.
**Verifying recovery and end-user connectivity**
After the change is applied, the runbook has built in automation to verify that the interface is operational and that end-user connectivity has been restored. Post-change checks confirm the issue is resolved and that no unintended side effects were introduced.
**Generating automated documentation of the remediation event**
We complete the workflow by exporting an automated documentation package summarizing the diagnosis, remediation steps taken, verification results, and final device state. This provides a complete audit trail suitable for ticketing, compliance, or operational review.
This approach demonstrates how NetBrain can move teams from reactive troubleshooting to safe, repeatable, and automated remediation — reducing MTTR while maintaining full operational control.