Scripting a configuration
For more experienced administrators, Spotfire Server includes two prepared configuration scripts that you can use to set up simple configurations. You can also create and run your own scripts.
- The simple-config.txt file sets up Spotfire database authentication and the user directory.
- The simple-config-ldap.txt file sets up LDAP authentication and the user directory.
These scripts are located in the <installation dir>/tomcat/bin folder.
Example: The simple-config.txt file
# Run this script from the command-line using the following command: # config run simple-config.txt # Before using this script you need to set the variables below: set DB_DRIVER = "tibcosoftwareinc.jdbc.oracle.OracleDriver" set DB_URL = "jdbc:tibcosoftwareinc:oracle://<server>:<port>;SID=\ <SID>" #set DB_DRIVER = "tibcosoftwareinc.jdbc.sqlserver.SQLServerDriver" #set DB_URL = "jdbc:tibcosoftwareinc:sqlserver://<server>:<port>;DatabaseName=<database name>" set DB_USER = "<db username>" set DB_PASSWORD = "<db password>" set CONFIG_TOOL_PASSWORD = "<config tool password>" set ADMIN_USER = "<admin username>" set ADMIN_PASSWORD = "<admin password>" echo Creating the database connection configuration bootstrap --no-prompt --driver-class="${DB_DRIVER}" --database-url=\ "${DB_URL}" \ --username="${DB_USER}" --password="${DB_PASSWORD}" --tool-password="${CONFIG_TOOL_PASSWORD}" echo echo Creating the default configuration create-default-config echo echo Importing the configuration import-config --tool-password="${CONFIG_TOOL_PASSWORD}" --comment=\ "First config" echo echo Creating the '${ADMIN_USER}' user to become administrator create-user --tool-password="${CONFIG_TOOL_PASSWORD}" --username=\ "${ADMIN_USER}" --password="${ADMIN_PASSWORD}" echo echo Promoting the user '${ADMIN_USER}' to administrator promote-admin --tool-password="${CONFIG_TOOL_PASSWORD}" --username=\ "${ADMIN_USER}" echo
- Editing and running a basic configuration script
To use the simple-config.txt file to set up Spotfire database authentication and user directory, you must modify the script so that it works in your environment. - Script language
Spotfire provides a script language that you can use to create a script that runs multiple commands.
Copyright © TIBCO Software Inc. All rights reserved.