Configuring a Collector Using Options from a File (vtl)This information applies to the command-line interface (vtl) only.
When creating an Activity, you can configure a data collector manually or dump configuration options to a file and use them for subsequent runs.
Configure an Activity.
Command-line example:
>vtl
activity -d 5 -c sampling -o "-event-config en=clockticks:sa=12345
-cal no -msc 100 -term no -sterm no -sd 2 -sb 2222 -si 4"
Dump the default collector options to a file with
the -dump-options-to-file (or -dof)
option.
Command-line example:
>vtl query -c sampling -dof options1.txt
This writes the default sampling collector options in the options1.txt file.
vtl query
-a <activity name> > <file>
This creates a file <file> with the configuration options of the Activity
<activity
name>. You may need to edit the file
to remove unnecessary information.
Create another Activity and configure it using
the options saved to the file with the -options-from-file
(or -of) option.
Command-line example:
>vtl activity -c sampling -of options1.txt
This creates an Activity with the options listed in step 1.