## Run Script Arguments

This function enables you to run a script along with each event sent in an email. This script is executed for each new event and receives the following arguments:

Argument | Description
`-C [category]` | The category of the event (for example, t3)
`-G [event_code}` | The event code
`-S [severity]` | The severity of the event (for example, 1=major, 2=critical 3=down)
`-A [actionable]` | Actionable event (True | False)
`-E [event_type]` | Event type
`-T [target]` | The target number of the event (for example: switch:10000023EA345A)
`-N [TargetName]` | The name of the target (for example, switch-1a)
`-I [IPno]` | The IP number of the device if available
`-D [description]` | The description of the event

Note -

The script must be able to run from a `cron` environment and, therefore, full command paths are required.

A complete example for the script `/usr/local/bin/test` follows:

`/usr/local/bin/test -C "t3" -S "2" -E "communicationLostEvent" \
-T "switch:10000023EA348A" -N "sw1a" \
-G " 21.26.37" \
-A "TRUE" \
-D "Lost communication (out of band) with switch swa1"
-I "[ipno]"`

Note -

Email might not be sent if the system is not properly configured to send mail to the recipient. This is primarily evident in Storage Service Processor environments where the Storage Service Processors are on a subnet and there is no gateway to the intended recipient.