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


Enabling SDX Actions from IDP Manager

After you complete all the configurations in the SDX software, you configure the SDX idpsdx.py script—a script that implements the messaging to record problem incidents and identifies the action for the SDX software to take: redirect traffic to an IDP captive portal, activate services, and send e-mail.

In a testing environment, you can use the idpsdx.sh script to set up and troubleshoot a configuration that integrates IDP into an SDX-managed environment. The idpsdx.sh script sets the library paths, redirects debugging output, and executes the idpsdx.py script. Do not use the idpsdx.sh script in a production environment.

The idpsdx.py script requires Python version 2.3 and the following Python libraries installed on the system that runs the IDP management server:

The SMCpython and UMCpyadd packages in the SDX software distribution contain Python version 2.3 and the libraries listed.

Before You Configure Scripts

Verify the location where Python is installed on the system. If you installed Python from the SDX software distribution, the default installation directory is /opt/UMC/python. If you installed Python to a different directory, update the paths in idpsdx.py and in idpsdx.sh (if you use this file).

For a production environment, start the IDP management server in an environment in which the library path includes the Python libraries.

Configuring Scripts

The idpsdx.py script provides documented source code as well as configuration properties to allow you to create customized e-mail messages and implementations. You can locate the scripts in the /opt/UMC/idp/scripts directory.

To configure SDX scripts:

  1. Edit the idpsdx.py file to specify the actions to be taken. Use the field descriptions in the following list to complete the entries in this file.
  2. Copy the idpsdx.py file and the idpsdx.sh file (if you use this file) to the appropriate directory for IDP Manager. For the location of this directory, see the IDP documentation at
  3. http://www.juniper.net/techpubs/software/management/idp/
    
    
    

RECORD URL

DSA URL

In the sample implementation, Dynamic Service Activator is used by the idpsdx.py integration script to send e-mail and activate the captive portal service.

DEBUG

RECORD

CAPTIVE

CAPTIVE SERVICE

For a subscriber to have Web requests redirected to a captive portal, the subscriber must have or inherit a subscription to the service.

EMAIL

Sample idpsdx.py Script

Through Dynamic Service Activator, the sample idpsdx.py script activates the service that redirects subscribers to the captive portal. Because Dynamic Service Activator does not support persistent activation, the sample portal activates the service for the captive portal only for users who are logged in to their account.

If you want subscribers to see the IDP captive portal at any time—for example, when they log out of their account, and then log back in to their account but do not try to access the Web—you can write an SAE extension script and invoke it from the invokeScript method in Dynamic Service Activator.


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