Writing And Building Your Own Attribute Lookup Program - 3Com Traffix Transcend Traffix Manager User Manual

For windows nt
Table of Contents

Advertisement

Writing and Building
Your Own Attribute
Lookup Program
an attribute New Device to the value TRUE. NL Type is a built-in
attribute which is always set to the network type of a device. This
means that every IP device is assigned the attribute New Device with a
value of TRUE.
Because of the while loop in the program, the program keeps
assigning attributes for devices until Traffix Manager is finished with it.
By replacing this simple loop with your own code, you can write a
program which assigns your own attributes to devices using your own
algorithm.
GetAttribute returns the value of any attribute which has already
been assigned, for example, NL Address and NL Type. See "Predefined
Attributes" on page 40 for a list of attributes which are automatically
assigned by Traffix Manager. If you have other attribute lookup programs
running, you may also use GetAttribute to get an attribute value
assigned by another program.
To build your own attribute lookup program, you should copy one of the
example programs and modify it. You can also look at these programs for
more examples of how to write attribute lookup programs. There are 6
example programs supplied, as shown in
Table 20 Example Programs
Name
Language
C
fileattrs
C
nbtlookup
C
country
C
template
Visual Basic
dblookup
(continued)
Writing your own program
Table
20.
Description
Complex program which parses a text file and uses
it to assign attributes (see
Program"
on
page
140).
Example program which uses NetBios Status
messages to find out the names of users who are
currently logged on to the Windows system.
Simple example program which assigns an
attribute country based on DNS name.
Empty attribute program which does nothing, but
which contains all the necessary project files,
source files and include files to build an attribute
lookup program.
Complex program which assigns attributes based
on the contents of a spreadsheet or database (see
"Using the dblookup Program"
147
"Using the fileattrs
on
page
142).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Transcend traffix manager 3.0

Table of Contents