NX Launch NX Integration with SSO via Command Line

2021-10-06T23:26:46Z
NX for Design

Summary


Details

--------------- 
Create batch script to launch NX Manager with SSO enabled via command line



Solution

 Here is a sample of a batch script that will launch NX Manager with SSO 
enabled:


************************************* 
@echo off 
set TPR=C:\Siemens\Teamcenter\Tc10.1\tc_root\portal 
set TC_ROOT=C:\Siemens\Teamcenter\Tc10.1\tc_root 
set TC_BASE=C:\Siemens\Teamcenter\Tc10.1 
cd /d %TPR% 
REM ***


REM Setting NX CERT File Environment Variable 
set TEAMCENTER_SSL_CERT_FILE=%TPR%\NX.cer


REM Restart FCC to match current ENV (Only for QA users) 
set JAVA_HOME=C:\Java\jre8 
set JRE_HOME=C:\Java\jre8 
set FMS_HOME=C:\Siemens\Teamcenter\Tc10.1\tccs 
set FCC_HOME= 
if exist %TC_BASE%\tc_root ( 
 start %FMS_HOME%\bin\fccstat -restart 
 )


set UGII_BASE_DIR=C:\Progra~1\NX10
set UGII_ROOT_DIR=%UGII_BASE_DIR%\ugii
set SPLM_LICENSE_SERVER=28000@<yourlicenseserver>
set UGII_UGMGR_COMMUNICATION=HTTP
set UGII_SITE_DIR=C:\client_installs\NX\site
set UGII_PV_TESS_CONFIG_FILE=\\client_installs\NX\PVTRANS
set UGII_UGMGR_HTTP_URL=https://<yourserver>/tc/aiws/aiwebservice 
set UGII_UGMGR_SOA_ENABLED=TRUE 
set PATH=%PATH%;%UGII_ROOT_DIR%


rem start "Teamcenter Integration for NX" /B %UGII_ROOT_DIR%\ugs_router -ugm 
-enable_cancel -version=V28.0 %*


C:\Progra~1\NX10\ugii\ugraf.exe -pim=yes
-http_url=https://<yourserver>/tc/aiws/aiwebservice
-soa_url=https://<yourserver>/tc -http_cookie=* -http_vmid=*
-sso_app_id=<yourAppID> -sso_login_url=https://<yourserver>/ssotcls -role=ALL 
–nx



Notes and References


Hardware/Software Configuration

Platform: INTL64
OS: window
OS Version: 2008_R2
Product: NX
Application: NXMANAGER
Version: V12.0
Function: TC_PORTAL

Ref: 002-7009037

KB Article ID# PL7009037

Contents

SummaryDetails

Associated Components

Teamcenter Integration for NX