×
Back to Geneos FAQ
Toolkit - Can I use filename date expansion variables in the Toolkit plugin similar to FKM/FTM?
Warning
This solution only works for Linux or UNIX-based shell script toolkits.
FKM and FTM plugins have built-in filename date expansion variables, such as <today>. But in Toolkit, you can use Linux or UNIX’s built-in date command and its various options within the file path and the Toolkit plugin will recognize these as well.
You can use the date command and its format options within the file path like the following example in your sampler script execution:
/bin/cat /mnt/files/reports/closereport/Report_`date +"%Y%m%d"`.csv
This should automatically expand to the current date with the filename formatted to Report\_YYYYMMDD similar to having Report\_<today> in FKM/FTM.
["Geneos"]
["Geneos > Netprobe"]
["FAQ"]