In addition to predefined runbooks, the Online Diagnostic System (ODS) feature also supports dynamic runbooks to debug NSX at runtime.
Dynamic runbooks are not dependent on NSX release and you can install them anytime. Dynamic runbooks address the following issues:
- As development and maintenance of predefined runbooks follow the NSX release cycle, it prevents debugging of issues emerging at live sites in between release cycles. With dynamic runbooks, any debugging requirements can be implemented in between release cycles as dynamic runbooks can be developed and installed anytime.
- If you upgrade NSX partially, there could be an incompatibility between a runbook and the API that calls it. For example, you upgrade the transport node, without upgrading the Unified Appliance (UA), and the upgrade installs a new version of runbook on the transport node. In this case, UA might not be able to invoke the newer version of the runbook with the older API as the API might be outdated.
Only the VMware team can create dynamic runbooks and you can download them for installing them on your system. Note that runbooks do not support data backup and restore.
To install the dynamic runbooks, you need to define a group called the dynamic runbook instance. The dynamic runbook instance defines all the installation node groups where runbooks are to be installed. If a new node is added to a group, the runbook will be automatically installed on the new node.
With NSX 4.2, the following runbook is available for download. For more informaton about the runbook, download the package from following VMware site https://support.broadcom.com/group/ecx/downloads.
Runbook | Description |
---|---|
Hyperbus runbook | The dynamic hyperbus runbook can check for the following hyperbus issues and provide remediation suggestion:
This runbook takes vif-id as the input argument. |
To install dynamic runbooks, perform the following steps:
Prerequisites
Download the dynamic package from the VMware site https://support.broadcom.com/group/ecx/downloads.
Procedure
What to do next
To extend a dynamic runbook instance to additional nodes, run the following API.
PATCH https://10.180.85.179/policy/api/v1/infra/sha/dynamic-runbook-instances/<dynamic-instanace-id>
{ "applied_to_group_paths":["/infra/domains/default/groups/<tn-group-name>"], "applied_to_nodes":["<target-edge-id>","<target-ua-id>"] }
To uninstall a runbook, run the following API.
DELETE https://10.180.85.179/policy/api/v1/infra/sha/dynamic-runbook-instances/<dynamic-instanace-id>/file
To uninstall a dynamic runbook instance, run the following API .
DELETE https://10.180.85.179/policy/api/v1/infra/sha/dynamic-runbook-instances/<dynamic-instanace-id>