Wednesday, December 18, 2013

Limitations of templating FileAgent configs


Day 21
I received the following question regarding building FileAgent .ser configuration files from templates:

" I know that I can write certain parameters into a .ser file by writing a .cfg file and running cdfa -g . What I don't know is what the limitations and possibilities of the .cfg file are. Ideally I'd like to be able to write a rule into a .ser file through the .cfg file, but I can't find any documentation as to whether or not that's possible. Do you have any insight?"
As far as I know you can only pass in substitution variables such as "&var." .
When you want the substitution variable expanded to its value you need the trailing period, but when you are editing the build template config file you just use "&var=value".

Also you can only use these substitution variables with text/string fields and not numeric fields such as the port numbers used in the FileAgent configuration.

You can not use the build configuration templates to add rules to the binary .ser configuration file.

Those would be nice features to have added to FileAgent.

No comments: