Specifications

The Program to run field does not allow using options. For example, you cannot enter
myscript.bat –i <IP Address> −m <MAC Address>
in the Program to run field.
TIP: To execute a script with options, create a script without options that executes another script
that has options (Windows only). For example:
Create a script named,
asm_script.bat
with an entry to call
myscript.bat
such as:
C:\Program Files\My Custom Files\myscript.bat –i %1 −m %2".
1.
Uncheck all but the Threat IP and Threat MAC checkboxes and select
Unformatted without spaces (you don't want to send any keyword (thip= or
thmac=) to your script.). The variable %1 returns <Threat IP Address> and %2
returns the <Threat MAC Address>
If you are using PERL script, you might want to use a different argument variable,
such as $ARGV[0] (First argument) or @ARGV (all arguments). Also, using the
shell script is similar to a Windows batch file script (%1 for the first argument, %*
for the all arguments).
2.
Working Directory
This is the path to a directory from which the script will be executed. Any path references within your
script that are not absolute paths, will be relative to this directory. Enter a path or use the Select
button to open a file browser window and choose a directory.
Specify parameters to pass...
These check boxes let you select elements of the event information to be passed as parameters to your
program. The Select All button places a check in all of the boxes and the Deselect All button removes
checks from all of the boxes.
Specify format to use...
This area lets you select the format that will be used to pass the selected parameters to your program:
Formatted with keyword...
When selected, the parameters are passed using a format that includes a keyword associated
with each parameter (e.g.,
keyword="value"
). So, for example, if Sender Name is selected
as a parameter, the keyword sname is used and the information passed to the script would be
sname="dragon_id"
followed by a space and then the keyword and value for the next
parameter. The following table defines the keywords for each parameter and the order that the
values are passed to the script (listed from top to bottom in the table).
Parameter Keyword
Sender Name sname
Sender ID sid
Event Category ecat
Threat IP thip
Threat MAC thmac
Automated Security Manager Help
Script 149