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
Содержание Traffix Transcend Traffix Manager
Страница 10: ......
Страница 18: ......
Страница 24: ...24 CHAPTER 1 TRAFFIX MANAGER OVERVIEW ...
Страница 33: ...II HOW TRAFFIX MANAGER WORKS Chapter 3 Collecting Data Chapter 4 Grouping Network Devices in the Map ...
Страница 34: ......
Страница 46: ...46 CHAPTER 4 GROUPING NETWORK DEVICES IN THE MAP Figure 6 Groupings dialog box ...
Страница 48: ......
Страница 56: ...56 CHAPTER 6 CONFIGURING AGENTS FOR DATA COLLECTION ...
Страница 70: ...70 CHAPTER 8 DISPLAYING TRAFFIC IN GRAPHS ...
Страница 88: ...88 CHAPTER 10 VIEWING EVENTS ...
Страница 114: ......
Страница 120: ...120 APPENDIX A TROUBLESHOOTING TRAFFIX MANAGER ...
Страница 152: ...152 APPENDIX F SUPPORTED RMON 2 DEVICES ...
Страница 156: ...156 APPENDIX G CONFIGURING 3COM STANDALONE RMON 2 AGENTS ...
Страница 160: ...160 APPENDIX I USING RMON 1 AGENTS ...
Страница 168: ......
Страница 184: ...184 INDEX ...