[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Related Configuration Tasks

The VTA configuration script configures the components that it finds and accesses on each host. However, depending on your configuration and the components you use, such as the type of database and J2EE application server, you may need to manually configure some of the components or the configuration. This section provides a complete list of the configuration procedures related to the VTA and explains which procedures the VTA configuration script completes. It includes:

  1. Configuring a Database to Store Account and Session Data
  2. Configuring the J2EE Application Server
  3. Configuring VTA Services and Policies
  4. Configuring Subscribers and Subscriptions to VTA Services
  5. Accessing the J2EE Application Server's Client Libraries
  6. Specifying How the VTA Loads Configurations from the Directory
  7. Configuring the SAE to Send Tracking Events to the VTA
  8. Specifying Tracking Plug-Ins for Enterprise Subscribers on JUNOS Routing Platforms
  9. Using NICs with the VTA
  10. Identifying Subscribers, SAEs, and Sessions
  11. Configuring Logging Properties for All VTA Configurations

Configuring a Database to Store Account and Session Data

The VTA requires a relational database to store accounts and session data. For information about databases that we have tested for use with the VTA, see the SDX Application Library Release Notes.

To configure a database:

  1. For each VTA, create a database that uses the schema for the VTA.

To view the database schemas, see the following file, which is created when you install the Solaris package for the VTA.

  1. Configure access to the database for an administrator by using the VTA to monitor and manage subscribers.

The access parameters you configure must match the access parameters you configure for the data sources created in the J2EE application server (see Configuring the J2EE Application Server).

Configuring the J2EE Application Server

Before configuring the J2EE application server, install the JDBC driver that allows your database to connect to the J2EE application server, and restart the J2EE application server. See the documentation for the database to determine the required JDBC driver. For example, for JBoss, copy the driver to /opt/UMC/jboss/server/default/lib.

NOTE: If you use JBoss, the VTA configuration script configures the J2EE application server, and you do not need to complete these tasks.


To configure the J2EE application server to support the VTA:

  1. For each VTA, create a data source with a Java Naming and Directory Interface (JNDI) name that matches the name of the data source (see Table 3 for the default names).

The load script copies default data-source deployment descriptors. These descriptors are appropriate for an environment in which you use JBoss with the MySQL database and have both of these applications running on the same host. The descriptor files begin with mysql-. For more information about these files, see the documentation for the version of JBoss included with the SDX software.

To modify the names of the VTA deployment descriptors, see Creating Deployment Descriptors.

  1. Set up a Java Message Service (JMS) connection factory, and link it to the resource environment reference jms/QueueConnectionFactory.

The way you link the JMS connection factory to the resource environment reference depends on the J2EE application server. See the documentation for the J2EE application.

  1. For each VTA, create a JMS queue for the ConnectionFactory class with the appropriate name for the VTA (see Table 3).
  2. Create a role called VTA-Admin, and configure the administrator profiles so that administrators can access the VTA administration portal with this role.
  3. Specify an authentication mechanism, and access parameters (such as a username and password) by which administrators can access the data source through the portals.

The access parameters that you configure must match the access parameters that you configure for the database (see Configuring a Database to Store Account and Session Data).




Table 3: Names for Data Sources and JMS Queues 
Type of VTA
Default Name for Data Sources
Name for JMS Queue

Quota

Quota/MySQLS

queue/Quota/SAEEventQueue

Threshold

Threshold/MySQLS

queue/Threshold/SAEEventQueue

Creating Deployment Descriptors

The enterprise archives (EAR files) for a VTA contain several modules that require deployment descriptors for the J2EE application server. In these EAR files are sample deployment descriptors for several J2EE application servers. See the Release Notes for information about the J2EE servers that we have tested with the VTA.

To determine the names of the files that contain the descriptors and how to edit them, see the documentation for your J2EE application server.

To deploy the VTA in a J2EE application server that we have not tested, you may need to develop your own deployment descriptors. In this case, you may be able to use the samples we provide as a guide.

To create a deployment descriptor:

  1. Create a folder for the VTA on a host.
  2. mkdir vta
    
    
    
  3. Copy the EAR file for the VTA from the webapp folder on the application library CD to the folder that you created in Step 1. For example:
  4. cp /cdrom/cdrom0/webapp/quotavta.ear vta
    
    
    
  5. From the EAR file, extract the following files into the folder you created in
    Step 1:

For example:

cd vta
jar xvf quotavta.ear datamgr.jar

  1. For each JAR file you extracted, extract the file that defines the deployment descriptors for the J2EE application server. For example, for JBoss:
  2. jar xvf datamgr.jar META-INF/jboss.xml
    
    
    
  3. Edit the file that defines the deployment descriptors for the J2EE application server.
  4. Replace in the JAR file the file that defines the deployment descriptors for the J2EE application server. For example:
  5. jar uvf datamgr.jar META-INF/jboss.xml
    
    
    
  6. Replace the JAR file in the EAR file. For example:
  7. jar uvf quotavta.ear datamgr.jar
    
    
    

Configuring VTA Services and Policies

You do not need to complete the tasks in this section if you used the VTA configuration script to load the sample data. The sample data includes services for the VTA and policies for the services, and it configures the services to generate tracking events.

Only the VTA should activate and deactivate services that the VTA controls, and you must ensure that these services are not visible on a portal for subscribers to control manually. You can use other services with a VTA if you design the policies and priorities for those services to work together.

For example, if you manage subscribers with a VTA, you can allow subscribers to manually activate a service that overrides the quota service, and consequently prevents charges in the periodic and bought accounts. You would account for use of this service through RADIUS rather than a VTA, and subscribers would incur an extra cost for using the service. In this case, you configure the overriding service with a higher precedence than the quota service.

To configure services for the VTA:

  1. Create value-added services for which a VTA monitors and manages usage.
  2. Configure policies that specify ingress and egress accounting rules consistent with the usage formula.

For information about configuring accounting rules for a policy, see SDX Objects Guide, Chapter 6, Policy Management Overview.

Configuring Subscribers and Subscriptions to VTA Services

You need to add retailers and subscribers to the directory. If you are using the VTA for testing or demonstration purposes, you can use the retailers and subscribers that are provided in the sample data. (For information about loading sample data, see Installing and Initially Configuring the VTA Software.) If you do not load the sample data, you need to create at least one shared subscriber.

  1. Add a retailer and at least one shared subscriber.

For information about adding subscribers, see SDX Objects Guide, Chapter 3, Managing Subscribers and Subscriptions.

  1. For all subscribers managed by the VTA, create an individual or a group subscription to value-added services for which a VTA monitors and manages usage.

For information about configuring subscriptions, see SDX Objects Guide, Chapter 3, Managing Subscribers and Subscriptions.

  1. For the quota service, configure the subscriptions to automatically activate the service when the subscribers log in.

Accessing the J2EE Application Server's Client Libraries

If you use JBoss on the host, the script /opt/UMC/conf/vta/load copies the JBoss client libraries to the SAE installation directory, and you do not need to complete these tasks.

Each SAE that interacts with the VTA requires access to the J2EE application server's client libraries. To provide this access:

  1. Refer to the documentation for the J2EE application server to determine the locations and names of the files for the client libraries.

When you install the VTA, the files for the JBoss client libraries are placed in the folder /opt/UMC/conf/vta/jboss-client.

  1. Copy the files for the libraries to the folder opt/UMC/sae/lib on each host that supports an SAE. For example:
  2. cp /opt/UMC/conf/vta/jboss-client/*.jar /opt/UMC/sae/lib
    
    
    
  3. Restart the SAE on each host to which you copied the client libraries.

Specifying How the VTA Loads Configurations from the Directory

Bootstrap properties specify how the VTA loads configurations from the directory. If you install the directory on a different host than the J2EE application server, you must modify the bootstrap properties to specify the directory host.

NOTE: The examples in these steps are for the Quota VTA. The procedure for the Threshold VTA is identical; however, the EAR filename is thresholdvta.ear.


To configure the bootstrap properties for each VTA:

  1. Create a folder for the VTA on a host.
  2. mkdir vta
    
    
    
  3. Copy the EAR file for the VTA from the webapp folder on the application library CD to the folder that you created in Step 1.
  4. cp /cdrom/cdrom0/webapp/quotavta.ear vta
    
    
    
  5. From the EAR file, extract the file vtacore.jar into the folder you created in
    Step 1.
  6. cd vta
    
    jar xvf quotavta.ear vtacore.jar
    
    
    
  7. From the file vtacore.jar, extract the file META-INF/ejb-jar.xml.
  8. jar xvf vtacore.jar META-INF/ejb-jar.xml
    
    
    
  9. In the folder you created in Step 1, edit the META-INF/ejb-jar.xml file.

See Properties in ejb-jar.xml file for information about the properties in this file.

  1. Replace the file META-INF/ejb-jar.xml in the file vtacore.jar.
  2. jar uvf vtacore.jar META-INF/ejb-jar.xml
    
    
    
  3. Replace the file vtacore.jar in the EAR file.
  4. jar uvf quotavta.ear vtacore.jar
    
    
    

Properties in ejb-jar.xml file

This section describes the properties in the ejb-jar.xml file.

Config.java.naming.provider.url, Config.java.naming.security.principal, Config.java.naming.security.credentials, Config.java.naming.security.protocol

Config.net.juniper.smgt.lib.config.staticConfigDN

Config.net.juniper.smgt.lib.config.dynamicConfigDN

Config.net.juniper.smgt.des.<propertySuffix>

vta.namespace

Configuring the SAE to Send Tracking Events to the VTA

The VTA communicates with the SAE through the EJB adapter plug-in. This plug-in is an SAE plug-in and performs the following functions:

To configure the EJB adapter plug-in with SDX Configuration Editor:

  1. In the navigation pane, open the file for the SAE configuration (the default file is POP-ID.xml).
  2. Click the Plug-Ins tab.
  3. Scroll to the EJB Adapter configuration.
  4. Fill in the fields using the following field descriptions.

JNDI Service Provider

Application Server URL

JNDI Name of SAE Event Listener

Event Admitter

The variables in the filter include the names of plug-in attributes and a PluginEventType variable. The value of this variable is the name of the type of event, such as PE_START_SERVICE. For names of plug-in attributes and plug-in event types, see the SAE CORBA plug-in documentation in the SDX software distribution at SDK/doc/idl/sae/html/index.html on the Juniper Networks Web site at

http://www.juniper.net/techpubs/software/management/sdx/api-index.html

Plugin Attributes

Use EJB Cluster

EJB Clustering Strategy

Specifying Tracking Plug-Ins for Enterprise Subscribers on JUNOS Routing Platforms

When user-tracking plug-ins are attached to the retailer on JUNOS routing platforms, login names are needed to trigger the user-tracking plug-in and generate user-tracking events. Because enterprise subscribers do not have a login name, the VTA cannot get the required user-tracking events.

To allow enterprise subscribers on JUNOS routing platforms to use retailer-attached user-tracking plug-ins, configure the EJB adapter plug-in to filter SAE plug-in events for the VTA and send SAE tracking events to the VTA.

To use the EJB adapter plug-in to send events for a specific retailer:

  1. Configure the Event Admitter property of the EJB adapter plug-in (see Configuring the SAE to Send Tracking Events to the VTA).

Specify the PA_USER_DN event attribute with the retailer's relative distinguished name (RDN). For example, the following event admitter matches events from subscribers in the SP-Quota retailer:

PA_USER_DN=*SP-Quota*

  1. Configure the EJB adapter plug-in as the global user tracking plug-in for the SAE. To do so:
  1. In the SDX Configuration Editor navigation pane, open the file for the SAE configuration (the default file is POP-ID.xml).
  2. Click the Plug-Ins tab.
  3. In the Plug-In Event Publishers section, enter the name of the EJB adapter plug-in created in step 1in the Global User Tracking Plug-ins field.

Using NICs with the VTA

You can use NIC proxies if the VTA software needs to locate the SAE that manages a particular subscriber. For example, if the VTA receives an account update event and determines that it needs to reconfigure the corresponding SAE session, the VTA must find the SAE that is managing the session. The VTA can do this through the NIC.

You can also use the NIC with the VTA to allow the following:

If you do not set up a NIC for this purpose or you use an identifier that the NIC cannot map to an SAE reference, subscribers must log out and log in again before the VTA can activate their quota services when deposits are made to their accounts.

Configuring a NIC

For demonstrations and installations with few subscribers, you can configure the VTA to use a NIC proxy stub, which explicitly defines a set of data mappings. However, for standard installation with a significant number of subscribers and multiple SAEs, you must set up a full NIC configuration.

To configure a NIC for the VTA management portals:

  1. Install NIC Configuration Sample from the sample data from the SDX software distribution.

This action creates OnePopLogin under the NIC entry in the LDAP schema.

  1. Plan and configure your NIC hosts (see SDX Components Guide, Vol. 2, Chapter 12, Locating Subscriber Information).
  2. On each workstation that supports a NIC host for this NIC configuration, configure the object request broker (ORB) to recognize the Common Object Services (COS) name server. For JacORB, include the following line in the file jacorb.properties.
  3. ORBInitRef.NameService=corbaloc::<host>:<port>/NameService
    
    
    
  1. Add the NIC SAE agents to each SAE configuration as external plug-ins, as follows:
  2. Plugin.nic.objectref=corbaname::<host>:<port>/NameService#nicsae/saePort 
    
    Plugin.nic.attr=PA_ROUTER_NAME,PA_SESSION_ID,PA_USER_TYPE,\ 
    
    PA_LOGIN_NAME,PA_USER_IP_ADDRESS
    
    
    

For information about configuring SAE plug-ins, see SDX Components Guide, Vol. 1, Chapter 5, Configuring Authorization and Accounting Plug-Ins.

  1. Configure a NIC proxy for the VTA. See Configuring NIC Proxies for the VTA.

Configuring NIC Proxies for the VTA

To configure NIC proxies:

  1. In the SDX Configuration Editor navigation pane, expand the NIC proxy folder in the VTA folder.
  2. Select the NIC proxy that you want to configure.

You must also specify the namespace of the NIC proxy in the CONSTANTS.incl file of the Web applications for the VTA portals (see Properties for VTA Portals).

  1. Hold down the right mouse button, and select Open With > SDX Configuration Editor.

For information about the parameters that you can configure for NIC proxies, see SDX Components Guide, Vol. 2, Chapter 13, Configuring Applications to Communicate with an SAE.

Identifying Subscribers, SAEs, and Sessions

The VTA must be able to identify each subscriber by a unique identifier. The VTA uses the identifier to manage:

You can configure the VTA to use data keys to identify corresponding data values for these management tasks. The data keys depend on the subscriber's identifier and comprise one or more plug-in attributes.

Some identifiers are suitable for residential subscribers and some for enterprise subscribers. Because the SDX software supports only enterprise subscribers on JUNOS routing platforms, you cannot use some identifiers with JUNOS routing platforms.

Managing VTA Accounts and Sessions

Depending on the information that identifies subscribers in your SDX configuration, you can configure the VTA to use several types of plug-in attributes as data keys to identify accounts and sessions in the VTA database. If you use a NIC with the VTA portals, the VTA can also use some of these plug-in attributes to construct a data key that the NIC can use to determine which SAE manages a subscriber. When the NIC identifies an SAE, the VTA can also obtain a key to identify the subscriber session that the SAE is managing for the subscriber.

Table 5 shows the keys that you can specify for the VTA to query the VTA database, NIC, and SAE. For the VTA to use a subscriber identifier, the plug-in event must include the corresponding attribute(s) that are listed in the subscriber identifier row (attributes start with PA_). For more information about plug-in attributes, see the documentation for the SAE CORBA Plug-In on the Juniper Networks Web site at

http://www.juniper.net/techpubs/software/management/sdx/api-index.html 




Table 5: Keys That the VTA Constructs to Manage Accounts and Sessions 
Subscriber's Identifier
Database Key
Corresponding NIC Key
Corresponding SAE Key

DN

PA_USER_DN

PA_USER_DN

PA_USER_DN

Interface alias

PA_INTERFACE_ALIAS

None

None

Interface alias on router

PA_INTERFACE_ALIAS@PA_ROUTER_NAME

PA_ROUTER_NAME

None

Interface name on router

PA_INTERFACE_NAME@PA_ROUTER_NAME

PA_ROUTER_NAME

PA_INTERFACE_NAME

Login name

PA_LOGIN_NAME

PA_LOGIN_NAME

PA_LOGIN_NAME

(default)

MAC address

PA_USER_MAC_ ADDRESS

None

None

PPP login name or public DHCP name

PA_PRIMARY_USER_ NAME

None

PA_PRIMARY_USER_ NAME

Port on router

PA_PORT_ID@ PA_ROUTER_NAME

None

None

Managing Subscriber Sessions and Service Sessions

When the VTA receives plug-in events, it may need to start or stop a subscriber session or service session. The plug-in events identify the SAE that manages a subscriber; however, the VTA must construct a data key from one or more plug-in attributes to identify the subscriber session or service session. Depending on the information that identifies subscribers in your SDX configuration, you must configure the VTA to use the keys shown in Table 6.




Table 6: Keys That the VTA Constructs to Manage Subscriber and Service Sessions 
Subscriber's Identifier
SAE Key

DN

PA_USER_DN

Interface name on router

A combination of the following plug-in attributes:

  • PA_INTERFACE_NAME
  • PA_ROUTER_NAME

IP address

A combination of the following plug-in attributes:

  • PA_USER_IP_ADDRESS
  • PA_EVENT_TIME

IP address of the subscriber on an interface

A combination of the following plug-in attributes:

  • PA_USER_IP_ADDRESS
  • PA_INTERFACE_NAME
  • PA_ROUTER_NAME

Login name

PA_LOGIN_NAME

PPP login name or public DHCP name

PA_PRIMARY_USER_NAME

Configuring Identifiers for Subscribers and Sessions

To configure identifiers:

  1. In the applications.xml file, click the Subscriber ID and Lookup tab.

The Subscriber ID and Lookup pane appears.

  1. Fill in the fields as described in this section.

For more information about this topic, see Using NICs with the VTA.

Subscriber ID

Namespace of NICProxy

SAE Subscriber Lookup

Configuring Logging Properties for All VTA Configurations

To configure logging properties for all VTA configurations:

  1. In the navigation pane for SDX Configuration Editor, expand the VTA folder.
  2. Select the applications.xml file.
  3. Hold down the right mouse button, and select Open With > SDX Configuration Editor.

The Log destinations window appears.

  1. Configure the logging properties.

You can see default settings for logging in this file. For information about configuring logging, see SDX Components Guide, Vol. 1, Chapter 10, Configuring Logging for SDX Components.

  1. Save the configuration.

[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]