How do I create an action file for an adaptive response agent?
search cancel

How do I create an action file for an adaptive response agent?

book

Article ID: 166070

calendar_today

Updated On:

Products

PacketShaper

Issue/Introduction

The adaptive response feature allows you to set thresholds for acceptable and unacceptable performance, and specify command-file action scripts to run when these thresholds are reached.

These action files of CLI commands can make automatic changes, often correcting problems before users are ever impacted. The action file scripts can also be configured to send notifications via email, syslog, and SNMP traps.

Once the agent status returns to normal, a second action file can undo the changes, or run additional commands.

Resolution

To create an action file:

  1. Click the setup tab and click the Adaptive Response Settings link.
  2. Click the edit button next to the agent for which you want to create the action file.
  3. Click the browse files button. The File Browser window opens and shows the contents of the 9.258/agent/cmd directory (where action files need to be stored). In PolicyCenter, navigate to the desired portfolio: (install_directory)/Packeteer/PolicyCenter/publish/agent/(portfolio_name).
  4. Click the new cmd file button. A command file window opens.
  5. In the File Name field, enter a unique name for your action file up to eight characters long, including 0-9, a-z, AZ, -,_, and . (period). Spaces are not allowed. Example: red-def.cmd
  6. In the Contents area, enter the CLI commands for your action file.

See Adaptive Response Action Files Overview in PacketGuide for lists of variables you can include.

  1. Click save.
  2. Enter the name of your action file in the Red Action File or Green Action File field. You must include the .cmd file extension.
  3. Click OK.
  4. (For PolicyCenter only) You must now prescribe the portfolio with the new action file to a PolicyCenter configuration. See Distribute Action Files in PacketGuide for details on distributing action files to PolicyCenter configurations and units in shared mode.