cc/td/doc/product/rtrmgmt/cw2000/fam_prod/user_reg
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

User Registration Tool Software Developer's Guide
URT Event Bus Listener Interface
vlancmd Command-Line Tool

User Registration Tool Software Developer's Guide


The User Registration Tool (URT) software development kit (SDK) is installed with and resides on the URT Administrative Server. The kit is located in the URT SDK folder (for example, C:\Program Files\urt\sdk).

The URT SDK contains the following tools:

The API and the command-line tool are described in this guide.

URT Event Bus Listener Interface

The URT event bus listener API (UrtEventBusListenerIf.java), located in the URT sdk\admin folder, allows an application to listen for URT events that are published by the URT VPS.

Using this API, your application can listen for one or all of the following types of URT events:

Depending on the URT event type, appropriate URT data is returned.

Methods

UrtCommonEvent

The UrtCommonEvent class is responsible for URT events.

Class Member Variables

Name  Description 

URT event type

URT user event (logon or logoff) or client event (logon).

URT event timestamp

Time of the event.

Methods

UrtCommonUserEvent

The UrtCommonUserEvent class extends the UrtCommonEvent class and handles URT user type events.

Class Member Variables

Name  Description 

Event type

URT event type.

Username

Name of the user initiating the event.

IP Address

IP address of the user's system.

MAC Address

MAC address for the network interface card (NIC) in the user's system.

Subnet

Subnet address of the user's system.

Gateway

IP address of the router (gateway) used by the user's system.

Switch address

Switch address to which the user's system is connected.

Switch port

Switch port to which the user's system is connected.

VPS Server IP Address

IP address of the URT VPS.

VTP Domain

VTP domain to which the user's system is connected.

VLAN

VLAN to which the user's system is connected.

Timestamp

Time the event occurred.

Methods

UrtCommonClientEvent

The UrtCommonClientEvent class extends the UrtCommonEvent class and handles URT client type events.

Class Member Variables

Name  Description 

Event type

URT event type.

MAC Address

MAC address for the network interface card (NIC) in the client.

Switch address

Switch address to which the client is connected.

Switch port

Switch port to which the client is connected.

VPS Server IP Address

IP address of the URT VPS.

VTP Domain

VTP domain to which the client is connected.

VLAN

VLAN to which the client is connected.

Timestamp

Time the event occurred.

Methods

Sample Code

Sample code is supplied in the URT sdk\admin folder.

Listener Program

ExampleUrtListener.java provides an example class for listening to URT events using a callback. This sample program continuously listens for all URT user and client events, then prints them to standard output.

Compile Script

The CompileExampleUrtListener.bat script compiles the sample program.

Class Information

The jar file urtadminsdk.jar contains class information used when compiling the sample program.

Run Script

The ExampleUrtListener.bat script starts the compiled sample program.

Assumptions and Restrictions

You must have a Java compiler. You must compile and run the listener program from the URT Administrative Server.

vlancmd Command-Line Tool

The vlancmd command-line tool sets and retrieves VLAN information based on the MAC address. This tool is located in the URT sdk\vlancmd folder.

This tool interacts with the URT Administrative Server to obtain and configure VLANs on the switches.


Note   For more information about the URT Administrative Server, see the to User Guide for the Cisco Secure User Registration Tool.

Supported Platforms

Usage

vlancmd [set|get] MAC_address urt-server [vlan-name]

Command-Line Options

Input Parameters

For example:

10.10.10.7.15001;10.10.12.5.15001 specifies two URT VPSs with IP addresses 10.10.10.7 and 10.10.12.5, and the UDP port to use is 15001.


Note    You can also enter vlancmd -help for usage information.

Examples


This command gets the VLAN information for the MAC address 00-90-20-32-fc-e9:

Vlancmd get 00-90-20-32-fc-e9 10.10.10.7.15001;10.10.12.5.15001


The command will display this output:

Vlan=55 switchip=10.10.10.5 port=2/6


hometocprevnextglossaryfeedbacksearchhelp
Posted: Wed Jan 28 12:36:51 PST 2004
All contents are Copyright © 1992--2004 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.