Documentation forNetwork Configuration Manager

Add scripted commands to the default NCM alert

You can modify the default NCM advanced alert to execute specific command scripts at the time the alert is triggered. The following example adds a simple show version command as a scripted action.

  1. Click Alerts & Activity > Alerts.
  2. Click Manage Alerts.
  3. Select Object Type from the Group By list, and select Node.
  4. Select Alert Me and Trigger an NCM Action.
  5. Click Duplicate & Edit.
  6. On Trigger Actions, click Add Action.
  7. Select Execute an NCM Action, and click Configure Action.
  8. Select Execute Config Script, and enter a command in Command Script to Execute. For example:

    show version

    When executed, this command runs on the context node, receives detailed software and hardware information, and includes it in the ${Notes} macro of an Orion database alerts table.

  9. Click Add Action.
  10. Drag the new action into the desired position in the list.

    By default, the software positions a new action at the end of the action list. In this case, it makes sense to position this action third, after NCM backs up the running config and determines the last config changes.

  11. Click Summary.
  12. On Summary, review and edit settings. We recommend enabling Alert Integration.
  13. Click Submit.