148
A
PPENDIX
E: A
UTOMATIC
A
TTRIBUTE
A
SSIGNMENT
The C examples are located in
C:\Transcend Traffix
Manager\TraffixServer\examples\c
and the Visual Basic
examples are in
C:\Transcend Traffix
Manager\TraffixServer\examples\vb
. You should copy one of
these samples to your own directory before modifying it.
Attribute lookup programs must be able to find the attripc.dll file when
they are running. This file is located in the Traffix Manager install
directory. In order that your program can find this file, you should copy
your program to the Traffix Manager install directory and run it from
there, or you should add the Traffix Manager install directory to the PATH
environment variable (it must be added as a system environment variable,
not a user variable). Be careful not to overwrite any of the executables
already in the Traffix Manager install directory.
Once you have built your attribute lookup program and copied it if
necessary, you should add it to the user-defined attribute program
configuration file (see
“Contents of the User-defined Attributes
Configuration File”
on
page 138
).
Library functions available
Table 21
shows a full list of the functions available to attribute lookup
programs in the attripc DLL library:
country
Visual Basic
Simple example program which assigns an
attribute country based on DNS name.
template
Visual Basic
Empty attribute program which does nothing, but
which contains all the necessary project files and
declarations to build an attribute lookup program.
Table 21
Functions available to lookup programs in the attripc DLL library
Function
Description
GetNextLookup
Takes no arguments. Returns an integer. This function waits
until Traffix Manager want to determine new attributes for a
device, or until Traffix Manager is closing down. If Traffix
Manager wants to determine attributes for a device, this
returns 1. If Traffix Manager wants your program to exit, this
function returns 0.
(continued)
Table 20
Example Programs (continued)
Name
Language
Description
Summary of Contents for Traffix Transcend Traffix Manager
Page 10: ......
Page 18: ......
Page 24: ...24 CHAPTER 1 TRAFFIX MANAGER OVERVIEW ...
Page 34: ......
Page 46: ...46 CHAPTER 4 GROUPING NETWORK DEVICES IN THE MAP Figure 6 Groupings dialog box ...
Page 48: ......
Page 56: ...56 CHAPTER 6 CONFIGURING AGENTS FOR DATA COLLECTION ...
Page 70: ...70 CHAPTER 8 DISPLAYING TRAFFIC IN GRAPHS ...
Page 88: ...88 CHAPTER 10 VIEWING EVENTS ...
Page 114: ......
Page 120: ...120 APPENDIX A TROUBLESHOOTING TRAFFIX MANAGER ...
Page 152: ...152 APPENDIX F SUPPORTED RMON 2 DEVICES ...
Page 156: ...156 APPENDIX G CONFIGURING 3COM STANDALONE RMON 2 AGENTS ...
Page 160: ...160 APPENDIX I USING RMON 1 AGENTS ...
Page 168: ......
Page 184: ...184 INDEX ...