Contents of the User-defined Attributes Configuration File 139

File Format Lines beginning with # are comments and are ignored. All other lines take the form:

<Name> <label> <filename> <arguments> <flag>

<label> is used in the collector event logs to refer your attribute lookup program. Otherwise it is unused.

<filename> is the name of the attribute lookup program. This should normally be an executable file located in the main Traffix Manager install directory (by default this is C:\Transcend Traffix Manager). This program could be one of the standard attribute lookup programs (fileattrs or dblookup), or it could be an attribute lookup program which you have written yourself and copied to the Traffix Manager install directory. If your filename contains the space character, then surround it with double quotes

(“ “).

<arguments> are the arguments to be passed to the attribute lookup program on the command line. The correct arguments to pass to fileattrs and dblookup are described in “Using the fileattrs Program” on page 140 and “Using the dblookup Program” on page 142. If your arguments contain the space character, then surround them with double quotes (“ “).

The <flag> column should normally be TRUE. If this column is FALSE then the attribute program in question is not used to determine attributes when devices are newly discovered; it is only run when you explicitly reload attributes from Traffix Manager using the Reload Attributes dialog box.

Note that you can add the same program to the configuration file several times with different arguments. For example, if you want to use fileattrs to lookup your own data file, you can add an entry like this:

Mylookup fileattrs.exe "c:\my data\data.txt" TRUE

You can specify up to 14 programs, and place them in any order.

The programs are activated sequentially, so if one program is dependent upon the results of another it must appear after that program in the list. As a result, you can form a chain of processes that extend attribute assignments depending upon the outcome of the previous process.

Page 139
Image 139
HP Transcend Traffix Manager manual Mylookup fileattrs.exe c\my data\data.txt True