Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Connections wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 1.0
  • 1.0.x
  • 2.0
  • 2.0.1
  • 2.0.1.1
  • 2.0_media
  • 2.5
  • 2.5_deployment
  • 2.5_media
  • 2.5_performance
  • 3
  • 3.0
  • 3.0.1
  • 3.0.1_media
  • 3.0_media
  • 3_deployment
  • 8.1.1
  • 8.2
  • activities
  • administrators
  • api
  • best_practices
  • blogs
  • bookmarks
  • business_card
  • cluster
  • communities
  • community
  • community_manager
  • connections
  • connections_3
  • connections_301
  • customization
  • customize
  • customizing
  • demos
  • deploying
  • deployment
  • deployments
  • developers
  • dogear
  • Domino
  • Edge server
  • education
  • error messages
  • files
  • forums
  • getting_started
  • Help
  • home
  • home_page
  • homepage
  • how-to
  • HTTP server
  • ibm
  • index
  • installation
  • integration
  • iOS
  • ipad
  • iWidget
  • J2EE
  • javadoc
  • lc3.0
  • learning
  • lotus-connections
  • mml
  • mobile
  • Notes
  • performance
  • person_card
  • Portal
  • portlet
  • portlet_factory
  • profiles
  • proxy server
  • quickr
  • Redbooks
  • rest
  • reverse proxy server
  • Sametime
  • scenarios
  • search
  • security
  • self-paced
  • SSO
  • tags
  • test_infrastructure
  • troubleshooting
  • tuning
  • video
  • VideoFest
  • videos
  • WAI
  • WAS
  • web_seminar
  • WebAppIntegrator
  • WebSphere
  • widgets
  • wikis
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > IBM Redbooks: Customizing IBM Connections 3.0.1 > 4.7 Make a single command line script form an AssemblyLine
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

4.7 Make a single command line script form an AssemblyLine 

expanded Abstract
collapsed Abstract
No abstract provided.
Previous

In previous sections, we showed how to run AssemblyLines from Tivoli Directory Integrator Configuration Editor. Here we create a command line script from an AssemblyLine and schedule this script to run nightly to automatically synchronize data between the source system and the Profiles database.
  1. Copy the configuration file from the project, containing Assembly Lines you want to use as a script, to the Tivoli Directory Integrator Solution directory. The name of the configuration file is <project_name>.xml and it should be in <workspace_root>/<project_name>/Runtime-<project_name>/.
    For example, copy
    C:\TDIProject\15082011\workspace\DB2toProfiles\Runtime-DB2toProfiles\DB2toProfiles.xml
    to
    C:\TDIProject\15082011\TDISOL\TDI
  2. Create a .bat (.sh, if you use Linux) file with the following code:

    @echo off
    SETLOCAL
    CD %~dp0

    REM call common script to set Tivoli Directory Integrator paths
    CALL .\TDIENV.bat

    REM Start Network Store server if not started already
    CALL .\netstore ping >NUL 2>NUL
    IF NOT ERRORLEVEL 1 GOTO STOREOK
    CALL .\netstore start

    :STOREOK
     
    CALL "%TDIPATH%\ibmdisrv" -s . -c <project_name>.xml -r <assembly_line_name>
     
    :FINISH
    ECHO "Script finished"
    ENDLOCAL 
    EXIT /B 0


    For example, for this project DB2toProfiles and AssemblyLine populateProfilesDB, the CALL directive should look similar to this:


    CALL "%TDIPATH%\ibmdisrv" -s . -c DB2toProfiles.xml -r populateProfilesDB


    Note: You might need to change the values of the environment variables in the tdienv.dat (.sh) script according to your environment.

Now you can run this script from the command line inside your Tivoli Directory Integrator Solution directory, or schedule it to run in appropriate time frame using your operating system tools like Task Scheduler in Microsoft Windows or cron in Linux.

Parent topic: 4.0 Tivoli Directory Integrator

expanded Article information
collapsed Article information
Category:
IBM Redbooks: Customizing IBM Connections 3.0.1
Tags:
Redbooks

This Version: Version 1 November 21, 2011 12:32:23 PM by Amanda J Bauman  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) Nov 21, 2011 12:32:23 PM Amanda J Bauman  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use